mirror of
https://github.com/MISP/misp-galaxy.git
synced 2024-11-26 16:57:18 +00:00
Add [tidal] relations for associated objects
This commit is contained in:
parent
5062c61620
commit
a0f3ed5873
1 changed files with 22 additions and 8 deletions
|
@ -215,15 +215,22 @@ class GroupCluster(Cluster):
|
|||
)
|
||||
|
||||
for associated_group in entry.get("associated_groups"):
|
||||
meta = AssociatedGroupsMeta(
|
||||
associated_meta = AssociatedGroupsMeta(
|
||||
id=associated_group.get("id"),
|
||||
owner_id=associated_group.get("owner_id"),
|
||||
owner=associated_group.get("owner_name"),
|
||||
)
|
||||
associated_related = []
|
||||
associated_related.append(
|
||||
{
|
||||
"dest-uuid": entry.get("id"),
|
||||
"type": "similar",
|
||||
}
|
||||
)
|
||||
value = ClusterValue(
|
||||
description=associated_group.get("description"),
|
||||
meta=meta,
|
||||
related=[],
|
||||
meta=associated_meta,
|
||||
related=associated_related,
|
||||
uuid=associated_group.get("associated_group_id"),
|
||||
value=associated_group.get("name"),
|
||||
)
|
||||
|
@ -302,15 +309,22 @@ class SoftwareCluster(Cluster):
|
|||
)
|
||||
|
||||
for associated_software in entry.get("associated_software"):
|
||||
meta = AssociatedSoftwareMeta(
|
||||
associated_meta = AssociatedSoftwareMeta(
|
||||
id=associated_software.get("id"),
|
||||
owner_id=associated_software.get("owner_id"),
|
||||
owner=associated_software.get("owner_name"),
|
||||
)
|
||||
associated_related = []
|
||||
associated_related.append(
|
||||
{
|
||||
"dest-uuid": entry.get("id"),
|
||||
"type": "similar",
|
||||
}
|
||||
)
|
||||
value = ClusterValue(
|
||||
description=associated_software.get("description"),
|
||||
meta=meta,
|
||||
related=[],
|
||||
meta=associated_meta,
|
||||
related=associated_related,
|
||||
uuid=associated_software.get("associated_software_id"),
|
||||
value=associated_software.get("name"),
|
||||
)
|
||||
|
@ -363,7 +377,7 @@ class TechniqueCluster(Cluster):
|
|||
)
|
||||
|
||||
for sub_technique in entry.get("sub_technique"):
|
||||
meta = SubTechniqueMeta(
|
||||
sub_meta = SubTechniqueMeta(
|
||||
source=sub_technique.get("source"),
|
||||
technique_attack_id=sub_technique.get("technique_attack_id"),
|
||||
)
|
||||
|
@ -377,7 +391,7 @@ class TechniqueCluster(Cluster):
|
|||
)
|
||||
sub_value = ClusterValue(
|
||||
description=sub_technique.get("description"),
|
||||
meta=meta,
|
||||
meta=sub_meta,
|
||||
related=sub_related,
|
||||
uuid=sub_technique.get("id"),
|
||||
value=sub_technique.get("name"),
|
||||
|
|
Loading…
Reference in a new issue