1
1
### {{app.label}} DETECTIONS ###
2
2
3
3
{% for detection in objects %}
4
- {% if (detection .type == 'TTP' or detection .type == 'Anomaly' or detection .type == 'Hunting' or detection .type == 'Correlation' ) %}
5
4
[{{ detection.get_conf_stanza_name(app) }}]
6
5
action.escu = 0
7
6
action.escu.enabled = 1
8
7
description = {{ detection.status_aware_description | escapeNewlines() }}
9
8
action.escu.mappings = {{ detection.mappings | tojson }}
10
9
action.escu.data_models = {{ detection.datamodel | tojson }}
11
10
action.escu.eli5 = {{ detection.status_aware_description | escapeNewlines() }}
12
- {% if detection .how_to_implement %}
13
11
action.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 %}
18
12
action.escu.known_false_positives = {{ detection.known_false_positives | escapeNewlines() }}
19
- {% else %}
20
- action.escu.known_false_positives = None
21
- {% endif %}
22
13
action.escu.creation_date = {{ detection.date }}
23
14
action.escu.modification_date = {{ detection.date }}
24
15
action.escu.confidence = high
25
16
action.escu.search_type = detection
26
- {% if detection .tags .product is defined %}
27
17
action.escu.product = {{ detection.tags.product | tojson }}
28
- {% endif %}
29
18
{% if detection .tags .atomic_guid %}
30
19
action.escu.atomic_red_team_guids = {{ detection.tags.getAtomicGuidStringArray() | tojson }}
31
20
{% endif %}
@@ -34,7 +23,6 @@ action.escu.providing_technologies = {{ detection.providing_technologies | tojso
34
23
{% else %}
35
24
action.escu.providing_technologies = null
36
25
{% endif %}
37
- {% if detection .tags .analytic_story %}
38
26
action.escu.analytic_story = {{ objectListToNameList(detection.tags.analytic_story) | tojson }}
39
27
{% if detection .deployment .alert_action .rba .enabled %}
40
28
action.risk = 1
@@ -43,25 +31,19 @@ action.risk.param._risk = {{ detection.risk | tojson }}
43
31
action.risk.param._risk_score = 0
44
32
action.risk.param.verbose = 0
45
33
{% endif %}
46
- {% else %}
47
- action.escu.analytic_story = []
48
- {% endif %}
49
34
cron_schedule = {{ detection.deployment.scheduling.cron_schedule }}
50
35
dispatch.earliest_time = {{ detection.deployment.scheduling.earliest_time }}
51
36
dispatch.latest_time = {{ detection.deployment.scheduling.latest_time }}
52
37
action.correlationsearch.enabled = 1
38
+ action.correlationsearch.detection_type = ebd
53
39
action.correlationsearch.label = {{ detection.get_action_dot_correlationsearch_dot_label(app) }}
54
40
action.correlationsearch.annotations = {{ detection.annotations | tojson }}
55
41
action.correlationsearch.metadata = {{ detection.metadata | tojson }}
56
- {% if detection .deployment .scheduling .schedule_window is defined %}
57
42
schedule_window = {{ detection.deployment.scheduling.schedule_window }}
58
- {% endif %}
59
- {% if detection .deployment is defined %}
60
43
{% if detection .deployment .alert_action .notable %}
61
44
action.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"}]
63
46
action.notable.param.nes_fields = {{ detection.nes_fields }}
64
- {% endif %}
65
47
action.notable.param.rule_description = {{ detection.deployment.alert_action.notable.rule_description | custom_jinja2_enrichment_filter(detection) | escapeNewlines()}}
66
48
action.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 +%}
67
49
action.notable.param.security_domain = {{ detection.tags.security_domain }}
@@ -87,13 +69,8 @@ action.sendtophantom.param.phantom_server = {{ detection.deployment.alert_action
87
69
action.sendtophantom.param.sensitivity = {{ detection.deployment.alert_action.phantom.sensitivity | custom_jinja2_enrichment_filter(detection) }}
88
70
action.sendtophantom.param.severity = {{ detection.deployment.alert_action.phantom.severity | custom_jinja2_enrichment_filter(detection) }}
89
71
{% endif %}
90
- {% endif %}
91
72
alert.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 }}
97
74
enableSched = 1
98
75
allow_skew = 100%
99
76
counttype = number of events
@@ -108,7 +85,6 @@ alert.suppress.period = {{ detection.tags.throttling.period }}
108
85
{% endif %}
109
86
search = {{ detection.search | escapeNewlines() }}
110
87
action.notable.param.drilldown_searches = {{ detection.drilldowns_in_JSON | tojson | escapeNewlines() }}
111
- {% endif %}
112
88
113
89
{% endfor %}
114
90
### END {{ app.label }} DETECTIONS ###
0 commit comments