mihari 5.4.8 → 5.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/docs/analyzers/binaryedge.md +2 -2
  3. data/docs/analyzers/censys.md +3 -3
  4. data/docs/analyzers/circl.md +3 -3
  5. data/docs/analyzers/crtsh.md +2 -2
  6. data/docs/analyzers/dnstwister.md +1 -1
  7. data/docs/analyzers/feed.md +7 -7
  8. data/docs/analyzers/greynoise.md +2 -2
  9. data/docs/analyzers/hunterhow.md +4 -4
  10. data/docs/analyzers/index.md +13 -8
  11. data/docs/analyzers/onyphe.md +2 -2
  12. data/docs/analyzers/otx.md +2 -2
  13. data/docs/analyzers/passivetotal.md +3 -3
  14. data/docs/analyzers/pulsedive.md +2 -2
  15. data/docs/analyzers/securitytrails.md +2 -2
  16. data/docs/analyzers/shodan.md +2 -2
  17. data/docs/analyzers/urlscan.md +2 -2
  18. data/docs/analyzers/virustotal.md +2 -2
  19. data/docs/analyzers/virustotal_intelligence.md +2 -2
  20. data/docs/analyzers/zoomeye.md +3 -3
  21. data/docs/emitters/hive.md +3 -3
  22. data/docs/emitters/index.md +29 -0
  23. data/docs/emitters/misp.md +2 -2
  24. data/docs/emitters/slack.md +2 -2
  25. data/docs/emitters/webhook.md +4 -4
  26. data/docs/enrichers/index.md +29 -0
  27. data/docs/enrichers/ipinfo.md +7 -0
  28. data/docs/index.md +0 -2
  29. data/docs/installation.md +1 -1
  30. data/docs/rule.md +11 -11
  31. data/frontend/package-lock.json +294 -2772
  32. data/frontend/package.json +10 -10
  33. data/lib/mihari/analyzers/base.rb +15 -8
  34. data/lib/mihari/analyzers/binaryedge.rb +5 -1
  35. data/lib/mihari/analyzers/censys.rb +6 -1
  36. data/lib/mihari/analyzers/greynoise.rb +5 -1
  37. data/lib/mihari/analyzers/hunterhow.rb +5 -1
  38. data/lib/mihari/analyzers/onyphe.rb +5 -1
  39. data/lib/mihari/analyzers/rule.rb +43 -7
  40. data/lib/mihari/analyzers/shodan.rb +5 -1
  41. data/lib/mihari/analyzers/urlscan.rb +5 -1
  42. data/lib/mihari/analyzers/virustotal_intelligence.rb +5 -1
  43. data/lib/mihari/analyzers/zoomeye.rb +5 -1
  44. data/lib/mihari/clients/base.rb +7 -7
  45. data/lib/mihari/clients/binaryedge.rb +10 -4
  46. data/lib/mihari/clients/censys.rb +11 -4
  47. data/lib/mihari/clients/greynoise.rb +10 -4
  48. data/lib/mihari/clients/hunterhow.rb +10 -4
  49. data/lib/mihari/clients/misp.rb +3 -2
  50. data/lib/mihari/clients/onyphe.rb +10 -4
  51. data/lib/mihari/clients/shodan.rb +10 -4
  52. data/lib/mihari/clients/the_hive.rb +3 -2
  53. data/lib/mihari/clients/urlscan.rb +9 -3
  54. data/lib/mihari/clients/virustotal.rb +10 -4
  55. data/lib/mihari/clients/zoomeye.rb +11 -5
  56. data/lib/mihari/config.rb +8 -0
  57. data/lib/mihari/emitters/base.rb +49 -12
  58. data/lib/mihari/emitters/misp.rb +7 -6
  59. data/lib/mihari/emitters/slack.rb +24 -6
  60. data/lib/mihari/emitters/the_hive.rb +8 -7
  61. data/lib/mihari/emitters/webhook.rb +31 -29
  62. data/lib/mihari/enrichers/base.rb +53 -16
  63. data/lib/mihari/enrichers/google_public_dns.rb +33 -42
  64. data/lib/mihari/enrichers/ipinfo.rb +32 -34
  65. data/lib/mihari/enrichers/shodan.rb +18 -26
  66. data/lib/mihari/enrichers/whois.rb +121 -111
  67. data/lib/mihari/http.rb +3 -1
  68. data/lib/mihari/mixins/retriable.rb +4 -2
  69. data/lib/mihari/models/artifact.rb +37 -23
  70. data/lib/mihari/models/autonomous_system.rb +3 -2
  71. data/lib/mihari/models/cpe.rb +3 -2
  72. data/lib/mihari/models/dns.rb +3 -2
  73. data/lib/mihari/models/geolocation.rb +3 -2
  74. data/lib/mihari/models/port.rb +3 -2
  75. data/lib/mihari/models/reverse_dns.rb +3 -2
  76. data/lib/mihari/models/whois.rb +4 -3
  77. data/lib/mihari/schemas/analyzer.rb +2 -1
  78. data/lib/mihari/schemas/emitter.rb +39 -25
  79. data/lib/mihari/schemas/enricher.rb +28 -2
  80. data/lib/mihari/schemas/rule.rb +6 -2
  81. data/lib/mihari/version.rb +1 -1
  82. data/lib/mihari/web/endpoints/ip_addresses.rb +1 -1
  83. data/lib/mihari/web/public/assets/index-b5d817a3.js +1749 -0
  84. data/lib/mihari/web/public/index.html +1 -1
  85. data/lib/mihari/web/public/redoc-static.html +400 -400
  86. data/mihari.gemspec +2 -2
  87. data/mkdocs.yml +8 -6
  88. data/requirements.txt +1 -1
  89. metadata +7 -7
  90. data/lib/mihari/web/public/assets/index-a92abd57.js +0 -1740
