Skip to content

Commit

Permalink
[client] Fix threat actor resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelHassine committed Jul 12, 2023
1 parent 4e97549 commit fc5cd18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pycti/utils/opencti_stix2.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def extract_embedded_relationships(
self.mapping_cache[generated_ref_id] = generated_ref_id
external_references_ids.append(external_reference_id)
if stix_object["type"] in [
"threat-actor-group",
"threat-actor",
"intrusion-set",
"campaign",
"incident",
Expand Down Expand Up @@ -1846,6 +1846,7 @@ def prepare_export(
"Language": self.opencti.language.read,
"Malware": self.opencti.malware.read,
"Malware-Analysis": self.opencti.malware_analysis.read,
"Threat-Actor": self.opencti.threat_actor.read,
"Threat-Actor-Group": self.opencti.threat_actor_group.read,
"Threat-Actor-Individual": self.opencti.threat_actor_individual.read,
"Tool": self.opencti.tool.read,
Expand Down Expand Up @@ -2015,6 +2016,7 @@ def export_entity(
"Language": self.opencti.language.read,
"Malware": self.opencti.malware.read,
"Malware-Analysis": self.opencti.malware_analysis.read,
"Threat-Actor": self.opencti.threat_actor.read,
"Threat-Actor-Group": self.opencti.threat_actor_group.read,
"Threat-Actor-Individual": self.opencti.threat_actor_individual.read,
"Tool": self.opencti.tool.read,
Expand Down Expand Up @@ -2159,6 +2161,7 @@ def export_list(
"Language": self.opencti.language.list,
"Malware": self.opencti.malware.list,
"Malware-Analysis": self.opencti.malware_analysis.list,
"Threat-Actor": self.opencti.threat_actor_group.list,
"Threat-Actor-Group": self.opencti.threat_actor_group.list,
"Threat-Actor-Individual": self.opencti.threat_actor_individual.list,
"Tool": self.opencti.tool.list,
Expand Down

0 comments on commit fc5cd18

Please sign in to comment.