mihari 5.4.6 → 5.4.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/.rubocop.yml +2 -0
  4. data/docs/analyzers/index.md +5 -0
  5. data/docs/emitters/misp.md +1 -1
  6. data/docs/requirements.md +8 -15
  7. data/frontend/package-lock.json +258 -249
  8. data/frontend/package.json +12 -12
  9. data/lib/mihari/analyzers/base.rb +8 -1
  10. data/lib/mihari/analyzers/binaryedge.rb +1 -1
  11. data/lib/mihari/analyzers/censys.rb +1 -1
  12. data/lib/mihari/analyzers/feed.rb +1 -0
  13. data/lib/mihari/analyzers/greynoise.rb +1 -1
  14. data/lib/mihari/analyzers/hunterhow.rb +1 -1
  15. data/lib/mihari/analyzers/onyphe.rb +1 -1
  16. data/lib/mihari/analyzers/shodan.rb +1 -1
  17. data/lib/mihari/analyzers/urlscan.rb +1 -1
  18. data/lib/mihari/analyzers/virustotal_intelligence.rb +1 -1
  19. data/lib/mihari/analyzers/zoomeye.rb +1 -1
  20. data/lib/mihari/clients/base.rb +18 -5
  21. data/lib/mihari/clients/binaryedge.rb +4 -3
  22. data/lib/mihari/clients/censys.rb +3 -2
  23. data/lib/mihari/clients/greynoise.rb +3 -2
  24. data/lib/mihari/clients/hunterhow.rb +3 -2
  25. data/lib/mihari/clients/onyphe.rb +4 -2
  26. data/lib/mihari/clients/shodan.rb +3 -2
  27. data/lib/mihari/clients/urlscan.rb +3 -2
  28. data/lib/mihari/clients/virustotal.rb +3 -2
  29. data/lib/mihari/clients/zoomeye.rb +3 -2
  30. data/lib/mihari/config.rb +13 -0
  31. data/lib/mihari/database.rb +2 -2
  32. data/lib/mihari/emitters/webhook.rb +11 -11
  33. data/lib/mihari/enrichers/google_public_dns.rb +7 -1
  34. data/lib/mihari/enrichers/ipinfo.rb +13 -6
  35. data/lib/mihari/enrichers/shodan.rb +7 -1
  36. data/lib/mihari/errors.rb +0 -2
  37. data/lib/mihari/feed/reader.rb +15 -10
  38. data/lib/mihari/http.rb +26 -100
  39. data/lib/mihari/schemas/analyzer.rb +1 -0
  40. data/lib/mihari/version.rb +1 -1
  41. data/lib/mihari/web/public/assets/{index-0a5a47bf.js → index-a92abd57.js} +1 -1
  42. data/lib/mihari/web/public/index.html +1 -1
  43. data/lib/mihari/web/public/redoc-static.html +400 -400
  44. data/mihari.gemspec +8 -5
  45. data/requirements.txt +1 -1
  46. metadata +57 -15
data/mihari.gemspec CHANGED
@@ -39,6 +39,7 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency "bundler", "~> 2.4"
40
40
  spec.add_development_dependency "coveralls_reborn", "~> 0.28"
41
41
  spec.add_development_dependency "fakefs", "~> 2.5"
42
+ spec.add_development_dependency "faker", "~> 3.2"
42
43
  spec.add_development_dependency "fuubar", "~> 2.5"
43
44
  spec.add_development_dependency "mysql2", "~> 0.5"
44
45
  spec.add_development_dependency "pg", "~> 1.5"
@@ -47,8 +48,10 @@ Gem::Specification.new do |spec|
47
48
  spec.add_development_dependency "rb-fsevent", "~> 0.11"
48
49
  spec.add_development_dependency "rerun", "~> 0.14"
49
50
  spec.add_development_dependency "rspec", "~> 3.12"
51
+ spec.add_development_dependency "rubocop-rspec", "~> 2.24"
50
52
  spec.add_development_dependency "simplecov-lcov", "~> 0.8"
51
53
  spec.add_development_dependency "standard", "~> 1.31"
54
+ spec.add_development_dependency "test-prof", "~> 1.2"
52
55
  spec.add_development_dependency "timecop", "~> 0.9"
