mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 09:42:46 +01:00
Merge branch 'dev' into bravo
This commit is contained in:
@@ -49,6 +49,16 @@ discovery.seed_hosts:
|
||||
- {{ SN.split('_')|first }}
|
||||
{%- endfor %}
|
||||
{%- endif %}
|
||||
{%- elif grains.role == 'so-managersearch' %}
|
||||
{%- if salt['pillar.get']('nodestab', {}) %}
|
||||
node.roles: [ master, data, remote_cluster_client ]
|
||||
discovery.seed_hosts:
|
||||
- {{ grains.master }}
|
||||
{%- for SN, SNDATA in salt['pillar.get']('nodestab', {}).items() %}
|
||||
- {{ SN.split('_')|first }}
|
||||
{%- endfor %}
|
||||
{%- endif %}
|
||||
node.attr.box_type: {{ NODE_ROUTE_TYPE }}
|
||||
{%- else %}
|
||||
node.roles: {{ NODE_ROLES }}
|
||||
node.attr.box_type: {{ NODE_ROUTE_TYPE }}
|
||||
|
||||
29
salt/elasticsearch/files/ingest/logscan.alert
Normal file
29
salt/elasticsearch/files/ingest/logscan.alert
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"description": "logscan",
|
||||
"processors": [
|
||||
{ "set": { "field": "event.severity", "value": 2 } },
|
||||
{ "json": { "field": "message", "add_to_root": true, "ignore_failure": true } },
|
||||
{ "rename": { "field": "@timestamp", "target_field": "event.ingested", "ignore_missing": true } },
|
||||
{ "date": { "field": "timestamp", "target_field": "event.created", "formats": [ "ISO8601", "UNIX" ], "ignore_failure": true } },
|
||||
{ "date": { "field": "start_time", "target_field": "@timestamp", "formats": [ "ISO8601", "UNIX" ], "ignore_failure": true } },
|
||||
{ "date": { "field": "start_time", "target_field": "event.start", "formats": [ "ISO8601", "UNIX" ], "ignore_failure": true } },
|
||||
{ "date": { "field": "end_time", "target_field": "event.end", "formats": [ "ISO8601", "UNIX" ], "ignore_failure": true } },
|
||||
{ "remove": { "field": "start_time", "ignore_missing": true } },
|
||||
{ "remove": { "field": "end_time", "ignore_missing": true } },
|
||||
{ "rename": { "field": "source_ip", "target_field": "source.ip", "ignore_missing": true } },
|
||||
{ "rename": { "field": "top_source_ips", "target_field": "logscan.source.ips", "ignore_missing": true } },
|
||||
{ "append": { "if": "ctx.source != null", "field": "logscan.source.ips", "value": "{{{source.ip}}}", "ignore_failure": true } },
|
||||
{ "set": { "if": "ctx.model == 'k1'", "field": "rule.name", "value": "LOGSCAN K1 MODEL THRESHOLD" } },
|
||||
{ "set": { "if": "ctx.model == 'k1'", "field": "rule.description", "value": "High number of logins from single IP in 1 minute window" } },
|
||||
{ "set": { "if": "ctx.model == 'k5'", "field": "rule.name", "value": "LOGSCAN K5 MODEL THRESHOLD" } },
|
||||
{ "set": { "if": "ctx.model == 'k5'", "field": "rule.description", "value": "High ratio of login failures from single IP in 5 minute window" } },
|
||||
{ "set": { "if": "ctx.model == 'k60'", "field": "rule.name", "value": "LOGSCAN K60 MODEL THRESHOLD" } },
|
||||
{ "set": { "if": "ctx.model == 'k60'", "field": "rule.description", "value": "Large number of login failures in 1 hour window" } },
|
||||
{ "rename": { "field": "model", "target_field": "logscan.model" } },
|
||||
{ "rename": { "field": "num_attempts", "target_field": "logscan.attempts.total.amount", "ignore_missing": true } },
|
||||
{ "rename": { "field": "num_failed", "target_field": "logscan.attempts.failed.amount", "ignore_missing": true } },
|
||||
{ "script": { "lang": "painless", "source": "ctx.logscan.attempts.succeeded.amount = ctx.logscan.attempts.total.amount - ctx.logscan.attempts.failed.amount" , "ignore_failure": true} },
|
||||
{ "rename": { "field": "avg_failure_interval", "target_field": "logscan.attempts.failed.avg_interval", "ignore_missing": true } },
|
||||
{ "pipeline": { "name": "common" } }
|
||||
]
|
||||
}
|
||||
@@ -313,6 +313,10 @@
|
||||
"type":"object",
|
||||
"dynamic": true
|
||||
},
|
||||
"logscan": {
|
||||
"type": "object",
|
||||
"dynamic": true
|
||||
},
|
||||
"manager":{
|
||||
"type":"object",
|
||||
"dynamic": true
|
||||
|
||||
Reference in New Issue
Block a user