mihari 7.0.5 → 7.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/mihari.rb CHANGED
@@ -125,6 +125,8 @@ module Mihari
125
125
  end
126
126
 
127
127
  def logger
128
+ SemanticLogger.sync! unless puma?
129
+
128
130
  SemanticLogger.default_level = :info
129
131
  SemanticLogger.add_appender(io: $stderr, formatter: :color)
130
132
  SemanticLogger["Mihari"]
@@ -152,6 +154,15 @@ module Mihari
152
154
  !Mihari.config.sidekiq_redis_url.nil?
153
155
  end
154
156
 
157
+ #
158
+ # @return [Boolean]
159
+ #
160
+ def puma?
161
+ !Puma.stats.nil?
162
+ rescue StandardError
163
+ false
164
+ end
165
+
155
166
  def initialize_sentry
156
167
  return if Mihari.config.sentry_dsn.nil?
157
168
  return if Sentry.initialized?
@@ -296,6 +307,7 @@ require "mihari/services/feed"
296
307
  require "mihari/services/getters"
297
308
  require "mihari/services/initializers"
298
309
  require "mihari/services/proxies"
310
+ require "mihari/services/renderer"
299
311
  require "mihari/services/searchers"
300
312
 
301
313
  # Entities
data/mihari.gemspec CHANGED
@@ -53,9 +53,9 @@ Gem::Specification.new do |spec|
53
53
  spec.add_development_dependency "rerun", "~> 0.14"
54
54
  spec.add_development_dependency "rspec", "~> 3.12"
55
55
  spec.add_development_dependency "rspec-parameterized", "~> 1.0"
56
- spec.add_development_dependency "rubocop-factory_bot", "~> 2.24"
56
+ spec.add_development_dependency "rubocop-factory_bot", "~> 2.25"
57
57
  spec.add_development_dependency "rubocop-rake", "~> 0.6"
58
- spec.add_development_dependency "rubocop-rspec", "~> 2.25"
58
+ spec.add_development_dependency "rubocop-rspec", "~> 2.26"
59
59
  spec.add_development_dependency "rubocop-yard", "~> 0.9"
60
60
  spec.add_development_dependency "simplecov-lcov", "~> 0.8"
61
61
  spec.add_development_dependency "standard", "~> 1.33"
@@ -88,6 +88,7 @@ Gem::Specification.new do |spec|
88
88
  spec.add_dependency "grape-swagger", "2.0.1"
89
89
  spec.add_dependency "grape-swagger-entity", "0.5.2"
90
90
  spec.add_dependency "http", "5.1.1"
91
+ spec.add_dependency "jbuilder", "2.11.5"
91
92
  spec.add_dependency "jr-cli", "0.6.0"
92
93
  spec.add_dependency "launchy", "2.5.2"
93
94
  spec.add_dependency "memo_wise", "1.8.0"
@@ -109,6 +110,8 @@ Gem::Specification.new do |spec|
109
110
  spec.add_dependency "sqlite3", "~> 1.7"
110
111
  spec.add_dependency "thor", "1.3.0"
111
112
  spec.add_dependency "thor-hollaback", "0.2.1"
113
+ spec.add_dependency "tilt", "2.3.0"
114
+ spec.add_dependency "tilt-jbuilder", "0.7.1"
112
115
  spec.add_dependency "uuidtools", "2.2.0"
113
116
  spec.add_dependency "whois", "5.1.1"
114
117
  spec.add_dependency "whois-parser", "2.0.0"
data/mkdocs.yml CHANGED
@@ -27,7 +27,7 @@ nav:
27
27
  - Analyzers: analyzers/index.md
28
28
  - Enrichers: enrichers/index.md
29
29
  - Emitters: emitters/index.md
30
- - Database: database.md
30
+ - Diagrams: diagrams.md
31
31
  - Tags: tags.md
32
32
  - Development: dev.md
33
33
 
@@ -0,0 +1,7 @@
1
+ json.query "submit_ioc"
2
+ json.threat_type "payload_delivery"
3
+ json.ioc_type "domain"
4
+ json.malware "foobar"
5
+ json.confidence_level 100
6
+ json.anonymous 0
7
+ json.iocs artifacts.map(&:data)
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: 7.0.5
4
+ version: 7.1.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: 2024-01-04 00:00:00.000000000 Z
11
+ date: 2024-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: better_errors
@@ -254,14 +254,14 @@ dependencies:
254
254
  requirements:
255
255
  - - "~>"
256
256
  - !ruby/object:Gem::Version
257
- version: '2.24'
257
+ version: '2.25'
258
258
  type: :development
259
259
  prerelease: false
260
260
  version_requirements: !ruby/object:Gem::Requirement
261
261
  requirements:
