mihari 3.5.0 → 3.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +3 -0
  3. data/README.md +2 -0
  4. data/Steepfile +32 -0
  5. data/config.ru +1 -0
  6. data/lib/mihari/analyzers/base.rb +24 -11
  7. data/lib/mihari/analyzers/binaryedge.rb +13 -0
  8. data/lib/mihari/analyzers/censys.rb +42 -9
  9. data/lib/mihari/analyzers/circl.rb +15 -0
  10. data/lib/mihari/analyzers/crtsh.rb +5 -0
  11. data/lib/mihari/analyzers/dnpedia.rb +5 -0
  12. data/lib/mihari/analyzers/dnstwister.rb +17 -0
  13. data/lib/mihari/analyzers/onyphe.rb +50 -9
  14. data/lib/mihari/analyzers/otx.rb +20 -0
  15. data/lib/mihari/analyzers/passivetotal.rb +25 -0
  16. data/lib/mihari/analyzers/pulsedive.rb +10 -0
  17. data/lib/mihari/analyzers/rule.rb +18 -0
  18. data/lib/mihari/analyzers/securitytrails.rb +25 -0
  19. data/lib/mihari/analyzers/shodan.rb +39 -5
  20. data/lib/mihari/analyzers/spyse.rb +20 -0
  21. data/lib/mihari/analyzers/urlscan.rb +10 -0
  22. data/lib/mihari/analyzers/virustotal.rb +20 -0
  23. data/lib/mihari/analyzers/zoomeye.rb +38 -0
  24. data/lib/mihari/{constraints.rb → constants.rb} +0 -0
  25. data/lib/mihari/database.rb +55 -3
  26. data/lib/mihari/emitters/base.rb +1 -1
  27. data/lib/mihari/emitters/misp.rb +38 -5
  28. data/lib/mihari/emitters/slack.rb +20 -2
  29. data/lib/mihari/emitters/the_hive.rb +16 -3
  30. data/lib/mihari/emitters/webhook.rb +18 -3
  31. data/lib/mihari/enrichers/base.rb +18 -0
  32. data/lib/mihari/enrichers/ipinfo.rb +49 -0
  33. data/lib/mihari/mixins/autonomous_system.rb +19 -0
  34. data/lib/mihari/mixins/disallowed_data_value.rb +1 -1
  35. data/lib/mihari/models/alert.rb +8 -4
  36. data/lib/mihari/models/artifact.rb +94 -0
  37. data/lib/mihari/models/autonomous_system.rb +26 -0
  38. data/lib/mihari/models/dns.rb +55 -0
  39. data/lib/mihari/models/geolocation.rb +29 -0
  40. data/lib/mihari/models/reverse_dns.rb +26 -0
  41. data/lib/mihari/models/whois.rb +119 -0
  42. data/lib/mihari/schemas/rule.rb +2 -15
  43. data/lib/mihari/serializers/alert.rb +6 -4
  44. data/lib/mihari/serializers/artifact.rb +11 -2
  45. data/lib/mihari/serializers/autonomous_system.rb +9 -0
  46. data/lib/mihari/serializers/dns.rb +11 -0
  47. data/lib/mihari/serializers/geolocation.rb +11 -0
  48. data/lib/mihari/serializers/reverse_dns.rb +11 -0
  49. data/lib/mihari/serializers/tag.rb +4 -2
  50. data/lib/mihari/serializers/whois.rb +11 -0
  51. data/lib/mihari/status.rb +7 -2
  52. data/lib/mihari/structs/censys.rb +92 -0
  53. data/lib/mihari/structs/ipinfo.rb +39 -0
  54. data/lib/mihari/structs/onyphe.rb +47 -0
  55. data/lib/mihari/structs/shodan.rb +53 -0
  56. data/lib/mihari/type_checker.rb +9 -9
  57. data/lib/mihari/types.rb +21 -0
  58. data/lib/mihari/version.rb +1 -1
  59. data/lib/mihari/web/controllers/artifacts_controller.rb +53 -8
  60. data/lib/mihari/web/controllers/ip_address_controller.rb +4 -19
  61. data/lib/mihari/web/controllers/sources_controller.rb +2 -2
  62. data/lib/mihari/web/public/index.html +1 -1
  63. data/lib/mihari/web/public/redoc-static.html +7 -6
  64. data/lib/mihari/web/public/static/js/app.06d5cf1c.js +36 -0
  65. data/lib/mihari/web/public/static/js/app.06d5cf1c.js.map +1 -0
  66. data/lib/mihari/web/public/static/js/app.8e3e5150.js +36 -0
  67. data/lib/mihari/web/public/static/js/app.8e3e5150.js.map +1 -0
  68. data/lib/mihari.rb +39 -5
  69. data/mihari.gemspec +10 -1
  70. data/sig/lib/mihari/analyzers/base.rbs +90 -0
  71. data/sig/lib/mihari/analyzers/basic.rbs +17 -0
  72. data/sig/lib/mihari/analyzers/binaryedge.rbs +25 -0
  73. data/sig/lib/mihari/analyzers/censys.rbs +38 -0
  74. data/sig/lib/mihari/analyzers/circl.rbs +29 -0
  75. data/sig/lib/mihari/analyzers/crtsh.rbs +19 -0
  76. data/sig/lib/mihari/analyzers/dnpedia.rbs +18 -0
  77. data/sig/lib/mihari/analyzers/dnstwister.rbs +27 -0
  78. data/sig/lib/mihari/analyzers/onyphe.rbs +33 -0
  79. data/sig/lib/mihari/analyzers/otx.rbs +33 -0
  80. data/sig/lib/mihari/analyzers/passivetotal.rbs +33 -0
  81. data/sig/lib/mihari/analyzers/pulsedive.rbs +27 -0
  82. data/sig/lib/mihari/analyzers/rule.rbs +68 -0
  83. data/sig/lib/mihari/analyzers/securitytrails.rbs +33 -0
  84. data/sig/lib/mihari/analyzers/shodan.rbs +33 -0
  85. data/sig/lib/mihari/analyzers/spyse.rbs +29 -0
  86. data/sig/lib/mihari/analyzers/urlscan.rbs +28 -0
  87. data/sig/lib/mihari/analyzers/virustotal.rbs +31 -0
  88. data/sig/lib/mihari/analyzers/zoomeye.rbs +33 -0
  89. data/sig/lib/mihari/cli/analyzer.rbs +39 -0
  90. data/sig/lib/mihari/cli/base.rbs +11 -0
  91. data/sig/lib/mihari/cli/init.rbs +7 -0
  92. data/sig/lib/mihari/cli/main.rbs +9 -0
  93. data/sig/lib/mihari/cli/mixins/utils.rbs +50 -0
  94. data/sig/lib/mihari/cli/validator.rbs +7 -0
  95. data/sig/lib/mihari/commands/binaryedge.rbs +7 -0
  96. data/sig/lib/mihari/commands/censys.rbs +7 -0
  97. data/sig/lib/mihari/commands/circl.rbs +7 -0
  98. data/sig/lib/mihari/commands/crtsh.rbs +7 -0
  99. data/sig/lib/mihari/commands/dnpedia.rbs +7 -0
  100. data/sig/lib/mihari/commands/dnstwister.rbs +7 -0
  101. data/sig/lib/mihari/commands/init.rbs +11 -0
  102. data/sig/lib/mihari/commands/json.rbs +7 -0
  103. data/sig/lib/mihari/commands/onyphe.rbs +7 -0
  104. data/sig/lib/mihari/commands/otx.rbs +7 -0
  105. data/sig/lib/mihari/commands/passivetotal.rbs +7 -0
  106. data/sig/lib/mihari/commands/pulsedive.rbs +7 -0
  107. data/sig/lib/mihari/commands/search.rbs +35 -0
  108. data/sig/lib/mihari/commands/securitytrails.rbs +7 -0
  109. data/sig/lib/mihari/commands/shodan.rbs +7 -0
  110. data/sig/lib/mihari/commands/spyse.rbs +7 -0
  111. data/sig/lib/mihari/commands/urlscan.rbs +7 -0
  112. data/sig/lib/mihari/commands/validator.rbs +11 -0
  113. data/sig/lib/mihari/commands/virustotal.rbs +7 -0
  114. data/sig/lib/mihari/commands/web.rbs +7 -0
  115. data/sig/lib/mihari/commands/zoomeye.rbs +7 -0
  116. data/sig/lib/mihari/constants.rbs +3 -0
  117. data/sig/lib/mihari/database.rbs +25 -0
  118. data/sig/lib/mihari/emitters/base.rbs +18 -0
  119. data/sig/lib/mihari/emitters/database.rbs +9 -0
  120. data/sig/lib/mihari/emitters/misp.rbs +28 -0
  121. data/sig/lib/mihari/emitters/slack.rbs +58 -0
  122. data/sig/lib/mihari/emitters/stdout.rbs +9 -0
  123. data/sig/lib/mihari/emitters/the_hive.rbs +24 -0
  124. data/sig/lib/mihari/emitters/webhook.rbs +20 -0
  125. data/sig/lib/mihari/enrichers/base.rbs +12 -0
  126. data/sig/lib/mihari/enrichers/ipinfo.rbs +16 -0
  127. data/sig/lib/mihari/errors.rbs +10 -0
  128. data/sig/lib/mihari/mixins/autonomous_system.rbs +14 -0
  129. data/sig/lib/mihari/mixins/configurable.rbs +26 -0
  130. data/sig/lib/mihari/mixins/configuration.rbs +45 -0
  131. data/sig/lib/mihari/mixins/disallowed_data_value.rbs +25 -0
  132. data/sig/lib/mihari/mixins/hash.rbs +14 -0
  133. data/sig/lib/mihari/mixins/refang.rbs +14 -0
  134. data/sig/lib/mihari/mixins/retriable.rbs +15 -0
  135. data/sig/lib/mihari/mixins/rule.rbs +41 -0
  136. data/sig/lib/mihari/models/alert.rbs +46 -0
  137. data/sig/lib/mihari/models/artifact.rbs +65 -0
  138. data/sig/lib/mihari/models/autonomous_system.rbs +14 -0
  139. data/sig/lib/mihari/models/dns.rbs +19 -0
  140. data/sig/lib/mihari/models/geolocation.rbs +15 -0
  141. data/sig/lib/mihari/models/reverse_dns.rbs +14 -0
  142. data/sig/lib/mihari/models/tag.rbs +5 -0
  143. data/sig/lib/mihari/models/tagging.rbs +4 -0
  144. data/sig/lib/mihari/models/whois.rbs +66 -0
  145. data/sig/lib/mihari/notifiers/base.rbs +18 -0
  146. data/sig/lib/mihari/notifiers/exception_notifier.rbs +75 -0
  147. data/sig/lib/mihari/notifiers/slack.rbs +50 -0
  148. data/sig/lib/mihari/status.rbs +25 -0
  149. data/sig/lib/mihari/structs/censys.rbs +50 -0
  150. data/sig/lib/mihari/structs/ipinfo.rbs +17 -0
  151. data/sig/lib/mihari/structs/onyphe.rbs +25 -0
  152. data/sig/lib/mihari/structs/shodan.rbs +28 -0
  153. data/sig/lib/mihari/type_checker.rbs +48 -0
  154. data/sig/lib/mihari/types.rbs +17 -0
  155. data/sig/lib/mihari/version.rbs +3 -0
  156. data/sig/lib/mihari/web/app.rbs +5 -0
  157. data/sig/lib/mihari.rbs +59 -0
  158. metadata +244 -6
