mihari 5.7.1 → 5.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mihari/cli/main.rb +2 -0
- data/lib/mihari/clients/base.rb +23 -1
- data/lib/mihari/clients/binaryedge.rb +1 -3
- data/lib/mihari/clients/censys.rb +1 -2
- data/lib/mihari/clients/crtsh.rb +2 -3
- data/lib/mihari/clients/dnstwister.rb +1 -2
- data/lib/mihari/clients/fofa.rb +1 -3
- data/lib/mihari/clients/greynoise.rb +1 -2
- data/lib/mihari/clients/hunterhow.rb +1 -2
- data/lib/mihari/clients/misp.rb +1 -2
- data/lib/mihari/clients/onyphe.rb +1 -2
- data/lib/mihari/clients/otx.rb +2 -14
- data/lib/mihari/clients/passivetotal.rb +3 -16
- data/lib/mihari/clients/publsedive.rb +2 -17
- data/lib/mihari/clients/securitytrails.rb +3 -25
- data/lib/mihari/clients/shodan.rb +1 -2
- data/lib/mihari/clients/the_hive.rb +1 -2
- data/lib/mihari/clients/urlscan.rb +1 -2
- data/lib/mihari/clients/virustotal.rb +3 -17
- data/lib/mihari/clients/zoomeye.rb +9 -19
- data/lib/mihari/commands/alert.rb +11 -11
- data/lib/mihari/commands/database.rb +4 -1
- data/lib/mihari/commands/mixins.rb +11 -0
- data/lib/mihari/commands/search.rb +15 -15
- data/lib/mihari/constants.rb +1 -1
- data/lib/mihari/database.rb +1 -1
- data/lib/mihari/http.rb +13 -11
- data/lib/mihari/version.rb +1 -1
- data/lib/mihari/web/middleware/error_notification_adapter.rb +8 -3
- data/lib/mihari/web/public/assets/{index-07fafab5.js → index-ec641cb0.js} +44 -44
- data/lib/mihari/web/public/index.html +1 -1
- data/lib/mihari/web/public/redoc-static.html +400 -400
- data/lib/mihari.rb +0 -1
- data/mihari.gemspec +4 -4
- data/mkdocs.yml +14 -8
- metadata +13 -13
- data/lib/mihari/mixins/error_notification.rb +0 -21
data/lib/mihari.rb
CHANGED
@@ -53,7 +53,6 @@ require "mihari/config"
|
|
53
53
|
require "mihari/mixins/autonomous_system"
|
54
54
|
require "mihari/mixins/configurable"
|
55
55
|
require "mihari/mixins/falsepositive"
|
56
|
-
require "mihari/mixins/error_notification"
|
57
56
|
require "mihari/mixins/refang"
|
58
57
|
require "mihari/mixins/retriable"
|
59
58
|
|
data/mihari.gemspec
CHANGED
@@ -67,7 +67,7 @@ Gem::Specification.new do |spec|
|
|
67
67
|
spec.add_development_dependency "solargraph", "~> 0.49"
|
68
68
|
end
|
69
69
|
|
70
|
-
spec.add_dependency "activerecord", "7.1.
|
70
|
+
spec.add_dependency "activerecord", "7.1.2"
|
71
71
|
spec.add_dependency "addressable", "2.8.5"
|
72
72
|
spec.add_dependency "anyway_config", "2.5.4"
|
73
73
|
spec.add_dependency "awrence", "2.0.1"
|
@@ -95,13 +95,13 @@ Gem::Specification.new do |spec|
|
|
95
95
|
spec.add_dependency "rack", "3.0.8"
|
96
96
|
spec.add_dependency "rack-cors", "2.0.1"
|
97
97
|
spec.add_dependency "rackup", "2.1.0"
|
98
|
-
spec.add_dependency "semantic_logger", "4.
|
99
|
-
spec.add_dependency "sentry-ruby", "5.
|
98
|
+
spec.add_dependency "semantic_logger", "4.15.0"
|
99
|
+
spec.add_dependency "sentry-ruby", "5.13.0"
|
100
100
|
spec.add_dependency "slack-notifier", "2.4.0"
|
101
101
|
spec.add_dependency "sqlite3", "1.6.8"
|
102
102
|
spec.add_dependency "thor", "1.3.0"
|
103
103
|
spec.add_dependency "thor-hollaback", "0.2.1"
|
104
104
|
spec.add_dependency "uuidtools", "2.2.0"
|
105
|
-
spec.add_dependency "whois", "5.1.
|
105
|
+
spec.add_dependency "whois", "5.1.1"
|
106
106
|
spec.add_dependency "whois-parser", "2.0.0"
|
107
107
|
end
|
data/mkdocs.yml
CHANGED
@@ -16,14 +16,16 @@ nav:
|
|
16
16
|
- Usage: usage.md
|
17
17
|
- Configuration: configuration.md
|
18
18
|
- Tips:
|
19
|
-
- Docker: docker.md
|
20
|
-
- GitHub Actions: github_actions.md
|
21
|
-
-
|
19
|
+
- Docker: tips/docker.md
|
20
|
+
- GitHub Actions: tips/github_actions.md
|
21
|
+
- Superset: tips/superset.md
|
22
|
+
- Alternatives: tips/alternatives.md
|
22
23
|
- References:
|
23
|
-
- Analyzers:
|
24
|
-
- Enrichers:
|
25
|
-
- Emitters:
|
26
|
-
-
|
24
|
+
- Analyzers: analyzers/index.md
|
25
|
+
- Enrichers: enrichers/index.md
|
26
|
+
- Emitters: emitters/index.md
|
27
|
+
- Database: database.md
|
28
|
+
- Tags: tags.md
|
27
29
|
|
28
30
|
markdown_extensions:
|
29
31
|
- toc:
|
@@ -33,4 +35,8 @@ markdown_extensions:
|
|
33
35
|
- pymdownx.extra
|
34
36
|
- pymdownx.highlight
|
35
37
|
- pymdownx.magiclink
|
36
|
-
- pymdownx.superfences
|
38
|
+
- pymdownx.superfences:
|
39
|
+
custom_fences:
|
40
|
+
- name: mermaid
|
41
|
+
class: mermaid
|
42
|
+
format: !!python/name:pymdownx.superfences.fence_code_format
|
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.7.
|
4
|
+
version: 5.7.2
|
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-11-
|
11
|
+
date: 2023-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -324,14 +324,14 @@ dependencies:
|
|
324
324
|
requirements:
|
325
325
|
- - '='
|
326
326
|
- !ruby/object:Gem::Version
|
327
|
-
version: 7.1.
|
327
|
+
version: 7.1.2
|
328
328
|
type: :runtime
|
329
329
|
prerelease: false
|
330
330
|
version_requirements: !ruby/object:Gem::Requirement
|
331
331
|
requirements:
|
332
332
|
- - '='
|
333
333
|
- !ruby/object:Gem::Version
|
334
|
-
version: 7.1.
|
334
|
+
version: 7.1.2
|
335
335
|
- !ruby/object:Gem::Dependency
|
336
336
|
name: addressable
|
337
337
|
requirement: !ruby/object:Gem::Requirement
|
@@ -716,28 +716,28 @@ dependencies:
|
|
716
716
|
requirements:
|
717
717
|
- - '='
|
718
718
|
- !ruby/object:Gem::Version
|
719
|
-
version: 4.
|
719
|
+
version: 4.15.0
|
720
720
|
type: :runtime
|
721
721
|
prerelease: false
|
722
722
|
version_requirements: !ruby/object:Gem::Requirement
|
723
723
|
requirements:
|
724
724
|
- - '='
|
725
725
|
- !ruby/object:Gem::Version
|
726
|
-
version: 4.
|
726
|
+
version: 4.15.0
|
727
727
|
- !ruby/object:Gem::Dependency
|
728
728
|
name: sentry-ruby
|
729
729
|
requirement: !ruby/object:Gem::Requirement
|
730
730
|
requirements:
|
731
731
|
- - '='
|
732
732
|
- !ruby/object:Gem::Version
|
733
|
-
version: 5.
|
733
|
+
version: 5.13.0
|
734
734
|
type: :runtime
|
735
735
|
prerelease: false
|
736
736
|
version_requirements: !ruby/object:Gem::Requirement
|
737
737
|
requirements:
|
738
738
|
- - '='
|
739
739
|
- !ruby/object:Gem::Version
|
740
|
-
version: 5.
|
740
|
+
version: 5.13.0
|
741
741
|
- !ruby/object:Gem::Dependency
|
742
742
|
name: slack-notifier
|
743
743
|
requirement: !ruby/object:Gem::Requirement
|
@@ -814,14 +814,14 @@ dependencies:
|
|
814
814
|
requirements:
|
815
815
|
- - '='
|
816
816
|
- !ruby/object:Gem::Version
|
817
|
-
version: 5.1.
|
817
|
+
version: 5.1.1
|
818
818
|
type: :runtime
|
819
819
|
prerelease: false
|
820
820
|
version_requirements: !ruby/object:Gem::Requirement
|
821
821
|
requirements:
|
822
822
|
- - '='
|
823
823
|
- !ruby/object:Gem::Version
|
824
|
-
version: 5.1.
|
824
|
+
version: 5.1.1
|
825
825
|
- !ruby/object:Gem::Dependency
|
826
826
|
name: whois-parser
|
827
827
|
requirement: !ruby/object:Gem::Requirement
|
@@ -907,6 +907,7 @@ files:
|
|
907
907
|
- lib/mihari/clients/zoomeye.rb
|
908
908
|
- lib/mihari/commands/alert.rb
|
909
909
|
- lib/mihari/commands/database.rb
|
910
|
+
- lib/mihari/commands/mixins.rb
|
910
911
|
- lib/mihari/commands/rule.rb
|
911
912
|
- lib/mihari/commands/search.rb
|
912
913
|
- lib/mihari/commands/version.rb
|
@@ -945,7 +946,6 @@ files:
|
|
945
946
|
- lib/mihari/http.rb
|
946
947
|
- lib/mihari/mixins/autonomous_system.rb
|
947
948
|
- lib/mihari/mixins/configurable.rb
|
948
|
-
- lib/mihari/mixins/error_notification.rb
|
949
949
|
- lib/mihari/mixins/falsepositive.rb
|
950
950
|
- lib/mihari/mixins/refang.rb
|
951
951
|
- lib/mihari/mixins/retriable.rb
|
@@ -1001,8 +1001,8 @@ files:
|
|
1001
1001
|
- lib/mihari/web/endpoints/tags.rb
|
1002
1002
|
- lib/mihari/web/middleware/connection_adapter.rb
|
1003
1003
|
- lib/mihari/web/middleware/error_notification_adapter.rb
|
1004
|
-
- lib/mihari/web/public/assets/index-07fafab5.js
|
1005
1004
|
- lib/mihari/web/public/assets/index-56fc2187.css
|
1005
|
+
- lib/mihari/web/public/assets/index-ec641cb0.js
|
1006
1006
|
- lib/mihari/web/public/assets/mode-yaml-24faa242.js
|
1007
1007
|
- lib/mihari/web/public/favicon.ico
|
1008
1008
|
- lib/mihari/web/public/index.html
|
@@ -1031,7 +1031,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1031
1031
|
- !ruby/object:Gem::Version
|
1032
1032
|
version: '0'
|
1033
1033
|
requirements: []
|
1034
|
-
rubygems_version: 3.4.
|
1034
|
+
rubygems_version: 3.4.21
|
1035
1035
|
signing_key:
|
1036
1036
|
specification_version: 4
|
1037
1037
|
summary: A query aggregator for OSINT based threat hunting
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Mihari
|
4
|
-
module Mixins
|
5
|
-
#
|
6
|
-
# Error notification mixin
|
7
|
-
#
|
8
|
-
module ErrorNotification
|
9
|
-
#
|
10
|
-
# Send an exception notification if there is any error in a block
|
11
|
-
#
|
12
|
-
def with_error_notification
|
13
|
-
yield
|
14
|
-
rescue StandardError => e
|
15
|
-
Mihari.logger.error e
|
16
|
-
|
17
|
-
Sentry.capture_exception(e) if Sentry.initialized?
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|