53
56
  spec.add_development_dependency "vcr", "~> 6.2"
54
57
  spec.add_development_dependency "webmock", "~> 3.19"
@@ -58,12 +61,12 @@ Gem::Specification.new do |spec|
58
61
  spec.add_development_dependency "solargraph", "~> 0.49"
59
62
  end
60
63
 
61
- spec.add_dependency "activerecord", "7.0.8"
64
+ spec.add_dependency "activerecord", "7.1.1"
62
65
  spec.add_dependency "addressable", "2.8.5"
63
66
  spec.add_dependency "awrence", "2.0.1"
64
67
  spec.add_dependency "dotenv", "2.8.1"
65
68
  spec.add_dependency "dry-container", "0.11.0"
66
- spec.add_dependency "dry-files", "1.0.1"
69
+ spec.add_dependency "dry-files", "1.0.2"
67
70
  spec.add_dependency "dry-monads", "1.6.0"
68
71
  spec.add_dependency "dry-schema", "1.13.3"
69
72
  spec.add_dependency "dry-struct", "1.6.0"
@@ -73,7 +76,7 @@ Gem::Specification.new do |spec|
73
76
  spec.add_dependency "grape-entity", "1.0.0"
74
77
  spec.add_dependency "grape-swagger", "1.6.1"
75
78
  spec.add_dependency "grape-swagger-entity", "0.5.2"
76
- spec.add_dependency "insensitive_hash", "0.3.3"
79
+ spec.add_dependency "http", "5.1.1"
77
80
  spec.add_dependency "jr-cli", "0.6.0"
78
81
  spec.add_dependency "launchy", "2.5.2"
79
82
  spec.add_dependency "memist", "2.0.2"
@@ -87,9 +90,9 @@ Gem::Specification.new do |spec|
87
90
  spec.add_dependency "rack-cors", "2.0.1"
88
91
  spec.add_dependency "rackup", "2.1.0"
89
92
  spec.add_dependency "semantic_logger", "4.14.0"
90
- spec.add_dependency "sentry-ruby", "5.11.0"
93
+ spec.add_dependency "sentry-ruby", "5.12.0"
91
94
  spec.add_dependency "slack-notifier", "2.4.0"
92
- spec.add_dependency "sqlite3", "1.6.6"
95
+ spec.add_dependency "sqlite3", "1.6.7"
93
96
  spec.add_dependency "thor", "1.2.2"
94
97
  spec.add_dependency "uuidtools", "2.2.0"
95
98
  spec.add_dependency "whois", "5.1.0"
data/requirements.txt CHANGED
@@ -1,2 +1,2 @@
1
1
  mkdocs==1.5.3
2
- mkdocs-material==9.4.2
2
+ mkdocs-material==9.4.4
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.6
4
+ version: 5.4.8
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-01 00:00:00.000000000 Z
11
+ date: 2023-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: faker
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.2'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.2'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: fuubar
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -164,6 +178,20 @@ dependencies:
164
178
  - - "~>"
165
179
  - !ruby/object:Gem::Version
166
180
  version: '3.12'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rubocop-rspec
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '2.24'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '2.24'
167
195
  - !ruby/object:Gem::Dependency
168
196
  name: simplecov-lcov
169
197
  requirement: !ruby/object:Gem::Requirement
@@ -192,6 +220,20 @@ dependencies:
192
220
  - - "~>"
193
221
  - !ruby/object:Gem::Version
194
222
  version: '1.31'
223
+ - !ruby/object:Gem::Dependency
224
+ name: test-prof
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: '1.2'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: '1.2'
195
237
  - !ruby/object:Gem::Dependency
196
238
  name: timecop
197
239
  requirement: !ruby/object:Gem::Requirement
@@ -268,14 +310,14 @@ dependencies:
268
310
  requirements:
269
311
  - - '='
270
312
  - !ruby/object:Gem::Version
271
- version: 7.0.8
313
+ version: 7.1.1
272
314
  type: :runtime
273
315
  prerelease: false
274
316
  version_requirements: !ruby/object:Gem::Requirement
275
317
  requirements:
276
318
  - - '='
277
319
  - !ruby/object:Gem::Version
