Skip to content

Commit b73a0f0

Browse files
committed
fix: [crowdstrike_falcon] clean-up
1 parent ef3eb8a commit b73a0f0

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

misp_modules/modules/expansion/crowdstrike_falcon.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,7 @@ def lookup_indicator(client, ref_attribute):
147147
attribute.from_dict(**r)
148148
misp_event.add_attribute(**attribute)
149149
for ip_type in item.get("ip_address_types", []):
150-
ip_type_attribute = {
151-
"type": "text",
152-
"category": "Other",
153-
"value": f"IP_Type: {ip_type}",
154-
"to_ids": False
155-
}
150+
ip_type_attribute = {"type": "text", "category": "Other", "value": f"IP_Type: {ip_type}", "to_ids": False}
156151
attribute = MISPAttribute()
157152
attribute.from_dict(**ip_type_attribute)
158153
misp_event.add_attribute(**attribute)
@@ -161,7 +156,7 @@ def lookup_indicator(client, ref_attribute):
161156
"type": "text",
162157
"category": "Other",
163158
"value": f"Malicious_Confidence: {item.get('malicious_confidence')}",
164-
"to_ids": False
159+
"to_ids": False,
165160
}
166161
attribute = MISPAttribute()
167162
attribute.from_dict(**confidence_attribute)
@@ -215,7 +210,6 @@ def lookup_indicator(client, ref_attribute):
215210
attribute.from_dict(**last_updated_attribute)
216211
misp_event.add_attribute(**attribute)
217212

218-
219213
event = json.loads(misp_event.to_json())
220214
return {"Object": event.get("Object", []), "Attribute": event.get("Attribute", [])}
221215

0 commit comments

Comments
 (0)