mihari 5.4.7 → 5.4.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) 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/frontend/package-lock.json +183 -171
  6. data/frontend/package.json +6 -6
  7. data/lib/mihari/analyzers/base.rb +8 -1
  8. data/lib/mihari/analyzers/binaryedge.rb +1 -1
  9. data/lib/mihari/analyzers/censys.rb +1 -1
  10. data/lib/mihari/analyzers/feed.rb +1 -0
  11. data/lib/mihari/analyzers/greynoise.rb +1 -1
  12. data/lib/mihari/analyzers/hunterhow.rb +1 -1
  13. data/lib/mihari/analyzers/onyphe.rb +1 -1
  14. data/lib/mihari/analyzers/shodan.rb +1 -1
  15. data/lib/mihari/analyzers/urlscan.rb +1 -1
  16. data/lib/mihari/analyzers/virustotal_intelligence.rb +1 -1
  17. data/lib/mihari/analyzers/zoomeye.rb +1 -1
  18. data/lib/mihari/clients/base.rb +18 -5
  19. data/lib/mihari/clients/binaryedge.rb +4 -3
  20. data/lib/mihari/clients/censys.rb +3 -2
  21. data/lib/mihari/clients/greynoise.rb +3 -2
  22. data/lib/mihari/clients/hunterhow.rb +3 -2
  23. data/lib/mihari/clients/onyphe.rb +4 -2
  24. data/lib/mihari/clients/shodan.rb +3 -2
  25. data/lib/mihari/clients/urlscan.rb +3 -2
  26. data/lib/mihari/clients/virustotal.rb +3 -2
  27. data/lib/mihari/clients/zoomeye.rb +3 -2
  28. data/lib/mihari/config.rb +13 -0
  29. data/lib/mihari/emitters/webhook.rb +11 -11
  30. data/lib/mihari/enrichers/google_public_dns.rb +7 -1
  31. data/lib/mihari/enrichers/ipinfo.rb +13 -6
  32. data/lib/mihari/enrichers/shodan.rb +7 -1
  33. data/lib/mihari/errors.rb +0 -2
  34. data/lib/mihari/feed/reader.rb +15 -10
  35. data/lib/mihari/http.rb +26 -100
  36. data/lib/mihari/schemas/analyzer.rb +1 -0
  37. data/lib/mihari/version.rb +1 -1
  38. data/lib/mihari/web/public/assets/{index-0a5a47bf.js → index-a92abd57.js} +1 -1
  39. data/lib/mihari/web/public/index.html +1 -1
  40. data/lib/mihari/web/public/redoc-static.html +400 -400
  41. data/mihari.gemspec +5 -4
  42. data/requirements.txt +1 -1
  43. metadata +26 -12
data/mihari.gemspec CHANGED
@@ -48,6 +48,7 @@ Gem::Specification.new do |spec|
48
48
  spec.add_development_dependency "rb-fsevent", "~> 0.11"
49
49
  spec.add_development_dependency "rerun", "~> 0.14"
50
50
  spec.add_development_dependency "rspec", "~> 3.12"
51
+ spec.add_development_dependency "rubocop-rspec", "~> 2.24"
51
52
  spec.add_development_dependency "simplecov-lcov", "~> 0.8"
52
53
  spec.add_development_dependency "standard", "~> 1.31"
53
54
  spec.add_development_dependency "test-prof", "~> 1.2"
@@ -60,7 +61,7 @@ Gem::Specification.new do |spec|
60
61
  spec.add_development_dependency "solargraph", "~> 0.49"
61
62
  end
62
63
 
63
- spec.add_dependency "activerecord", "7.1.0"
64
+ spec.add_dependency "activerecord", "7.1.1"
64
65
  spec.add_dependency "addressable", "2.8.5"
65
66
  spec.add_dependency "awrence", "2.0.1"
66
67
  spec.add_dependency "dotenv", "2.8.1"
@@ -75,7 +76,7 @@ Gem::Specification.new do |spec|
75
76
  spec.add_dependency "grape-entity", "1.0.0"
76
77
  spec.add_dependency "grape-swagger", "1.6.1"
77
78
  spec.add_dependency "grape-swagger-entity", "0.5.2"
78
- spec.add_dependency "insensitive_hash", "0.3.3"
79
+ spec.add_dependency "http", "5.1.1"
79
80
  spec.add_dependency "jr-cli", "0.6.0"
80
81
  spec.add_dependency "launchy", "2.5.2"
81
82
  spec.add_dependency "memist", "2.0.2"
