mihari 5.5.0 → 5.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/analyzers/passivetotal.md +4 -0
- data/docs/analyzers/securitytrails.md +4 -0
- data/docs/analyzers/virustotal.md +4 -0
- data/docs/analyzers/virustotal_intelligence.md +4 -0
- data/docs/emitters/hive.md +1 -1
- data/docs/emitters/slack.md +0 -5
- data/docs/rule.md +1 -4
- data/docs/usage.md +5 -2
- data/frontend/src/components/ErrorMessage.vue +0 -1
- data/frontend/src/components/alert/Alerts.vue +0 -1
- data/frontend/src/components/alert/AlertsWithPagination.vue +0 -1
- data/frontend/src/components/alert/AlertsWrapper.vue +0 -6
- data/frontend/src/components/alert/Form.vue +1 -3
- data/frontend/src/components/artifact/Artifact.vue +0 -17
- data/frontend/src/components/artifact/ArtifactWrapper.vue +0 -2
- data/frontend/src/components/artifact/WhoisRecord.vue +0 -3
- data/frontend/src/components/config/ConfigsWrapper.vue +0 -2
- data/frontend/src/components/rule/EditRule.vue +0 -3
- data/frontend/src/components/rule/EditRuleWrapper.vue +0 -2
- data/frontend/src/components/rule/Form.vue +1 -3
- data/frontend/src/components/rule/NewRule.vue +0 -3
- data/frontend/src/components/rule/Rule.vue +1 -7
- data/frontend/src/components/rule/RuleWrapper.vue +0 -2
- data/frontend/src/components/rule/RulesWrapper.vue +0 -6
- data/frontend/src/swagger.yaml +254 -254
- data/lib/mihari/analyzers/base.rb +4 -41
- data/lib/mihari/analyzers/passivetotal.rb +9 -0
- data/lib/mihari/analyzers/pulsedive.rb +1 -1
- data/lib/mihari/analyzers/rule.rb +24 -59
- data/lib/mihari/analyzers/securitytrails.rb +9 -0
- data/lib/mihari/analyzers/virustotal.rb +11 -2
- data/lib/mihari/analyzers/virustotal_intelligence.rb +16 -0
- data/lib/mihari/analyzers/zoomeye.rb +2 -2
- data/lib/mihari/base.rb +69 -0
- data/lib/mihari/cli/main.rb +36 -0
- data/lib/mihari/commands/alert.rb +6 -33
- data/lib/mihari/commands/rule.rb +7 -12
- data/lib/mihari/commands/search.rb +10 -38
- data/lib/mihari/constants.rb +3 -3
- data/lib/mihari/emitters/base.rb +3 -33
- data/lib/mihari/emitters/database.rb +1 -1
- data/lib/mihari/enrichers/base.rb +2 -33
- data/lib/mihari/enrichers/google_public_dns.rb +9 -0
- data/lib/mihari/schemas/analyzer.rb +24 -24
- data/lib/mihari/schemas/emitter.rb +6 -13
- data/lib/mihari/schemas/enricher.rb +4 -11
- data/lib/mihari/schemas/options.rb +27 -0
- data/lib/mihari/schemas/rule.rb +2 -2
- data/lib/mihari/services/alert_runner.rb +1 -1
- data/lib/mihari/services/rule_runner.rb +1 -11
- data/lib/mihari/types.rb +1 -14
- data/lib/mihari/version.rb +1 -1
- data/lib/mihari/web/public/assets/{index-33165282.css → index-56fc2187.css} +1 -1
- data/lib/mihari/web/public/assets/{index-b5d817a3.js → index-9cc489e6.js} +2 -2
- data/lib/mihari/web/public/index.html +2 -2
- data/lib/mihari.rb +67 -37
- data/mihari.gemspec +1 -0
- metadata +20 -4
data/frontend/src/swagger.yaml
CHANGED
@@ -2,432 +2,432 @@
|
|
2
2
|
info:
|
3
3
|
title: Mihari API
|
4
4
|
version: 0.0.1
|
5
|
-
swagger:
|
5
|
+
swagger: "2.0"
|
6
6
|
produces:
|
7
|
-
- application/json
|
7
|
+
- application/json
|
8
8
|
tags:
|
9
|
-
- name: alerts
|
10
|
-
|
11
|
-
- name: artifacts
|
12
|
-
|
13
|
-
- name: configs
|
14
|
-
|
15
|
-
- name: ip_addresses
|
16
|
-
|
17
|
-
- name: rules
|
18
|
-
|
19
|
-
- name: tags
|
20
|
-
|
9
|
+
- name: alerts
|
10
|
+
description: Operations about alerts
|
11
|
+
- name: artifacts
|
12
|
+
description: Operations about artifacts
|
13
|
+
- name: configs
|
14
|
+
description: Operations about configs
|
15
|
+
- name: ip_addresses
|
16
|
+
description: Operations about ip_addresses
|
17
|
+
- name: rules
|
18
|
+
description: Operations about rules
|
19
|
+
- name: tags
|
20
|
+
description: Operations about tags
|
21
21
|
paths:
|
22
22
|
"/api/alerts":
|
23
23
|
post:
|
24
24
|
summary: Create an alert
|
25
25
|
description: Create an alert
|
26
26
|
produces:
|
27
|
-
|
27
|
+
- application/json
|
28
28
|
consumes:
|
29
|
-
|
29
|
+
- application/json
|
30
30
|
parameters:
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
31
|
+
- name: postApiAlerts
|
32
|
+
in: body
|
33
|
+
required: true
|
34
|
+
schema:
|
35
|
+
"$ref": "#/definitions/postApiAlerts"
|
36
36
|
responses:
|
37
|
-
|
37
|
+
"201":
|
38
38
|
description: Create an alert
|
39
39
|
schema:
|
40
40
|
"$ref": "#/definitions/Mihari_Entities_Alert"
|
41
41
|
tags:
|
42
|
-
|
42
|
+
- alerts
|
43
43
|
get:
|
44
44
|
summary: Search alerts
|
45
45
|
description: Search alerts
|
46
46
|
produces:
|
47
|
-
|
47
|
+
- application/json
|
48
48
|
parameters:
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
49
|
+
- in: query
|
50
|
+
name: page
|
51
|
+
type: integer
|
52
|
+
format: int32
|
53
|
+
default: 1
|
54
|
+
required: false
|
55
|
+
- in: query
|
56
|
+
name: limit
|
57
|
+
type: integer
|
58
|
+
format: int32
|
59
|
+
default: 10
|
60
|
+
required: false
|
61
|
+
- in: query
|
62
|
+
name: artifact
|
63
|
+
type: string
|
64
|
+
required: false
|
65
|
+
- in: query
|
66
|
+
name: rule_id
|
67
|
+
type: string
|
68
|
+
required: false
|
69
|
+
- in: query
|
70
|
+
name: tag
|
71
|
+
type: string
|
72
|
+
required: false
|
73
|
+
- in: query
|
74
|
+
name: fromAt
|
75
|
+
type: string
|
76
|
+
format: date-time
|
77
|
+
required: false
|
78
|
+
- in: query
|
79
|
+
name: toAt
|
80
|
+
type: string
|
81
|
+
format: date-time
|
82
|
+
required: false
|
83
83
|
responses:
|
84
|
-
|
84
|
+
"200":
|
85
85
|
description: Search alerts
|
86
86
|
schema:
|
87
87
|
type: array
|
88
88
|
items:
|
89
89
|
"$ref": "#/definitions/Mihari_Entities_AlertsWithPagination"
|
90
|
-
|
90
|
+
"404":
|
91
91
|
description: Not found
|
92
92
|
schema:
|
93
93
|
"$ref": "#/definitions/Mihari_Entities_Message"
|
94
94
|
tags:
|
95
|
-
|
95
|
+
- alerts
|
96
96
|
"/api/alerts/{id}":
|
97
97
|
delete:
|
98
98
|
summary: Delete an alert
|
99
99
|
description: Delete an alert
|
100
100
|
produces:
|
101
|
-
|
101
|
+
- application/json
|
102
102
|
parameters:
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
103
|
+
- in: path
|
104
|
+
name: id
|
105
|
+
type: integer
|
106
|
+
format: int32
|
107
|
+
required: true
|
108
108
|
responses:
|
109
|
-
|
109
|
+
"200":
|
110
110
|
description: Delete an alert
|
111
111
|
schema:
|
112
112
|
"$ref": "#/definitions/Mihari_Entities_Message"
|
113
|
-
|
113
|
+
"404":
|
114
114
|
description: Not found
|
115
115
|
schema:
|
116
116
|
"$ref": "#/definitions/Mihari_Entities_Message"
|
117
117
|
tags:
|
118
|
-
|
118
|
+
- alerts
|
119
119
|
"/api/artifacts/{id}":
|
120
120
|
delete:
|
121
121
|
summary: Delete an artifact
|
122
122
|
description: Delete an artifact
|
123
123
|
produces:
|
124
|
-
|
124
|
+
- application/json
|
125
125
|
parameters:
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
126
|
+
- in: path
|
127
|
+
name: id
|
128
|
+
type: integer
|
129
|
+
format: int32
|
130
|
+
required: true
|
131
131
|
responses:
|
132
|
-
|
132
|
+
"200":
|
133
133
|
description: Delete an artifact
|
134
134
|
schema:
|
135
135
|
"$ref": "#/definitions/Mihari_Entities_Message"
|
136
|
-
|
136
|
+
"404":
|
137
137
|
description: Not found
|
138
138
|
schema:
|
139
139
|
"$ref": "#/definitions/Mihari_Entities_Message"
|
140
140
|
tags:
|
141
|
-
|
141
|
+
- artifacts
|
142
142
|
get:
|
143
143
|
summary: Get an artifact
|
144
144
|
description: Get an artifact
|
145
145
|
produces:
|
146
|
-
|
146
|
+
- application/json
|
147
147
|
parameters:
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
148
|
+
- in: path
|
149
|
+
name: id
|
150
|
+
type: integer
|
151
|
+
format: int32
|
152
|
+
required: true
|
153
153
|
responses:
|
154
|
-
|
154
|
+
"200":
|
155
155
|
description: Get an artifact
|
156
156
|
schema:
|
157
157
|
"$ref": "#/definitions/Mihari_Entities_Artifact"
|
158
|
-
|
158
|
+
"404":
|
159
159
|
description: Not found
|
160
160
|
schema:
|
161
161
|
"$ref": "#/definitions/Mihari_Entities_Message"
|
162
162
|
tags:
|
163
|
-
|
163
|
+
- artifacts
|
164
164
|
"/api/artifacts/{id}/enrich":
|
165
165
|
get:
|
166
166
|
summary: Enrich an artifact
|
167
167
|
description: Enrich an artifact
|
168
168
|
produces:
|
169
|
-
|
169
|
+
- application/json
|
170
170
|
parameters:
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
171
|
+
- in: path
|
172
|
+
name: id
|
173
|
+
type: integer
|
174
|
+
format: int32
|
175
|
+
required: true
|
176
176
|
responses:
|
177
|
-
|
177
|
+
"200":
|
178
178
|
description: Enrich an artifact
|
179
179
|
schema:
|
180
180
|
"$ref": "#/definitions/Mihari_Entities_Message"
|
181
|
-
|
181
|
+
"404":
|
182
182
|
description: Not found
|
183
183
|
schema:
|
184
184
|
"$ref": "#/definitions/Mihari_Entities_Message"
|
185
185
|
tags:
|
186
|
-
|
186
|
+
- artifacts
|
187
187
|
"/api/configs":
|
188
188
|
get:
|
189
189
|
summary: Get configs
|
190
190
|
description: Get configs
|
191
191
|
produces:
|
192
|
-
|
192
|
+
- application/json
|
193
193
|
responses:
|
194
|
-
|
194
|
+
"200":
|
195
195
|
description: Get configs
|
196
196
|
schema:
|
197
197
|
type: array
|
198
198
|
items:
|
199
199
|
"$ref": "#/definitions/Mihari_Entities_Config"
|
200
200
|
tags:
|
201
|
-
|
201
|
+
- configs
|
202
202
|
"/api/ip_addresses/{ip}":
|
203
203
|
get:
|
204
204
|
summary: Get an IP address
|
205
205
|
description: Get an IP address
|
206
206
|
produces:
|
207
|
-
|
207
|
+
- application/json
|
208
208
|
parameters:
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
209
|
+
- in: path
|
210
|
+
name: ip
|
211
|
+
type: string
|
212
|
+
required: true
|
213
213
|
responses:
|
214
|
-
|
214
|
+
"200":
|
215
215
|
description: Get an IP address
|
216
216
|
schema:
|
217
217
|
"$ref": "#/definitions/Mihari_Entities_IPAddress"
|
218
|
-
|
218
|
+
"404":
|
219
219
|
description: Not found
|
220
220
|
schema:
|
221
221
|
"$ref": "#/definitions/Mihari_Entities_Message"
|
222
222
|
tags:
|
223
|
-
|
223
|
+
- ip_addresses
|
224
224
|
"/api/rules/{id}":
|
225
225
|
delete:
|
226
226
|
summary: Delete a rule
|
227
227
|
description: Delete a rule
|
228
228
|
produces:
|
229
|
-
|
229
|
+
- application/json
|
230
230
|
parameters:
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
231
|
+
- in: path
|
232
|
+
name: id
|
233
|
+
type: string
|
234
|
+
required: true
|
235
235
|
responses:
|
236
|
-
|
236
|
+
"200":
|
237
237
|
description: Delete a rule
|
238
238
|
schema:
|
239
239
|
"$ref": "#/definitions/Mihari_Entities_Message"
|
240
|
-
|
240
|
+
"404":
|
241
241
|
description: Not found
|
242
242
|
schema:
|
243
243
|
"$ref": "#/definitions/Mihari_Entities_Message"
|
244
244
|
tags:
|
245
|
-
|
245
|
+
- rules
|
246
246
|
get:
|
247
247
|
summary: Get a rule
|
248
248
|
description: Get a rule
|
249
249
|
produces:
|
250
|
-
|
250
|
+
- application/json
|
251
251
|
parameters:
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
252
|
+
- in: path
|
253
|
+
name: id
|
254
|
+
type: string
|
255
|
+
required: true
|
256
256
|
responses:
|
257
|
-
|
257
|
+
"200":
|
258
258
|
description: Get a rule
|
259
259
|
schema:
|
260
260
|
"$ref": "#/definitions/Mihari_Entities_Rule"
|
261
|
-
|
261
|
+
"404":
|
262
262
|
description: Not found
|
263
263
|
schema:
|
264
264
|
"$ref": "#/definitions/Mihari_Entities_Message"
|
265
265
|
tags:
|
266
|
-
|
266
|
+
- rules
|
267
267
|
"/api/rules":
|
268
268
|
put:
|
269
269
|
summary: Update a rule
|
270
270
|
description: Update a rule
|
271
271
|
produces:
|
272
|
-
|
272
|
+
- application/json
|
273
273
|
consumes:
|
274
|
-
|
274
|
+
- application/json
|
275
275
|
parameters:
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
276
|
+
- name: putApiRules
|
277
|
+
in: body
|
278
|
+
required: true
|
279
|
+
schema:
|
280
|
+
"$ref": "#/definitions/putApiRules"
|
281
281
|
responses:
|
282
|
-
|
282
|
+
"200":
|
283
283
|
description: Update a rule
|
284
284
|
schema:
|
285
285
|
"$ref": "#/definitions/Mihari_Entities_Rule"
|
286
286
|
tags:
|
287
|
-
|
287
|
+
- rules
|
288
288
|
post:
|
289
289
|
summary: Create a rule
|
290
290
|
description: Create a rule
|
291
291
|
produces:
|
292
|
-
|
292
|
+
- application/json
|
293
293
|
consumes:
|
294
|
-
|
294
|
+
- application/json
|
295
295
|
parameters:
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
296
|
+
- name: postApiRules
|
297
|
+
in: body
|
298
|
+
required: true
|
299
|
+
schema:
|
300
|
+
"$ref": "#/definitions/postApiRules"
|
301
301
|
responses:
|
302
|
-
|
302
|
+
"201":
|
303
303
|
description: Create a rule
|
304
304
|
schema:
|
305
305
|
"$ref": "#/definitions/Mihari_Entities_Rule"
|
306
306
|
tags:
|
307
|
-
|
307
|
+
- rules
|
308
308
|
get:
|
309
309
|
summary: Search rules
|
310
310
|
description: Search rules
|
311
311
|
produces:
|
312
|
-
|
312
|
+
- application/json
|
313
313
|
parameters:
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
314
|
+
- in: query
|
315
|
+
name: page
|
316
|
+
type: integer
|
317
|
+
format: int32
|
318
|
+
default: 1
|
319
|
+
required: false
|
320
|
+
- in: query
|
321
|
+
name: limit
|
322
|
+
type: integer
|
323
|
+
format: int32
|
324
|
+
default: 10
|
325
|
+
required: false
|
326
|
+
- in: query
|
327
|
+
name: title
|
328
|
+
type: string
|
329
|
+
required: false
|
330
|
+
- in: query
|
331
|
+
name: description
|
332
|
+
type: string
|
333
|
+
required: false
|
334
|
+
- in: query
|
335
|
+
name: tag
|
336
|
+
type: string
|
337
|
+
required: false
|
338
|
+
- in: query
|
339
|
+
name: fromAt
|
340
|
+
type: string
|
341
|
+
format: date-time
|
342
|
+
required: false
|
343
|
+
- in: query
|
344
|
+
name: toAt
|
345
|
+
type: string
|
346
|
+
format: date-time
|
347
|
+
required: false
|
348
348
|
responses:
|
349
|
-
|
349
|
+
"200":
|
350
350
|
description: Search rules
|
351
351
|
schema:
|
352
352
|
type: array
|
353
353
|
items:
|
354
354
|
"$ref": "#/definitions/Mihari_Entities_RulesWithPagination"
|
355
|
-
|
355
|
+
"404":
|
356
356
|
description: Not found
|
357
357
|
schema:
|
358
358
|
"$ref": "#/definitions/Mihari_Entities_Message"
|
359
359
|
tags:
|
360
|
-
|
360
|
+
- rules
|
361
361
|
"/api/rules/{id}/run":
|
362
362
|
get:
|
363
363
|
summary: Run a rule
|
364
364
|
description: Run a rule
|
365
365
|
produces:
|
366
|
-
|
366
|
+
- application/json
|
367
367
|
parameters:
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
368
|
+
- in: path
|
369
|
+
name: id
|
370
|
+
type: string
|
371
|
+
required: true
|
372
372
|
responses:
|
373
|
-
|
373
|
+
"200":
|
374
374
|
description: Run a rule
|
375
375
|
schema:
|
376
376
|
"$ref": "#/definitions/Mihari_Entities_Message"
|
377
377
|
tags:
|
378
|
-
|
378
|
+
- rules
|
379
379
|
"/api/rules/ids":
|
380
380
|
get:
|
381
381
|
summary: Get rule IDs
|
382
382
|
description: Get Rule IDs
|
383
383
|
produces:
|
384
|
-
|
384
|
+
- application/json
|
385
385
|
responses:
|
386
|
-
|
386
|
+
"200":
|
387
387
|
description: Get Rule IDs
|
388
388
|
schema:
|
389
389
|
type: array
|
390
390
|
items:
|
391
391
|
"$ref": "#/definitions/Mihari_Entities_RuleIDs"
|
392
392
|
tags:
|
393
|
-
|
393
|
+
- rules
|
394
394
|
"/api/tags/{name}":
|
395
395
|
delete:
|
396
396
|
summary: Delete a tag
|
397
397
|
description: Delete a tag
|
398
398
|
produces:
|
399
|
-
|
399
|
+
- application/json
|
400
400
|
parameters:
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
401
|
+
- in: path
|
402
|
+
name: name
|
403
|
+
type: string
|
404
|
+
required: true
|
405
405
|
responses:
|
406
|
-
|
406
|
+
"200":
|
407
407
|
description: Delete a tag
|
408
408
|
schema:
|
409
409
|
"$ref": "#/definitions/Mihari_Entities_Message"
|
410
|
-
|
410
|
+
"404":
|
411
411
|
description: Not found
|
412
412
|
schema:
|
413
413
|
"$ref": "#/definitions/Mihari_Entities_Message"
|
414
414
|
tags:
|
415
|
-
|
415
|
+
- tags
|
416
416
|
"/api/tags":
|
417
417
|
get:
|
418
418
|
summary: Get tags
|
419
419
|
description: Get tags
|
420
420
|
produces:
|
421
|
-
|
421
|
+
- application/json
|
422
422
|
responses:
|
423
|
-
|
423
|
+
"200":
|
424
424
|
description: Get tags
|
425
425
|
schema:
|
426
426
|
type: array
|
427
427
|
items:
|
428
428
|
"$ref": "#/definitions/Mihari_Entities_Tags"
|
429
429
|
tags:
|
430
|
-
|
430
|
+
- tags
|
431
431
|
definitions:
|
432
432
|
postApiAlerts:
|
433
433
|
type: object
|
@@ -439,8 +439,8 @@ definitions:
|
|
439
439
|
items:
|
440
440
|
type: string
|
441
441
|
required:
|
442
|
-
|
443
|
-
|
442
|
+
- ruleId
|
443
|
+
- artifacts
|
444
444
|
description: Create an alert
|
445
445
|
Mihari_Entities_Alert:
|
446
446
|
type: object
|
@@ -462,10 +462,10 @@ definitions:
|
|
462
462
|
items:
|
463
463
|
"$ref": "#/definitions/Mihari_Entities_Tag"
|
464
464
|
required:
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
465
|
+
- id
|
466
|
+
- ruleId
|
467
|
+
- createdAt
|
468
|
+
- tags
|
469
469
|
description: Mihari_Entities_Alert model
|
470
470
|
Mihari_Entities_BaseArtifact:
|
471
471
|
type: object
|
@@ -484,24 +484,24 @@ definitions:
|
|
484
484
|
items:
|
485
485
|
type: string
|
486
486
|
required:
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
487
|
+
- id
|
488
|
+
- data
|
489
|
+
- dataType
|
490
|
+
- source
|
491
491
|
Mihari_Entities_Tag:
|
492
492
|
type: object
|
493
493
|
properties:
|
494
494
|
name:
|
495
495
|
type: string
|
496
496
|
required:
|
497
|
-
|
497
|
+
- name
|
498
498
|
Mihari_Entities_Message:
|
499
499
|
type: object
|
500
500
|
properties:
|
501
501
|
message:
|
502
502
|
type: string
|
503
503
|
required:
|
504
|
-
|
504
|
+
- message
|
505
505
|
description: Mihari_Entities_Message model
|
506
506
|
Mihari_Entities_AlertsWithPagination:
|
507
507
|
type: object
|
@@ -520,10 +520,10 @@ definitions:
|
|
520
520
|
type: integer
|
521
521
|
format: int32
|
522
522
|
required:
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
523
|
+
- alerts
|
524
|
+
- total
|
525
|
+
- currentPage
|
526
|
+
- pageSize
|
527
527
|
description: Mihari_Entities_AlertsWithPagination model
|
528
528
|
Mihari_Entities_Artifact:
|
529
529
|
type: object
|
@@ -566,10 +566,10 @@ definitions:
|
|
566
566
|
items:
|
567
567
|
"$ref": "#/definitions/Mihari_Entities_Port"
|
568
568
|
required:
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
569
|
+
- id
|
570
|
+
- data
|
571
|
+
- dataType
|
572
|
+
- source
|
573
573
|
description: Mihari_Entities_Artifact model
|
574
574
|
Mihari_Entities_AutonomousSystem:
|
575
575
|
type: object
|
@@ -578,7 +578,7 @@ definitions:
|
|
578
578
|
type: integer
|
579
579
|
format: int32
|
580
580
|
required:
|
581
|
-
|
581
|
+
- asn
|
582
582
|
Mihari_Entities_Geolocation:
|
583
583
|
type: object
|
584
584
|
properties:
|
@@ -587,8 +587,8 @@ definitions:
|
|
587
587
|
countryCode:
|
588
588
|
type: string
|
589
589
|
required:
|
590
|
-
|
591
|
-
|
590
|
+
- country
|
591
|
+
- countryCode
|
592
592
|
Mihari_Entities_WhoisRecord:
|
593
593
|
type: object
|
594
594
|
properties:
|
@@ -610,15 +610,15 @@ definitions:
|
|
610
610
|
items:
|
611
611
|
type: object
|
612
612
|
required:
|
613
|
-
|
614
|
-
|
613
|
+
- domain
|
614
|
+
- contacts
|
615
615
|
Mihari_Entities_ReverseDnsName:
|
616
616
|
type: object
|
617
617
|
properties:
|
618
618
|
name:
|
619
619
|
type: string
|
620
620
|
required:
|
621
|
-
|
621
|
+
- name
|
622
622
|
Mihari_Entities_DnsRecord:
|
623
623
|
type: object
|
624
624
|
properties:
|
@@ -627,15 +627,15 @@ definitions:
|
|
627
627
|
value:
|
628
628
|
type: string
|
629
629
|
required:
|
630
|
-
|
631
|
-
|
630
|
+
- resource
|
631
|
+
- value
|
632
632
|
Mihari_Entities_CPE:
|
633
633
|
type: object
|
634
634
|
properties:
|
635
635
|
cpe:
|
636
636
|
type: string
|
637
637
|
required:
|
638
|
-
|
638
|
+
- cpe
|
639
639
|
Mihari_Entities_Port:
|
640
640
|
type: object
|
641
641
|
properties:
|
@@ -643,7 +643,7 @@ definitions:
|
|
643
643
|
type: integer
|
644
644
|
format: int32
|
645
645
|
required:
|
646
|
-
|
646
|
+
- port
|
647
647
|
Mihari_Entities_Config:
|
648
648
|
type: object
|
649
649
|
properties:
|
@@ -658,10 +658,10 @@ definitions:
|
|
658
658
|
isConfigured:
|
659
659
|
type: boolean
|
660
660
|
required:
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
661
|
+
- name
|
662
|
+
- type
|
663
|
+
- values
|
664
|
+
- isConfigured
|
665
665
|
description: Mihari_Entities_Config model
|
666
666
|
Mihari_Entities_IPAddress:
|
667
667
|
type: object
|
@@ -678,9 +678,9 @@ definitions:
|
|
678
678
|
type: integer
|
679
679
|
format: int32
|
680
680
|
required:
|
681
|
-
|
682
|
-
|
683
|
-
|
681
|
+
- ip
|
682
|
+
- countryCode
|
683
|
+
- loc
|
684
684
|
description: Mihari_Entities_IPAddress model
|
685
685
|
putApiRules:
|
686
686
|
type: object
|
@@ -690,8 +690,8 @@ definitions:
|
|
690
690
|
yaml:
|
691
691
|
type: string
|
692
692
|
required:
|
693
|
-
|
694
|
-
|
693
|
+
- id
|
694
|
+
- yaml
|
695
695
|
description: Update a rule
|
696
696
|
Mihari_Entities_Rule:
|
697
697
|
type: object
|
@@ -715,13 +715,13 @@ definitions:
|
|
715
715
|
items:
|
716
716
|
"$ref": "#/definitions/Mihari_Entities_Tag"
|
717
717
|
required:
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
718
|
+
- id
|
719
|
+
- title
|
720
|
+
- description
|
721
|
+
- yaml
|
722
|
+
- createdAt
|
723
|
+
- updatedAt
|
724
|
+
- tags
|
725
725
|
description: Mihari_Entities_Rule model
|
726
726
|
postApiRules:
|
727
727
|
type: object
|
@@ -729,7 +729,7 @@ definitions:
|
|
729
729
|
yaml:
|
730
730
|
type: string
|
731
731
|
required:
|
732
|
-
|
732
|
+
- yaml
|
733
733
|
description: Create a rule
|
734
734
|
Mihari_Entities_RulesWithPagination:
|
735
735
|
type: object
|
@@ -748,10 +748,10 @@ definitions:
|
|
748
748
|
type: integer
|
749
749
|
format: int32
|
750
750
|
required:
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
751
|
+
- rules
|
752
|
+
- total
|
753
|
+
- currentPage
|
754
|
+
- pageSize
|
755
755
|
description: Mihari_Entities_RulesWithPagination model
|
756
756
|
Mihari_Entities_RuleIDs:
|
757
757
|
type: object
|
@@ -759,7 +759,7 @@ definitions:
|
|
759
759
|
ruleIds:
|
760
760
|
type: string
|
761
761
|
required:
|
762
|
-
|
762
|
+
- ruleIds
|
763
763
|
description: Mihari_Entities_RuleIDs model
|
764
764
|
Mihari_Entities_Tags:
|
765
765
|
type: object
|
@@ -767,5 +767,5 @@ definitions:
|
|
767
767
|
tags:
|
768
768
|
type: string
|
769
769
|
required:
|
770
|
-
|
770
|
+
- tags
|
771
771
|
description: Mihari_Entities_Tags model
|