@@ -0,0 +1,25 @@
1
+ module Mihari
2
+ module Structs
3
+ module Onyphe
4
+ class Result
5
+ attr_reader asn: String
6
+ attr_reader country_code: String?
7
+ attr_reader ip: String
8
+
9
+ def self.from_dynamic!: (Hash[(String | Symbol), untyped] d) -> Mihari::Structs::Onyphe::Result
10
+ end
11
+
12
+ class Response
13
+ attr_reader count: Integer
14
+ attr_reader error: Integer
15
+ attr_reader max_page: Integer
16
+ attr_reader page: String
17
+ attr_reader results: Array[Mihari::Structs::Onyphe::Result]
18
+ attr_reader status: String
19
+ attr_reader total: Integer
20
+
21
+ def self.from_dynamic!: (Hash[(String | Symbol), untyped] d) -> Mihari::Structs::Onyphe::Response
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,28 @@
1
+ module Mihari
2
+ module Structs
3
+ module Shodan
4
+ class Location
5
+ attr_reader country_code: String
6
+ attr_reader country_name: String
7
+
8
+ def self.from_dynamic!: (Hash[(String | Symbol), untyped] d) -> Mihari::Structs::Shodan::Location
9
+ end
10
+
11
+ class Match
12
+ attr_reader asn: String
13
+ attr_reader hostnames: Array[String]
14
+ attr_reader location: Mihari::Structs::Shodan::Location
15
+ attr_reader domains: Array[String]
16
+ attr_reader ip_str: String
17
+ def self.from_dynamic!: (Hash[(String | Symbol), untyped] d) -> Mihari::Structs::Shodan::Match
18
+ end
19
+
20
+ class Result
21
+ attr_reader matches: Array[Mihari::Structs::Shodan::Match]
22
+ attr_reader total: Integer
23
+
24
+ def self.from_dynamic!: (Hash[(String | Symbol), untyped] d) -> Mihari::Structs::Shodan::Result
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,48 @@
1
+ module Mihari
2
+ class TypeChecker
3
+ # extend Dry::Initializer
4
+
5
+ def initialize: (*untyped args, **untyped kwargs) -> void
6
+
7
+ # @return [true, false]
8
+ def hash?: () -> bool
9
+
10
+ # @return [true, false]
11
+ def ip?: () -> bool
12
+
13
+ # @return [true, false]
14
+ def domain?: () -> bool
15
+
16
+ # @return [true, false]
17
+ def url?: () -> bool
18
+
19
+ # @return [true, false]
20
+ def mail?: () -> bool
21
+
22
+ # @return [String, nil]
23
+ def type: () -> ("hash" | "ip" | "domain" | "url" | nil)
24
+
25
+ # @return [String, nil]
26
+ def detailed_type: () -> ("md5" | "sha1" | "sha256" | "sha512" | nil)
27
+
28
+ # @return [String, nil]
29
+ def self.type: (untyped data) -> String?
30
+
31
+ # @return [String, nil]
32
+ def self.detailed_type: (untyped data) -> String?
33
+
34
+ private
35
+
36
+ # @return [true, false]
37
+ def md5?: () -> bool
38
+
39
+ # @return [true, false]
40
+ def sha1?: () -> bool
41
+
42
+ # @return [true, false]
43
+ def sha256?: () -> bool
44
+
45
+ # @return [true, false]
46
+ def sha512?: () -> bool
47
+ end
48
+ end
@@ -0,0 +1,17 @@
1
+ module Mihari
2
+ module Types
3
+ Int: ::Integer
4
+
5
+ Nil: nil
6
+
7
+ Hash: Hash[(String | Symbol), untyped]
8
+
9
+ String: ::String
10
+
11
+ Double: (::Float | ::Integer)
12
+
13
+ DataTypes: Array[String]
14
+
15
+ AnalyzerTypes: Array[String]
16
+ end
17
+ end
@@ -0,0 +1,3 @@
1
+ module Mihari
2
+ VERSION: ::String
3
+ end
@@ -0,0 +1,5 @@
1
+ module Mihari
2
+ class App # < Sinatra::Base
3
+ def self.run!: (?port: ::Integer port, ?host: ::String host) -> void
4
+ end
5
+ end
@@ -0,0 +1,59 @@
1
+ class Configuration
2
+ attr_accessor binaryedge_api_key (): String?
3
+ attr_accessor censys_id (): String?
4
+ attr_accessor censys_secret (): String?
5
+ attr_accessor circl_passive_password (): String?
6
+ attr_accessor circl_passive_username (): String?
7
+ attr_accessor ipinfo_api_key (): String?
8
+ attr_accessor misp_api_endpoint (): String?
9
+ attr_accessor misp_api_key (): String?
10
+ attr_accessor onyphe_api_key (): String?
11
+ attr_accessor otx_api_key (): String?
12
+ attr_accessor passivetotal_api_key (): String?
13
+ attr_accessor passivetotal_username (): String?
14
+ attr_accessor pulsedive_api_key (): String?
15
+ attr_accessor securitytrails_api_key (): String?
16
+ attr_accessor shodan_api_key (): String?
17
+ attr_accessor slack_channel (): String?
18
+ attr_accessor slack_webhook_url (): String?
19
+ attr_accessor spyse_api_key (): String?
20
+ attr_accessor thehive_api_endpoint (): String?
21
+ attr_accessor thehive_api_key (): String?
22
+ attr_accessor urlscan_api_key (): String?
23
+ attr_accessor virustotal_api_key (): String?
24
+ attr_accessor zoomeye_api_key (): String?
25
+ attr_accessor webhook_url (): String?
26
+ attr_accessor webhook_use_json_body (): (bool | nil)
27
+ attr_accessor database (): String?
28
+
29
+ attr_reader values: Hash[(String | Symbol), String?]
30
+ end
31
+
32
+ module Mihari
33
+ def self.config: () -> Configuration
34
+
35
+ # extend Dry::Configurable
36
+
37
+ extend Mixins::Configuration
38
+
39
+ # include Mem
40
+
41
+ def self.emitters: () -> ::Array[singleton(Mihari::Emitters::Base)]
42
+
43
+ def self.analyzers: () -> ::Array[singleton(Mihari::Analyzers::Base)]
44
+
45
+ def self.enrichers: () -> ::Array[singleton(Mihari::Enrichers::Base)]
46
+
47
+ #
48
+ # Load configuration from YAML file
49
+ #
50
+ # @param [String] path Path to YAML file
51
+ #
52
+ # @return [nil]
53
+ #
54
+ def self.load_config_from_yaml: (String path) -> void
55
+ end
56
+
57
+ class Object
58
+ def truthy?: (untyped value) -> bool
59
+ end
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: 3.5.0
4
+ version: 3.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-15 00:00:00.000000000 Z
11
+ date: 2021-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -122,6 +122,34 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '13.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rb-fsevent
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.11'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.11'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rerun
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '0.13'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '0.13'
125
153
  - !ruby/object:Gem::Dependency
