tcell_agent 0.4.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +9 -22
  3. data/bin/tcell_agent +127 -132
  4. data/lib/tcell_agent/agent/event_processor.rb +23 -22
  5. data/lib/tcell_agent/agent/fork_pipe_manager.rb +7 -7
  6. data/lib/tcell_agent/agent/policy_manager.rb +20 -15
  7. data/lib/tcell_agent/agent/policy_types.rb +5 -11
  8. data/lib/tcell_agent/agent/static_agent.rb +5 -1
  9. data/lib/tcell_agent/agent.rb +6 -4
  10. data/lib/tcell_agent/api.rb +7 -9
  11. data/lib/tcell_agent/appsensor/meta_data.rb +11 -4
  12. data/lib/tcell_agent/authlogic.rb +3 -3
  13. data/lib/tcell_agent/cmdi.rb +6 -4
  14. data/lib/tcell_agent/config/unknown_options.rb +3 -1
  15. data/lib/tcell_agent/configuration.rb +47 -49
  16. data/lib/tcell_agent/devise.rb +2 -2
  17. data/lib/tcell_agent/hooks/login_fraud.rb +58 -29
  18. data/lib/tcell_agent/instrumentation.rb +11 -10
  19. data/lib/tcell_agent/logger.rb +2 -2
  20. data/lib/tcell_agent/patches/meta_data.rb +9 -13
  21. data/lib/tcell_agent/patches.rb +7 -10
  22. data/lib/tcell_agent/policies/clickjacking_policy.rb +4 -5
  23. data/lib/tcell_agent/policies/content_security_policy.rb +6 -12
  24. data/lib/tcell_agent/policies/dataloss_policy.rb +2 -2
  25. data/lib/tcell_agent/policies/http_redirect_policy.rb +2 -2
  26. data/lib/tcell_agent/policies/policy.rb +0 -2
  27. data/lib/tcell_agent/policies/rust_policies.rb +90 -0
  28. data/lib/tcell_agent/policies/secure_headers_policy.rb +2 -2
  29. data/lib/tcell_agent/rails/auth/authlogic.rb +42 -24
  30. data/lib/tcell_agent/rails/auth/devise.rb +44 -23
  31. data/lib/tcell_agent/rails/auth/doorkeeper.rb +33 -15
  32. data/lib/tcell_agent/rails/better_ip.rb +1 -1
  33. data/lib/tcell_agent/rails/csrf_exception.rb +2 -2
  34. data/lib/tcell_agent/rails/dlp/process_request.rb +1 -1
  35. data/lib/tcell_agent/rails/dlp.rb +6 -6
  36. data/lib/tcell_agent/rails/dlp_handler.rb +1 -1
  37. data/lib/tcell_agent/rails/js_agent_insert.rb +1 -1
  38. data/lib/tcell_agent/rails/middleware/body_filter_middleware.rb +1 -1
  39. data/lib/tcell_agent/rails/middleware/context_middleware.rb +3 -2
  40. data/lib/tcell_agent/rails/middleware/headers_middleware.rb +10 -9
  41. data/lib/tcell_agent/rails/routes/grape.rb +6 -6
  42. data/lib/tcell_agent/rails/routes.rb +8 -11
  43. data/lib/tcell_agent/rust/libtcellagent-0.11.1.dylib +0 -0
  44. data/lib/tcell_agent/rust/{libtcellagent-0.6.1.so → libtcellagent-0.11.1.so} +0 -0
  45. data/lib/tcell_agent/rust/models.rb +16 -0
  46. data/lib/tcell_agent/rust/tcellagent-0.11.1.dll +0 -0
  47. data/lib/tcell_agent/rust/whisperer.rb +119 -48
  48. data/lib/tcell_agent/sensor_events/appsensor_meta_event.rb +17 -20
  49. data/lib/tcell_agent/sensor_events/command_injection.rb +50 -5
  50. data/lib/tcell_agent/sensor_events/login_fraud.rb +34 -18
  51. data/lib/tcell_agent/sensor_events/patches.rb +21 -0
  52. data/lib/tcell_agent/sensor_events/server_agent.rb +3 -3
  53. data/lib/tcell_agent/sensor_events/util/utils.rb +4 -3
  54. data/lib/tcell_agent/servers/puma.rb +2 -2
  55. data/lib/tcell_agent/servers/unicorn.rb +1 -1
  56. data/lib/tcell_agent/utils/passwords.rb +28 -0
  57. data/lib/tcell_agent/version.rb +1 -1
  58. data/lib/tcell_agent.rb +1 -5
  59. data/spec/apps/rails-3.2/config/tcell_agent.config +15 -0
  60. data/spec/apps/rails-3.2/log/development.log +0 -0
  61. data/spec/apps/rails-3.2/log/test.log +12 -0
  62. data/spec/apps/rails-4.1/log/test.log +0 -0
  63. data/spec/lib/tcell_agent/agent/fork_pipe_manager_spec.rb +46 -45
  64. data/spec/lib/tcell_agent/agent/policy_manager_spec.rb +276 -164
  65. data/spec/lib/tcell_agent/agent/static_agent_spec.rb +44 -47
  66. data/spec/lib/tcell_agent/api/api_spec.rb +16 -16
  67. data/spec/lib/tcell_agent/appsensor/injections_reporter_spec.rb +131 -116
  68. data/spec/lib/tcell_agent/appsensor/meta_data_spec.rb +55 -51
  69. data/spec/lib/tcell_agent/cmdi_spec.rb +413 -436
  70. data/spec/lib/tcell_agent/config/unknown_options_spec.rb +145 -128
  71. data/spec/lib/tcell_agent/configuration_spec.rb +165 -169
  72. data/spec/lib/tcell_agent/hooks/login_fraud_spec.rb +144 -153
  73. data/spec/lib/tcell_agent/instrumentation_spec.rb +84 -85
  74. data/spec/lib/tcell_agent/patches_spec.rb +70 -111
  75. data/spec/lib/tcell_agent/policies/appsensor_policy_spec.rb +313 -244
  76. data/spec/lib/tcell_agent/policies/clickjacking_policy_spec.rb +28 -28
  77. data/spec/lib/tcell_agent/policies/command_injection_policy_spec.rb +643 -513
  78. data/spec/lib/tcell_agent/policies/content_security_policy_spec.rb +55 -102
  79. data/spec/lib/tcell_agent/policies/dataloss_policy_spec.rb +111 -134
  80. data/spec/lib/tcell_agent/policies/http_redirect_policy_spec.rb +141 -146
  81. data/spec/lib/tcell_agent/policies/http_tx_policy_spec.rb +8 -8
  82. data/spec/lib/tcell_agent/policies/login_policy_spec.rb +15 -17
  83. data/spec/lib/tcell_agent/policies/patches_policy_spec.rb +231 -559
  84. data/spec/lib/tcell_agent/policies/secure_headers_policy_spec.rb +27 -27
  85. data/spec/lib/tcell_agent/rails/better_ip_spec.rb +30 -34
  86. data/spec/lib/tcell_agent/rails/logger_spec.rb +50 -49
  87. data/spec/lib/tcell_agent/rails/middleware/appsensor_middleware_spec.rb +182 -199
  88. data/spec/lib/tcell_agent/rails/middleware/dlp_middleware_spec.rb +110 -84
  89. data/spec/lib/tcell_agent/rails/middleware/global_middleware_spec.rb +107 -85
  90. data/spec/lib/tcell_agent/rails/middleware/redirect_middleware_spec.rb +68 -40
  91. data/spec/lib/tcell_agent/rails/middleware/tcell_body_proxy_spec.rb +81 -67
  92. data/spec/lib/tcell_agent/rails/responses_spec.rb +33 -37
  93. data/spec/lib/tcell_agent/rails/routes/grape_spec.rb +116 -121
  94. data/spec/lib/tcell_agent/rails/routes/route_id_spec.rb +25 -28
  95. data/spec/lib/tcell_agent/rails/routes/routes_spec.rb +87 -85
  96. data/spec/lib/tcell_agent/rails_spec.rb +1 -6
  97. data/spec/lib/tcell_agent/rust/models_spec.rb +112 -0
  98. data/spec/lib/tcell_agent/rust/whisperer_spec.rb +502 -179
  99. data/spec/lib/tcell_agent/sensor_events/appsensor_meta_event_spec.rb +44 -33
  100. data/spec/lib/tcell_agent/sensor_events/dlp_spec.rb +4 -4
  101. data/spec/lib/tcell_agent/sensor_events/sessions_metric_spec.rb +183 -169
  102. data/spec/lib/tcell_agent/sensor_events/util/sanitizer_utilities_spec.rb +25 -25
  103. data/spec/lib/tcell_agent/utils/bounded_queue_spec.rb +17 -20
  104. data/spec/lib/tcell_agent/utils/params_spec.rb +28 -28
  105. data/spec/lib/tcell_agent/utils/passwords_spec.rb +143 -0
  106. data/spec/lib/tcell_agent/utils/strings_spec.rb +35 -35
  107. data/spec/lib/tcell_agent_spec.rb +8 -8
  108. data/spec/spec_helper.rb +4 -4
  109. data/spec/support/middleware_helper.rb +10 -10
  110. data/spec/support/static_agent_overrides.rb +16 -12
  111. data/tcell_agent.gemspec +17 -33
  112. metadata +43 -198
  113. data/LICENSE_libinjection +0 -32
  114. data/Readme.txt +0 -7
  115. data/ext/libinjection/extconf.rb +0 -3
  116. data/ext/libinjection/libinjection.h +0 -65
  117. data/ext/libinjection/libinjection_html5.c +0 -847
  118. data/ext/libinjection/libinjection_html5.h +0 -54
  119. data/ext/libinjection/libinjection_sqli.c +0 -2317
  120. data/ext/libinjection/libinjection_sqli.h +0 -295
  121. data/ext/libinjection/libinjection_sqli_data.h +0 -9004
  122. data/ext/libinjection/libinjection_wrap.c +0 -3525
  123. data/ext/libinjection/libinjection_xss.c +0 -531
  124. data/ext/libinjection/libinjection_xss.h +0 -21
  125. data/lib/tcell_agent/appsensor/injections_matcher.rb +0 -155
  126. data/lib/tcell_agent/appsensor/rules/appsensor_rule_manager.rb +0 -49
  127. data/lib/tcell_agent/appsensor/rules/appsensor_rule_set.rb +0 -67
  128. data/lib/tcell_agent/appsensor/rules/baserules.json +0 -467
  129. data/lib/tcell_agent/patches/block_rule.rb +0 -93
  130. data/lib/tcell_agent/patches/sensors_matcher.rb +0 -31
  131. data/lib/tcell_agent/policies/appsensor/cmdi_sensor.rb +0 -23
  132. data/lib/tcell_agent/policies/appsensor/fpt_sensor.rb +0 -23
  133. data/lib/tcell_agent/policies/appsensor/injection_sensor.rb +0 -117
  134. data/lib/tcell_agent/policies/appsensor/nullbyte_sensor.rb +0 -26
  135. data/lib/tcell_agent/policies/appsensor/retr_sensor.rb +0 -22
  136. data/lib/tcell_agent/policies/appsensor/sqli_sensor.rb +0 -34
  137. data/lib/tcell_agent/policies/appsensor/xss_sensor.rb +0 -34
  138. data/lib/tcell_agent/policies/appsensor_policy.rb +0 -49
  139. data/lib/tcell_agent/policies/command_injection_policy.rb +0 -196
  140. data/lib/tcell_agent/policies/honeytokens_policy.rb +0 -69
  141. data/lib/tcell_agent/policies/patches_policy.rb +0 -84
  142. data/lib/tcell_agent/rust/libtcellagent-0.6.1.dylib +0 -0
  143. data/lib/tcell_agent/rust/tcellagent-0.6.1.dll +0 -0
  144. data/spec/apps/rails-3.2/Gemfile +0 -25
  145. data/spec/apps/rails-3.2/Gemfile.lock +0 -126
  146. data/spec/apps/rails-3.2/Rakefile +0 -7
  147. data/spec/apps/rails-3.2/app/assets/images/rails.png +0 -0
  148. data/spec/apps/rails-3.2/app/assets/javascripts/application.js +0 -15
  149. data/spec/apps/rails-3.2/app/assets/stylesheets/application.css +0 -13
  150. data/spec/apps/rails-3.2/app/controllers/application_controller.rb +0 -3
  151. data/spec/apps/rails-3.2/app/controllers/t_cell_app_controller.rb +0 -5
  152. data/spec/apps/rails-3.2/app/helpers/application_helper.rb +0 -2
  153. data/spec/apps/rails-3.2/app/views/layouts/application.html.erb +0 -14
  154. data/spec/apps/rails-3.2/app/views/t_cell_app/index.html.erb +0 -1
  155. data/spec/apps/rails-3.2/config/application.rb +0 -63
  156. data/spec/apps/rails-3.2/config/boot.rb +0 -6
  157. data/spec/apps/rails-3.2/config/environment.rb +0 -5
  158. data/spec/apps/rails-3.2/config/environments/test.rb +0 -37
  159. data/spec/apps/rails-3.2/config/routes.rb +0 -11
  160. data/spec/apps/rails-3.2/config.ru +0 -4
  161. data/spec/apps/rails-4.1/Gemfile +0 -7
  162. data/spec/apps/rails-4.1/Gemfile.lock +0 -114
  163. data/spec/apps/rails-4.1/Rakefile +0 -6
  164. data/spec/apps/rails-4.1/app/assets/javascripts/application.js +0 -16
  165. data/spec/apps/rails-4.1/app/assets/stylesheets/application.css +0 -15
  166. data/spec/apps/rails-4.1/app/controllers/application_controller.rb +0 -5
  167. data/spec/apps/rails-4.1/app/controllers/t_cell_app_controller.rb +0 -5
  168. data/spec/apps/rails-4.1/app/helpers/application_helper.rb +0 -2
  169. data/spec/apps/rails-4.1/app/views/layouts/application.html.erb +0 -14
  170. data/spec/apps/rails-4.1/app/views/t_cell_app/index.html.erb +0 -1
  171. data/spec/apps/rails-4.1/config/application.rb +0 -24
  172. data/spec/apps/rails-4.1/config/boot.rb +0 -4
  173. data/spec/apps/rails-4.1/config/environment.rb +0 -5
  174. data/spec/apps/rails-4.1/config/environments/test.rb +0 -41
  175. data/spec/apps/rails-4.1/config/initializers/assets.rb +0 -8
  176. data/spec/apps/rails-4.1/config/initializers/backtrace_silencers.rb +0 -7
  177. data/spec/apps/rails-4.1/config/initializers/cookies_serializer.rb +0 -3
  178. data/spec/apps/rails-4.1/config/initializers/filter_parameter_logging.rb +0 -4
  179. data/spec/apps/rails-4.1/config/initializers/inflections.rb +0 -16
  180. data/spec/apps/rails-4.1/config/initializers/mime_types.rb +0 -4
  181. data/spec/apps/rails-4.1/config/initializers/session_store.rb +0 -3
  182. data/spec/apps/rails-4.1/config/initializers/wrap_parameters.rb +0 -14
  183. data/spec/apps/rails-4.1/config/locales/en.yml +0 -23
  184. data/spec/apps/rails-4.1/config/routes.rb +0 -12
  185. data/spec/apps/rails-4.1/config/secrets.yml +0 -22
  186. data/spec/apps/rails-4.1/config.ru +0 -4
  187. data/spec/controllers/application_controller.rb +0 -12
  188. data/spec/lib/tcell_agent/appsensor/injections_matcher_spec.rb +0 -522
  189. data/spec/lib/tcell_agent/appsensor/rules/appsensor_rule_manager_spec.rb +0 -23
  190. data/spec/lib/tcell_agent/appsensor/rules/appsensor_rule_set_spec.rb +0 -159
  191. data/spec/lib/tcell_agent/patches/block_rule_spec.rb +0 -458
  192. data/spec/lib/tcell_agent/patches/sensors_matcher_spec.rb +0 -35
  193. data/spec/lib/tcell_agent/policies/appsensor/cmdi_sensor_spec.rb +0 -139
  194. data/spec/lib/tcell_agent/policies/appsensor/fpt_sensor_spec.rb +0 -139
  195. data/spec/lib/tcell_agent/policies/appsensor/nullbyte_sensor_spec.rb +0 -167
  196. data/spec/lib/tcell_agent/policies/appsensor/retr_sensor_spec.rb +0 -139
  197. data/spec/lib/tcell_agent/policies/appsensor/sqli_sensor_spec.rb +0 -246
  198. data/spec/lib/tcell_agent/policies/appsensor/xss_sensor_spec.rb +0 -882
  199. data/spec/lib/tcell_agent/policies/honeytokens_policy_spec.rb +0 -22
