From eb109149694391704c3ae1b88468215f1e6624da Mon Sep 17 00:00:00 2001 From: Josh Brower Date: Tue, 24 Sep 2019 12:32:59 -0400 Subject: [PATCH] Update nids2hive.yaml --- salt/elastalert/files/rules/so/nids2hive.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/salt/elastalert/files/rules/so/nids2hive.yaml b/salt/elastalert/files/rules/so/nids2hive.yaml index aa2287cca..95f066114 100644 --- a/salt/elastalert/files/rules/so/nids2hive.yaml +++ b/salt/elastalert/files/rules/so/nids2hive.yaml @@ -6,7 +6,7 @@ # es_host: {{es}} es_port: 9200 -name: TheHive - New IDS Alert! +name: NIDS-Alert type: frequency index: "*:logstash-ids*" num_events: 1 @@ -15,10 +15,14 @@ timeframe: buffer_time: minutes: 10 allow_buffer_time_overlap: true +query_key: alert +realert: + days: 1 filter: -- term: - event_type: "ids" +- query: + query_string: + query: "event_type: ids AND NOT tags: _jsonparsefailure" alert: modules.so.thehive.TheHiveAlerter @@ -31,12 +35,12 @@ hive_proxies: https: '' hive_alert_config: - title: 'New Alert from Security Onion!' + title: '{match[alert]}' type: 'external' source: 'SecurityOnion' - description: '{match[message]}' + description: "`NIDS Dashboard:` \n\n \n\n `IPs: `{match[source_ip]}:{match[source_port]} --> {match[destination_ip]}:{match[destination_port]} \n\n `Signature:` {match[rule_signature]}" severity: 2 - tags: ['elastalert, SecurityOnion'] + tags: ['elastalert', 'SecurityOnion', 'NIDS'] tlp: 3 status: 'New' follow: True