mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-01 18:55:31 +00:00
Avoiding duplicate entries for stix2 files with multiple malware definitions
This commit is contained in:
parent
6b8a23ae10
commit
c4416d406a
|
@ -91,7 +91,9 @@ class Command(object):
|
|||
}
|
||||
|
||||
for coll in self.iocs.ioc_collections:
|
||||
info["ioc_files"].append(coll.get("stix2_file_path", ""))
|
||||
ioc_file_path = coll.get("stix2_file_path", "")
|
||||
if ioc_file_path and ioc_file_path not in info["ioc_files"]:
|
||||
info["ioc_files"].append(ioc_file_path)
|
||||
|
||||
# TODO: Revisit if setting this from environment variable is good
|
||||
# enough.
|
||||
|
|
Loading…
Reference in New Issue
Block a user