126
154
  name: rspec
127
155
  requirement: !ruby/object:Gem::Requirement
@@ -142,14 +170,28 @@ dependencies:
142
170
  requirements:
143
171
  - - "~>"
144
172
  - !ruby/object:Gem::Version
145
- version: '1.1'
173
+ version: '1.3'
146
174
  type: :development
147
175
  prerelease: false
148
176
  version_requirements: !ruby/object:Gem::Requirement
149
177
  requirements:
150
178
  - - "~>"
151
179
  - !ruby/object:Gem::Version
152
- version: '1.1'
180
+ version: '1.3'
181
+ - !ruby/object:Gem::Dependency
182
+ name: steep
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '0.46'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '0.46'
153
195
  - !ruby/object:Gem::Dependency
154
196
  name: timecop
155
197
  requirement: !ruby/object:Gem::Requirement
@@ -360,6 +402,20 @@ dependencies:
360
402
  - - "~>"
361
403
  - !ruby/object:Gem::Version
362
404
  version: '0.1'
405
+ - !ruby/object:Gem::Dependency
406
+ name: dotenv
407
+ requirement: !ruby/object:Gem::Requirement
408
+ requirements:
409
+ - - "~>"
410
+ - !ruby/object:Gem::Version
411
+ version: '2.7'
412
+ type: :runtime
413
+ prerelease: false
414
+ version_requirements: !ruby/object:Gem::Requirement
415
+ requirements:
416
+ - - "~>"
417
+ - !ruby/object:Gem::Version
418
+ version: '2.7'
363
419
  - !ruby/object:Gem::Dependency
