mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Airgap Support - Detections module
This commit is contained in:
@@ -603,6 +603,10 @@ update_airgap_rules() {
|
|||||||
if [ -d /nsm/repo/rules/sigma ]; then
|
if [ -d /nsm/repo/rules/sigma ]; then
|
||||||
rsync -av $UPDATE_DIR/agrules/sigma/* /nsm/repo/rules/sigma/
|
rsync -av $UPDATE_DIR/agrules/sigma/* /nsm/repo/rules/sigma/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# SOC Detections Airgap
|
||||||
|
rsync -av $UPDATE_DIR/agrules/detect-sigma/* /nsm/rules/detect-sigma/
|
||||||
|
rsync -av $UPDATE_DIR/agrules/detect-yara/* /nsm/rules/detect-yara/
|
||||||
}
|
}
|
||||||
|
|
||||||
update_airgap_repo() {
|
update_airgap_repo() {
|
||||||
@@ -931,10 +935,8 @@ main() {
|
|||||||
preupgrade_changes
|
preupgrade_changes
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
if [[ $is_airgap -eq 0 ]]; then
|
echo "Updating Airgap Rule Files to the Latest."
|
||||||
echo "Updating Rule Files to the Latest."
|
|
||||||
update_airgap_rules
|
update_airgap_rules
|
||||||
fi
|
|
||||||
|
|
||||||
# since we don't run the backup.config_backup state on import we wont snapshot previous version states and pillars
|
# since we don't run the backup.config_backup state on import we wont snapshot previous version states and pillars
|
||||||
if [[ ! "$MINIONID" =~ "_import" ]]; then
|
if [[ ! "$MINIONID" =~ "_import" ]]; then
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ so-soc:
|
|||||||
- sobridge:
|
- sobridge:
|
||||||
- ipv4_address: {{ DOCKER.containers['so-soc'].ip }}
|
- ipv4_address: {{ DOCKER.containers['so-soc'].ip }}
|
||||||
- binds:
|
- binds:
|
||||||
- /nsm/rules:/nsm/rules:rw #Need to tighten this up?
|
- /nsm/rules:/nsm/rules:rw
|
||||||
- /opt/so/conf/strelka:/opt/sensoroni/yara:rw
|
- /opt/so/conf/strelka:/opt/sensoroni/yara:rw
|
||||||
- /opt/so/rules/elastalert/rules:/opt/sensoroni/elastalert:rw
|
- /opt/so/rules/elastalert/rules:/opt/sensoroni/elastalert:rw
|
||||||
- /opt/so/conf/soc/fingerprints:/opt/sensoroni/fingerprints:rw
|
- /opt/so/conf/soc/fingerprints:/opt/sensoroni/fingerprints:rw
|
||||||
|
|||||||
@@ -34,6 +34,12 @@
|
|||||||
{% do SOCMERGED.config.server.client.inactiveTools.append('toolPlaybook') %}
|
{% do SOCMERGED.config.server.client.inactiveTools.append('toolPlaybook') %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{# if system is Airgap, don't autoupdate Yara & Sigma rules #}
|
||||||
|
{% if pillar.global.airgap %}
|
||||||
|
{% do SOCMERGED.config.server.modules.elastalertengine.update({'autoUpdateEnabled': false}) %}
|
||||||
|
{% do SOCMERGED.config.server.modules.strelkaengine.update({'autoUpdateEnabled': false}) %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% set standard_actions = SOCMERGED.config.pop('actions') %}
|
{% set standard_actions = SOCMERGED.config.pop('actions') %}
|
||||||
|
|
||||||
{% if pillar.global.endgamehost != '' %}
|
{% if pillar.global.endgamehost != '' %}
|
||||||
|
|||||||
@@ -687,10 +687,8 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
logCmd "so-minion -o=setup"
|
logCmd "so-minion -o=setup"
|
||||||
title "Creating Global SLS"
|
title "Creating Global SLS"
|
||||||
|
|
||||||
if [[ $is_airgap ]]; then
|
|
||||||
# Airgap Rules
|
# Airgap Rules
|
||||||
airgap_rules
|
airgap_rules
|
||||||
fi
|
|
||||||
|
|
||||||
manager_pillar
|
manager_pillar
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user