11### {{app.label}} DETECTIONS ###
22
33{% for detection in objects %}
4- {% if (detection .type == 'TTP' or detection .type == 'Anomaly' or detection .type == 'Hunting' or detection .type == 'Correlation' ) %}
54[{{ detection.get_conf_stanza_name(app) }}]
65action.escu = 0
76action.escu.enabled = 1
87description = {{ detection.status_aware_description | escapeNewlines() }}
98action.escu.mappings = {{ detection.mappings | tojson }}
109action.escu.data_models = {{ detection.datamodel | tojson }}
1110action.escu.eli5 = {{ detection.status_aware_description | escapeNewlines() }}
12- {% if detection .how_to_implement %}
1311action.escu.how_to_implement = {{ detection.how_to_implement | escapeNewlines() }}
14- {% else %}
15- action.escu.how_to_implement = none
16- {% endif %}
17- {% if detection .known_false_positives %}
1812action.escu.known_false_positives = {{ detection.known_false_positives | escapeNewlines() }}
19- {% else %}
20- action.escu.known_false_positives = None
21- {% endif %}
2213action.escu.creation_date = {{ detection.date }}
2314action.escu.modification_date = {{ detection.date }}
2415action.escu.confidence = high
2516action.escu.search_type = detection
26- {% if detection .tags .product is defined %}
2717action.escu.product = {{ detection.tags.product | tojson }}
28- {% endif %}
2918{% if detection .tags .atomic_guid %}
3019action.escu.atomic_red_team_guids = {{ detection.tags.getAtomicGuidStringArray() | tojson }}
3120{% endif %}
@@ -34,7 +23,6 @@ action.escu.providing_technologies = {{ detection.providing_technologies | tojso
3423{% else %}
3524action.escu.providing_technologies = null
3625{% endif %}
37- {% if detection .tags .analytic_story %}
3826action.escu.analytic_story = {{ objectListToNameList(detection.tags.analytic_story) | tojson }}
3927{% if detection .deployment .alert_action .rba .enabled %}
4028action.risk = 1
@@ -43,25 +31,19 @@ action.risk.param._risk = {{ detection.risk | tojson }}
4331action.risk.param._risk_score = 0
4432action.risk.param.verbose = 0
4533{% endif %}
46- {% else %}
47- action.escu.analytic_story = []
48- {% endif %}
4934cron_schedule = {{ detection.deployment.scheduling.cron_schedule }}
5035dispatch.earliest_time = {{ detection.deployment.scheduling.earliest_time }}
5136dispatch.latest_time = {{ detection.deployment.scheduling.latest_time }}
5237action.correlationsearch.enabled = 1
38+ action.correlationsearch.detection_type = ebd
5339action.correlationsearch.label = {{ detection.get_action_dot_correlationsearch_dot_label(app) }}
5440action.correlationsearch.annotations = {{ detection.annotations | tojson }}
5541action.correlationsearch.metadata = {{ detection.metadata | tojson }}
56- {% if detection .deployment .scheduling .schedule_window is defined %}
5742schedule_window = {{ detection.deployment.scheduling.schedule_window }}
58- {% endif %}
59- {% if detection .deployment is defined %}
6043{% if detection .deployment .alert_action .notable %}
6144action.notable = 1
62- {% if detection . nes_fields %}
45+ action.notable.param._entities = [{"risk_object_field": "N/A", "risk_object_type": "N/A", "risk_score": "0"}]
6346action.notable.param.nes_fields = {{ detection.nes_fields }}
64- {% endif %}
6547action.notable.param.rule_description = {{ detection.deployment.alert_action.notable.rule_description | custom_jinja2_enrichment_filter(detection) | escapeNewlines()}}
6648action.notable.param.rule_title = {% if detection .type | lower == "correlation" %} RBA: {{ detection.deployment.alert_action.notable.rule_title | custom_jinja2_enrichment_filter(detection) }}{% else %} {{ detection.deployment.alert_action.notable.rule_title | custom_jinja2_enrichment_filter(detection) }}{% endif +%}
6749action.notable.param.security_domain = {{ detection.tags.security_domain }}
@@ -87,13 +69,8 @@ action.sendtophantom.param.phantom_server = {{ detection.deployment.alert_action
8769action.sendtophantom.param.sensitivity = {{ detection.deployment.alert_action.phantom.sensitivity | custom_jinja2_enrichment_filter(detection) }}
8870action.sendtophantom.param.severity = {{ detection.deployment.alert_action.phantom.severity | custom_jinja2_enrichment_filter(detection) }}
8971{% endif %}
90- {% endif %}
9172alert.digest_mode = 1
92- {% if detection .enabled_by_default %}
93- disabled = false
94- {% else %}
95- disabled = true
96- {% endif %}
73+ disabled = {{ (not detection.enabled_by_default) | lower }}
9774enableSched = 1
9875allow_skew = 100%
9976counttype = number of events
@@ -108,7 +85,6 @@ alert.suppress.period = {{ detection.tags.throttling.period }}
10885{% endif %}
10986search = {{ detection.search | escapeNewlines() }}
11087action.notable.param.drilldown_searches = {{ detection.drilldowns_in_JSON | tojson | escapeNewlines() }}
111- {% endif %}
11288
11389{% endfor %}
11490### END {{ app.label }} DETECTIONS ###
0 commit comments