From 78527ab87c0eb2de6632d03a451e58de549f816b Mon Sep 17 00:00:00 2001 From: Josh Brower Date: Fri, 24 Jan 2020 04:20:49 -0500 Subject: [PATCH 1/5] Steno - BPF Config --- salt/pcap/files/compile_bpf.sh | 37 ++++++++++++++++++++++++++++++++++ salt/pcap/files/config | 4 ++-- salt/pcap/init.sls | 36 ++++++++++++++++++++++++++++++++- 3 files changed, 74 insertions(+), 3 deletions(-) create mode 100644 salt/pcap/files/compile_bpf.sh diff --git a/salt/pcap/files/compile_bpf.sh b/salt/pcap/files/compile_bpf.sh new file mode 100644 index 000000000..44c5b8249 --- /dev/null +++ b/salt/pcap/files/compile_bpf.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +if [ "$#" -lt 2 ]; then + cat 1>&2 < Date: Fri, 24 Jan 2020 04:22:47 -0500 Subject: [PATCH 2/5] Steno - fix disk percentage --- salt/pcap/files/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/pcap/files/config b/salt/pcap/files/config index a41645e88..0f06d1c7e 100644 --- a/salt/pcap/files/config +++ b/salt/pcap/files/config @@ -4,7 +4,7 @@ { "PacketsDirectory": "/nsm/pcap" , "IndexDirectory": "/nsm/pcapindex" , "MaxDirectoryFiles": 30000 - , "DiskFreePercentage": 5 + , "DiskFreePercentage": 10 } ] , "StenotypePath": "/usr/bin/stenotype" From 3262854f4e37b28fa80aa562cfa22ceeb0504930 Mon Sep 17 00:00:00 2001 From: Josh Brower Date: Fri, 24 Jan 2020 04:30:06 -0500 Subject: [PATCH 3/5] Steno - fix error name --- salt/pcap/init.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/pcap/init.sls b/salt/pcap/init.sls index a91f6bfce..16d002250 100644 --- a/salt/pcap/init.sls +++ b/salt/pcap/init.sls @@ -53,7 +53,7 @@ stenoconfdir: bpfcompilationfailure: test.configurable_test_state: - - name: foo + - name: bpfcompfailure - changes: False - result: False - comment: "BPF Compilation Failed - Discarding specified BPF" From dcf1dc6e092879abffbaab3b7ed7591b62c1e3b5 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Fri, 24 Jan 2020 12:33:15 -0500 Subject: [PATCH 4/5] reorder pillar top - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/249 --- pillar/top.sls | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pillar/top.sls b/pillar/top.sls index 3a37fa861..99fe26556 100644 --- a/pillar/top.sls +++ b/pillar/top.sls @@ -2,40 +2,40 @@ base: '*': - patch.needs_restarting - 'G@role:so-sensor': - - minions.{{ grains.id }} - - static - - firewall.* - - brologs - 'G@role:so-mastersearch': - logstash.mastersearch + 'G@role:so-sensor': + - static + - firewall.* + - brologs + - minions.{{ grains.id }} + 'G@role:so-master or G@role:so-mastersearch': - match: compound - - minions.{{ grains.id }} - static - firewall.* - data.* - auth + - minions.{{ grains.id }} 'G@role:so-eval': - - minions.{{ grains.id }} - static - firewall.* - data.* - brologs - auth + - minions.{{ grains.id }} 'G@role:so-node': - - minions.{{ grains.id }} - static - firewall.* + - minions.{{ grains.id }} 'G@role:so-helix': - - minions.{{ grains.id }} - static - firewall.* - fireeye - static - brologs + - minions.{{ grains.id }} From d54a41a1f012001681ed065b5f5487bc98785196 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Fri, 24 Jan 2020 15:08:09 -0500 Subject: [PATCH 5/5] fix so-buildregistry from returning error --- salt/registry/bin/so-buildregistry | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/registry/bin/so-buildregistry b/salt/registry/bin/so-buildregistry index da50f44f7..01756fc67 100644 --- a/salt/registry/bin/so-buildregistry +++ b/salt/registry/bin/so-buildregistry @@ -7,6 +7,6 @@ TARBALL=/nsm/docker-registry/docker/so-dockers-$VERSION.tar if [ -f "$TARBALL" ]; then cd /nsm/docker-registry/docker tar xvf so-dockers-$VERSION.tar -else - exit fi + +exit 0