Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 08dc877

Browse files
committed
[client] is_family is mandatory in STIX2 export
1 parent f988df2 commit 08dc877

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pycti/utils/opencti_stix2.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,6 +1132,11 @@ def generate_export(self, entity: Dict, no_custom_attributes: bool = False) -> D
11321132
entity["region"] = entity["name"]
11331133
entity["entity_type"] = "Location"
11341134

1135+
# Malware
1136+
if entity["entity_type"] == "Malware":
1137+
if "is_family" not in entity or not isinstance(entity["is_family"], bool):
1138+
entity["is_family"] = True
1139+
11351140
# Files
11361141
if entity["entity_type"] == "StixFile":
11371142
entity["entity_type"] = "File"

0 commit comments

Comments
 (0)