364
420
  name: dry-configurable
365
421
  requirement: !ruby/object:Gem::Requirement
@@ -402,6 +458,20 @@ dependencies:
402
458
  - - "~>"
403
459
  - !ruby/object:Gem::Version
404
460
  version: '3.0'
461
+ - !ruby/object:Gem::Dependency
462
+ name: dry-struct
463
+ requirement: !ruby/object:Gem::Requirement
464
+ requirements:
465
+ - - "~>"
466
+ - !ruby/object:Gem::Version
467
+ version: '1.4'
468
+ type: :runtime
469
+ prerelease: false
470
+ version_requirements: !ruby/object:Gem::Requirement
471
+ requirements:
472
+ - - "~>"
473
+ - !ruby/object:Gem::Version
474
+ version: '1.4'
405
475
  - !ruby/object:Gem::Dependency
406
476
  name: dry-validation
407
477
  requirement: !ruby/object:Gem::Requirement
@@ -486,6 +556,20 @@ dependencies:
486
556
  - - "~>"
487
557
  - !ruby/object:Gem::Version
488
558
  version: '0.1'
559
+ - !ruby/object:Gem::Dependency
560
+ name: memist
561
+ requirement: !ruby/object:Gem::Requirement
562
+ requirements:
563
+ - - "~>"
564
+ - !ruby/object:Gem::Version
565
+ version: '2.0'
566
+ type: :runtime
567
+ prerelease: false
568
+ version_requirements: !ruby/object:Gem::Requirement
569
+ requirements:
570
+ - - "~>"
571
+ - !ruby/object:Gem::Version
572
+ version: '2.0'
489
573
  - !ruby/object:Gem::Dependency