data/tcell_agent.gemspec CHANGED
@@ -1,19 +1,17 @@
1
- # coding: utf-8
2
-
3
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
4
2
 
5
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
4
  require 'tcell_agent/version'
7
5
 
8
6
  Gem::Specification.new do |spec|
9
- spec.name = "tcell_agent"
7
+ spec.name = 'tcell_agent'
10
8
  spec.version = TCellAgent::VERSION
11
- spec.authors = ['Rafael','Garrett']
12
- spec.email = ["rafael@tcell.io"]
13
- spec.summary = "tCell.io Agent for Rails & Sinatra"
14
- spec.description = "This agent allows users to use the tCell.io service with their Rails or Sinatra app."
15
- spec.homepage = "https://www.tcell.io"
16
- spec.license = "Copyright (c) 2017 tCell.io (see LICENSE file)"
9
+ spec.authors = %w[Rafael Garrett]
10
+ spec.email = ['rafael@tcell.io']
11
+ spec.summary = 'tCell.io Agent for Rails'
12
+ spec.description = 'This agent allows users to use the tCell.io service with their Rails app.'
13
+ spec.homepage = 'https://www.tcell.io'
14
+ spec.license = 'Copyright (c) 2017 tCell.io (see LICENSE file)'
17
15
 
18
16
  spec.files = Dir[
19
17
  'Rakefile',
@@ -24,30 +22,16 @@ Gem::Specification.new do |spec|
24
22
  'lib/tcell_agent/rust/tcellagent-*.dll',
25
23
  'README*',
26
24
  'LICENSE*',
27
- 'LICENSE_libinjection',
28
- 'tcell_agent.gemspec',
29
- 'ext/libinjection/libinjection.h',
30
- 'ext/libinjection/libinjection_html5.c',
31
- 'ext/libinjection/libinjection_html5.h',
32
- 'ext/libinjection/libinjection_sqli.c',
33
- 'ext/libinjection/libinjection_sqli.h',
34
- 'ext/libinjection/libinjection_sqli_data.h',
35
- 'ext/libinjection/libinjection_wrap.c',
36
- 'ext/libinjection/libinjection_xss.c',
37
- 'ext/libinjection/libinjection_xss.h'
25
+ 'tcell_agent.gemspec'
38
26
  ]
