mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-26 22:47:49 +02:00
47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
{% set es = salt['pillar.get']('static:masterip', '') %}
|
|
{% set hivehost = salt['pillar.get']('static:masterip', '') %}
|
|
{% set hivekey = salt['pillar.get']('static:hivekey', '') %}
|
|
# hive.yaml
|
|
# Elastalert rule to forward IDS alerts from Security Onion to a specified TheHive instance.
|
|
#
|
|
es_host: {{es}}
|
|
es_port: 9200
|
|
name: TheHive - New IDS Alert!
|
|
type: frequency
|
|
index: "*:logstash-ids*"
|
|
num_events: 1
|
|
timeframe:
|
|
minutes: 10
|
|
buffer_time:
|
|
minutes: 10
|
|
allow_buffer_time_overlap: true
|
|
|
|
filter:
|
|
- term:
|
|
event_type: "ids"
|
|
|
|
alert: modules.so.thehive.TheHiveAlerter
|
|
|
|
hive_connection:
|
|
hive_host: https://{{hivehost}}/thehive/
|
|
hive_apikey: {{hivekey}}
|
|
|
|
hive_proxies:
|
|
http: ''
|
|
https: ''
|
|
|
|
hive_alert_config:
|
|
title: 'New Alert from Security Onion!'
|
|
type: 'external'
|
|
source: 'SecurityOnion'
|
|
description: '{match[message]}'
|
|
severity: 2
|
|
tags: ['elastalert, SecurityOnion']
|
|
tlp: 3
|
|
status: 'New'
|
|
follow: True
|
|
|
|
hive_observable_data_mapping:
|
|
- ip: '{match[source_ip]}'
|
|
- ip: '{match[destination_ip]}'
|