490
574
  name: misp
491
575
  requirement: !ruby/object:Gem::Requirement
@@ -514,6 +598,20 @@ dependencies:
514
598
  - - "~>"
515
599
  - !ruby/object:Gem::Version
516
600
  version: '2.0'
601
+ - !ruby/object:Gem::Dependency
602
+ name: normalize_country
603
+ requirement: !ruby/object:Gem::Requirement
604
+ requirements:
605
+ - - '='
606
+ - !ruby/object:Gem::Version
607
+ version: '0.3'
608
+ type: :runtime
609
+ prerelease: false
610
+ version_requirements: !ruby/object:Gem::Requirement
611
+ requirements:
612
+ - - '='
613
+ - !ruby/object:Gem::Version
614
+ version: '0.3'
517
615
  - !ruby/object:Gem::Dependency
518
616
  name: onyphe
519
617
  requirement: !ruby/object:Gem::Requirement
@@ -850,6 +948,34 @@ dependencies:
850
948
  - - "~>"
851
949
  - !ruby/object:Gem::Version
852
950
  version: '1.1'
951
+ - !ruby/object:Gem::Dependency
952
+ name: whois
953
+ requirement: !ruby/object:Gem::Requirement
954
+ requirements:
955
+ - - "~>"
956
+ - !ruby/object:Gem::Version
957
+ version: '5.0'
958
+ type: :runtime
959
+ prerelease: false
960
+ version_requirements: !ruby/object:Gem::Requirement
961
+ requirements:
962
+ - - "~>"
963
+ - !ruby/object:Gem::Version
964
+ version: '5.0'
965
+ - !ruby/object:Gem::Dependency
966
+ name: whois-parser
967
+ requirement: !ruby/object:Gem::Requirement
968
+ requirements:
969
+ - - "~>"
970
+ - !ruby/object:Gem::Version
971
+ version: '1.2'
972
+ type: :runtime
973
+ prerelease: false
974
+ version_requirements: !ruby/object:Gem::Requirement
975
+ requirements:
976
+ - - "~>"
977
+ - !ruby/object:Gem::Version
978
+ version: '1.2'
853
979
  - !ruby/object:Gem::Dependency
