Skip to content

Commit a1d1f24

Browse files
committed
[Rule Tuning] Add Missing Metadata to KEEP conditions
1 parent 793ecfe commit a1d1f24

5 files changed

+14
-10
lines changed

rules/cross-platform/defense_evasion_whitespace_padding_command_line.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2025/06/30"
33
integration = ["endpoint", "system", "windows", "auditd_manager", "m365_defender", "crowdstrike", "sentinel_one_cloud_funnel"]
44
maturity = "production"
5-
updated_date = "2025/06/30"
5+
updated_date = "2025/12/09"
66

77
[rule]
88
author = ["Elastic"]
@@ -90,7 +90,7 @@ FROM logs-* metadata _id, _version, _index
9090
// more than 100 spaces in process.command_line
9191
| eval multi_spaces = LOCATE(process.command_line, space(100))
9292
| where multi_spaces > 0
93-
| keep user.name, host.id, host.name, process.command_line, process.executable, process.parent.executable
93+
| keep user.name, host.id, host.name, process.command_line, process.executable, process.parent.executable, _id
9494
'''
9595

9696

rules/integrations/aws/impact_s3_object_encryption_with_external_key.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2024/07/02"
33
integration = ["aws"]
44
maturity = "production"
5-
updated_date = "2025/12/02"
5+
updated_date = "2025/12/09"
66

77
[rule]
88
author = ["Elastic"]
@@ -201,7 +201,8 @@ from logs-aws.cloudtrail-* metadata _id, _version, _index
201201
Esql.aws_cloudtrail_request_parameters_target_bucket_name,
202202
Esql.aws_cloudtrail_request_parameters_target_object_key,
203203
Esql.aws_cloudtrail_request_parameters_kms_key_account_id,
204-
Esql.aws_cloudtrail_request_parameters_kms_key_id
204+
Esql.aws_cloudtrail_request_parameters_kms_key_id,
205+
_id
205206
'''
206207

207208

rules/integrations/aws/impact_s3_static_site_js_file_uploaded.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2025/04/15"
33
integration = ["aws"]
44
maturity = "production"
5-
updated_date = "2025/10/28"
5+
updated_date = "2025/12/09"
66

77
[rule]
88
author = ["Elastic"]
@@ -113,7 +113,8 @@ from logs-aws.cloudtrail* metadata _id, _version, _index
113113
user_agent.original,
114114
source.ip,
115115
event.action,
116-
@timestamp
116+
@timestamp,
117+
_id
117118
'''
118119

119120

rules/integrations/aws/persistence_iam_user_created_access_keys_for_another_user.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2024/06/13"
33
integration = ["aws"]
44
maturity = "production"
5-
updated_date = "2025/10/13"
5+
updated_date = "2025/12/09"
66

77
[rule]
88
author = ["Elastic"]
@@ -156,7 +156,8 @@ from logs-aws.cloudtrail-* metadata _id, _version, _index
156156
aws.cloudtrail.user_identity.arn,
157157
aws.cloudtrail.user_identity.type,
158158
aws.cloudtrail.user_identity.access_key_id,
159-
source.geo.*
159+
source.geo.*,
160+
_id
160161
'''
161162

162163

rules/integrations/azure/persistence_entra_id_oidc_discovery_url_change.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2025/07/14"
33
integration = ["azure"]
44
maturity = "production"
5-
updated_date = "2025/09/26"
5+
updated_date = "2025/12/09"
66

77
[rule]
88
author = ["Elastic"]
@@ -81,7 +81,8 @@ from logs-azure.auditlogs-* metadata _id, _version, _index
8181
source.geo.region_name,
8282
source.geo.country_name,
8383
Esql.azure_auditlogs_properties_auth_oidc_discovery_url_new,
84-
Esql.azure_auditlogs_properties_auth_oidc_discovery_url_old
84+
Esql.azure_auditlogs_properties_auth_oidc_discovery_url_old,
85+
_id
8586
'''
8687

8788

0 commit comments

Comments
 (0)