From 8a4da01b7f3f49a9b18fc73bb882c2e8f36e9ffb Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Mon, 18 May 2020 14:01:01 -0400 Subject: [PATCH 1/2] allow utility state to run for so-standalone --- salt/utility/init.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/utility/init.sls b/salt/utility/init.sls index adbc9e73b..87cfe8e87 100644 --- a/salt/utility/init.sls +++ b/salt/utility/init.sls @@ -1,5 +1,5 @@ # This state is for checking things -{% if grains['role'] == 'so-master' or grains['role'] == 'so-mastersearch' %} +{% if grains['role'] in ['so-master', 'so-mastersearch', 'so-standalone'] %} # Make sure Cross Cluster is good. Will need some logic once we have hot/warm crossclusterson: cmd.script: From b951094ea263c2014061d6211298f096dd1aafd5 Mon Sep 17 00:00:00 2001 From: Josh Brower Date: Mon, 18 May 2020 14:13:32 -0400 Subject: [PATCH 2/2] Change alert pivot links for MASTER --- salt/elastalert/files/rules/so/nids2hive.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/salt/elastalert/files/rules/so/nids2hive.yaml b/salt/elastalert/files/rules/so/nids2hive.yaml index 074fddb7f..68a173fcd 100644 --- a/salt/elastalert/files/rules/so/nids2hive.yaml +++ b/salt/elastalert/files/rules/so/nids2hive.yaml @@ -1,6 +1,8 @@ {% set es = salt['pillar.get']('static:masterip', '') %} -{% set hivehost = salt['pillar.get']('master:url_base', '') %} +{% set hivehost = salt['pillar.get']('static:masterip', '') %} {% set hivekey = salt['pillar.get']('static:hivekey', '') %} +{% set MASTER = salt['pillar.get']('master:url_base', '') %} + # hive.yaml # Elastalert rule to forward IDS alerts from Security Onion to a specified TheHive instance. # @@ -38,7 +40,7 @@ hive_alert_config: title: '{match[rule][name]}' type: 'NIDS' source: 'SecurityOnion' - description: "`Hunting Pivot:` \n\n \n\n `Kibana Dashboard:` \n\n \n\n `IPs: `{match[source][ip]}:{match[source][port]} --> {match[destination][ip]}:{match[destination][port]} \n\n `Signature:`{match[rule][rule]}" + description: "`Hunting Pivot:` \n\n \n\n `Kibana Dashboard:` \n\n \n\n `IPs: `{match[source][ip]}:{match[source][port]} --> {match[destination][ip]}:{match[destination][port]} \n\n `Signature:`{match[rule][rule]}" severity: 2 tags: ['{match[rule][uuid]}','{match[source][ip]}','{match[destination][ip]}'] tlp: 3