39
- spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
27
+ spec.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
40
28
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
41
- spec.require_paths = ["lib","config","spec"]
42
-
43
- spec.add_runtime_dependency "json",">=1.8"
44
- spec.add_runtime_dependency "pbkdf2",">=0.1"
45
- spec.add_runtime_dependency "ffi",">=1.3.0"
46
- spec.add_development_dependency "rspec-core"
47
- spec.add_development_dependency "bundler", ">= 1.7"
48
- spec.add_development_dependency "rake", "~> 10.0"
49
- spec.add_development_dependency "rspec","~>0.9"
50
- spec.add_development_dependency "rake-compiler"
29
+ spec.require_paths = %w[lib config spec]
51
30
 
52
- spec.extensions = %w[ext/libinjection/extconf.rb]
31
+ spec.add_runtime_dependency 'ffi', '>=1.3.0'
32
+ spec.add_runtime_dependency 'json', '>=1.8'
33
+ spec.add_development_dependency 'bundler', '>= 1.7'
34
+ spec.add_development_dependency 'rake', '~> 10.0'
35
+ spec.add_development_dependency 'rspec', '~>0.9'
36
+ spec.add_development_dependency 'rspec-core'
53
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tcell_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael
@@ -9,146 +9,105 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-12-19 00:00:00.000000000 Z
12
+ date: 2018-03-22 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: json
16
- requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - ">="
19
- - !ruby/object:Gem::Version
20
- version: '1.8'
21
- type: :runtime
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- version: '1.8'
28
- - !ruby/object:Gem::Dependency
29
- name: pbkdf2
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: '0.1'
35
- type: :runtime
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- version: '0.1'
42
14
  - !ruby/object:Gem::Dependency
