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

Commit e8c4d4d

Browse files
committed
[client] Handle stire core
1 parent 7fbf997 commit e8c4d4d

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

pycti/entities/opencti_observed_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def generate_id(object_ids):
216216
data = {"objects": object_ids}
217217
data = canonicalize(data, utf8=False)
218218
id = str(uuid.uuid5(uuid.UUID("00abedb4-aa42-466c-9c01-fed23315a9b7"), data))
219-
return "observed-datae--" + id
219+
return "observed-data--" + id
220220

221221
"""
222222
List ObservedData objects

pycti/utils/opencti_stix2.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -428,14 +428,18 @@ def extract_embedded_relationships(
428428
)
429429
self.mapping_cache[url] = {"id": external_reference_id}
430430
external_references_ids.append(external_reference_id)
431-
if stix_object["type"] in [
432-
"threat-actor",
433-
"intrusion-set",
434-
"campaign",
435-
"incident",
436-
"malware",
437-
"relationship",
438-
] and (types is not None and "external-reference-as-report" in types):
431+
if (
432+
stix_object["type"]
433+
in [
434+
"threat-actor",
435+
"intrusion-set",
436+
"campaign",
437+
"incident",
438+
"malware",
439+
"relationship",
440+
]
441+
and (types is not None and "external-reference-as-report" in types)
442+
):
439443
# Add a corresponding report
440444
# Extract date
441445
try:

0 commit comments

Comments
 (0)