forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Adds Metadata and Discovery Analysis Jobs to Security Integration (
elastic#76023) * adds enhanced winlogbeat module * adds enhanced auditbeat module * splits discovery jobs * fixes winlogbeat manifest * adds process group * adds custom urls * adds by field as influencer * use process.title as influencer * updates custom url Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
- Loading branch information
1 parent
87554c9
commit 5d05b07
Showing
26 changed files
with
938 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
..._recognizer/modules/siem_auditbeat/ml/datafeed_linux_network_configuration_discovery.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"job_id": "JOB_ID", | ||
"indices": [ | ||
"INDEX_PATTERN_NAME" | ||
], | ||
"max_empty_searches": 10, | ||
"query": { | ||
"bool": { | ||
"must": [ | ||
{ | ||
"bool": { | ||
"should": [ | ||
{"term": {"process.name": "arp"}}, | ||
{"term": {"process.name": "echo"}}, | ||
{"term": {"process.name": "ethtool"}}, | ||
{"term": {"process.name": "ifconfig"}}, | ||
{"term": {"process.name": "ip"}}, | ||
{"term": {"process.name": "iptables"}}, | ||
{"term": {"process.name": "ufw"}} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...ata_recognizer/modules/siem_auditbeat/ml/datafeed_linux_network_connection_discovery.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"job_id": "JOB_ID", | ||
"indices": [ | ||
"INDEX_PATTERN_NAME" | ||
], | ||
"max_empty_searches": 10, | ||
"query": { | ||
"bool": { | ||
"must": [ | ||
{ | ||
"bool": { | ||
"should": [ | ||
{"term": {"process.name": "netstat"}}, | ||
{"term": {"process.name": "ss"}}, | ||
{"term": {"process.name": "route"}}, | ||
{"term": {"process.name": "showmount"}} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...ata_recognizer/modules/siem_auditbeat/ml/datafeed_linux_rare_kernel_module_arguments.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"job_id": "JOB_ID", | ||
"indices": [ | ||
"INDEX_PATTERN_NAME" | ||
], | ||
"max_empty_searches": 10, | ||
"query": { | ||
"bool": { | ||
"filter": [{"exists": {"field": "process.title"}}], | ||
"must": [ | ||
{"bool": { | ||
"should": [ | ||
{"term": {"process.name": "insmod"}}, | ||
{"term": {"process.name": "kmod"}}, | ||
{"term": {"process.name": "modprobe"}}, | ||
{"term": {"process.name": "rmod"}} | ||
] | ||
}} | ||
] | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...odels/data_recognizer/modules/siem_auditbeat/ml/datafeed_linux_rare_metadata_process.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"job_id": "JOB_ID", | ||
"indices": [ | ||
"INDEX_PATTERN_NAME" | ||
], | ||
"max_empty_searches": 10, | ||
"query": { | ||
"bool": { | ||
"filter": [{"term": {"destination.ip": "169.254.169.254"}}] | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...r/models/data_recognizer/modules/siem_auditbeat/ml/datafeed_linux_rare_metadata_user.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"job_id": "JOB_ID", | ||
"indices": [ | ||
"INDEX_PATTERN_NAME" | ||
], | ||
"max_empty_searches": 10, | ||
"query": { | ||
"bool": { | ||
"filter": [{"term": {"destination.ip": "169.254.169.254"}}] | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...erver/models/data_recognizer/modules/siem_auditbeat/ml/datafeed_linux_rare_sudo_user.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"job_id": "JOB_ID", | ||
"indices": [ | ||
"INDEX_PATTERN_NAME" | ||
], | ||
"max_empty_searches": 10, | ||
"query": { | ||
"bool": { | ||
"filter": [ | ||
{"term": {"event.action": "executed"}}, | ||
{"term": {"process.name": "sudo"}} | ||
] | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...r/models/data_recognizer/modules/siem_auditbeat/ml/datafeed_linux_rare_user_compiler.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"job_id": "JOB_ID", | ||
"indices": [ | ||
"INDEX_PATTERN_NAME" | ||
], | ||
"max_empty_searches": 10, | ||
"query": { | ||
"bool": { | ||
"filter": [{"term": {"event.action": "executed"}}], | ||
"must": [ | ||
{"bool": { | ||
"should": [ | ||
{"term": {"process.name": "compile"}}, | ||
{"term": {"process.name": "gcc"}}, | ||
{"term": {"process.name": "make"}}, | ||
{"term": {"process.name": "yasm"}} | ||
] | ||
}} | ||
] | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...ata_recognizer/modules/siem_auditbeat/ml/datafeed_linux_system_information_discovery.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"job_id": "JOB_ID", | ||
"indices": [ | ||
"INDEX_PATTERN_NAME" | ||
], | ||
"max_empty_searches": 10, | ||
"query": { | ||
"bool": { | ||
"must": [ | ||
{ | ||
"bool": { | ||
"should": [ | ||
{"term": {"process.name": "cat"}}, | ||
{"term": {"process.name": "grep"}}, | ||
{"term": {"process.name": "head"}}, | ||
{"term": {"process.name": "hostname"}}, | ||
{"term": {"process.name": "less"}}, | ||
{"term": {"process.name": "ls"}}, | ||
{"term": {"process.name": "lsmod"}}, | ||
{"term": {"process.name": "more"}}, | ||
{"term": {"process.name": "strings"}}, | ||
{"term": {"process.name": "tail"}}, | ||
{"term": {"process.name": "uptime"}}, | ||
{"term": {"process.name": "uname"}} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...ls/data_recognizer/modules/siem_auditbeat/ml/datafeed_linux_system_process_discovery.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"job_id": "JOB_ID", | ||
"indices": [ | ||
"INDEX_PATTERN_NAME" | ||
], | ||
"max_empty_searches": 10, | ||
"query": { | ||
"bool": { | ||
"must": [ | ||
{ | ||
"bool": { | ||
"should": [ | ||
{"term": {"process.name": "ps"}}, | ||
{"term": {"process.name": "top"}} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...odels/data_recognizer/modules/siem_auditbeat/ml/datafeed_linux_system_user_discovery.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"job_id": "JOB_ID", | ||
"indices": [ | ||
"INDEX_PATTERN_NAME" | ||
], | ||
"max_empty_searches": 10, | ||
"query": { | ||
"bool": { | ||
"must": [ | ||
{ | ||
"bool": { | ||
"should": [ | ||
{"term": {"process.name": "users"}}, | ||
{"term": {"process.name": "w"}}, | ||
{"term": {"process.name": "who"}}, | ||
{"term": {"process.name": "whoami"}} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
...dels/data_recognizer/modules/siem_auditbeat/ml/linux_network_configuration_discovery.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"job_type": "anomaly_detector", | ||
"description": "Security: Auditbeat - Looks for commands related to system network configuration discovery from an unusual user context. This can be due to uncommon troubleshooting activity or due to a compromised account. A compromised account may be used by a threat actor to engage in system network configuration discovery in order to increase their understanding of connected networks and hosts. This information may be used to shape follow-up behaviors such as lateral movement or additional discovery.", | ||
"groups": [ | ||
"security", | ||
"auditbeat", | ||
"process" | ||
], | ||
"analysis_config": { | ||
"bucket_span": "15m", | ||
"detectors": [ | ||
{ | ||
"detector_description": "rare by \"user.name\"", | ||
"function": "rare", | ||
"by_field_name": "user.name" | ||
} | ||
], | ||
"influencers": [ | ||
"process.name", | ||
"host.name", | ||
"process.args", | ||
"user.name" | ||
] | ||
}, | ||
"allow_lazy_open": true, | ||
"analysis_limits": { | ||
"model_memory_limit": "64mb" | ||
}, | ||
"data_description": { | ||
"time_field": "@timestamp" | ||
}, | ||
"custom_settings": { | ||
"created_by": "ml-module-siem-auditbeat", | ||
"custom_urls": [ | ||
{ | ||
"url_name": "Host Details by process name", | ||
"url_value": "security/hosts/ml-hosts/$host.name$?_g=()&query=(query:'process.name%20:%20%22$process.name$%22',language:kuery)&timerange=(global:(linkTo:!(timeline),timerange:(from:'$earliest$',kind:absolute,to:'$latest$')),timeline:(linkTo:!(global),timerange:(from:'$earliest$',kind:absolute,to:'$latest$')))" | ||
}, | ||
{ | ||
"url_name": "Host Details by user name", | ||
"url_value": "security/hosts/ml-hosts/$host.name$?_g=()&query=(query:'user.name%20:%20%22$user.name$%22',language:kuery)&timerange=(global:(linkTo:!(timeline),timerange:(from:'$earliest$',kind:absolute,to:'$latest$')),timeline:(linkTo:!(global),timerange:(from:'$earliest$',kind:absolute,to:'$latest$')))" | ||
}, | ||
{ | ||
"url_name": "Hosts Overview by process name", | ||
"url_value": "security/hosts/ml-hosts?_g=()&query=(query:'process.name%20:%20%22$process.name$%22',language:kuery)&timerange=(global:(linkTo:!(timeline),timerange:(from:'$earliest$',kind:absolute,to:'$latest$')),timeline:(linkTo:!(global),timerange:(from:'$earliest$',kind:absolute,to:'$latest$')))" | ||
}, | ||
{ | ||
"url_name": "Hosts Overview by user name", | ||
"url_value": "security/hosts/ml-hosts?_g=()&query=(query:'user.name%20:%20%22$user.name$%22',language:kuery)&timerange=(global:(linkTo:!(timeline),timerange:(from:'$earliest$',kind:absolute,to:'$latest$')),timeline:(linkTo:!(global),timerange:(from:'$earliest$',kind:absolute,to:'$latest$')))" | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.