mihari 7.1.3 → 7.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +1 -1
  3. data/Rakefile +8 -1
  4. data/lefthook.yml +4 -1
  5. data/lib/mihari/actor.rb +9 -0
  6. data/lib/mihari/analyzers/base.rb +7 -18
  7. data/lib/mihari/analyzers/binaryedge.rb +0 -6
  8. data/lib/mihari/analyzers/censys.rb +0 -9
  9. data/lib/mihari/analyzers/circl.rb +0 -6
  10. data/lib/mihari/analyzers/fofa.rb +0 -6
  11. data/lib/mihari/analyzers/greynoise.rb +0 -6
  12. data/lib/mihari/analyzers/hunterhow.rb +0 -6
  13. data/lib/mihari/analyzers/onyphe.rb +0 -6
  14. data/lib/mihari/analyzers/otx.rb +0 -6
  15. data/lib/mihari/analyzers/passivetotal.rb +0 -4
  16. data/lib/mihari/analyzers/pulsedive.rb +0 -6
  17. data/lib/mihari/analyzers/securitytrails.rb +0 -4
  18. data/lib/mihari/analyzers/shodan.rb +0 -6
  19. data/lib/mihari/analyzers/urlscan.rb +0 -6
  20. data/lib/mihari/analyzers/virustotal.rb +0 -4
  21. data/lib/mihari/analyzers/virustotal_intelligence.rb +7 -6
  22. data/lib/mihari/analyzers/zoomeye.rb +0 -6
  23. data/lib/mihari/commands/web.rb +1 -1
  24. data/lib/mihari/concerns/falsepositive_normalizable.rb +30 -0
  25. data/lib/mihari/concerns/falsepositive_validatable.rb +1 -17
  26. data/lib/mihari/config.rb +1 -1
  27. data/lib/mihari/database.rb +18 -1
  28. data/lib/mihari/emitters/database.rb +0 -6
  29. data/lib/mihari/emitters/misp.rb +0 -6
  30. data/lib/mihari/emitters/slack.rb +5 -21
  31. data/lib/mihari/emitters/the_hive.rb +0 -6
  32. data/lib/mihari/enrichers/whois.rb +5 -7
  33. data/lib/mihari/entities/artifact.rb +6 -2
  34. data/lib/mihari/entities/autonomous_system.rb +1 -1
  35. data/lib/mihari/entities/cpe.rb +1 -1
  36. data/lib/mihari/entities/port.rb +1 -1
  37. data/lib/mihari/entities/vulnerability.rb +10 -0
  38. data/lib/mihari/errors.rb +2 -0
  39. data/lib/mihari/models/artifact.rb +65 -30
  40. data/lib/mihari/models/vulnerability.rb +12 -0
  41. data/lib/mihari/rule.rb +18 -24
  42. data/lib/mihari/schemas/rule.rb +7 -0
  43. data/lib/mihari/services/builders.rb +22 -3
  44. data/lib/mihari/services/enrichers.rb +2 -0
  45. data/lib/mihari/services/feed.rb +2 -5
  46. data/lib/mihari/services/proxies.rb +3 -3
  47. data/lib/mihari/structs/censys.rb +2 -2
  48. data/lib/mihari/structs/greynoise.rb +1 -1
  49. data/lib/mihari/structs/onyphe.rb +1 -1
  50. data/lib/mihari/structs/shodan.rb +59 -21
  51. data/lib/mihari/version.rb +1 -1
  52. data/lib/mihari/web/endpoints/artifacts.rb +4 -2
  53. data/lib/mihari/web/endpoints/rules.rb +1 -1
  54. data/lib/mihari/web/public/assets/{index-TOeU8PE2.js → index-GWurHG1o.js} +46 -46
  55. data/lib/mihari/web/public/assets/{index-dVaNxqTC.css → index-ReF8ffd-.css} +1 -1
  56. data/lib/mihari/web/public/index.html +2 -2
  57. data/lib/mihari/web/public/redoc-static.html +17 -17
  58. data/lib/mihari.rb +3 -0
  59. metadata +7 -4