43
15
  name: ffi
44
16
  requirement: !ruby/object:Gem::Requirement
45
17
  requirements:
46
- - - ">="
18
+ - - '>='
47
19
  - !ruby/object:Gem::Version
48
20
  version: 1.3.0
49
21
  type: :runtime
50
22
  prerelease: false
51
23
  version_requirements: !ruby/object:Gem::Requirement
52
24
  requirements:
53
- - - ">="
25
+ - - '>='
54
26
  - !ruby/object:Gem::Version
55
27
  version: 1.3.0
56
28
  - !ruby/object:Gem::Dependency
57
- name: rspec-core
29
+ name: json
58
30
  requirement: !ruby/object:Gem::Requirement
59
31
  requirements:
60
- - - ">="
32
+ - - '>='
61
33
  - !ruby/object:Gem::Version
62
- version: '0'
63
- type: :development
34
+ version: '1.8'
35
+ type: :runtime
64
36
  prerelease: false
65
37
  version_requirements: !ruby/object:Gem::Requirement
66
38
  requirements:
67
- - - ">="
39
+ - - '>='
68
40
  - !ruby/object:Gem::Version
69
- version: '0'
41
+ version: '1.8'
70
42
  - !ruby/object:Gem::Dependency
71
43
  name: bundler
72
44
  requirement: !ruby/object:Gem::Requirement
73
45
  requirements:
74
- - - ">="
46
+ - - '>='
75
47
  - !ruby/object:Gem::Version
76
48
  version: '1.7'
77
49
  type: :development
78
50
  prerelease: false
79
51
  version_requirements: !ruby/object:Gem::Requirement
80
52
  requirements:
81
- - - ">="
53
+ - - '>='
82
54
  - !ruby/object:Gem::Version
83
55
  version: '1.7'
84
56
  - !ruby/object:Gem::Dependency
85
57
  name: rake
86
58
  requirement: !ruby/object:Gem::Requirement
87
59
  requirements:
88
- - - "~>"
60
+ - - ~>
89
61
  - !ruby/object:Gem::Version
90
62
  version: '10.0'
91
63
  type: :development
92
64
  prerelease: false
93
65
  version_requirements: !ruby/object:Gem::Requirement
94
66
  requirements:
95
- - - "~>"
67
+ - - ~>
96
68
  - !ruby/object:Gem::Version
97
69
  version: '10.0'
98
70
  - !ruby/object:Gem::Dependency
99
71
  name: rspec
100
72
  requirement: !ruby/object:Gem::Requirement
101
73
  requirements:
102
- - - "~>"
74
+ - - ~>
103
75
  - !ruby/object:Gem::Version
104
76
  version: '0.9'
105
77
  type: :development
106
78
  prerelease: false
107
79
  version_requirements: !ruby/object:Gem::Requirement
108
80
  requirements:
109
- - - "~>"
81
+ - - ~>
110
82
  - !ruby/object:Gem::Version
111
83
  version: '0.9'
112
84
  - !ruby/object:Gem::Dependency
113
- name: rake-compiler
85
+ name: rspec-core
114
86
  requirement: !ruby/object:Gem::Requirement
115
87
  requirements:
116
- - - ">="
88
+ - - '>='
117
89
  - !ruby/object:Gem::Version
118
90
  version: '0'
119
91
  type: :development
120
92
  prerelease: false
121
93
  version_requirements: !ruby/object:Gem::Requirement
122
94
  requirements:
123
- - - ">="
95
+ - - '>='
124
96
  - !ruby/object:Gem::Version
125
97
  version: '0'
126
98
  description: This agent allows users to use the tCell.io service with their Rails
127
- or Sinatra app.
99
+ app.
128
100
  email:
129
101
  - rafael@tcell.io
130
102
  executables:
131
103
  - tcell_agent
132
- extensions:
133
- - ext/libinjection/extconf.rb
104
+ extensions: []
134
105
  extra_rdoc_files: []
135
106
  files:
136
107
  - LICENSE
137
- - LICENSE_libinjection
138
108
  - README.md
139
109
  - Rakefile
140
- - Readme.txt
141
110
  - bin/tcell_agent
