mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-15 21:52:47 +01:00
53 lines
2.3 KiB
YAML
53 lines
2.3 KiB
YAML
{% set es = salt['pillar.get']('static:masterip', '') %}
|
|
{% 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.
|
|
#
|
|
es_host: {{es}}
|
|
es_port: 9200
|
|
name: NIDS-Alert
|
|
type: frequency
|
|
index: "so-ids-*"
|
|
num_events: 1
|
|
timeframe:
|
|
minutes: 10
|
|
buffer_time:
|
|
minutes: 10
|
|
allow_buffer_time_overlap: true
|
|
query_key: ["rule.uuid"]
|
|
realert:
|
|
days: 1
|
|
filter:
|
|
- query:
|
|
query_string:
|
|
query: "event.module: suricata"
|
|
|
|
alert: hivealerter
|
|
|
|
hive_connection:
|
|
hive_host: http://{{hivehost}}
|
|
hive_port: 9000/thehive
|
|
hive_apikey: {{hivekey}}
|
|
|
|
hive_proxies:
|
|
http: ''
|
|
https: ''
|
|
|
|
hive_alert_config:
|
|
title: '{match[rule][name]}'
|
|
type: 'NIDS'
|
|
source: 'SecurityOnion'
|
|
description: "`Hunting Pivot:` \n\n <https://{{MASTER}}/#/hunt?q=event.module%3A%20suricata%20AND%20rule.uuid%3A{match[rule][uuid]}%20%7C%20groupby%20source.ip%20destination.ip%20rule.name> \n\n `Kibana Dashboard - Signature Drilldown:` \n\n <https://{{MASTER}}/kibana/app/kibana#/dashboard/ed6f7e20-e060-11e9-8f0c-2ddbf5ed9290?_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-24h,mode:quick,to:now))&_a=(columns:!(_source),index:'*:logstash-*',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'sid:')),sort:!('@timestamp',desc))> \n\n `Kibana Dashboard - Community_ID:` \n\n <https://{{MASTER}}/kibana/app/kibana#/dashboard/30d0ac90-729f-11ea-8dd2-9d8795a1200b?_g=(filters:!(('$state':(store:globalState),meta:(alias:!n,disabled:!f,index:'*:so-*',key:network.community_id,negate:!f,params:(query:'{match[network][community_id]}'),type:phrase),query:(match_phrase:(network.community_id:'{match[network][community_id]}')))),refreshInterval:(pause:!t,value:0),time:(from:now-7d,to:now))> \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
|
|
status: 'New'
|
|
follow: True
|
|
|
|
hive_observable_data_mapping:
|
|
- ip: '{match[source][ip]}'
|
|
- ip: '{match[destination][ip]}'
|