Skip to content

Commit

Permalink
Fix a bug where the jinja template for analyticsories_detection cra…
Browse files Browse the repository at this point in the history
…shed when specifying a `detection.tags.asset_type`. Fixes #313.
  • Loading branch information
Res260 committed Oct 24, 2024
1 parent f9bcd7e commit f7a0963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contentctl/output/templates/analyticstories_detections.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% if (detection.type == 'TTP' or detection.type == 'Anomaly' or detection.type == 'Hunting' or detection.type == 'Correlation') %}
[savedsearch://{{ detection.get_conf_stanza_name(app) }}]
type = detection
asset_type = {{ detection.tags.asset_type.value }}
asset_type = {{ detection.tags.asset_type }}
confidence = medium
explanation = {{ (detection.explanation if detection.explanation else detection.description) | escapeNewlines() }}
{% if detection.how_to_implement is defined %}
Expand Down

0 comments on commit f7a0963

Please sign in to comment.