278
- version: 7.0.8
320
+ version: 7.1.1
279
321
  - !ruby/object:Gem::Dependency
280
322
  name: addressable
281
323
  requirement: !ruby/object:Gem::Requirement
@@ -338,14 +380,14 @@ dependencies:
338
380
  requirements:
339
381
  - - '='
340
382
  - !ruby/object:Gem::Version
341
- version: 1.0.1
383
+ version: 1.0.2
342
384
  type: :runtime
343
385
  prerelease: false
344
386
  version_requirements: !ruby/object:Gem::Requirement
345
387
  requirements:
346
388
  - - '='
347
389
  - !ruby/object:Gem::Version
348
- version: 1.0.1
390
+ version: 1.0.2
349
391
  - !ruby/object:Gem::Dependency
350
392
  name: dry-monads
351
393
  requirement: !ruby/object:Gem::Requirement
@@ -473,19 +515,19 @@ dependencies:
473
515
  - !ruby/object:Gem::Version
474
516
  version: 0.5.2
475
517
  - !ruby/object:Gem::Dependency
476
- name: insensitive_hash
518
+ name: http
477
519
  requirement: !ruby/object:Gem::Requirement
478
520
  requirements:
479
521
  - - '='
480
522
  - !ruby/object:Gem::Version
481
- version: 0.3.3
523
+ version: 5.1.1
482
524
  type: :runtime
483
525
  prerelease: false
484
526
  version_requirements: !ruby/object:Gem::Requirement
485
527
  requirements:
486
528
  - - '='
487
529
  - !ruby/object:Gem::Version
488
- version: 0.3.3
530
+ version: 5.1.1
489
531
  - !ruby/object:Gem::Dependency
490
532
  name: jr-cli
491
533
  requirement: !ruby/object:Gem::Requirement
@@ -674,14 +716,14 @@ dependencies:
674
716
  requirements:
675
717
  - - '='
676
718
  - !ruby/object:Gem::Version
677
- version: 5.11.0
719
+ version: 5.12.0
678
720
  type: :runtime
679
721
  prerelease: false
680
722
  version_requirements: !ruby/object:Gem::Requirement
681
723
  requirements:
682
724
  - - '='
683
725
  - !ruby/object:Gem::Version
684
- version: 5.11.0
726
+ version: 5.12.0
685
727
  - !ruby/object:Gem::Dependency
686
728
  name: slack-notifier
687
729
  requirement: !ruby/object:Gem::Requirement
@@ -702,14 +744,14 @@ dependencies:
702
744
  requirements:
703
745
  - - '='
704
746
  - !ruby/object:Gem::Version
705
- version: 1.6.6
747
+ version: 1.6.7
706
748
  type: :runtime
707
749
  prerelease: false
708
750
  version_requirements: !ruby/object:Gem::Requirement
709
751
  requirements:
710
752
  - - '='
711
753
  - !ruby/object:Gem::Version
712
- version: 1.6.6
754
+ version: 1.6.7
713
755
  - !ruby/object:Gem::Dependency
714
756
  name: thor
715
757
  requirement: !ruby/object:Gem::Requirement
@@ -1052,8 +1094,8 @@ files:
1052
1094
  - lib/mihari/web/endpoints/tags.rb
1053
1095
  - lib/mihari/web/middleware/connection_adapter.rb
1054
1096
  - lib/mihari/web/middleware/error_notification_adapter.rb
1055
- - lib/mihari/web/public/assets/index-0a5a47bf.js
1056
1097
  - lib/mihari/web/public/assets/index-33165282.css
1098
+ - lib/mihari/web/public/assets/index-a92abd57.js
1057
1099
  - lib/mihari/web/public/assets/mode-yaml-a21faa53.js
1058
1100
  - lib/mihari/web/public/favicon.ico
1059
1101
  - lib/mihari/web/public/index.html
@@ -1082,7 +1124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1082
1124
  - !ruby/object:Gem::Version
1083
1125
  version: '0'
1084
1126
  requirements: []
1085
- rubygems_version: 3.4.1
1127
+ rubygems_version: 3.4.20
1086
1128
  signing_key:
1087
1129
  specification_version: 4
1088
1130
  summary: A query aggregator for OSINT based threat hunting