854
980
  name: zoomeye-rb
855
981
  requirement: !ruby/object:Gem::Requirement
@@ -876,6 +1002,7 @@ files:
876
1002
  - ".github/ISSUE_TEMPLATE/feature_request.md"
877
1003
  - ".github/workflows/test.yml"
878
1004
  - ".gitignore"
1005
+ - ".gitmodules"
879
1006
  - ".overcommit.yml"
880
1007
  - ".rspec"
881
1008
  - ".standard.yml"
@@ -883,6 +1010,7 @@ files:
883
1010
  - LICENSE
884
1011
  - README.md
885
1012
  - Rakefile
1013
+ - Steepfile
886
1014
  - bin/console
887
1015
  - bin/setup
888
1016
  - build_frontend.sh
@@ -946,7 +1074,7 @@ files:
946
1074
  - lib/mihari/commands/virustotal.rb
947
1075
  - lib/mihari/commands/web.rb
948
1076
  - lib/mihari/commands/zoomeye.rb
949
- - lib/mihari/constraints.rb
1077
+ - lib/mihari/constants.rb
950
1078
  - lib/mihari/database.rb
951
1079
  - lib/mihari/emitters/base.rb
952
1080
  - lib/mihari/emitters/database.rb
@@ -955,7 +1083,10 @@ files:
955
1083
  - lib/mihari/emitters/stdout.rb
956
1084
  - lib/mihari/emitters/the_hive.rb
957
1085
  - lib/mihari/emitters/webhook.rb
1086
+ - lib/mihari/enrichers/base.rb
1087
+ - lib/mihari/enrichers/ipinfo.rb
958
1088
  - lib/mihari/errors.rb
1089
+ - lib/mihari/mixins/autonomous_system.rb
959
1090
  - lib/mihari/mixins/configurable.rb
960
1091
  - lib/mihari/mixins/configuration.rb
961
1092
  - lib/mihari/mixins/disallowed_data_value.rb
@@ -965,8 +1096,13 @@ files:
965
1096
  - lib/mihari/mixins/rule.rb
966
1097
  - lib/mihari/models/alert.rb
967
1098
  - lib/mihari/models/artifact.rb
1099
+ - lib/mihari/models/autonomous_system.rb
1100
+ - lib/mihari/models/dns.rb
1101
+ - lib/mihari/models/geolocation.rb
1102
+ - lib/mihari/models/reverse_dns.rb
968
1103
  - lib/mihari/models/tag.rb
969
1104
  - lib/mihari/models/tagging.rb
1105
+ - lib/mihari/models/whois.rb
970
1106
  - lib/mihari/notifiers/base.rb
971
1107
  - lib/mihari/notifiers/exception_notifier.rb
972
1108
  - lib/mihari/notifiers/slack.rb
@@ -976,10 +1112,20 @@ files:
976
1112
  - lib/mihari/schemas/rule.rb
