AWS RDS Snapshot Restored

Identifies when an attempt was made to restore an RDS Snapshot. Snapshots are sometimes shared by threat actors in order to exfiltrate bulk data or evade detection after performing malicious activities. If the permissions were modified, verify if the snapshot was shared with an unauthorized or unexpected AWS account.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2021/06/29"
 3integration = ["aws"]
 4maturity = "production"
 5updated_date = "2024/05/21"
 6
 7[rule]
 8author = ["Austin Songer"]
 9description = """
10Identifies when an attempt was made to restore an RDS Snapshot. Snapshots are sometimes shared by threat actors in order
11to exfiltrate bulk data or evade detection after performing malicious activities. If the permissions were modified,
12verify if the snapshot was shared with an unauthorized or unexpected AWS account.
13"""
14false_positives = [
15    """
16    Restoring snapshots may be done by a system or network administrator. Verify whether the user identity, user agent,
17    and/or hostname should be making changes in your environment. Snapshot restoration by unfamiliar users or hosts
18    should be investigated. If known behavior is causing false positives, it can be exempted from the rule.
19    """,
20]
21index = ["filebeat-*", "logs-aws.cloudtrail-*"]
22language = "kuery"
23license = "Elastic License v2"
24name = "AWS RDS Snapshot Restored"
25note = """## Setup
26
27The AWS Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule."""
28references = [
29    "https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_RestoreDBInstanceFromDBSnapshot.html",
30    "https://github.com/RhinoSecurityLabs/pacu/blob/master/pacu/modules/rds__explore_snapshots/main.py",
31]
32risk_score = 47
33rule_id = "bf1073bf-ce26-4607-b405-ba1ed8e9e204"
34severity = "medium"
35tags = [
36    "Domain: Cloud",
37    "Data Source: AWS",
38    "Data Source: Amazon Web Services",
39    "Use Case: Asset Visibility",
40    "Tactic: Defense Evasion",
41]
42timestamp_override = "event.ingested"
43type = "query"
44
45query = '''
46event.dataset:aws.cloudtrail and event.provider:rds.amazonaws.com and event.action:RestoreDBInstanceFromDBSnapshot and
47event.outcome:success
48'''
49
50
51[[rule.threat]]
52framework = "MITRE ATT&CK"
53[[rule.threat.technique]]
54id = "T1578"
55name = "Modify Cloud Compute Infrastructure"
56reference = "https://attack.mitre.org/techniques/T1578/"
57[[rule.threat.technique.subtechnique]]
58id = "T1578.004"
59name = "Revert Cloud Instance"
60reference = "https://attack.mitre.org/techniques/T1578/004/"
61
62
63
64[rule.threat.tactic]
65id = "TA0005"
66name = "Defense Evasion"
67reference = "https://attack.mitre.org/tactics/TA0005/"

Setup

The AWS Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.

References

Related rules

to-top