mihari 3.4.1 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitmodules +3 -0
- data/README.md +2 -0
- data/Steepfile +32 -0
- data/config.ru +1 -0
- data/lib/mihari/analyzers/base.rb +24 -11
- data/lib/mihari/analyzers/binaryedge.rb +13 -0
- data/lib/mihari/analyzers/censys.rb +42 -9
- data/lib/mihari/analyzers/circl.rb +15 -0
- data/lib/mihari/analyzers/crtsh.rb +5 -0
- data/lib/mihari/analyzers/dnpedia.rb +5 -0
- data/lib/mihari/analyzers/dnstwister.rb +17 -0
- data/lib/mihari/analyzers/onyphe.rb +50 -9
- data/lib/mihari/analyzers/otx.rb +20 -0
- data/lib/mihari/analyzers/passivetotal.rb +25 -0
- data/lib/mihari/analyzers/pulsedive.rb +10 -0
- data/lib/mihari/analyzers/rule.rb +18 -0
- data/lib/mihari/analyzers/securitytrails.rb +25 -0
- data/lib/mihari/analyzers/shodan.rb +39 -5
- data/lib/mihari/analyzers/spyse.rb +20 -0
- data/lib/mihari/analyzers/urlscan.rb +10 -0
- data/lib/mihari/analyzers/virustotal.rb +20 -0
- data/lib/mihari/analyzers/zoomeye.rb +38 -0
- data/lib/mihari/cli/analyzer.rb +1 -0
- data/lib/mihari/cli/base.rb +0 -2
- data/lib/mihari/commands/init.rb +1 -1
- data/lib/mihari/commands/search.rb +1 -0
- data/lib/mihari/commands/web.rb +1 -0
- data/lib/mihari/{constraints.rb → constants.rb} +0 -0
- data/lib/mihari/database.rb +55 -3
- data/lib/mihari/emitters/base.rb +1 -1
- data/lib/mihari/emitters/misp.rb +38 -5
- data/lib/mihari/emitters/slack.rb +20 -2
- data/lib/mihari/emitters/the_hive.rb +16 -3
- data/lib/mihari/emitters/webhook.rb +18 -3
- data/lib/mihari/enrichers/ipinfo.rb +38 -0
- data/lib/mihari/mixins/autonomous_system.rb +19 -0
- data/lib/mihari/mixins/disallowed_data_value.rb +1 -1
- data/lib/mihari/models/alert.rb +28 -10
- data/lib/mihari/models/artifact.rb +94 -0
- data/lib/mihari/models/autonomous_system.rb +28 -0
- data/lib/mihari/models/dns.rb +55 -0
- data/lib/mihari/models/geolocation.rb +29 -0
- data/lib/mihari/models/reverse_dns.rb +26 -0
- data/lib/mihari/models/whois.rb +119 -0
- data/lib/mihari/schemas/configuration.rb +1 -0
- data/lib/mihari/schemas/rule.rb +2 -15
- data/lib/mihari/serializers/alert.rb +6 -4
- data/lib/mihari/serializers/artifact.rb +11 -2
- data/lib/mihari/serializers/autonomous_system.rb +9 -0
- data/lib/mihari/serializers/dns.rb +11 -0
- data/lib/mihari/serializers/geolocation.rb +11 -0
- data/lib/mihari/serializers/reverse_dns.rb +11 -0
- data/lib/mihari/serializers/tag.rb +4 -2
- data/lib/mihari/serializers/whois.rb +11 -0
- data/lib/mihari/structs/censys.rb +92 -0
- data/lib/mihari/structs/ipinfo.rb +36 -0
- data/lib/mihari/structs/onyphe.rb +47 -0
- data/lib/mihari/structs/shodan.rb +53 -0
- data/lib/mihari/type_checker.rb +9 -9
- data/lib/mihari/types.rb +21 -0
- data/lib/mihari/version.rb +1 -1
- data/lib/mihari/web/app.rb +2 -0
- data/lib/mihari/web/controllers/alerts_controller.rb +3 -4
- data/lib/mihari/web/controllers/artifacts_controller.rb +73 -3
- data/lib/mihari/web/controllers/ip_address_controller.rb +21 -0
- data/lib/mihari/web/controllers/sources_controller.rb +2 -2
- data/lib/mihari/web/controllers/tags_controller.rb +3 -1
- data/lib/mihari/web/public/index.html +1 -1
- data/lib/mihari/web/public/redoc-static.html +14 -11
- data/lib/mihari/web/public/static/fonts/fa-brands-400.1a575a41.woff +0 -0
- data/lib/mihari/web/public/static/fonts/fa-brands-400.513aa607.ttf +0 -0
- data/lib/mihari/web/public/static/fonts/fa-brands-400.592643a8.eot +0 -0
- data/lib/mihari/web/public/static/fonts/fa-brands-400.ed311c7a.woff2 +0 -0
- data/lib/mihari/web/public/static/fonts/fa-regular-400.766913e6.ttf +0 -0
- data/lib/mihari/web/public/static/fonts/fa-regular-400.b0e2db3b.eot +0 -0
- data/lib/mihari/web/public/static/fonts/fa-regular-400.b91d376b.woff2 +0 -0
- data/lib/mihari/web/public/static/fonts/fa-regular-400.d1d7e3b4.woff +0 -0
- data/lib/mihari/web/public/static/fonts/fa-solid-900.0c6bfc66.eot +0 -0
- data/lib/mihari/web/public/static/fonts/fa-solid-900.b9625119.ttf +0 -0
- data/lib/mihari/web/public/static/fonts/fa-solid-900.d745348d.woff +0 -0
- data/lib/mihari/web/public/static/fonts/fa-solid-900.d824df7e.woff2 +0 -0
- data/lib/mihari/web/public/static/img/fa-brands-400.1d5619cd.svg +3717 -0
- data/lib/mihari/web/public/static/img/fa-regular-400.c5d109be.svg +801 -0
- data/lib/mihari/web/public/static/img/fa-solid-900.37bc7099.svg +5034 -0
- data/lib/mihari/web/public/static/js/app.06d5cf1c.js +36 -0
- data/lib/mihari/web/public/static/js/app.06d5cf1c.js.map +1 -0
- data/lib/mihari/web/public/static/js/app.8e3e5150.js +36 -0
- data/lib/mihari/web/public/static/js/app.8e3e5150.js.map +1 -0
- data/lib/mihari/web/public/static/js/app.b5914c39.js +36 -0
- data/lib/mihari/web/public/static/js/app.b5914c39.js.map +1 -0
- data/lib/mihari.rb +30 -4
- data/mihari.gemspec +10 -1
- data/sig/lib/mihari/analyzers/base.rbs +90 -0
- data/sig/lib/mihari/analyzers/basic.rbs +17 -0
- data/sig/lib/mihari/analyzers/binaryedge.rbs +25 -0
- data/sig/lib/mihari/analyzers/censys.rbs +38 -0
- data/sig/lib/mihari/analyzers/circl.rbs +29 -0
- data/sig/lib/mihari/analyzers/crtsh.rbs +19 -0
- data/sig/lib/mihari/analyzers/dnpedia.rbs +18 -0
- data/sig/lib/mihari/analyzers/dnstwister.rbs +27 -0
- data/sig/lib/mihari/analyzers/onyphe.rbs +33 -0
- data/sig/lib/mihari/analyzers/otx.rbs +33 -0
- data/sig/lib/mihari/analyzers/passivetotal.rbs +33 -0
- data/sig/lib/mihari/analyzers/pulsedive.rbs +27 -0
- data/sig/lib/mihari/analyzers/rule.rbs +68 -0
- data/sig/lib/mihari/analyzers/securitytrails.rbs +33 -0
- data/sig/lib/mihari/analyzers/shodan.rbs +33 -0
- data/sig/lib/mihari/analyzers/spyse.rbs +29 -0
- data/sig/lib/mihari/analyzers/urlscan.rbs +28 -0
- data/sig/lib/mihari/analyzers/virustotal.rbs +31 -0
- data/sig/lib/mihari/analyzers/zoomeye.rbs +33 -0
- data/sig/lib/mihari/cli/analyzer.rbs +39 -0
- data/sig/lib/mihari/cli/base.rbs +11 -0
- data/sig/lib/mihari/cli/init.rbs +7 -0
- data/sig/lib/mihari/cli/main.rbs +9 -0
- data/sig/lib/mihari/cli/mixins/utils.rbs +50 -0
- data/sig/lib/mihari/cli/validator.rbs +7 -0
- data/sig/lib/mihari/commands/binaryedge.rbs +7 -0
- data/sig/lib/mihari/commands/censys.rbs +7 -0
- data/sig/lib/mihari/commands/circl.rbs +7 -0
- data/sig/lib/mihari/commands/crtsh.rbs +7 -0
- data/sig/lib/mihari/commands/dnpedia.rbs +7 -0
- data/sig/lib/mihari/commands/dnstwister.rbs +7 -0
- data/sig/lib/mihari/commands/init.rbs +11 -0
- data/sig/lib/mihari/commands/json.rbs +7 -0
- data/sig/lib/mihari/commands/onyphe.rbs +7 -0
- data/sig/lib/mihari/commands/otx.rbs +7 -0
- data/sig/lib/mihari/commands/passivetotal.rbs +7 -0
- data/sig/lib/mihari/commands/pulsedive.rbs +7 -0
- data/sig/lib/mihari/commands/search.rbs +35 -0
- data/sig/lib/mihari/commands/securitytrails.rbs +7 -0
- data/sig/lib/mihari/commands/shodan.rbs +7 -0
- data/sig/lib/mihari/commands/spyse.rbs +7 -0
- data/sig/lib/mihari/commands/urlscan.rbs +7 -0
- data/sig/lib/mihari/commands/validator.rbs +11 -0
- data/sig/lib/mihari/commands/virustotal.rbs +7 -0
- data/sig/lib/mihari/commands/web.rbs +7 -0
- data/sig/lib/mihari/commands/zoomeye.rbs +7 -0
- data/sig/lib/mihari/constants.rbs +3 -0
- data/sig/lib/mihari/database.rbs +25 -0
- data/sig/lib/mihari/emitters/base.rbs +18 -0
- data/sig/lib/mihari/emitters/database.rbs +9 -0
- data/sig/lib/mihari/emitters/misp.rbs +28 -0
- data/sig/lib/mihari/emitters/slack.rbs +58 -0
- data/sig/lib/mihari/emitters/stdout.rbs +9 -0
- data/sig/lib/mihari/emitters/the_hive.rbs +24 -0
- data/sig/lib/mihari/emitters/webhook.rbs +20 -0
- data/sig/lib/mihari/enrichers/ipinfo.rbs +14 -0
- data/sig/lib/mihari/errors.rbs +10 -0
- data/sig/lib/mihari/mixins/autonomous_system.rbs +14 -0
- data/sig/lib/mihari/mixins/configurable.rbs +26 -0
- data/sig/lib/mihari/mixins/configuration.rbs +45 -0
- data/sig/lib/mihari/mixins/disallowed_data_value.rbs +25 -0
- data/sig/lib/mihari/mixins/hash.rbs +14 -0
- data/sig/lib/mihari/mixins/refang.rbs +14 -0
- data/sig/lib/mihari/mixins/retriable.rbs +15 -0
- data/sig/lib/mihari/mixins/rule.rbs +41 -0
- data/sig/lib/mihari/models/alert.rbs +46 -0
- data/sig/lib/mihari/models/artifact.rbs +65 -0
- data/sig/lib/mihari/models/autonomous_system.rbs +14 -0
- data/sig/lib/mihari/models/dns.rbs +19 -0
- data/sig/lib/mihari/models/geolocation.rbs +15 -0
- data/sig/lib/mihari/models/reverse_dns.rbs +14 -0
- data/sig/lib/mihari/models/tag.rbs +5 -0
- data/sig/lib/mihari/models/tagging.rbs +4 -0
- data/sig/lib/mihari/models/whois.rbs +66 -0
- data/sig/lib/mihari/notifiers/base.rbs +18 -0
- data/sig/lib/mihari/notifiers/exception_notifier.rbs +75 -0
- data/sig/lib/mihari/notifiers/slack.rbs +50 -0
- data/sig/lib/mihari/status.rbs +25 -0
- data/sig/lib/mihari/structs/censys.rbs +50 -0
- data/sig/lib/mihari/structs/ipinfo.rbs +17 -0
- data/sig/lib/mihari/structs/onyphe.rbs +25 -0
- data/sig/lib/mihari/structs/shodan.rbs +28 -0
- data/sig/lib/mihari/type_checker.rbs +48 -0
- data/sig/lib/mihari/types.rbs +17 -0
- data/sig/lib/mihari/version.rbs +3 -0
- data/sig/lib/mihari/web/app.rbs +5 -0
- data/sig/lib/mihari.rbs +57 -0
- metadata +259 -5
@@ -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
|
data/sig/lib/mihari.rbs
ADDED
@@ -0,0 +1,57 @@
|
|
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
|
+
#
|
46
|
+
# Load configuration from YAML file
|
47
|
+
#
|
48
|
+
# @param [String] path Path to YAML file
|
49
|
+
#
|
50
|
+
# @return [nil]
|
51
|
+
#
|
52
|
+
def self.load_config_from_yaml: (String path) -> void
|
53
|
+
end
|
54
|
+
|
55
|
+
class Object
|
56
|
+
def truthy?: (untyped value) -> bool
|
57
|
+
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.
|
4
|
+
version: 3.7.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: 2021-
|
11
|
+
date: 2021-09-03 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.
|
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.
|
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
|
@@ -402,6 +444,20 @@ dependencies:
|
|
402
444
|
- - "~>"
|
403
445
|
- !ruby/object:Gem::Version
|
404
446
|
version: '3.0'
|
447
|
+
- !ruby/object:Gem::Dependency
|
448
|
+
name: dry-struct
|
449
|
+
requirement: !ruby/object:Gem::Requirement
|
450
|
+
requirements:
|
451
|
+
- - "~>"
|
452
|
+
- !ruby/object:Gem::Version
|
453
|
+
version: '1.4'
|
454
|
+
type: :runtime
|
455
|
+
prerelease: false
|
456
|
+
version_requirements: !ruby/object:Gem::Requirement
|
457
|
+
requirements:
|
458
|
+
- - "~>"
|
459
|
+
- !ruby/object:Gem::Version
|
460
|
+
version: '1.4'
|
405
461
|
- !ruby/object:Gem::Dependency
|
406
462
|
name: dry-validation
|
407
463
|
requirement: !ruby/object:Gem::Requirement
|
@@ -444,6 +500,20 @@ dependencies:
|
|
444
500
|
- - "~>"
|
445
501
|
- !ruby/object:Gem::Version
|
446
502
|
version: '1.0'
|
503
|
+
- !ruby/object:Gem::Dependency
|
504
|
+
name: http
|
505
|
+
requirement: !ruby/object:Gem::Requirement
|
506
|
+
requirements:
|
507
|
+
- - "~>"
|
508
|
+
- !ruby/object:Gem::Version
|
509
|
+
version: '5.0'
|
510
|
+
type: :runtime
|
511
|
+
prerelease: false
|
512
|
+
version_requirements: !ruby/object:Gem::Requirement
|
513
|
+
requirements:
|
514
|
+
- - "~>"
|
515
|
+
- !ruby/object:Gem::Version
|
516
|
+
version: '5.0'
|
447
517
|
- !ruby/object:Gem::Dependency
|
448
518
|
name: launchy
|
449
519
|
requirement: !ruby/object:Gem::Requirement
|
@@ -472,6 +542,20 @@ dependencies:
|
|
472
542
|
- - "~>"
|
473
543
|
- !ruby/object:Gem::Version
|
474
544
|
version: '0.1'
|
545
|
+
- !ruby/object:Gem::Dependency
|
546
|
+
name: memist
|
547
|
+
requirement: !ruby/object:Gem::Requirement
|
548
|
+
requirements:
|
549
|
+
- - "~>"
|
550
|
+
- !ruby/object:Gem::Version
|
551
|
+
version: '2.0'
|
552
|
+
type: :runtime
|
553
|
+
prerelease: false
|
554
|
+
version_requirements: !ruby/object:Gem::Requirement
|
555
|
+
requirements:
|
556
|
+
- - "~>"
|
557
|
+
- !ruby/object:Gem::Version
|
558
|
+
version: '2.0'
|
475
559
|
- !ruby/object:Gem::Dependency
|
476
560
|
name: misp
|
477
561
|
requirement: !ruby/object:Gem::Requirement
|
@@ -500,6 +584,20 @@ dependencies:
|
|
500
584
|
- - "~>"
|
501
585
|
- !ruby/object:Gem::Version
|
502
586
|
version: '2.0'
|
587
|
+
- !ruby/object:Gem::Dependency
|
588
|
+
name: normalize_country
|
589
|
+
requirement: !ruby/object:Gem::Requirement
|
590
|
+
requirements:
|
591
|
+
- - '='
|
592
|
+
- !ruby/object:Gem::Version
|
593
|
+
version: '0.3'
|
594
|
+
type: :runtime
|
595
|
+
prerelease: false
|
596
|
+
version_requirements: !ruby/object:Gem::Requirement
|
597
|
+
requirements:
|
598
|
+
- - '='
|
599
|
+
- !ruby/object:Gem::Version
|
600
|
+
version: '0.3'
|
503
601
|
- !ruby/object:Gem::Dependency
|
504
602
|
name: onyphe
|
505
603
|
requirement: !ruby/object:Gem::Requirement
|
@@ -836,6 +934,34 @@ dependencies:
|
|
836
934
|
- - "~>"
|
837
935
|
- !ruby/object:Gem::Version
|
838
936
|
version: '1.1'
|
937
|
+
- !ruby/object:Gem::Dependency
|
938
|
+
name: whois
|
939
|
+
requirement: !ruby/object:Gem::Requirement
|
940
|
+
requirements:
|
941
|
+
- - "~>"
|
942
|
+
- !ruby/object:Gem::Version
|
943
|
+
version: '5.0'
|
944
|
+
type: :runtime
|
945
|
+
prerelease: false
|
946
|
+
version_requirements: !ruby/object:Gem::Requirement
|
947
|
+
requirements:
|
948
|
+
- - "~>"
|
949
|
+
- !ruby/object:Gem::Version
|
950
|
+
version: '5.0'
|
951
|
+
- !ruby/object:Gem::Dependency
|
952
|
+
name: whois-parser
|
953
|
+
requirement: !ruby/object:Gem::Requirement
|
954
|
+
requirements:
|
955
|
+
- - "~>"
|
956
|
+
- !ruby/object:Gem::Version
|
957
|
+
version: '1.2'
|
958
|
+
type: :runtime
|
959
|
+
prerelease: false
|
960
|
+
version_requirements: !ruby/object:Gem::Requirement
|
961
|
+
requirements:
|
962
|
+
- - "~>"
|
963
|
+
- !ruby/object:Gem::Version
|
964
|
+
version: '1.2'
|
839
965
|
- !ruby/object:Gem::Dependency
|
840
966
|
name: zoomeye-rb
|
841
967
|
requirement: !ruby/object:Gem::Requirement
|
@@ -862,6 +988,7 @@ files:
|
|
862
988
|
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
863
989
|
- ".github/workflows/test.yml"
|
864
990
|
- ".gitignore"
|
991
|
+
- ".gitmodules"
|
865
992
|
- ".overcommit.yml"
|
866
993
|
- ".rspec"
|
867
994
|
- ".standard.yml"
|
@@ -869,6 +996,7 @@ files:
|
|
869
996
|
- LICENSE
|
870
997
|
- README.md
|
871
998
|
- Rakefile
|
999
|
+
- Steepfile
|
872
1000
|
- bin/console
|
873
1001
|
- bin/setup
|
874
1002
|
- build_frontend.sh
|
@@ -932,7 +1060,7 @@ files:
|
|
932
1060
|
- lib/mihari/commands/virustotal.rb
|
933
1061
|
- lib/mihari/commands/web.rb
|
934
1062
|
- lib/mihari/commands/zoomeye.rb
|
935
|
-
- lib/mihari/
|
1063
|
+
- lib/mihari/constants.rb
|
936
1064
|
- lib/mihari/database.rb
|
937
1065
|
- lib/mihari/emitters/base.rb
|
938
1066
|
- lib/mihari/emitters/database.rb
|
@@ -941,7 +1069,9 @@ files:
|
|
941
1069
|
- lib/mihari/emitters/stdout.rb
|
942
1070
|
- lib/mihari/emitters/the_hive.rb
|
943
1071
|
- lib/mihari/emitters/webhook.rb
|
1072
|
+
- lib/mihari/enrichers/ipinfo.rb
|
944
1073
|
- lib/mihari/errors.rb
|
1074
|
+
- lib/mihari/mixins/autonomous_system.rb
|
945
1075
|
- lib/mihari/mixins/configurable.rb
|
946
1076
|
- lib/mihari/mixins/configuration.rb
|
947
1077
|
- lib/mihari/mixins/disallowed_data_value.rb
|
@@ -951,8 +1081,13 @@ files:
|
|
951
1081
|
- lib/mihari/mixins/rule.rb
|
952
1082
|
- lib/mihari/models/alert.rb
|
953
1083
|
- lib/mihari/models/artifact.rb
|
1084
|
+
- lib/mihari/models/autonomous_system.rb
|
1085
|
+
- lib/mihari/models/dns.rb
|
1086
|
+
- lib/mihari/models/geolocation.rb
|
1087
|
+
- lib/mihari/models/reverse_dns.rb
|
954
1088
|
- lib/mihari/models/tag.rb
|
955
1089
|
- lib/mihari/models/tagging.rb
|
1090
|
+
- lib/mihari/models/whois.rb
|
956
1091
|
- lib/mihari/notifiers/base.rb
|
957
1092
|
- lib/mihari/notifiers/exception_notifier.rb
|
958
1093
|
- lib/mihari/notifiers/slack.rb
|
@@ -962,10 +1097,20 @@ files:
|
|
962
1097
|
- lib/mihari/schemas/rule.rb
|
963
1098
|
- lib/mihari/serializers/alert.rb
|
964
1099
|
- lib/mihari/serializers/artifact.rb
|
1100
|
+
- lib/mihari/serializers/autonomous_system.rb
|
1101
|
+
- lib/mihari/serializers/dns.rb
|
1102
|
+
- lib/mihari/serializers/geolocation.rb
|
1103
|
+
- lib/mihari/serializers/reverse_dns.rb
|
965
1104
|
- lib/mihari/serializers/tag.rb
|
1105
|
+
- lib/mihari/serializers/whois.rb
|
966
1106
|
- lib/mihari/status.rb
|
1107
|
+
- lib/mihari/structs/censys.rb
|
1108
|
+
- lib/mihari/structs/ipinfo.rb
|
1109
|
+
- lib/mihari/structs/onyphe.rb
|
1110
|
+
- lib/mihari/structs/shodan.rb
|
967
1111
|
- lib/mihari/templates/rule.yml.erb
|
968
1112
|
- lib/mihari/type_checker.rb
|
1113
|
+
- lib/mihari/types.rb
|
969
1114
|
- lib/mihari/version.rb
|
970
1115
|
- lib/mihari/web/app.rb
|
971
1116
|
- lib/mihari/web/controllers/alerts_controller.rb
|
@@ -974,6 +1119,7 @@ files:
|
|
974
1119
|
- lib/mihari/web/controllers/base_controller.rb
|
975
1120
|
- lib/mihari/web/controllers/command_controller.rb
|
976
1121
|
- lib/mihari/web/controllers/config_controller.rb
|
1122
|
+
- lib/mihari/web/controllers/ip_address_controller.rb
|
977
1123
|
- lib/mihari/web/controllers/sources_controller.rb
|
978
1124
|
- lib/mihari/web/controllers/tags_controller.rb
|
979
1125
|
- lib/mihari/web/helpers/json.rb
|
@@ -981,28 +1127,136 @@ files:
|
|
981
1127
|
- lib/mihari/web/public/redoc-static.html
|
982
1128
|
- lib/mihari/web/public/static/favicon.ico
|
983
1129
|
- lib/mihari/web/public/static/fonts/fa-brands-400.099a9556.woff
|
1130
|
+
- lib/mihari/web/public/static/fonts/fa-brands-400.1a575a41.woff
|
984
1131
|
- lib/mihari/web/public/static/fonts/fa-brands-400.30cc681d.eot
|
985
1132
|
- lib/mihari/web/public/static/fonts/fa-brands-400.3b89dd10.ttf
|
1133
|
+
- lib/mihari/web/public/static/fonts/fa-brands-400.513aa607.ttf
|
1134
|
+
- lib/mihari/web/public/static/fonts/fa-brands-400.592643a8.eot
|
1135
|
+
- lib/mihari/web/public/static/fonts/fa-brands-400.ed311c7a.woff2
|
986
1136
|
- lib/mihari/web/public/static/fonts/fa-brands-400.f7307680.woff2
|
987
1137
|
- lib/mihari/web/public/static/fonts/fa-regular-400.1f77739c.ttf
|
988
1138
|
- lib/mihari/web/public/static/fonts/fa-regular-400.7124eb50.woff
|
989
1139
|
- lib/mihari/web/public/static/fonts/fa-regular-400.7630483d.eot
|
1140
|
+
- lib/mihari/web/public/static/fonts/fa-regular-400.766913e6.ttf
|
1141
|
+
- lib/mihari/web/public/static/fonts/fa-regular-400.b0e2db3b.eot
|
1142
|
+
- lib/mihari/web/public/static/fonts/fa-regular-400.b91d376b.woff2
|
1143
|
+
- lib/mihari/web/public/static/fonts/fa-regular-400.d1d7e3b4.woff
|
990
1144
|
- lib/mihari/web/public/static/fonts/fa-regular-400.f0f82301.woff2
|
1145
|
+
- lib/mihari/web/public/static/fonts/fa-solid-900.0c6bfc66.eot
|
991
1146
|
- lib/mihari/web/public/static/fonts/fa-solid-900.1042e8ca.eot
|
992
1147
|
- lib/mihari/web/public/static/fonts/fa-solid-900.605ed792.ttf
|
993
1148
|
- lib/mihari/web/public/static/fonts/fa-solid-900.9fe5a17c.woff
|
1149
|
+
- lib/mihari/web/public/static/fonts/fa-solid-900.b9625119.ttf
|
1150
|
+
- lib/mihari/web/public/static/fonts/fa-solid-900.d745348d.woff
|
1151
|
+
- lib/mihari/web/public/static/fonts/fa-solid-900.d824df7e.woff2
|
994
1152
|
- lib/mihari/web/public/static/fonts/fa-solid-900.e8a427e1.woff2
|
1153
|
+
- lib/mihari/web/public/static/img/fa-brands-400.1d5619cd.svg
|
995
1154
|
- lib/mihari/web/public/static/img/fa-brands-400.ba7ed552.svg
|
996
1155
|
- lib/mihari/web/public/static/img/fa-regular-400.0bb42845.svg
|
1156
|
+
- lib/mihari/web/public/static/img/fa-regular-400.c5d109be.svg
|
997
1157
|
- lib/mihari/web/public/static/img/fa-solid-900.376c1f97.svg
|
1158
|
+
- lib/mihari/web/public/static/img/fa-solid-900.37bc7099.svg
|
1159
|
+
- lib/mihari/web/public/static/js/app.06d5cf1c.js
|
1160
|
+
- lib/mihari/web/public/static/js/app.06d5cf1c.js.map
|
998
1161
|
- lib/mihari/web/public/static/js/app.365f1907.js
|
999
1162
|
- lib/mihari/web/public/static/js/app.365f1907.js.map
|
1163
|
+
- lib/mihari/web/public/static/js/app.8e3e5150.js
|
1164
|
+
- lib/mihari/web/public/static/js/app.8e3e5150.js.map
|
1000
1165
|
- lib/mihari/web/public/static/js/app.ab213f7c.js
|
1001
1166
|
- lib/mihari/web/public/static/js/app.ab213f7c.js.map
|
1167
|
+
- lib/mihari/web/public/static/js/app.b5914c39.js
|
1168
|
+
- lib/mihari/web/public/static/js/app.b5914c39.js.map
|
1002
1169
|
- lib/mihari/web/public/static/js/app.cccddb2b.js
|
1003
1170
|
- lib/mihari/web/public/static/js/app.cccddb2b.js.map
|
1004
1171
|
- mihari.gemspec
|
1005
1172
|
- renovate.json
|
1173
|
+
- sig/lib/mihari.rbs
|
1174
|
+
- sig/lib/mihari/analyzers/base.rbs
|
1175
|
+
- sig/lib/mihari/analyzers/basic.rbs
|
1176
|
+
- sig/lib/mihari/analyzers/binaryedge.rbs
|
1177
|
+
- sig/lib/mihari/analyzers/censys.rbs
|
1178
|
+
- sig/lib/mihari/analyzers/circl.rbs
|
1179
|
+
- sig/lib/mihari/analyzers/crtsh.rbs
|
1180
|
+
- sig/lib/mihari/analyzers/dnpedia.rbs
|
1181
|
+
- sig/lib/mihari/analyzers/dnstwister.rbs
|
1182
|
+
- sig/lib/mihari/analyzers/onyphe.rbs
|
1183
|
+
- sig/lib/mihari/analyzers/otx.rbs
|
1184
|
+
- sig/lib/mihari/analyzers/passivetotal.rbs
|
1185
|
+
- sig/lib/mihari/analyzers/pulsedive.rbs
|
1186
|
+
- sig/lib/mihari/analyzers/rule.rbs
|
1187
|
+
- sig/lib/mihari/analyzers/securitytrails.rbs
|
1188
|
+
- sig/lib/mihari/analyzers/shodan.rbs
|
1189
|
+
- sig/lib/mihari/analyzers/spyse.rbs
|
1190
|
+
- sig/lib/mihari/analyzers/urlscan.rbs
|
1191
|
+
- sig/lib/mihari/analyzers/virustotal.rbs
|
1192
|
+
- sig/lib/mihari/analyzers/zoomeye.rbs
|
1193
|
+
- sig/lib/mihari/cli/analyzer.rbs
|
1194
|
+
- sig/lib/mihari/cli/base.rbs
|
1195
|
+
- sig/lib/mihari/cli/init.rbs
|
1196
|
+
- sig/lib/mihari/cli/main.rbs
|
1197
|
+
- sig/lib/mihari/cli/mixins/utils.rbs
|
1198
|
+
- sig/lib/mihari/cli/validator.rbs
|
1199
|
+
- sig/lib/mihari/commands/binaryedge.rbs
|
1200
|
+
- sig/lib/mihari/commands/censys.rbs
|
1201
|
+
- sig/lib/mihari/commands/circl.rbs
|
1202
|
+
- sig/lib/mihari/commands/crtsh.rbs
|
1203
|
+
- sig/lib/mihari/commands/dnpedia.rbs
|
1204
|
+
- sig/lib/mihari/commands/dnstwister.rbs
|
1205
|
+
- sig/lib/mihari/commands/init.rbs
|
1206
|
+
- sig/lib/mihari/commands/json.rbs
|
1207
|
+
- sig/lib/mihari/commands/onyphe.rbs
|
1208
|
+
- sig/lib/mihari/commands/otx.rbs
|
1209
|
+
- sig/lib/mihari/commands/passivetotal.rbs
|
1210
|
+
- sig/lib/mihari/commands/pulsedive.rbs
|
1211
|
+
- sig/lib/mihari/commands/search.rbs
|
1212
|
+
- sig/lib/mihari/commands/securitytrails.rbs
|
1213
|
+
- sig/lib/mihari/commands/shodan.rbs
|
1214
|
+
- sig/lib/mihari/commands/spyse.rbs
|
1215
|
+
- sig/lib/mihari/commands/urlscan.rbs
|
1216
|
+
- sig/lib/mihari/commands/validator.rbs
|
1217
|
+
- sig/lib/mihari/commands/virustotal.rbs
|
1218
|
+
- sig/lib/mihari/commands/web.rbs
|
1219
|
+
- sig/lib/mihari/commands/zoomeye.rbs
|
1220
|
+
- sig/lib/mihari/constants.rbs
|
1221
|
+
- sig/lib/mihari/database.rbs
|
1222
|
+
- sig/lib/mihari/emitters/base.rbs
|
1223
|
+
- sig/lib/mihari/emitters/database.rbs
|
1224
|
+
- sig/lib/mihari/emitters/misp.rbs
|
1225
|
+
- sig/lib/mihari/emitters/slack.rbs
|
1226
|
+
- sig/lib/mihari/emitters/stdout.rbs
|
1227
|
+
- sig/lib/mihari/emitters/the_hive.rbs
|
1228
|
+
- sig/lib/mihari/emitters/webhook.rbs
|
1229
|
+
- sig/lib/mihari/enrichers/ipinfo.rbs
|
1230
|
+
- sig/lib/mihari/errors.rbs
|
1231
|
+
- sig/lib/mihari/mixins/autonomous_system.rbs
|
1232
|
+
- sig/lib/mihari/mixins/configurable.rbs
|
1233
|
+
- sig/lib/mihari/mixins/configuration.rbs
|
1234
|
+
- sig/lib/mihari/mixins/disallowed_data_value.rbs
|
1235
|
+
- sig/lib/mihari/mixins/hash.rbs
|
1236
|
+
- sig/lib/mihari/mixins/refang.rbs
|
1237
|
+
- sig/lib/mihari/mixins/retriable.rbs
|
1238
|
+
- sig/lib/mihari/mixins/rule.rbs
|
1239
|
+
- sig/lib/mihari/models/alert.rbs
|
1240
|
+
- sig/lib/mihari/models/artifact.rbs
|
1241
|
+
- sig/lib/mihari/models/autonomous_system.rbs
|
1242
|
+
- sig/lib/mihari/models/dns.rbs
|
1243
|
+
- sig/lib/mihari/models/geolocation.rbs
|
1244
|
+
- sig/lib/mihari/models/reverse_dns.rbs
|
1245
|
+
- sig/lib/mihari/models/tag.rbs
|
1246
|
+
- sig/lib/mihari/models/tagging.rbs
|
1247
|
+
- sig/lib/mihari/models/whois.rbs
|
1248
|
+
- sig/lib/mihari/notifiers/base.rbs
|
1249
|
+
- sig/lib/mihari/notifiers/exception_notifier.rbs
|
1250
|
+
- sig/lib/mihari/notifiers/slack.rbs
|
1251
|
+
- sig/lib/mihari/status.rbs
|
1252
|
+
- sig/lib/mihari/structs/censys.rbs
|
1253
|
+
- sig/lib/mihari/structs/ipinfo.rbs
|
1254
|
+
- sig/lib/mihari/structs/onyphe.rbs
|
1255
|
+
- sig/lib/mihari/structs/shodan.rbs
|
1256
|
+
- sig/lib/mihari/type_checker.rbs
|
1257
|
+
- sig/lib/mihari/types.rbs
|
1258
|
+
- sig/lib/mihari/version.rbs
|
1259
|
+
- sig/lib/mihari/web/app.rbs
|
1006
1260
|
homepage: https://github.com/ninoseki/mihari
|
1007
1261
|
licenses:
|
1008
1262
|
- MIT
|