142
- - ext/libinjection/extconf.rb
143
- - ext/libinjection/libinjection.h
144
- - ext/libinjection/libinjection_html5.c
145
- - ext/libinjection/libinjection_html5.h
146
- - ext/libinjection/libinjection_sqli.c
147
- - ext/libinjection/libinjection_sqli.h
148
- - ext/libinjection/libinjection_sqli_data.h
149
- - ext/libinjection/libinjection_wrap.c
150
- - ext/libinjection/libinjection_xss.c
151
- - ext/libinjection/libinjection_xss.h
152
111
  - lib/tcell_agent.rb
153
112
  - lib/tcell_agent/agent.rb
154
113
  - lib/tcell_agent/agent/event_processor.rb
@@ -158,12 +117,8 @@ files:
158
117
  - lib/tcell_agent/agent/route_manager.rb
159
118
  - lib/tcell_agent/agent/static_agent.rb
160
119
  - lib/tcell_agent/api.rb
161
- - lib/tcell_agent/appsensor/injections_matcher.rb
162
120
  - lib/tcell_agent/appsensor/injections_reporter.rb
163
121
  - lib/tcell_agent/appsensor/meta_data.rb
164
- - lib/tcell_agent/appsensor/rules/appsensor_rule_manager.rb
165
- - lib/tcell_agent/appsensor/rules/appsensor_rule_set.rb
166
- - lib/tcell_agent/appsensor/rules/baserules.json
167
122
  - lib/tcell_agent/authlogic.rb
168
123
  - lib/tcell_agent/cmdi.rb
169
124
  - lib/tcell_agent/config/unknown_options.rb
@@ -173,27 +128,15 @@ files:
173
128
  - lib/tcell_agent/instrumentation.rb
174
129
  - lib/tcell_agent/logger.rb
175
130
  - lib/tcell_agent/patches.rb
176
- - lib/tcell_agent/patches/block_rule.rb
177
131
  - lib/tcell_agent/patches/meta_data.rb
178
- - lib/tcell_agent/patches/sensors_matcher.rb
179
- - lib/tcell_agent/policies/appsensor/cmdi_sensor.rb
180
- - lib/tcell_agent/policies/appsensor/fpt_sensor.rb
181
- - lib/tcell_agent/policies/appsensor/injection_sensor.rb
182
- - lib/tcell_agent/policies/appsensor/nullbyte_sensor.rb
183
- - lib/tcell_agent/policies/appsensor/retr_sensor.rb
184
- - lib/tcell_agent/policies/appsensor/sqli_sensor.rb
185
- - lib/tcell_agent/policies/appsensor/xss_sensor.rb
186
- - lib/tcell_agent/policies/appsensor_policy.rb
187
132
  - lib/tcell_agent/policies/clickjacking_policy.rb
188
- - lib/tcell_agent/policies/command_injection_policy.rb
189
133
  - lib/tcell_agent/policies/content_security_policy.rb
190
134
  - lib/tcell_agent/policies/dataloss_policy.rb
191
- - lib/tcell_agent/policies/honeytokens_policy.rb
192
135
  - lib/tcell_agent/policies/http_redirect_policy.rb
193
136
  - lib/tcell_agent/policies/http_tx_policy.rb
194
137
  - lib/tcell_agent/policies/login_fraud_policy.rb
195
- - lib/tcell_agent/policies/patches_policy.rb
196
138
  - lib/tcell_agent/policies/policy.rb
139
+ - lib/tcell_agent/policies/rust_policies.rb
197
140
  - lib/tcell_agent/policies/secure_headers_policy.rb
198
141
  - lib/tcell_agent/rails.rb
199
142
  - lib/tcell_agent/rails/auth/authlogic.rb
@@ -217,10 +160,10 @@ files:
217
160
  - lib/tcell_agent/rails/settings_reporter.rb
218
161
  - lib/tcell_agent/rails/tcell_body_proxy.rb
219
162
  - lib/tcell_agent/routes/table.rb
220
- - lib/tcell_agent/rust/libtcellagent-0.6.1.dylib
221
- - lib/tcell_agent/rust/libtcellagent-0.6.1.so
163
+ - lib/tcell_agent/rust/libtcellagent-0.11.1.dylib
164
+ - lib/tcell_agent/rust/libtcellagent-0.11.1.so
222
165
  - lib/tcell_agent/rust/models.rb
223
- - lib/tcell_agent/rust/tcellagent-0.6.1.dll
166
+ - lib/tcell_agent/rust/tcellagent-0.11.1.dll
224
167
  - lib/tcell_agent/rust/whisperer.rb
225
168
  - lib/tcell_agent/sensor_events/app_config.rb
226
169
  - lib/tcell_agent/sensor_events/appsensor_event.rb
@@ -231,6 +174,7 @@ files:
231
174
  - lib/tcell_agent/sensor_events/honeytokens.rb
232
175
  - lib/tcell_agent/sensor_events/login_fraud.rb
233
176
  - lib/tcell_agent/sensor_events/metrics.rb
177
+ - lib/tcell_agent/sensor_events/patches.rb
234
178
  - lib/tcell_agent/sensor_events/sensor.rb
235
179
  - lib/tcell_agent/sensor_events/server_agent.rb
236
180
  - lib/tcell_agent/sensor_events/util/sanitizer_utilities.rb
@@ -247,82 +191,31 @@ files:
247
191
  - lib/tcell_agent/userinfo.rb
248
192
  - lib/tcell_agent/utils/io.rb
249
193
  - lib/tcell_agent/utils/params.rb
194
+ - lib/tcell_agent/utils/passwords.rb
250
195
  - lib/tcell_agent/utils/queue_with_timeout.rb
251
196
  - lib/tcell_agent/utils/strings.rb
252
197
  - lib/tcell_agent/version.rb