@@ -89,9 +90,9 @@ Gem::Specification.new do |spec|
89
90
  spec.add_dependency "rack-cors", "2.0.1"
90
91
  spec.add_dependency "rackup", "2.1.0"
91
92
  spec.add_dependency "semantic_logger", "4.14.0"
92
- spec.add_dependency "sentry-ruby", "5.11.0"
93
+ spec.add_dependency "sentry-ruby", "5.12.0"
93
94
  spec.add_dependency "slack-notifier", "2.4.0"
94
- spec.add_dependency "sqlite3", "1.6.6"
95
+ spec.add_dependency "sqlite3", "1.6.7"
95
96
  spec.add_dependency "thor", "1.2.2"
96
97
  spec.add_dependency "uuidtools", "2.2.0"
97
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.3
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.7
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-08 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
@@ -178,6 +178,20 @@ dependencies:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
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'
181
195
  - !ruby/object:Gem::Dependency
182
196
  name: simplecov-lcov
183
197
  requirement: !ruby/object:Gem::Requirement
@@ -296,14 +310,14 @@ dependencies:
296
310
  requirements:
297
311
  - - '='
298
312
  - !ruby/object:Gem::Version
299
- version: 7.1.0
313
+ version: 7.1.1
300
314
  type: :runtime
301
315
  prerelease: false
302
316
  version_requirements: !ruby/object:Gem::Requirement
303
317
  requirements:
304
318
  - - '='
305
319
  - !ruby/object:Gem::Version
306
- version: 7.1.0
320
+ version: 7.1.1
307
321
  - !ruby/object:Gem::Dependency
308
322
  name: addressable
309
323
  requirement: !ruby/object:Gem::Requirement
@@ -501,19 +515,19 @@ dependencies:
501
515
  - !ruby/object:Gem::Version
502
516
  version: 0.5.2
503
517
  - !ruby/object:Gem::Dependency
504
- name: insensitive_hash
518
+ name: http
505
519
  requirement: !ruby/object:Gem::Requirement
506
520
  requirements:
507
521
  - - '='
508
522
  - !ruby/object:Gem::Version
509
- version: 0.3.3
523
+ version: 5.1.1
510
524
  type: :runtime
511
525
  prerelease: false
512
526
  version_requirements: !ruby/object:Gem::Requirement
513
527
  requirements:
514
528
  - - '='
515
529
  - !ruby/object:Gem::Version
516
- version: 0.3.3
530
+ version: 5.1.1
517
531
  - !ruby/object:Gem::Dependency
518
532
  name: jr-cli
519
533
  requirement: !ruby/object:Gem::Requirement
@@ -702,14 +716,14 @@ dependencies:
702
716
  requirements:
703
717
  - - '='
704
718
  - !ruby/object:Gem::Version
705
- version: 5.11.0
719
+ version: 5.12.0
706
720
  type: :runtime
707
721
  prerelease: false
708
722
  version_requirements: !ruby/object:Gem::Requirement
709
723
  requirements:
710
724
  - - '='
711
725
  - !ruby/object:Gem::Version
712
- version: 5.11.0
726
+ version: 5.12.0
713
727
  - !ruby/object:Gem::Dependency
714
728
  name: slack-notifier
715
729
  requirement: !ruby/object:Gem::Requirement
@@ -730,14 +744,14 @@ dependencies:
730
744
  requirements:
731
745
  - - '='
732
746
  - !ruby/object:Gem::Version
733
- version: 1.6.6
747
+ version: 1.6.7
734
748
  type: :runtime
735
749
  prerelease: false
736
750
  version_requirements: !ruby/object:Gem::Requirement
737
751
  requirements:
738
752
  - - '='
739
753
  - !ruby/object:Gem::Version
740
- version: 1.6.6
754
+ version: 1.6.7
741
755
  - !ruby/object:Gem::Dependency
742
756
  name: thor
743
757
  requirement: !ruby/object:Gem::Requirement
@@ -1080,8 +1094,8 @@ files:
1080
1094
  - lib/mihari/web/endpoints/tags.rb
1081
1095
  - lib/mihari/web/middleware/connection_adapter.rb
1082
1096
  - lib/mihari/web/middleware/error_notification_adapter.rb
1083
- - lib/mihari/web/public/assets/index-0a5a47bf.js
1084
1097
  - lib/mihari/web/public/assets/index-33165282.css
1098
+ - lib/mihari/web/public/assets/index-a92abd57.js
1085
1099
  - lib/mihari/web/public/assets/mode-yaml-a21faa53.js
1086
1100
  - lib/mihari/web/public/favicon.ico
1087
1101
  - lib/mihari/web/public/index.html