forked from elastic/detection-rules
-
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.
[New Rule] AWS RDS Snapshot Deleted (elastic#3852)
* [New Rule] AWS RDS Snapshot Deleted * added coverage for backupRetentionPeriod set to 0
- Loading branch information
Showing
1 changed file
with
63 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
[metadata] | ||
creation_date = "2024/06/29" | ||
integration = ["aws"] | ||
maturity = "production" | ||
updated_date = "2024/06/29" | ||
|
||
[rule] | ||
author = ["Elastic"] | ||
description = """ | ||
Identifies the deletion of an AWS RDS DB snapshot. Snapshots contain a full backup of an entire DB instance. Unauthorized deletion of snapshots can make it impossible to recover critical or sensitive data. This rule detects deleted snapshots and instances modified so that backupRetentionPeriod is set to 0 which disables automated backups and is functionally similar to deleting the system snapshot. | ||
""" | ||
false_positives = [ | ||
""" | ||
Snapshots may be deleted by a system administrator. Verify whether the user identity should be making changes in your environment. Snapshot deletions by unfamiliar users or hosts should be investigated. If known behavior is causing false positives, it can be exempted from the rule. | ||
""", | ||
] | ||
from = "now-10m" | ||
index = ["filebeat-*", "logs-aws.cloudtrail-*"] | ||
language = "eql" | ||
license = "Elastic License v2" | ||
name = "AWS RDS Snapshot Deleted" | ||
references = [ | ||
"https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteSnapshot.html", | ||
"https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DeleteDBSnapshot.html", | ||
] | ||
risk_score = 47 | ||
rule_id = "b36c99af-b944-4509-a523-7e0fad275be1" | ||
severity = "medium" | ||
tags = [ | ||
"Domain: Cloud", | ||
"Data Source: AWS", | ||
"Data Source: Amazon Web Services", | ||
"Data Source: AWS RDS", | ||
"Use Case: Asset Visibility", | ||
"Tactic: Impact", | ||
] | ||
timestamp_override = "event.ingested" | ||
type = "eql" | ||
|
||
query = ''' | ||
any where event.dataset == "aws.cloudtrail" | ||
and event.provider == "rds.amazonaws.com" | ||
and event.outcome == "success" | ||
and ( | ||
event.action in ("DeleteDBSnapshot", "DeleteDBClusterSnapshot") or | ||
(event.action == "ModifyDBInstance" and stringContains(aws.cloudtrail.request_parameters, "backupRetentionPeriod=0")) | ||
) | ||
''' | ||
|
||
|
||
[[rule.threat]] | ||
framework = "MITRE ATT&CK" | ||
[[rule.threat.technique]] | ||
id = "T1485" | ||
name = "Data Destruction" | ||
reference = "https://attack.mitre.org/techniques/T1485/" | ||
|
||
|
||
[rule.threat.tactic] | ||
id = "TA0040" | ||
name = "Impact" | ||
reference = "https://attack.mitre.org/tactics/TA0040/" | ||
|