Skip to content

Commit 2f20057

Browse files
committed
rule type change from eql to kql
changing rule type to kql since there's not eql specific functions needed for the query
1 parent ff19a47 commit 2f20057

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

rules/integrations/aws/defense_evasion_rds_instance_restored.toml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2021/06/29"
33
integration = ["aws"]
44
maturity = "production"
5-
updated_date = "2025/11/24"
5+
updated_date = "2025/12/01"
66

77
[rule]
88
author = ["Austin Songer", "Elastic"]
@@ -13,7 +13,6 @@ sensitive data from a duplicated environment. This rule detects successful resto
1313
"RestoreDBInstanceFromDBSnapshot" or "RestoreDBInstanceFromS3", which may indicate unauthorized data access or
1414
post-compromise defense evasion.
1515
"""
16-
event_category_override = "event.type"
1716
false_positives = [
1817
"""
1918
Restoring an RDS DB instance may be performed legitimately during troubleshooting, development refresh processes,
@@ -23,7 +22,7 @@ false_positives = [
2322
""",
2423
]
2524
index = ["filebeat-*", "logs-aws.cloudtrail-*"]
26-
language = "eql"
25+
language = "kuery"
2726
license = "Elastic License v2"
2827
name = "AWS RDS DB Instance Restored"
2928
note = """## Triage and analysis
@@ -146,13 +145,13 @@ tags = [
146145
"Resources: Investigation Guide",
147146
]
148147
timestamp_override = "event.ingested"
149-
type = "eql"
148+
type = "query"
150149

151150
query = '''
152-
info where event.dataset == "aws.cloudtrail"
153-
and event.provider == "rds.amazonaws.com"
154-
and event.action in ("RestoreDBInstanceFromDBSnapshot", "RestoreDBInstanceFromS3")
155-
and event.outcome == "success"
151+
event.dataset: "aws.cloudtrail"
152+
and event.provider: "rds.amazonaws.com"
153+
and event.action: ("RestoreDBInstanceFromDBSnapshot" or "RestoreDBInstanceFromS3")
154+
and event.outcome: "success"
156155
'''
157156

158157

0 commit comments

Comments
 (0)