data/mihari.gemspec CHANGED
@@ -66,7 +66,7 @@ Gem::Specification.new do |spec|
66
66
  spec.add_dependency "awrence", "2.0.1"
67
67
  spec.add_dependency "dotenv", "2.8.1"
68
68
  spec.add_dependency "dry-container", "0.11.0"
69
- spec.add_dependency "dry-files", "1.0.2"
69
+ spec.add_dependency "dry-files", "1.1.0"
70
70
  spec.add_dependency "dry-monads", "1.6.0"
71
71
  spec.add_dependency "dry-schema", "1.13.3"
72
72
  spec.add_dependency "dry-struct", "1.6.0"
@@ -93,7 +93,7 @@ Gem::Specification.new do |spec|
93
93
  spec.add_dependency "sentry-ruby", "5.12.0"
94
94
  spec.add_dependency "slack-notifier", "2.4.0"
95
95
  spec.add_dependency "sqlite3", "1.6.7"
96
- spec.add_dependency "thor", "1.2.2"
96
+ spec.add_dependency "thor", "1.3.0"
97
97
  spec.add_dependency "uuidtools", "2.2.0"
98
98
  spec.add_dependency "whois", "5.1.0"
99
99
  spec.add_dependency "whois-parser", "2.0.0"
data/mkdocs.yml CHANGED
@@ -13,17 +13,19 @@ plugins:
13
13
  case: lower
14
14
 
15
15
  nav:
16
- - Mihari: index.md
17
16
  - Requirements: requirements.md
18
17
  - Installation: installation.md
19
18
  - How to Write a Rule: rule.md
20
19
  - Usage: usage.md
21
20
  - Configuration: configuration.md
22
- - GitHub Actions: github_actions.md
23
- - Analyzers: "analyzers/index.md"
24
- - Enrichers: "enrichers/index.md"
25
- - Emitters: "emitters/index.md"
26
- - Tags: "./tags.md"
21
+ - Tips:
22
+ - GitHub Actions: github_actions.md
23
+ - Alternatives: alternatives.md
24
+ - References:
25
+ - Analyzers: "analyzers/index.md"
26
+ - Enrichers: "enrichers/index.md"
27
+ - Emitters: "emitters/index.md"
28
+ - Tags: "./tags.md"
27
29
 
28
30
  markdown_extensions:
29
31
  - toc:
data/requirements.txt CHANGED
@@ -1,2 +1,2 @@
1
1
  mkdocs==1.5.3
2
- mkdocs-material==9.4.4
2
+ mkdocs-material==9.4.6
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: 5.4.8
4
+ version: 5.5.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: 2023-10-13 00:00:00.000000000 Z
11
+ date: 2023-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -380,14 +380,14 @@ dependencies:
380
380
  requirements:
381
381
  - - '='
382
382
  - !ruby/object:Gem::Version
383
- version: 1.0.2
383
+ version: 1.1.0
384
384
  type: :runtime
385
385
  prerelease: false
386
386
  version_requirements: !ruby/object:Gem::Requirement
387
387
  requirements:
388
388
  - - '='
389
389
  - !ruby/object:Gem::Version
390
- version: 1.0.2
390
+ version: 1.1.0
391
391
  - !ruby/object:Gem::Dependency
392
392
  name: dry-monads
393
393
  requirement: !ruby/object:Gem::Requirement
@@ -758,14 +758,14 @@ dependencies:
758
758
  requirements:
759
759
  - - '='
760
760
  - !ruby/object:Gem::Version
761
- version: 1.2.2
761
+ version: 1.3.0
762
762
  type: :runtime
763
763
  prerelease: false
764
764
  version_requirements: !ruby/object:Gem::Requirement
765
765
  requirements:
766
766
  - - '='
767
767
  - !ruby/object:Gem::Version
768
- version: 1.2.2
768
+ version: 1.3.0
769
769
  - !ruby/object:Gem::Dependency
770
770
  name: uuidtools
771
771
  requirement: !ruby/object:Gem::Requirement
@@ -1095,7 +1095,7 @@ files:
1095
1095
  - lib/mihari/web/middleware/connection_adapter.rb
1096
1096
  - lib/mihari/web/middleware/error_notification_adapter.rb
1097
1097
  - lib/mihari/web/public/assets/index-33165282.css
1098
- - lib/mihari/web/public/assets/index-a92abd57.js
1098
+ - lib/mihari/web/public/assets/index-b5d817a3.js
1099
1099
  - lib/mihari/web/public/assets/mode-yaml-a21faa53.js
1100
1100
  - lib/mihari/web/public/favicon.ico
1101
1101
  - lib/mihari/web/public/index.html