data/lib/mihari.rb CHANGED
@@ -55,6 +55,7 @@ require "mihari/concerns/autonomous_system_normalizable"
55
55
  require "mihari/concerns/configurable"
56
56
  require "mihari/concerns/database_connectable"
57
57
  require "mihari/concerns/error_unwrappable"
58
+ require "mihari/concerns/falsepositive_normalizable"
58
59
  require "mihari/concerns/falsepositive_validatable"
59
60
  require "mihari/concerns/refangable"
60
61
  require "mihari/concerns/retriable"
@@ -207,6 +208,7 @@ require "mihari/models/reverse_dns"
207
208
  require "mihari/models/rule"
208
209
  require "mihari/models/tag"
209
210
  require "mihari/models/tagging"
211
+ require "mihari/models/vulnerability"
210
212
  require "mihari/models/whois"
211
213
 
212
214
  # Emitters
@@ -323,6 +325,7 @@ require "mihari/entities/messages"
323
325
  require "mihari/entities/port"
324
326
  require "mihari/entities/reverse_dns"
325
327
  require "mihari/entities/tag"
328
+ require "mihari/entities/vulnerability"
326
329
  require "mihari/entities/whois"
327
330
 
328
331
  require "mihari/entities/artifact"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mihari
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.3
4
+ version: 7.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-13 00:00:00.000000000 Z
11
+ date: 2024-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: better_errors
@@ -1109,6 +1109,7 @@ files:
1109
1109
  - lib/mihari/concerns/configurable.rb
1110
1110
  - lib/mihari/concerns/database_connectable.rb
1111
1111
  - lib/mihari/concerns/error_unwrappable.rb
1112
+ - lib/mihari/concerns/falsepositive_normalizable.rb
1112
1113
  - lib/mihari/concerns/falsepositive_validatable.rb
1113
1114
  - lib/mihari/concerns/refangable.rb
1114
1115
  - lib/mihari/concerns/retriable.rb
@@ -1141,6 +1142,7 @@ files:
1141
1142
  - lib/mihari/entities/reverse_dns.rb
1142
1143
  - lib/mihari/entities/rule.rb
1143
1144
  - lib/mihari/entities/tag.rb
1145
+ - lib/mihari/entities/vulnerability.rb
1144
1146
  - lib/mihari/entities/whois.rb
1145
1147
  - lib/mihari/errors.rb
1146
1148
  - lib/mihari/http.rb
@@ -1156,6 +1158,7 @@ files:
1156
1158
  - lib/mihari/models/rule.rb
1157
1159
  - lib/mihari/models/tag.rb
1158
1160
  - lib/mihari/models/tagging.rb
1161
+ - lib/mihari/models/vulnerability.rb
1159
1162
  - lib/mihari/models/whois.rb
1160
1163
  - lib/mihari/rule.rb
1161
1164
  - lib/mihari/schemas/alert.rb
@@ -1204,8 +1207,8 @@ files:
1204
1207
  - lib/mihari/web/endpoints/tags.rb
1205
1208
  - lib/mihari/web/middleware/capture_exceptions.rb
1206
1209
  - lib/mihari/web/middleware/connection.rb
1207
- - lib/mihari/web/public/assets/index-TOeU8PE2.js
1208
- - lib/mihari/web/public/assets/index-dVaNxqTC.css
1210
+ - lib/mihari/web/public/assets/index-GWurHG1o.js
1211
+ - lib/mihari/web/public/assets/index-ReF8ffd-.css
1209
1212
  - lib/mihari/web/public/assets/mode-yaml-BC4MIiYj.js
1210
1213
  - lib/mihari/web/public/favicon.ico
1211
1214
  - lib/mihari/web/public/index.html