Skip to content

Commit

Permalink
fix: [crowdsec] Kepping the original attribute used to query the modu…
Browse files Browse the repository at this point in the history
…le unchanged
  • Loading branch information
chrisr3d committed May 26, 2023
1 parent 52ce2cf commit 51339c2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions misp_modules/modules/expansion/crowdsec.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def _handler_v2(request_data):
)
tag = f'crowdsec:behavior="{behavior["name"]}"'
ip_attribute.add_tag(tag)
misp_attribute.add_tag(tag)
for feature, values in crowdsec_cti['classifications'].items():
field = feature[:-1]
for value in values:
Expand All @@ -89,7 +88,6 @@ def _handler_v2(request_data):
)
tag = f'crowdsec:{field}="{value["name"]}"'
ip_attribute.add_tag(tag)
misp_attribute.add_tag(tag)
crowdsec_context_object.add_attribute(
"attack-details",
", ".join(
Expand Down

0 comments on commit 51339c2

Please sign in to comment.