AWS S3 Bucket Configuration Deletion

Identifies the deletion of various Amazon Simple Storage Service (S3) bucket configuration components.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2020/05/27"
 3integration = ["aws"]
 4maturity = "production"
 5updated_date = "2024/05/21"
 6
 7[rule]
 8author = ["Elastic"]
 9description = "Identifies the deletion of various Amazon Simple Storage Service (S3) bucket configuration components."
10false_positives = [
11    """
12    Bucket components may be deleted by a system or network administrator. Verify whether the user identity, user agent,
13    and/or hostname should be making changes in your environment. Bucket component deletions by unfamiliar users or
14    hosts should be investigated. If known behavior is causing false positives, it can be exempted from the rule.
15    """,
16]
17from = "now-60m"
18index = ["filebeat-*", "logs-aws.cloudtrail-*"]
19interval = "10m"
20language = "kuery"
21license = "Elastic License v2"
22name = "AWS S3 Bucket Configuration Deletion"
23note = """## Setup
24
25The AWS Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule."""
26references = [
27    "https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketPolicy.html",
28    "https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketReplication.html",
29    "https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketCors.html",
30    "https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketEncryption.html",
31    "https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketLifecycle.html",
32]
33risk_score = 21
34rule_id = "227dc608-e558-43d9-b521-150772250bae"
35severity = "low"
36tags = [
37    "Domain: Cloud",
38    "Data Source: AWS",
39    "Data Source: Amazon Web Services",
40    "Use Case: Asset Visibility",
41    "Tactic: Defense Evasion",
42]
43timestamp_override = "event.ingested"
44type = "query"
45
46query = '''
47event.dataset:aws.cloudtrail and event.provider:s3.amazonaws.com and
48  event.action:(DeleteBucketPolicy or DeleteBucketReplication or DeleteBucketCors or
49                DeleteBucketEncryption or DeleteBucketLifecycle)
50  and event.outcome:success
51'''
52
53
54[[rule.threat]]
55framework = "MITRE ATT&CK"
56[[rule.threat.technique]]
57id = "T1070"
58name = "Indicator Removal"
59reference = "https://attack.mitre.org/techniques/T1070/"
60
61
62[rule.threat.tactic]
63id = "TA0005"
64name = "Defense Evasion"
65reference = "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