253
- - spec/apps/rails-3.2/Gemfile
254
- - spec/apps/rails-3.2/Gemfile.lock
255
- - spec/apps/rails-3.2/Rakefile
256
- - spec/apps/rails-3.2/app/assets/images/rails.png
257
- - spec/apps/rails-3.2/app/assets/javascripts/application.js
258
- - spec/apps/rails-3.2/app/assets/stylesheets/application.css
259
- - spec/apps/rails-3.2/app/controllers/application_controller.rb
260
- - spec/apps/rails-3.2/app/controllers/t_cell_app_controller.rb
261
- - spec/apps/rails-3.2/app/helpers/application_helper.rb
262
- - spec/apps/rails-3.2/app/views/layouts/application.html.erb
263
- - spec/apps/rails-3.2/app/views/t_cell_app/index.html.erb
264
- - spec/apps/rails-3.2/config.ru
265
- - spec/apps/rails-3.2/config/application.rb
266
- - spec/apps/rails-3.2/config/boot.rb
267
- - spec/apps/rails-3.2/config/environment.rb
268
- - spec/apps/rails-3.2/config/environments/test.rb
269
- - spec/apps/rails-3.2/config/routes.rb
270
- - spec/apps/rails-4.1/Gemfile
271
- - spec/apps/rails-4.1/Gemfile.lock
272
- - spec/apps/rails-4.1/Rakefile
273
- - spec/apps/rails-4.1/app/assets/javascripts/application.js
274
- - spec/apps/rails-4.1/app/assets/stylesheets/application.css
275
- - spec/apps/rails-4.1/app/controllers/application_controller.rb
276
- - spec/apps/rails-4.1/app/controllers/t_cell_app_controller.rb
277
- - spec/apps/rails-4.1/app/helpers/application_helper.rb
278
- - spec/apps/rails-4.1/app/views/layouts/application.html.erb
279
- - spec/apps/rails-4.1/app/views/t_cell_app/index.html.erb
280
- - spec/apps/rails-4.1/config.ru
281
- - spec/apps/rails-4.1/config/application.rb
282
- - spec/apps/rails-4.1/config/boot.rb
283
- - spec/apps/rails-4.1/config/environment.rb
284
- - spec/apps/rails-4.1/config/environments/test.rb
285
- - spec/apps/rails-4.1/config/initializers/assets.rb
286
- - spec/apps/rails-4.1/config/initializers/backtrace_silencers.rb
287
- - spec/apps/rails-4.1/config/initializers/cookies_serializer.rb
288
- - spec/apps/rails-4.1/config/initializers/filter_parameter_logging.rb
289
- - spec/apps/rails-4.1/config/initializers/inflections.rb
290
- - spec/apps/rails-4.1/config/initializers/mime_types.rb
291
- - spec/apps/rails-4.1/config/initializers/session_store.rb
292
- - spec/apps/rails-4.1/config/initializers/wrap_parameters.rb
293
- - spec/apps/rails-4.1/config/locales/en.yml
294
- - spec/apps/rails-4.1/config/routes.rb
295
- - spec/apps/rails-4.1/config/secrets.yml
296
- - spec/controllers/application_controller.rb
198
+ - spec/apps/rails-3.2/config/tcell_agent.config
199
+ - spec/apps/rails-3.2/log/development.log
200
+ - spec/apps/rails-3.2/log/test.log
201
+ - spec/apps/rails-4.1/log/test.log
297
202
  - spec/lib/tcell_agent/agent/fork_pipe_manager_spec.rb
298
203
  - spec/lib/tcell_agent/agent/policy_manager_spec.rb
299
204
  - spec/lib/tcell_agent/agent/static_agent_spec.rb
300
205
  - spec/lib/tcell_agent/api/api_spec.rb
301
- - spec/lib/tcell_agent/appsensor/injections_matcher_spec.rb
302
206
  - spec/lib/tcell_agent/appsensor/injections_reporter_spec.rb
303
207
  - spec/lib/tcell_agent/appsensor/meta_data_spec.rb
304
- - spec/lib/tcell_agent/appsensor/rules/appsensor_rule_manager_spec.rb
305
- - spec/lib/tcell_agent/appsensor/rules/appsensor_rule_set_spec.rb
306
208
  - spec/lib/tcell_agent/cmdi_spec.rb
307
209
  - spec/lib/tcell_agent/config/unknown_options_spec.rb
308
210
  - spec/lib/tcell_agent/configuration_spec.rb
309
211
  - spec/lib/tcell_agent/hooks/login_fraud_spec.rb
310
212
  - spec/lib/tcell_agent/instrumentation_spec.rb
311
- - spec/lib/tcell_agent/patches/block_rule_spec.rb
312
- - spec/lib/tcell_agent/patches/sensors_matcher_spec.rb
313
213
  - spec/lib/tcell_agent/patches_spec.rb
314
- - spec/lib/tcell_agent/policies/appsensor/cmdi_sensor_spec.rb
315
- - spec/lib/tcell_agent/policies/appsensor/fpt_sensor_spec.rb
316
- - spec/lib/tcell_agent/policies/appsensor/nullbyte_sensor_spec.rb
317
- - spec/lib/tcell_agent/policies/appsensor/retr_sensor_spec.rb
318
- - spec/lib/tcell_agent/policies/appsensor/sqli_sensor_spec.rb
319
- - spec/lib/tcell_agent/policies/appsensor/xss_sensor_spec.rb
320
214
  - spec/lib/tcell_agent/policies/appsensor_policy_spec.rb
321
215
  - spec/lib/tcell_agent/policies/clickjacking_policy_spec.rb
322
216
  - spec/lib/tcell_agent/policies/command_injection_policy_spec.rb
323
217
  - spec/lib/tcell_agent/policies/content_security_policy_spec.rb
324
218
  - spec/lib/tcell_agent/policies/dataloss_policy_spec.rb
325
- - spec/lib/tcell_agent/policies/honeytokens_policy_spec.rb
326
219
  - spec/lib/tcell_agent/policies/http_redirect_policy_spec.rb
327
220
  - spec/lib/tcell_agent/policies/http_tx_policy_spec.rb
328
221
  - spec/lib/tcell_agent/policies/login_policy_spec.rb
@@ -340,6 +233,7 @@ files:
340
233
  - spec/lib/tcell_agent/rails/routes/route_id_spec.rb
341
234
  - spec/lib/tcell_agent/rails/routes/routes_spec.rb
342
235
  - spec/lib/tcell_agent/rails_spec.rb
236
+ - spec/lib/tcell_agent/rust/models_spec.rb
343
237
  - spec/lib/tcell_agent/rust/whisperer_spec.rb
344
238
  - spec/lib/tcell_agent/sensor_events/appsensor_meta_event_spec.rb