977
1113
  - lib/mihari/serializers/alert.rb
978
1114
  - lib/mihari/serializers/artifact.rb
1115
+ - lib/mihari/serializers/autonomous_system.rb
1116
+ - lib/mihari/serializers/dns.rb
1117
+ - lib/mihari/serializers/geolocation.rb
1118
+ - lib/mihari/serializers/reverse_dns.rb
979
1119
  - lib/mihari/serializers/tag.rb
1120
+ - lib/mihari/serializers/whois.rb
980
1121
  - lib/mihari/status.rb
1122
+ - lib/mihari/structs/censys.rb
1123
+ - lib/mihari/structs/ipinfo.rb
1124
+ - lib/mihari/structs/onyphe.rb
1125
+ - lib/mihari/structs/shodan.rb
981
1126
  - lib/mihari/templates/rule.yml.erb
982
1127
  - lib/mihari/type_checker.rb
1128
+ - lib/mihari/types.rb
983
1129
  - lib/mihari/version.rb
984
1130
  - lib/mihari/web/app.rb
985
1131
  - lib/mihari/web/controllers/alerts_controller.rb
@@ -1025,8 +1171,12 @@ files:
1025
1171
  - lib/mihari/web/public/static/img/fa-regular-400.c5d109be.svg
1026
1172
  - lib/mihari/web/public/static/img/fa-solid-900.376c1f97.svg
1027
1173
  - lib/mihari/web/public/static/img/fa-solid-900.37bc7099.svg
1174
+ - lib/mihari/web/public/static/js/app.06d5cf1c.js
1175
+ - lib/mihari/web/public/static/js/app.06d5cf1c.js.map
1028
1176
  - lib/mihari/web/public/static/js/app.365f1907.js
1029
1177
  - lib/mihari/web/public/static/js/app.365f1907.js.map
1178
+ - lib/mihari/web/public/static/js/app.8e3e5150.js
1179
+ - lib/mihari/web/public/static/js/app.8e3e5150.js.map
1030
1180
  - lib/mihari/web/public/static/js/app.ab213f7c.js
1031
1181
  - lib/mihari/web/public/static/js/app.ab213f7c.js.map
1032
1182
  - lib/mihari/web/public/static/js/app.b5914c39.js
@@ -1035,6 +1185,94 @@ files:
1035
1185
  - lib/mihari/web/public/static/js/app.cccddb2b.js.map
1036
1186
  - mihari.gemspec
1037
1187
  - renovate.json
