-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tuning] Windows Discovery Rule Tuning for UEBA (#3097)
* [Tuning] Win DR Tuning for UEBA * Need to get used to Windows formatting * Added additional content * Updated min stack * Added additional tuning * Fixed unit testing for KQL optimization * Update rules_building_block/discovery_internet_capabilities.toml * Additional tuning * Kuery optimization * Additional tuning * Additional tuning * Additional tuning * Additional tuning * Unit testing optimization fix * optimization * tuning * Optimization * Update rules/windows/discovery_privileged_localgroup_membership.toml * Added feedback * Update rules/windows/discovery_privileged_localgroup_membership.toml Co-authored-by: Justin Ibarra <[email protected]> * Update rules/windows/discovery_remote_system_discovery_commands_windows.toml Co-authored-by: Justin Ibarra <[email protected]> * Update rules/windows/discovery_system_service_discovery.toml Co-authored-by: Justin Ibarra <[email protected]> * added host.id as additional new_terms field * Reworked a lot. * kibana.alert.rule.rule_id to non-ecs-schema.json * Fixed index by adding a dot * fixed typo * Added host.os.type:windows for signals * Added additional tag * Added Higher-Order Rule tag * Stripped down signal rules down to two * revert * Update rules/windows/discovery_admin_recon.toml Co-authored-by: Samirbous <[email protected]> * Update rules/windows/discovery_enumerating_domain_trusts_via_nltest.toml Co-authored-by: Samirbous <[email protected]> * Update rules_building_block/discovery_generic_registry_query.toml Co-authored-by: Samirbous <[email protected]> * Update rules_building_block/discovery_system_time_discovery.toml Co-authored-by: Samirbous <[email protected]> * Update rules/windows/discovery_privileged_localgroup_membership.toml Co-authored-by: Samirbous <[email protected]> * Update discovery_generic_registry_query.toml * Readded exclusions * Added trailing wildcards for KQL * Update discovery_privileged_localgroup_membership.toml * Update rules_building_block/discovery_signal_unusual_user_host.toml Co-authored-by: Jonhnathan <[email protected]> * Update rules/windows/discovery_signal_unusual_discovery_signal_proc_cmdline.toml Co-authored-by: Justin Ibarra <[email protected]> * Formatting fix --------- Co-authored-by: Justin Ibarra <[email protected]> Co-authored-by: Samirbous <[email protected]> Co-authored-by: Jonhnathan <[email protected]> (cherry picked from commit 4cdf521)
- Loading branch information
1 parent
a33ef18
commit c6030f6
Showing
20 changed files
with
468 additions
and
174 deletions.
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
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
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
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
53 changes: 53 additions & 0 deletions
53
rules/windows/discovery_signal_unusual_discovery_signal_proc_cmdline.toml
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 @@ | ||
[metadata] | ||
creation_date = "2023/09/22" | ||
maturity = "production" | ||
min_stack_comments = "Multiple field support in the New Terms rule type was added in Elastic 8.6" | ||
min_stack_version = "8.6.0" | ||
updated_date = "2023/09/22" | ||
|
||
[rule] | ||
author = ["Elastic"] | ||
description = """ | ||
This rule leverages alert data from various Discovery building block rules to alert on signals with unusual unique | ||
host.id, user.id and process.command_line entries. | ||
""" | ||
from = "now-9m" | ||
index = [".alerts-security.*"] | ||
language = "kuery" | ||
license = "Elastic License v2" | ||
name = "Unusual Discovery Signal Alert with Unusual Process Command Line" | ||
risk_score = 21 | ||
rule_id = "29ef5686-9b93-433e-91b5-683911094698" | ||
severity = "low" | ||
tags = ["Domain: Endpoint", | ||
"OS: Windows", | ||
"Use Case: Threat Detection", | ||
"Tactic: Discovery", | ||
"Rule Type: Higher-Order Rule" | ||
] | ||
timestamp_override = "event.ingested" | ||
type = "new_terms" | ||
query = ''' | ||
host.os.type:windows and event.kind:signal and kibana.alert.rule.rule_id:( | ||
"d68e95ad-1c82-4074-a12a-125fe10ac8ba" or "7b8bfc26-81d2-435e-965c-d722ee397ef1" or | ||
"0635c542-1b96-4335-9b47-126582d2c19a" or "6ea55c81-e2ba-42f2-a134-bccf857ba922" or | ||
"e0881d20-54ac-457f-8733-fe0bc5d44c55" or "06568a02-af29-4f20-929c-f3af281e41aa" or | ||
"c4e9ed3e-55a2-4309-a012-bc3c78dad10a" or "51176ed2-2d90-49f2-9f3d-17196428b169" | ||
) | ||
''' | ||
|
||
[[rule.threat]] | ||
framework = "MITRE ATT&CK" | ||
|
||
[rule.threat.tactic] | ||
id = "TA0007" | ||
name = "Discovery" | ||
reference = "https://attack.mitre.org/tactics/TA0007/" | ||
|
||
[rule.new_terms] | ||
field = "new_terms_fields" | ||
value = ["host.id", "user.id", "process.command_line"] | ||
|
||
[[rule.new_terms.history_window_start]] | ||
field = "history_window_start" | ||
value = "now-14d" |
Oops, something went wrong.