mihari 5.4.5 → 5.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/analyzers/binaryedge.md +10 -5
- data/docs/analyzers/censys.md +14 -6
- data/docs/analyzers/circl.md +13 -5
- data/docs/analyzers/crtsh.md +7 -6
- data/docs/analyzers/dnstwister.md +5 -3
- data/docs/analyzers/feed.md +44 -20
- data/docs/analyzers/greynoise.md +10 -5
- data/docs/analyzers/hunterhow.md +15 -7
- data/docs/analyzers/onyphe.md +9 -4
- data/docs/analyzers/otx.md +10 -5
- data/docs/analyzers/passivetotal.md +17 -5
- data/docs/analyzers/pulsedive.md +9 -4
- data/docs/analyzers/securitytrails.md +9 -4
- data/docs/analyzers/shodan.md +10 -5
- data/docs/analyzers/urlscan.md +10 -5
- data/docs/analyzers/virustotal.md +10 -5
- data/docs/analyzers/virustotal_intelligence.md +11 -4
- data/docs/analyzers/zoomeye.md +14 -6
- data/docs/configuration.md +29 -29
- data/docs/emitters/hive.md +13 -5
- data/docs/emitters/misp.md +10 -5
- data/docs/emitters/slack.md +10 -0
- data/docs/emitters/webhook.md +19 -19
- data/docs/requirements.md +8 -15
- data/docs/rule.md +20 -14
- data/frontend/package-lock.json +156 -159
- data/frontend/package.json +10 -10
- data/lib/mihari/analyzers/feed.rb +7 -7
- data/lib/mihari/database.rb +2 -2
- data/lib/mihari/version.rb +1 -1
- data/mihari.gemspec +4 -2
- data/requirements.txt +1 -1
- metadata +35 -7
data/frontend/package.json
CHANGED
@@ -17,8 +17,8 @@
|
|
17
17
|
"@fortawesome/fontawesome-svg-core": "^6.4.2",
|
18
18
|
"@fortawesome/free-solid-svg-icons": "^6.4.2",
|
19
19
|
"@fortawesome/vue-fontawesome": "^3.0.3",
|
20
|
-
"@vueuse/core": "^10.
|
21
|
-
"@vueuse/router": "^10.
|
20
|
+
"@vueuse/core": "^10.5.0",
|
21
|
+
"@vueuse/router": "^10.5.0",
|
22
22
|
"ace-builds": "^1.28.0",
|
23
23
|
"axios": "^1.5.1",
|
24
24
|
"bulma": "^0.9.4",
|
@@ -38,19 +38,19 @@
|
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
40
|
"@redocly/cli": "1.2.0",
|
41
|
-
"@rushstack/eslint-patch": "^1.5.
|
41
|
+
"@rushstack/eslint-patch": "^1.5.1",
|
42
42
|
"@tsconfig/node20": "^20.1.2",
|
43
43
|
"@types/jsdom": "^21.1.3",
|
44
|
-
"@types/node": "^20.
|
44
|
+
"@types/node": "^20.8.3",
|
45
45
|
"@types/url-parse": "^1.4.9",
|
46
|
-
"@typescript-eslint/eslint-plugin": "^6.7.
|
47
|
-
"@typescript-eslint/parser": "^6.7.
|
48
|
-
"@vitejs/plugin-vue": "^4.
|
46
|
+
"@typescript-eslint/eslint-plugin": "^6.7.4",
|
47
|
+
"@typescript-eslint/parser": "^6.7.4",
|
48
|
+
"@vitejs/plugin-vue": "^4.4.0",
|
49
49
|
"@vue/eslint-config-prettier": "^8.0.0",
|
50
50
|
"@vue/eslint-config-typescript": "^12.0.0",
|
51
51
|
"@vue/test-utils": "2.4.1",
|
52
52
|
"@vue/tsconfig": "^0.4.0",
|
53
|
-
"eslint": "^8.
|
53
|
+
"eslint": "^8.51.0",
|
54
54
|
"eslint-config-prettier": "^9.0.0",
|
55
55
|
"eslint-plugin-prettier": "^5.0.0",
|
56
56
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
@@ -60,8 +60,8 @@
|
|
60
60
|
"npm-run-all": "^4.1.5",
|
61
61
|
"prettier": "^3.0.3",
|
62
62
|
"typescript": "~5.2.2",
|
63
|
-
"vite": "^4.4.
|
63
|
+
"vite": "^4.4.11",
|
64
64
|
"vitest": "^0.34.6",
|
65
|
-
"vue-tsc": "^1.8.
|
65
|
+
"vue-tsc": "^1.8.16"
|
66
66
|
}
|
67
67
|
}
|
@@ -15,7 +15,7 @@ module Mihari
|
|
15
15
|
# @return [Hash, nil]
|
16
16
|
attr_reader :params
|
17
17
|
|
18
|
-
# @return [Hash
|
18
|
+
# @return [Hash]
|
19
19
|
attr_reader :headers
|
20
20
|
|
21
21
|
# @return [String]
|
@@ -31,17 +31,17 @@ module Mihari
|
|
31
31
|
# @param [String] query
|
32
32
|
# @param [Hash, nil] options
|
33
33
|
# @param [String] method
|
34
|
-
# @param [Hash] headers
|
35
|
-
# @param [Hash] params
|
36
|
-
# @param [Hash] json
|
37
|
-
# @param [Hash] data
|
34
|
+
# @param [Hash, nil] headers
|
35
|
+
# @param [Hash, nil] params
|
36
|
+
# @param [Hash, nil] json
|
37
|
+
# @param [Hash, nil] data
|
38
38
|
# @param [String] selector
|
39
39
|
#
|
40
|
-
def initialize(query, options: nil, method: "GET", headers:
|
40
|
+
def initialize(query, options: nil, method: "GET", headers: nil, params: nil, json: nil, data: nil, selector: "")
|
41
41
|
super(query, options: options)
|
42
42
|
|
43
43
|
@method = method
|
44
|
-
@headers = headers
|
44
|
+
@headers = headers || {}
|
45
45
|
@params = params
|
46
46
|
@json = json
|
47
47
|
@data = data
|
data/lib/mihari/database.rb
CHANGED
@@ -13,7 +13,7 @@ def development_env?
|
|
13
13
|
env == "development"
|
14
14
|
end
|
15
15
|
|
16
|
-
class V5Schema < ActiveRecord::Migration[7.
|
16
|
+
class V5Schema < ActiveRecord::Migration[7.1]
|
17
17
|
def change
|
18
18
|
create_table :rules, id: :string, if_not_exists: true do |t|
|
19
19
|
t.string :title, null: false
|
@@ -162,7 +162,7 @@ module Mihari
|
|
162
162
|
def close
|
163
163
|
return unless ActiveRecord::Base.connected?
|
164
164
|
|
165
|
-
ActiveRecord::Base.clear_active_connections!
|
165
|
+
ActiveRecord::Base.connection_handler.clear_active_connections!
|
166
166
|
end
|
167
167
|
|
168
168
|
def with_db_connection
|
data/lib/mihari/version.rb
CHANGED
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"
|
@@ -49,6 +50,7 @@ Gem::Specification.new do |spec|
|
|
49
50
|
spec.add_development_dependency "rspec", "~> 3.12"
|
50
51
|
spec.add_development_dependency "simplecov-lcov", "~> 0.8"
|
51
52
|
spec.add_development_dependency "standard", "~> 1.31"
|
53
|
+
spec.add_development_dependency "test-prof", "~> 1.2"
|
52
54
|
spec.add_development_dependency "timecop", "~> 0.9"
|
53
55
|
spec.add_development_dependency "vcr", "~> 6.2"
|
54
56
|
spec.add_development_dependency "webmock", "~> 3.19"
|
@@ -58,12 +60,12 @@ Gem::Specification.new do |spec|
|
|
58
60
|
spec.add_development_dependency "solargraph", "~> 0.49"
|
59
61
|
end
|
60
62
|
|
61
|
-
spec.add_dependency "activerecord", "7.0
|
63
|
+
spec.add_dependency "activerecord", "7.1.0"
|
62
64
|
spec.add_dependency "addressable", "2.8.5"
|
63
65
|
spec.add_dependency "awrence", "2.0.1"
|
64
66
|
spec.add_dependency "dotenv", "2.8.1"
|
65
67
|
spec.add_dependency "dry-container", "0.11.0"
|
66
|
-
spec.add_dependency "dry-files", "1.0.
|
68
|
+
spec.add_dependency "dry-files", "1.0.2"
|
67
69
|
spec.add_dependency "dry-monads", "1.6.0"
|
68
70
|
spec.add_dependency "dry-schema", "1.13.3"
|
69
71
|
spec.add_dependency "dry-struct", "1.6.0"
|
data/requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
mkdocs==1.5.3
|
2
|
-
mkdocs-material==9.4.
|
2
|
+
mkdocs-material==9.4.3
|
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.
|
4
|
+
version: 5.4.7
|
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
|
+
date: 2023-10-08 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
|
@@ -192,6 +206,20 @@ dependencies:
|
|
192
206
|
- - "~>"
|
193
207
|
- !ruby/object:Gem::Version
|
194
208
|
version: '1.31'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: test-prof
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - "~>"
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '1.2'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - "~>"
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '1.2'
|
195
223
|
- !ruby/object:Gem::Dependency
|
196
224
|
name: timecop
|
197
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -268,14 +296,14 @@ dependencies:
|
|
268
296
|
requirements:
|
269
297
|
- - '='
|
270
298
|
- !ruby/object:Gem::Version
|
271
|
-
version: 7.0
|
299
|
+
version: 7.1.0
|
272
300
|
type: :runtime
|
273
301
|
prerelease: false
|
274
302
|
version_requirements: !ruby/object:Gem::Requirement
|
275
303
|
requirements:
|
276
304
|
- - '='
|
277
305
|
- !ruby/object:Gem::Version
|
278
|
-
version: 7.0
|
306
|
+
version: 7.1.0
|
279
307
|
- !ruby/object:Gem::Dependency
|
280
308
|
name: addressable
|
281
309
|
requirement: !ruby/object:Gem::Requirement
|
@@ -338,14 +366,14 @@ dependencies:
|
|
338
366
|
requirements:
|
339
367
|
- - '='
|
340
368
|
- !ruby/object:Gem::Version
|
341
|
-
version: 1.0.
|
369
|
+
version: 1.0.2
|
342
370
|
type: :runtime
|
343
371
|
prerelease: false
|
344
372
|
version_requirements: !ruby/object:Gem::Requirement
|
345
373
|
requirements:
|
346
374
|
- - '='
|
347
375
|
- !ruby/object:Gem::Version
|
348
|
-
version: 1.0.
|
376
|
+
version: 1.0.2
|
349
377
|
- !ruby/object:Gem::Dependency
|
350
378
|
name: dry-monads
|
351
379
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1082,7 +1110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1082
1110
|
- !ruby/object:Gem::Version
|
1083
1111
|
version: '0'
|
1084
1112
|
requirements: []
|
1085
|
-
rubygems_version: 3.4.
|
1113
|
+
rubygems_version: 3.4.20
|
1086
1114
|
signing_key:
|
1087
1115
|
specification_version: 4
|
1088
1116
|
summary: A query aggregator for OSINT based threat hunting
|