345
239
  - spec/lib/tcell_agent/sensor_events/dlp_spec.rb
@@ -347,6 +241,7 @@ files:
347
241
  - spec/lib/tcell_agent/sensor_events/util/sanitizer_utilities_spec.rb
348
242
  - spec/lib/tcell_agent/utils/bounded_queue_spec.rb
349
243
  - spec/lib/tcell_agent/utils/params_spec.rb
244
+ - spec/lib/tcell_agent/utils/passwords_spec.rb
350
245
  - spec/lib/tcell_agent/utils/strings_spec.rb
351
246
  - spec/lib/tcell_agent_spec.rb
352
247
  - spec/spec_helper.rb
@@ -366,94 +261,42 @@ require_paths:
366
261
  - spec
367
262
  required_ruby_version: !ruby/object:Gem::Requirement
368
263
  requirements:
369
- - - ">="
264
+ - - '>='
370
265
  - !ruby/object:Gem::Version
371
266
  version: '0'
372
267
  required_rubygems_version: !ruby/object:Gem::Requirement
373
268
  requirements:
374
- - - ">="
269
+ - - '>='
375
270
  - !ruby/object:Gem::Version
376
271
  version: '0'
377
272
  requirements: []
378
273
  rubyforge_project:
379
- rubygems_version: 2.4.8
274
+ rubygems_version: 2.2.2
380
275
  signing_key:
381
276
  specification_version: 4
382
- summary: tCell.io Agent for Rails & Sinatra
277
+ summary: tCell.io Agent for Rails
383
278
  test_files:
384
- - spec/apps/rails-3.2/Gemfile
385
- - spec/apps/rails-3.2/Gemfile.lock
386
- - spec/apps/rails-3.2/Rakefile
387
- - spec/apps/rails-3.2/app/assets/images/rails.png
388
- - spec/apps/rails-3.2/app/assets/javascripts/application.js
389
- - spec/apps/rails-3.2/app/assets/stylesheets/application.css
390
- - spec/apps/rails-3.2/app/controllers/application_controller.rb
391
- - spec/apps/rails-3.2/app/controllers/t_cell_app_controller.rb
392
- - spec/apps/rails-3.2/app/helpers/application_helper.rb
393
- - spec/apps/rails-3.2/app/views/layouts/application.html.erb
394
- - spec/apps/rails-3.2/app/views/t_cell_app/index.html.erb
395
- - spec/apps/rails-3.2/config.ru
396
- - spec/apps/rails-3.2/config/application.rb
397
- - spec/apps/rails-3.2/config/boot.rb
398
- - spec/apps/rails-3.2/config/environment.rb
399
- - spec/apps/rails-3.2/config/environments/test.rb
400
- - spec/apps/rails-3.2/config/routes.rb
401
- - spec/apps/rails-4.1/Gemfile
402
- - spec/apps/rails-4.1/Gemfile.lock
403
- - spec/apps/rails-4.1/Rakefile
404
- - spec/apps/rails-4.1/app/assets/javascripts/application.js
405
- - spec/apps/rails-4.1/app/assets/stylesheets/application.css
406
- - spec/apps/rails-4.1/app/controllers/application_controller.rb
407
- - spec/apps/rails-4.1/app/controllers/t_cell_app_controller.rb
408
- - spec/apps/rails-4.1/app/helpers/application_helper.rb
409
- - spec/apps/rails-4.1/app/views/layouts/application.html.erb
410
- - spec/apps/rails-4.1/app/views/t_cell_app/index.html.erb
411
- - spec/apps/rails-4.1/config.ru
412
- - spec/apps/rails-4.1/config/application.rb
413
- - spec/apps/rails-4.1/config/boot.rb
414
- - spec/apps/rails-4.1/config/environment.rb
415
- - spec/apps/rails-4.1/config/environments/test.rb
416
- - spec/apps/rails-4.1/config/initializers/assets.rb
417
- - spec/apps/rails-4.1/config/initializers/backtrace_silencers.rb
418
- - spec/apps/rails-4.1/config/initializers/cookies_serializer.rb
419
- - spec/apps/rails-4.1/config/initializers/filter_parameter_logging.rb
420
- - spec/apps/rails-4.1/config/initializers/inflections.rb
421
- - spec/apps/rails-4.1/config/initializers/mime_types.rb
422
- - spec/apps/rails-4.1/config/initializers/session_store.rb
423
- - spec/apps/rails-4.1/config/initializers/wrap_parameters.rb
424
- - spec/apps/rails-4.1/config/locales/en.yml
425
- - spec/apps/rails-4.1/config/routes.rb
426
- - spec/apps/rails-4.1/config/secrets.yml
427
- - spec/controllers/application_controller.rb
279
+ - spec/apps/rails-3.2/config/tcell_agent.config
280
+ - spec/apps/rails-3.2/log/development.log
281
+ - spec/apps/rails-3.2/log/test.log
282
+ - spec/apps/rails-4.1/log/test.log
428
283
  - spec/lib/tcell_agent/agent/fork_pipe_manager_spec.rb
429
284
  - spec/lib/tcell_agent/agent/policy_manager_spec.rb
430
285
  - spec/lib/tcell_agent/agent/static_agent_spec.rb
431
286
  - spec/lib/tcell_agent/api/api_spec.rb
432
- - spec/lib/tcell_agent/appsensor/injections_matcher_spec.rb
433
287
  - spec/lib/tcell_agent/appsensor/injections_reporter_spec.rb
434
288
  - spec/lib/tcell_agent/appsensor/meta_data_spec.rb
435
- - spec/lib/tcell_agent/appsensor/rules/appsensor_rule_manager_spec.rb
436
- - spec/lib/tcell_agent/appsensor/rules/appsensor_rule_set_spec.rb
437
289
  - spec/lib/tcell_agent/cmdi_spec.rb
438
290
  - spec/lib/tcell_agent/config/unknown_options_spec.rb
439
291
  - spec/lib/tcell_agent/configuration_spec.rb
440
292
  - spec/lib/tcell_agent/hooks/login_fraud_spec.rb
441
293
  - spec/lib/tcell_agent/instrumentation_spec.rb
442
- - spec/lib/tcell_agent/patches/block_rule_spec.rb
443
- - spec/lib/tcell_agent/patches/sensors_matcher_spec.rb
444
294
  - spec/lib/tcell_agent/patches_spec.rb
