mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Merge branch 'dev' into quickfix/eval
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
{% set VERSION = salt['pillar.get']('static:soversion', 'HH1.1.4') %}
|
||||||
|
{% set MASTER = salt['grains.get']('master') %}
|
||||||
|
|
||||||
so-auth-api-dir:
|
so-auth-api-dir:
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: /opt/so/conf/auth/api
|
- name: /opt/so/conf/auth/api
|
||||||
@@ -5,19 +8,9 @@ so-auth-api-dir:
|
|||||||
- group: 939
|
- group: 939
|
||||||
- makedirs: True
|
- makedirs: True
|
||||||
|
|
||||||
so-auth-api-image:
|
|
||||||
cmd.run:
|
|
||||||
- name: docker pull --disable-content-trust=false docker.io/soshybridhunter/so-auth-api:HH1.1.4
|
|
||||||
|
|
||||||
so-auth-ui-image:
|
|
||||||
cmd.run:
|
|
||||||
- name: docker pull --disable-content-trust=false docker.io/soshybridhunter/so-auth-ui:HH1.1.4
|
|
||||||
|
|
||||||
so-auth-api:
|
so-auth-api:
|
||||||
docker_container.running:
|
docker_container.running:
|
||||||
- require:
|
- image: {{ MASTER }}:5000/soshybridhunter/so-auth-api:{{ VERSION }}
|
||||||
- so-auth-api-image
|
|
||||||
- image: docker.io/soshybridhunter/so-auth-api:HH1.1.4
|
|
||||||
- hostname: so-auth-api
|
- hostname: so-auth-api
|
||||||
- name: so-auth-api
|
- name: so-auth-api
|
||||||
- environment:
|
- environment:
|
||||||
@@ -29,9 +22,7 @@ so-auth-api:
|
|||||||
|
|
||||||
so-auth-ui:
|
so-auth-ui:
|
||||||
docker_container.running:
|
docker_container.running:
|
||||||
- require:
|
- image: {{ MASTER }}:5000/soshybridhunter/so-auth-ui:{{ VERSION }}
|
||||||
- so-auth-ui-image
|
|
||||||
- image: docker.io/soshybridhunter/so-auth-ui:HH1.1.4
|
|
||||||
- hostname: so-auth-ui
|
- hostname: so-auth-ui
|
||||||
- name: so-auth-ui
|
- name: so-auth-ui
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{%- if grains.role == 'so-heavynode' %}
|
{%- if grains.role == 'so-heavynode' %}
|
||||||
{%- set MASTER = grains.host %}
|
{%- set MASTER = salt['pillar.get']('sensor:mainip' '') %}
|
||||||
{%- else %}
|
{%- else %}
|
||||||
{%- set MASTER = grains['master'] %}
|
{%- set MASTER = grains['master'] %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|||||||
@@ -13,14 +13,13 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
{% set VERSION = salt['pillar.get']('static:soversion', 'HH1.1.4') %}
|
{% set VERSION = salt['pillar.get']('static:soversion', 'HH1.1.4') %}
|
||||||
{% set MASTER = salt['grains.get']('master') %}
|
{% set MASTER = salt['grains.get']('master') %}
|
||||||
{%- set MASTERIP = salt['pillar.get']('static:masterip', '') %}
|
{% set MASTERIP = salt['pillar.get']('static:masterip', '') %}
|
||||||
{% set FEATURES = salt['pillar.get']('elastic:features', False) %}
|
{% set FEATURES = salt['pillar.get']('elastic:features', False) %}
|
||||||
{% if FEATURES %}
|
{% if FEATURES %}
|
||||||
{% set FEATURES = "-features" %}
|
{% set FEATURES = "-features" %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set FEATURES = '' %}
|
{% set FEATURES = '' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
# Filebeat Setup
|
|
||||||
filebeatetcdir:
|
filebeatetcdir:
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: /opt/so/conf/filebeat/etc
|
- name: /opt/so/conf/filebeat/etc
|
||||||
|
|||||||
203
salt/logstash/files/dynamic/0008_input_eval.conf
Normal file
203
salt/logstash/files/dynamic/0008_input_eval.conf
Normal file
@@ -0,0 +1,203 @@
|
|||||||
|
# Updated by: Mike Reeves
|
||||||
|
# Last Update: 11/1/2018
|
||||||
|
|
||||||
|
input {
|
||||||
|
file {
|
||||||
|
path => "/suricata/eve.json"
|
||||||
|
type => "ids"
|
||||||
|
add_field => { "engine" => "suricata" }
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/conn*.log"
|
||||||
|
type => "bro_conn"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/dce_rpc*.log"
|
||||||
|
type => "bro_dce_rpc"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/dhcp*.log"
|
||||||
|
type => "bro_dhcp"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/dnp3*.log"
|
||||||
|
type => "bro_dnp3"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/dns*.log"
|
||||||
|
type => "bro_dns"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/dpd*.log"
|
||||||
|
type => "bro_dpd"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/files*.log"
|
||||||
|
type => "bro_files"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/ftp*.log"
|
||||||
|
type => "bro_ftp"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/http*.log"
|
||||||
|
type => "bro_http"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/intel*.log"
|
||||||
|
type => "bro_intel"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/irc*.log"
|
||||||
|
type => "bro_irc"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/kerberos*.log"
|
||||||
|
type => "bro_kerberos"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/modbus*.log"
|
||||||
|
type => "bro_modbus"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/mysql*.log"
|
||||||
|
type => "bro_mysql"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/notice*.log"
|
||||||
|
type => "bro_notice"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/ntlm*.log"
|
||||||
|
type => "bro_ntlm"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/pe*.log"
|
||||||
|
type => "bro_pe"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/radius*.log"
|
||||||
|
type => "bro_radius"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/rdp*.log"
|
||||||
|
type => "bro_rdp"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/rfb*.log"
|
||||||
|
type => "bro_rfb"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/signatures*.log"
|
||||||
|
type => "bro_signatures"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/sip*.log"
|
||||||
|
type => "bro_sip"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/smb_files*.log"
|
||||||
|
type => "bro_smb_files"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/smb_mapping*.log"
|
||||||
|
type => "bro_smb_mapping"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/smtp*.log"
|
||||||
|
type => "bro_smtp"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/snmp*.log"
|
||||||
|
type => "bro_snmp"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/socks*.log"
|
||||||
|
type => "bro_socks"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/software*.log"
|
||||||
|
type => "bro_software"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/ssh*.log"
|
||||||
|
type => "bro_ssh"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/ssl*.log"
|
||||||
|
type => "bro_ssl"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/syslog*.log"
|
||||||
|
type => "bro_syslog"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/tunnel*.log"
|
||||||
|
type => "bro_tunnels"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/weird*.log"
|
||||||
|
type => "bro_weird"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/nsm/bro/logs/current/x509*.log"
|
||||||
|
type => "bro_x509"
|
||||||
|
tags => ["bro"]
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/wazuh/alerts/alerts.json"
|
||||||
|
type => "ossec"
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/wazuh/archives/archive.json"
|
||||||
|
type => "ossec_archive"
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/osquery/logs/result.log"
|
||||||
|
type => "osquery"
|
||||||
|
}
|
||||||
|
file {
|
||||||
|
path => "/strelka/strelka.log"
|
||||||
|
type => "strelka"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
filter {
|
||||||
|
if "import" in [tags] {
|
||||||
|
mutate {
|
||||||
|
#add_tag => [ "conf_file_0007"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
{% set master_minion_id = master.split(".")[0] %}
|
{% set master_minion_id = master.split(".")[0] %}
|
||||||
{%- set masterip = salt['pillar.get']('static:masterip', '') -%}
|
{%- set masterip = salt['pillar.get']('static:masterip', '') -%}
|
||||||
|
|
||||||
{% if grains['role'] == 'so-master' or grains['role'] == 'so-eval' or grains['role'] == 'so-heavynode' %}
|
{% if grains['role'] == 'so-master' or grains['role'] == 'so-eval' %}
|
||||||
{% set trusttheca_text = salt['mine.get'](grains.id, 'x509.get_pem_entries')[grains.id]['/etc/pki/ca.crt']|replace('\n', '') %}
|
{% set trusttheca_text = salt['mine.get'](grains.id, 'x509.get_pem_entries')[grains.id]['/etc/pki/ca.crt']|replace('\n', '') %}
|
||||||
{% set ca_server = grains.id %}
|
{% set ca_server = grains.id %}
|
||||||
{% else %}
|
{% else %}
|
||||||
@@ -41,7 +41,7 @@ m2cryptopkgs:
|
|||||||
bits: 4096
|
bits: 4096
|
||||||
backup: True
|
backup: True
|
||||||
|
|
||||||
{% if grains['role'] == 'so-master' or grains['role'] == 'so-eval' or grains['role'] == 'so-helix' or grains['role'] == 'so-mastersearch' or grains['role'] == 'so-heavynode' %}
|
{% if grains['role'] == 'so-master' or grains['role'] == 'so-eval' or grains['role'] == 'so-helix' or grains['role'] == 'so-mastersearch' %}
|
||||||
|
|
||||||
# Request a cert and drop it where it needs to go to be distributed
|
# Request a cert and drop it where it needs to go to be distributed
|
||||||
/etc/pki/filebeat.crt:
|
/etc/pki/filebeat.crt:
|
||||||
|
|||||||
Reference in New Issue
Block a user