1188
+ - sig/lib/mihari.rbs
1189
+ - sig/lib/mihari/analyzers/base.rbs
1190
+ - sig/lib/mihari/analyzers/basic.rbs
1191
+ - sig/lib/mihari/analyzers/binaryedge.rbs
1192
+ - sig/lib/mihari/analyzers/censys.rbs
1193
+ - sig/lib/mihari/analyzers/circl.rbs
1194
+ - sig/lib/mihari/analyzers/crtsh.rbs
1195
+ - sig/lib/mihari/analyzers/dnpedia.rbs
1196
+ - sig/lib/mihari/analyzers/dnstwister.rbs
1197
+ - sig/lib/mihari/analyzers/onyphe.rbs
1198
+ - sig/lib/mihari/analyzers/otx.rbs
1199
+ - sig/lib/mihari/analyzers/passivetotal.rbs
1200
+ - sig/lib/mihari/analyzers/pulsedive.rbs
1201
+ - sig/lib/mihari/analyzers/rule.rbs
1202
+ - sig/lib/mihari/analyzers/securitytrails.rbs
1203
+ - sig/lib/mihari/analyzers/shodan.rbs
1204
+ - sig/lib/mihari/analyzers/spyse.rbs
1205
+ - sig/lib/mihari/analyzers/urlscan.rbs
1206
+ - sig/lib/mihari/analyzers/virustotal.rbs
1207
+ - sig/lib/mihari/analyzers/zoomeye.rbs
1208
+ - sig/lib/mihari/cli/analyzer.rbs
1209
+ - sig/lib/mihari/cli/base.rbs
1210
+ - sig/lib/mihari/cli/init.rbs
1211
+ - sig/lib/mihari/cli/main.rbs
1212
+ - sig/lib/mihari/cli/mixins/utils.rbs
1213
+ - sig/lib/mihari/cli/validator.rbs
1214
+ - sig/lib/mihari/commands/binaryedge.rbs
1215
+ - sig/lib/mihari/commands/censys.rbs
1216
+ - sig/lib/mihari/commands/circl.rbs
1217
+ - sig/lib/mihari/commands/crtsh.rbs
1218
+ - sig/lib/mihari/commands/dnpedia.rbs
1219
+ - sig/lib/mihari/commands/dnstwister.rbs
1220
+ - sig/lib/mihari/commands/init.rbs
1221
+ - sig/lib/mihari/commands/json.rbs
1222
+ - sig/lib/mihari/commands/onyphe.rbs
1223
+ - sig/lib/mihari/commands/otx.rbs
1224
+ - sig/lib/mihari/commands/passivetotal.rbs
1225
+ - sig/lib/mihari/commands/pulsedive.rbs
1226
+ - sig/lib/mihari/commands/search.rbs
1227
+ - sig/lib/mihari/commands/securitytrails.rbs
1228
+ - sig/lib/mihari/commands/shodan.rbs
1229
+ - sig/lib/mihari/commands/spyse.rbs
1230
+ - sig/lib/mihari/commands/urlscan.rbs
1231
+ - sig/lib/mihari/commands/validator.rbs
1232
+ - sig/lib/mihari/commands/virustotal.rbs
1233
+ - sig/lib/mihari/commands/web.rbs
1234
+ - sig/lib/mihari/commands/zoomeye.rbs
1235
+ - sig/lib/mihari/constants.rbs
1236
+ - sig/lib/mihari/database.rbs
1237
+ - sig/lib/mihari/emitters/base.rbs
1238
+ - sig/lib/mihari/emitters/database.rbs
1239
+ - sig/lib/mihari/emitters/misp.rbs
1240
+ - sig/lib/mihari/emitters/slack.rbs
1241
+ - sig/lib/mihari/emitters/stdout.rbs
1242
+ - sig/lib/mihari/emitters/the_hive.rbs
1243
+ - sig/lib/mihari/emitters/webhook.rbs
1244
+ - sig/lib/mihari/enrichers/base.rbs
1245
+ - sig/lib/mihari/enrichers/ipinfo.rbs
1246
+ - sig/lib/mihari/errors.rbs
1247
+ - sig/lib/mihari/mixins/autonomous_system.rbs
1248
+ - sig/lib/mihari/mixins/configurable.rbs
1249
+ - sig/lib/mihari/mixins/configuration.rbs
1250
+ - sig/lib/mihari/mixins/disallowed_data_value.rbs
1251
+ - sig/lib/mihari/mixins/hash.rbs
1252
+ - sig/lib/mihari/mixins/refang.rbs
1253
+ - sig/lib/mihari/mixins/retriable.rbs
1254
+ - sig/lib/mihari/mixins/rule.rbs
1255
+ - sig/lib/mihari/models/alert.rbs
1256
+ - sig/lib/mihari/models/artifact.rbs
1257
+ - sig/lib/mihari/models/autonomous_system.rbs
1258
+ - sig/lib/mihari/models/dns.rbs
1259
+ - sig/lib/mihari/models/geolocation.rbs
1260
+ - sig/lib/mihari/models/reverse_dns.rbs
1261
+ - sig/lib/mihari/models/tag.rbs
1262
+ - sig/lib/mihari/models/tagging.rbs
1263
+ - sig/lib/mihari/models/whois.rbs
1264
+ - sig/lib/mihari/notifiers/base.rbs
1265
+ - sig/lib/mihari/notifiers/exception_notifier.rbs
1266
+ - sig/lib/mihari/notifiers/slack.rbs
1267
+ - sig/lib/mihari/status.rbs
1268
+ - sig/lib/mihari/structs/censys.rbs
1269
+ - sig/lib/mihari/structs/ipinfo.rbs
1270
+ - sig/lib/mihari/structs/onyphe.rbs
1271
+ - sig/lib/mihari/structs/shodan.rbs
1272
+ - sig/lib/mihari/type_checker.rbs
1273
+ - sig/lib/mihari/types.rbs
1274
+ - sig/lib/mihari/version.rbs
1275
+ - sig/lib/mihari/web/app.rbs
1038
1276
  homepage: https://github.com/ninoseki/mihari
1039
1277
  licenses:
1040
1278
  - MIT
@@ -1054,7 +1292,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1054
1292
  - !ruby/object:Gem::Version
1055
1293
  version: '0'
1056
1294
  requirements: []
1057
- rubygems_version: 3.2.15
1295
+ rubygems_version: 3.2.22
1058
1296
  signing_key:
1059
1297
  specification_version: 4
1060
1298
  summary: A framework for continuous OSINT based threat hunting