mirror of
https://github.com/mvt-project/mvt.git
synced 2026-10-22 07:08:42 +02:00
move indicator_match to alert object
This commit is contained in:
1 parent
c6837a455a
commit
cc7781e255
6 files changed
+20
-27
No files matched your search
@@ -48,7 +48,7 @@ class TestDumpsysAppopsArtifact:
|
||||
detected_by_ioc = [
|
||||
alert
|
||||
for alert in da.alertstore.alerts
|
||||
if "matched_indicator" in alert.event
|
||||
if alert.matched_indicator is not None
|
||||
]
|
||||
detected_by_permission_heuristic = [
|
||||
alert
|
||||
@@ -62,4 +62,5 @@ class TestDumpsysAppopsArtifact:
|
||||
]
|
||||
assert len(da.alertstore.alerts) == 3
|
||||
assert len(detected_by_ioc) == 1
|
||||
assert detected_by_ioc[0].matched_indicator is not None
|
||||
assert len(detected_by_permission_heuristic) == 2
|
||||
Reference in new issue
Block a user