mihari 4.7.1 → 4.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/analyzers/rule.rb +0 -1
- data/lib/mihari/commands/init.rb +25 -2
- data/lib/mihari/commands/search.rb +2 -7
- data/lib/mihari/commands/validator.rb +10 -5
- data/lib/mihari/errors.rb +2 -0
- data/lib/mihari/models/alert.rb +6 -1
- data/lib/mihari/models/geolocation.rb +2 -4
- data/lib/mihari/models/port.rb +1 -1
- data/lib/mihari/models/rule.rb +7 -2
- data/lib/mihari/structs/filters.rb +71 -0
- data/lib/mihari/structs/ipinfo.rb +4 -4
- data/lib/mihari/structs/rule.rb +188 -144
- data/lib/mihari/version.rb +1 -1
- data/lib/mihari/web/endpoints/alerts.rb +1 -1
- data/lib/mihari/web/endpoints/rules.rb +13 -4
- data/lib/mihari/web/public/index.html +1 -1
- data/lib/mihari/web/public/redoc-static.html +796 -763
- data/lib/mihari/web/public/static/css/chunk-vendors.5013d549.css +7 -0
- data/lib/mihari/web/public/static/js/app.3ac3bd7a.js +2 -0
- data/lib/mihari/web/public/static/js/app.3ac3bd7a.js.map +1 -0
- data/lib/mihari/web/public/static/js/{chunk-vendors.dde2116c.js → chunk-vendors.37b7208e.js} +6 -6
- data/lib/mihari/web/public/static/js/chunk-vendors.37b7208e.js.map +1 -0
- data/lib/mihari.rb +1 -2
- data/mihari.gemspec +4 -4
- data/sig/lib/mihari/cli/base.rbs +0 -2
- data/sig/lib/mihari/models/alert.rbs +3 -3
- data/sig/lib/mihari/models/rule.rbs +2 -2
- data/sig/lib/mihari/structs/filters.rbs +40 -0
- data/sig/lib/mihari/structs/ipinfo.rbs +2 -2
- data/sig/lib/mihari/structs/rule.rbs +36 -43
- metadata +17 -23
- data/lib/mihari/mixins/rule.rb +0 -84
- data/lib/mihari/structs/alert.rb +0 -44
- data/lib/mihari/web/public/static/css/chunk-vendors.06251949.css +0 -7
- data/lib/mihari/web/public/static/js/app-legacy.9d5c9c3d.js +0 -2
- data/lib/mihari/web/public/static/js/app-legacy.9d5c9c3d.js.map +0 -1
- data/lib/mihari/web/public/static/js/app.823b5af7.js +0 -2
- data/lib/mihari/web/public/static/js/app.823b5af7.js.map +0 -1
- data/lib/mihari/web/public/static/js/chunk-vendors-legacy.b110c129.js +0 -25
- data/lib/mihari/web/public/static/js/chunk-vendors-legacy.b110c129.js.map +0 -1
- data/lib/mihari/web/public/static/js/chunk-vendors.dde2116c.js.map +0 -1
- data/sig/lib/mihari/mixins/rule.rbs +0 -36
- data/sig/lib/mihari/structs/alert.rbs +0 -27
@@ -1,36 +0,0 @@
|
|
1
|
-
module Mihari
|
2
|
-
module Mixins
|
3
|
-
module Rule
|
4
|
-
def load_erb_yaml: (String yaml) -> Hash
|
5
|
-
|
6
|
-
#
|
7
|
-
# Load rule into hash
|
8
|
-
#
|
9
|
-
# @param [String] path_or_id
|
10
|
-
#
|
11
|
-
# @return [Mihari::Structs::Rule::Rule]
|
12
|
-
#
|
13
|
-
def load_rule: (String path_or_id) -> Mihari::Structs::Rule::Rule
|
14
|
-
|
15
|
-
#
|
16
|
-
# Returns a template for rule
|
17
|
-
#
|
18
|
-
# @return [String] A template for rule
|
19
|
-
#
|
20
|
-
def rule_template: () -> String
|
21
|
-
|
22
|
-
def validate_rule!: (Mihari::Structs::Rule::Rule rule) -> nil
|
23
|
-
|
24
|
-
#
|
25
|
-
# Create (blank) rule file
|
26
|
-
#
|
27
|
-
# @param [String] filename
|
28
|
-
# @param [Dry::Files] files
|
29
|
-
# @param [String] template
|
30
|
-
#
|
31
|
-
# @return [nil]
|
32
|
-
#
|
33
|
-
def initialize_rule_yaml: (String filename, ?untyped files, ?template: String template) -> nil
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
module Mihari
|
2
|
-
module Structs
|
3
|
-
module Alert
|
4
|
-
class SearchFilter
|
5
|
-
attr_reader artifact_data: String?
|
6
|
-
attr_reader description: String?
|
7
|
-
attr_reader source: String?
|
8
|
-
attr_reader tag_name: String?
|
9
|
-
attr_reader title: String?
|
10
|
-
attr_reader from_at: DateTime?
|
11
|
-
attr_reader to_at: DateTime?
|
12
|
-
attr_reader asn: Integer?
|
13
|
-
attr_reader dns_record: String?
|
14
|
-
attr_reader reverse_dns_name: String?
|
15
|
-
|
16
|
-
def valid_artifact_filters?: () -> bool
|
17
|
-
end
|
18
|
-
|
19
|
-
class SearchFilterWithPagination
|
20
|
-
attr_reader page: Integer
|
21
|
-
attr_reader limit: Integer
|
22
|
-
|
23
|
-
def without_pagination: () -> Mihari::Structs::Alert::SearchFilter
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|