mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Strelkas Rules Update
This commit is contained in:
@@ -50,6 +50,14 @@ airgap_rules() {
|
||||
# Copy the rules for suricata if using Airgap
|
||||
mkdir -p /nsm/repo/rules
|
||||
cp -v /root/SecurityOnion/agrules/emerging-all.rules /nsm/repo/rules/
|
||||
|
||||
# Copy over sigma rules
|
||||
cp -Rv /root/SecurityOnion/agrules/sigma /nsm/repo/rules/
|
||||
|
||||
# Don't leave Strelka out
|
||||
cp -v /root/SecurityOnion/agrules/strelka /nsm/repo/rules/
|
||||
|
||||
|
||||
}
|
||||
|
||||
analyze_system() {
|
||||
|
||||
@@ -331,7 +331,7 @@ if [[ $is_manager && ! $is_eval ]]; then
|
||||
whiptail_oinkcode
|
||||
fi
|
||||
|
||||
if [[ $STRELKA == 1 ]]; then
|
||||
if [[ "$STRELKA" == 1 ]]; then
|
||||
STRELKARULES=1
|
||||
fi
|
||||
|
||||
@@ -573,6 +573,9 @@ fi
|
||||
docker_seed_registry 2>> "$setup_log" # ~ 60% when finished
|
||||
|
||||
set_progress_str 60 "$(print_salt_state_apply 'manager')"
|
||||
if [[ "$STRELKARULES" == 1 ]]; then
|
||||
/usr/sbin/so-yara-update >> $setup_log 2>&1
|
||||
fi
|
||||
salt-call state.apply -l info manager >> $setup_log 2>&1
|
||||
|
||||
set_progress_str 61 "$(print_salt_state_apply 'idstools')"
|
||||
@@ -682,9 +685,6 @@ fi
|
||||
if [[ "$STRELKA" = 1 ]]; then
|
||||
set_progress_str 80 "$(print_salt_state_apply 'strelka')"
|
||||
salt-call state.apply -l info strelka >> $setup_log 2>&1
|
||||
if [[ $STRELKARULES == 1 ]]; then
|
||||
/usr/sbin/so-yara-update >> $setup_log 2>&1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $is_manager || $is_helix || $is_import ]]; then
|
||||
|
||||
Reference in New Issue
Block a user