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

Commit 189fe11

Browse files
author
Samuel Hassine
committed
[client] Check killchainIds before
1 parent 8e94bfd commit 189fe11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pycti/entities/opencti_attack_pattern.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ def create(self, **kwargs):
384384
# Check kill chain phase
385385
if (
386386
kill_chain_phases is not None
387+
and "killChainPhasesIds" in object_result
387388
and len(object_result["killChainPhasesIds"]) > 0
388389
):
389390
is_kill_chain_phase_match = False

0 commit comments

Comments
 (0)