File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
objects/abstract_security_content_objects Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ class Detection_Abstract(SecurityContentObject):
57
57
runtime : str = None
58
58
enabled_by_default : bool = False
59
59
60
+
60
61
class Config :
61
62
use_enum_values = True
62
63
@@ -346,3 +347,10 @@ def get_summary(
346
347
347
348
# Return the summary
348
349
return summary_dict
350
+
351
+
352
+ def getMetadata (self )-> dict [str ,str ]:
353
+ return {'detection_id' :str (self .id ),
354
+ 'deprecated' :'1' if self .status == DetectionStatus .deprecated .value else '0' ,
355
+ 'detection_version' :str (self .version )}
356
+
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ action.correlationsearch.label = {{APP_NAME}} - RIR - {{ detection.name }} - Rul
64
64
action.correlationsearch.label = {{APP_NAME}} - {{ detection.name }} - Rule
65
65
{% endif %}
66
66
action.correlationsearch.annotations = {{ detection.annotations | tojson }}
67
+ action.correlationsearch.metadata = {{ detection.getMetadata() | tojson }}
67
68
{% if detection .deployment .scheduling .schedule_window is defined %}
68
69
schedule_window = {{ detection.deployment.scheduling.schedule_window }}
69
70
{% endif %}
You can’t perform that action at this time.
0 commit comments