445
- - spec/lib/tcell_agent/policies/appsensor/cmdi_sensor_spec.rb
446
- - spec/lib/tcell_agent/policies/appsensor/fpt_sensor_spec.rb
447
- - spec/lib/tcell_agent/policies/appsensor/nullbyte_sensor_spec.rb
448
- - spec/lib/tcell_agent/policies/appsensor/retr_sensor_spec.rb
449
- - spec/lib/tcell_agent/policies/appsensor/sqli_sensor_spec.rb
450
- - spec/lib/tcell_agent/policies/appsensor/xss_sensor_spec.rb
451
295
  - spec/lib/tcell_agent/policies/appsensor_policy_spec.rb
452
296
  - spec/lib/tcell_agent/policies/clickjacking_policy_spec.rb
453
297
  - spec/lib/tcell_agent/policies/command_injection_policy_spec.rb
454
298
  - spec/lib/tcell_agent/policies/content_security_policy_spec.rb
455
299
  - spec/lib/tcell_agent/policies/dataloss_policy_spec.rb
456
- - spec/lib/tcell_agent/policies/honeytokens_policy_spec.rb
457
300
  - spec/lib/tcell_agent/policies/http_redirect_policy_spec.rb
458
301
  - spec/lib/tcell_agent/policies/http_tx_policy_spec.rb
459
302
  - spec/lib/tcell_agent/policies/login_policy_spec.rb
@@ -471,6 +314,7 @@ test_files:
471
314
  - spec/lib/tcell_agent/rails/routes/route_id_spec.rb
472
315
  - spec/lib/tcell_agent/rails/routes/routes_spec.rb
473
316
  - spec/lib/tcell_agent/rails_spec.rb
317
+ - spec/lib/tcell_agent/rust/models_spec.rb
474
318
  - spec/lib/tcell_agent/rust/whisperer_spec.rb
475
319
  - spec/lib/tcell_agent/sensor_events/appsensor_meta_event_spec.rb
476
320
  - spec/lib/tcell_agent/sensor_events/dlp_spec.rb
@@ -478,6 +322,7 @@ test_files:
478
322
  - spec/lib/tcell_agent/sensor_events/util/sanitizer_utilities_spec.rb
479
323
  - spec/lib/tcell_agent/utils/bounded_queue_spec.rb
480
324
  - spec/lib/tcell_agent/utils/params_spec.rb
325
+ - spec/lib/tcell_agent/utils/passwords_spec.rb
481
326
  - spec/lib/tcell_agent/utils/strings_spec.rb
482
327
  - spec/lib/tcell_agent_spec.rb
483
328
  - spec/spec_helper.rb
data/LICENSE_libinjection DELETED
@@ -1,32 +0,0 @@
1
- Copyright (c) 2012-2016, Nick Galbreath
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without
5
- modification, are permitted provided that the following conditions are
6
- met:
7
-
8
- 1. Redistributions of source code must retain the above copyright
9
- notice, this list of conditions and the following disclaimer.
10
-
11
- 2. Redistributions in binary form must reproduce the above copyright
12
- notice, this list of conditions and the following disclaimer in the
13
- documentation and/or other materials provided with the distribution.
14
-
15
- 3. Neither the name of the copyright holder nor the names of its
16
- contributors may be used to endorse or promote products derived from
17
- this software without specific prior written permission.
18
-
19
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23
- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
-
31
- https://github.com/client9/libinjection
32
- http://opensource.org/licenses/BSD-3-Clause
data/Readme.txt DELETED
@@ -1,7 +0,0 @@
1
- Config goes in config/tcell_agent.config
2
- Fill in API key, Company Name, App Name
3
-
4
- You can add
5
- "tcell_api_url":"http://10.0.2.2:8000/api/v1",
6
- "tcell_input_url":"http://10.0.2.2:3000"
7
- to specify other servers to use
@@ -1,3 +0,0 @@
1
- require 'mkmf'
2
-
3
- create_makefile("libinjection/libinjection")
@@ -1,65 +0,0 @@
1
- /**
2
- * Copyright 2012-2016 Nick Galbreath
3
- * nickg@client9.com
4
- * BSD License -- see COPYING.txt for details
5
- *
6
- * https://libinjection.client9.com/
7
- *
8
- */
9
-
10
- #ifndef LIBINJECTION_H
11
- #define LIBINJECTION_H
12
-
13
- #ifdef __cplusplus
14
- # define LIBINJECTION_BEGIN_DECLS extern "C" {
15
- # define LIBINJECTION_END_DECLS }
16
- #else
17
- # define LIBINJECTION_BEGIN_DECLS
18
- # define LIBINJECTION_END_DECLS
19
- #endif
20
-
21
- LIBINJECTION_BEGIN_DECLS
22
-
23
- /*
24
- * Pull in size_t
25
- */
26
- #include <string.h>
27
-
28
- /*
29
- * Version info.
30
- *
31
- * This is moved into a function to allow SWIG and other auto-generated
32
- * binding to not be modified during minor release changes. We change
33
- * change the version number in the c source file, and not regenerated
34
- * the binding
35
- *
36
- * See python's normalized version
37
- * http://www.python.org/dev/peps/pep-0386/#normalizedversion
38
- */
39
- const char* libinjection_version(void);
40
-
41
- /**
42
- * Simple API for SQLi detection - returns a SQLi fingerprint or NULL
43
- * is benign input
44
- *
45
- * \param[in] s input string, may contain nulls, does not need to be null-terminated
46
- * \param[in] slen input string length
47
- * \param[out] fingerprint buffer of 8+ characters. c-string,
48
- * \return 1 if SQLi, 0 if benign. fingerprint will be set or set to empty string.
49
- */
50
- int libinjection_sqli(const char* s, size_t slen, char fingerprint[]);
51
-
52
- /** ALPHA version of xss detector.
53
- *
54
- * NOT DONE.
55
- *
56
- * \param[in] s input string, may contain nulls, does not need to be null-terminated
57
- * \param[in] slen input string length
58
- * \return 1 if XSS found, 0 if benign
59
- *
60
- */
61
- int libinjection_xss(const char* s, size_t slen);
62
-
63
- LIBINJECTION_END_DECLS
64
-
65
- #endif /* LIBINJECTION_H */