From f7a09637f4382f79cc6c6d3c779fdcdc6b71b843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milio=20Gonzalez?= Date: Thu, 24 Oct 2024 13:47:38 -0400 Subject: [PATCH] Fix a bug where the jinja template for `analyticsories_detection` crashed when specifying a `detection.tags.asset_type`. Fixes #313. --- contentctl/output/templates/analyticstories_detections.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contentctl/output/templates/analyticstories_detections.j2 b/contentctl/output/templates/analyticstories_detections.j2 index e97f82a8..d24a1217 100644 --- a/contentctl/output/templates/analyticstories_detections.j2 +++ b/contentctl/output/templates/analyticstories_detections.j2 @@ -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 %}