Skip to content

Commit

Permalink
Add Globals
Browse files Browse the repository at this point in the history
  • Loading branch information
TOoSmOotH committed Jan 29, 2024
1 parent 5b05aec commit 0c96931
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
2 changes: 2 additions & 0 deletions salt/global/defaults.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
global:
pcapengine: STENO
5 changes: 5 additions & 0 deletions salt/global/soc_global.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ global:
regex: ^(ZEEK|SURICATA)$
regexFailureMessage: You must enter either ZEEK or SURICATA.
global: True
pcapengine:
description: What engine to use for generating pcap. Options are STENO and SURICATA.
regex: ^(STENO|SURICATA)$
regexFailureMessage: You must enter either STENO or SURICATA.
global: True
ids:
description: Which IDS engine to use. Currently only Suricata is supported.
global: True
Expand Down
3 changes: 2 additions & 1 deletion salt/manager/tools/sbin/so-minion
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ function pcapspace() {
"suricata:"\
" config:"\
" output:"\
" pcap-log: $s" >> $PILLARFILE
" pcap-log:"\
" max-files: $s" >> $PILLARFILE

}

Expand Down
11 changes: 10 additions & 1 deletion salt/sensoroni/files/sensoroni.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,22 @@
"importer": {},
"statickeyauth": {
"apiKey": "{{ GLOBALS.sensoroni_key }}"
{%- if PCAPMERGED.enabled %}
{%- if PCAPMERGED.enabled %}
{%- if PCAPENGINE.steno %}
},
"stenoquery": {
"executablePath": "/opt/sensoroni/scripts/stenoquery.sh",
"pcapInputPath": "/nsm/pcap",
"pcapOutputPath": "/nsm/pcapout"
}
{%- elif PCAPENGINE.suri %}
},
"suriquery": {
"executablePath": "/opt/sensoroni/scripts/suriquery.sh",
"pcapInputPath": "/nsm/suripcap",
"pcapOutputPath": "/nsm/pcapout"
}
{%- endif %}
{%- else %}
}
{%- endif %}
Expand Down
4 changes: 3 additions & 1 deletion salt/suricata/soc_suricata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@ suricata:
helpLink: suricata.html
pcap-log:
enabled:
description: Enable Suricata to collect PCAP.
description: This value is ignored by SO. pcapengine in globals takes predidence.
readonly: True
helpLink: suricata.html
advanced: True
compression:
description: Enable compression of Suricata PCAP. Currently unsupported
advanced: True
Expand Down

0 comments on commit 0c96931

Please sign in to comment.