262
262
  - - "~>"
263
263
  - !ruby/object:Gem::Version
264
- version: '2.24'
264
+ version: '2.25'
265
265
  - !ruby/object:Gem::Dependency
266
266
  name: rubocop-rake
267
267
  requirement: !ruby/object:Gem::Requirement
@@ -282,14 +282,14 @@ dependencies:
282
282
  requirements:
283
283
  - - "~>"
284
284
  - !ruby/object:Gem::Version
285
- version: '2.25'
285
+ version: '2.26'
286
286
  type: :development
287
287
  prerelease: false
288
288
  version_requirements: !ruby/object:Gem::Requirement
289
289
  requirements:
290
290
  - - "~>"
291
291
  - !ruby/object:Gem::Version
292
- version: '2.25'
292
+ version: '2.26'
293
293
  - !ruby/object:Gem::Dependency
294
294
  name: rubocop-yard
295
295
  requirement: !ruby/object:Gem::Requirement
@@ -640,6 +640,20 @@ dependencies:
640
640
  - - '='
641
641
  - !ruby/object:Gem::Version
642
642
  version: 5.1.1
643
+ - !ruby/object:Gem::Dependency
644
+ name: jbuilder
645
+ requirement: !ruby/object:Gem::Requirement
646
+ requirements:
647
+ - - '='
648
+ - !ruby/object:Gem::Version
649
+ version: 2.11.5
650
+ type: :runtime
651
+ prerelease: false
652
+ version_requirements: !ruby/object:Gem::Requirement
653
+ requirements:
654
+ - - '='
655
+ - !ruby/object:Gem::Version
656
+ version: 2.11.5
643
657
  - !ruby/object:Gem::Dependency
644
658
  name: jr-cli
645
659
  requirement: !ruby/object:Gem::Requirement
@@ -934,6 +948,34 @@ dependencies:
934
948
  - - '='
935
949
  - !ruby/object:Gem::Version
936
950
  version: 0.2.1
951
+ - !ruby/object:Gem::Dependency
952
+ name: tilt
953
+ requirement: !ruby/object:Gem::Requirement
954
+ requirements:
955
+ - - '='
956
+ - !ruby/object:Gem::Version
957
+ version: 2.3.0
958
+ type: :runtime
959
+ prerelease: false
960
+ version_requirements: !ruby/object:Gem::Requirement
961
+ requirements:
962
+ - - '='
963
+ - !ruby/object:Gem::Version
964
+ version: 2.3.0
965
+ - !ruby/object:Gem::Dependency
966
+ name: tilt-jbuilder
967
+ requirement: !ruby/object:Gem::Requirement
968
+ requirements:
969
+ - - '='
970
+ - !ruby/object:Gem::Version
971
+ version: 0.7.1
972
+ type: :runtime
973
+ prerelease: false
974
+ version_requirements: !ruby/object:Gem::Requirement
975
+ requirements:
976
+ - - '='
977
+ - !ruby/object:Gem::Version
978
+ version: 0.7.1
937
979
  - !ruby/object:Gem::Dependency
938
980
  name: uuidtools
939
981
  requirement: !ruby/object:Gem::Requirement
@@ -1133,6 +1175,7 @@ files:
1133
1175
  - lib/mihari/services/getters.rb
1134
1176
  - lib/mihari/services/initializers.rb
1135
1177
  - lib/mihari/services/proxies.rb
1178
+ - lib/mihari/services/renderer.rb
1136
1179
  - lib/mihari/services/searchers.rb
1137
1180
  - lib/mihari/sidekiq/application.rb
1138
1181
  - lib/mihari/sidekiq/jobs.rb
@@ -1161,8 +1204,8 @@ files:
1161
1204
  - lib/mihari/web/endpoints/tags.rb
1162
1205
  - lib/mihari/web/middleware/capture_exceptions.rb
1163
1206
  - lib/mihari/web/middleware/connection.rb
1207
+ - lib/mihari/web/public/assets/index-U5u7qHZZ.js
1164
1208
  - lib/mihari/web/public/assets/index-dVaNxqTC.css
1165
- - lib/mihari/web/public/assets/index-geliIfjB.js
1166
1209
  - lib/mihari/web/public/assets/mode-yaml-BC4MIiYj.js
1167
1210
  - lib/mihari/web/public/favicon.ico
1168
1211
  - lib/mihari/web/public/index.html
@@ -1171,6 +1214,7 @@ files:
1171
1214
  - mkdocs.yml
1172
1215
  - renovate.json
1173
1216
  - requirements.txt
1217
+ - test.json.jbuilder
1174
1218
  homepage: https://github.com/ninoseki/mihari
1175
1219
  licenses:
1176
1220
  - MIT