Detections backup script

This commit is contained in:
DefensiveDepth
2024-05-22 15:12:23 -04:00
parent ca6e2b8e22
commit d19c1a514b
2 changed files with 131 additions and 0 deletions
+20
View File
@@ -80,6 +80,15 @@ socmotd:
- mode: 600
- template: jinja
filedetectionsbackup:
file.managed:
- name: /opt/so/conf/soc/so-detections-backup.py
- source: salt://soc/files/soc/so-detections-backup.py
- user: 939
- group: 939
- mode: 600
- show_changes: False
crondetectionsruntime:
cron.present:
- name: /usr/sbin/so-detections-runtime-status cron
@@ -91,6 +100,17 @@ crondetectionsruntime:
- month: '*'
- dayweek: '*'
crondetectionsbackup:
cron.present:
- name: python3 /opt/so/conf/soc/so-detections-backup.py
- identifier: detections-backup
- user: root
- minute: '0'
- hour: '0'
- daymonth: '*'
- month: '*'
- dayweek: '*'
socsigmafinalpipeline:
file.managed:
- name: /opt/so/conf/soc/sigma_final_pipeline.yaml