-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ML] Adds Metadata and Discovery Analysis Jobs to Security Integration #76023
Merged
blaklaybul
merged 13 commits into
elastic:master
from
blaklaybul:ml-security-metadata-analysis
Sep 10, 2020
Merged
Changes from 6 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a295517
adds enhanced winlogbeat module
blaklaybul 0f0ca94
adds enhanced auditbeat module
blaklaybul 39c2bf3
splits discovery jobs
blaklaybul 2ac8f58
Merge branch 'master' into ml-security-metadata-analysis
elasticmachine 171eb59
fixes winlogbeat manifest
blaklaybul 1043b4f
Merge remote-tracking branch 'origin/ml-security-metadata-analysis' i…
blaklaybul 2963e7a
adds process group
blaklaybul c5c7cb4
adds custom urls
blaklaybul b9cb89f
adds by field as influencer
blaklaybul 1c2f034
Merge branch 'master' into ml-security-metadata-analysis
elasticmachine d5ccd80
use process.title as influencer
blaklaybul 1aed23f
Merge branch 'ml-security-metadata-analysis' of github.com:blaklaybul…
blaklaybul 734da20
updates custom url
blaklaybul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"}} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...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,33 @@ | ||
{ | ||
"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" | ||
], | ||
"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" | ||
] | ||
}, | ||
"allow_lazy_open": true, | ||
"analysis_limits": { | ||
"model_memory_limit": "64mb" | ||
}, | ||
"data_description": { | ||
"time_field": "@timestamp" | ||
}, | ||
"custom_settings": { | ||
"created_by": "ml-module-siem-auditbeat" | ||
peteharverson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
.../models/data_recognizer/modules/siem_auditbeat/ml/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,33 @@ | ||
{ | ||
"job_type": "anomaly_detector", | ||
"description": "Security: Auditbeat - Looks for commands related to system network connection 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 connection discovery in order to increase their understanding of connected services and systems. This information may be used to shape follow-up behaviors such as lateral movement or additional discovery.", | ||
"groups": [ | ||
"security", | ||
"auditbeat" | ||
], | ||
"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" | ||
] | ||
}, | ||
"allow_lazy_open": true, | ||
"analysis_limits": { | ||
"model_memory_limit": "64mb" | ||
}, | ||
"data_description": { | ||
"time_field": "@timestamp" | ||
}, | ||
"custom_settings": { | ||
"created_by": "ml-module-siem-auditbeat" | ||
peteharverson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the description for this module still OK, or does it need amending to reflect the new mix of jobs in this module?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@randomuserid how would you like this to be updated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see why that description cannot apply to the new Linux jobs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great - leaving it as is