Skip to content

Commit

Permalink
fix MISP#68 Use UUID from MISP ObjectReference if available
Browse files Browse the repository at this point in the history
  • Loading branch information
gopackgo90 authored Feb 17, 2025
1 parent 7071278 commit d46f74c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions misp_stix_converter/misp2stix/misp_to_stix2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4369,6 +4369,8 @@ def _parse_object_relationships(
'relationship_type': reference['relationship_type'],
'allow_custom': True, 'interoperability': True
}
if reference.get('uuid'):
relationship['id'] = f"reference--{reference['uuid']}"
if reference.get('timestamp'):
reference_timestamp = self._datetime_from_timestamp(
reference['timestamp']
Expand Down

0 comments on commit d46f74c

Please sign in to comment.