You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description = "Identifies the deletion of a specified AWS Web Application Firewall (WAF) access control list."
9
+
description = """
10
+
Identifies the deletion of an AWS Web Application Firewall (WAF) Web ACL. Web ACLs are the core enforcement objects in
11
+
AWS WAF, defining which traffic is inspected, allowed, or blocked for protected applications. Deleting a Web ACL removes
12
+
all associated rules, protections, and logging configurations. Adversaries who obtain sufficient privileges may delete a
13
+
Web ACL to disable critical security controls, evade detection, or prepare for downstream attacks such as
14
+
web-application compromise, data theft, or resource abuse. Because Web ACLs are rarely deleted outside of controlled
15
+
maintenance or infrastructure updates, unexpected deletions may indicate potential defense evasion.
16
+
"""
10
17
false_positives = [
11
18
"""
12
-
Firewall ACL's 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. Web ACL deletions by unfamiliar users or hosts should
14
-
be investigated. If known behavior is causing false positives, it can be exempted from the rule.
19
+
Authorized administrators may delete Web ACLs as part of planned migrations, infrastructure refactoring, or
20
+
automation-driven redeployments. Ensure the deletion aligns with approved change requests, maintenance windows, or
21
+
known IaC workflows. Deletions performed by unfamiliar users, unusual identities, or unexpected automation should be
22
+
investigated.
15
23
""",
16
24
]
17
-
from = "now-60m"
25
+
from = "now-6m"
18
26
index = ["filebeat-*", "logs-aws.cloudtrail-*"]
19
-
interval = "10m"
20
27
language = "kuery"
21
28
license = "Elastic License v2"
22
29
name = "AWS WAF Access Control List Deletion"
23
30
note = """## Triage and analysis
24
31
25
32
> **Disclaimer**:
26
-
> This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.
33
+
> This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance.
34
+
> While every effort has been made to ensure its quality, validate and adapt it to suit your operational needs.
27
35
28
36
### Investigating AWS WAF Access Control List Deletion
29
37
30
-
AWS Web Application Firewall (WAF) protects web applications by controlling access based on defined rules. Deleting an Access Control List (ACL) can expose applications to threats by removing these protective rules. Adversaries may exploit this to bypass defenses, facilitating unauthorized access or data exfiltration. The detection rule monitors for successful ACL deletions, signaling potential defense evasion attempts.
38
+
AWS Web Application Firewall (WAF) protects applications by inspecting HTTP/S traffic and applying rule groups,
39
+
managed rule sets, and custom logic to block or allow requests. A Web ACL is the primary enforcement object that binds
40
+
these protections to CloudFront distributions, Application Load Balancers, API Gateway stages, and AppSync APIs.
41
+
42
+
Deleting a Web ACL immediately removes all protections and logging associated with that application entry point.
43
+
Because this action can expose applications to direct exploitation, adversaries may delete Web ACLs to disable
44
+
defenses, evade detection, or prepare for lateral movement or data exfiltration.
45
+
46
+
This rule detects successful `DeleteWebACL` events across WAF Classic, WAF Regional, and WAFv2 APIs.
31
47
32
48
### Possible investigation steps
33
49
34
-
- Review the CloudTrail logs for the specific event.action:DeleteWebACL to identify the user or role that initiated the deletion. Check the event.userIdentity field for details.
35
-
- Examine the event.time field to determine when the deletion occurred and correlate it with any other suspicious activities or alerts around the same timeframe.
36
-
- Investigate the event.sourceIPAddress to identify the origin of the request and assess if it aligns with known IP addresses or locations associated with your organization.
37
-
- Check the AWS WAF configuration history to understand the context of the deleted ACL, including its rules and the applications it was protecting.
38
-
- Assess the impact of the ACL deletion by reviewing access logs for the affected applications to identify any unusual or unauthorized access attempts following the deletion.
39
-
- Verify if there are any recent changes in IAM policies or permissions that could have allowed unauthorized users to delete the ACL.
50
+
- **Identify the actor and access context**
51
+
- Review `aws.cloudtrail.user_identity.arn` and `access_key_id` for the identity that initiated deletion.
52
+
- Determine whether this principal normally manages WAF resources.
53
+
- Check if the call originated via IAM role assumption, federated identity, or long-lived IAM key.
54
+
55
+
- **Assess the deleted ACL**
56
+
- Check `aws.cloudtrail.request_parameters` for:
57
+
- The Web ACL ID (`WebACLId`, `Id`, or ARN).
58
+
- The scope (REGIONAL vs. CLOUDFRONT).
59
+
- Associated resource ARNs that were protected.
60
+
- Determine which applications or APIs depended on this Web ACL.
61
+
- Evaluate the criticality and sensitivity of any exposed endpoints.
62
+
63
+
- **Correlate with related security-affecting activity**
64
+
- Use CloudTrail to pivot on:
65
+
- The same identity (`user_identity.arn` or access key).
66
+
- The same application load balancer, CloudFront distribution, or API Gateway stage.
- If deletion occurred outside expected time windows or without a corresponding change ticket, treat it as suspicious.
40
82
41
83
### False positive analysis
42
84
43
-
- Routine maintenance or updates by authorized personnel may trigger ACL deletions. Verify if the deletion aligns with scheduled maintenance activities and consider excluding these events from alerts.
44
-
- Automated scripts or tools used for infrastructure management might delete and recreate ACLs as part of their normal operation. Identify these scripts and whitelist their actions to prevent unnecessary alerts.
45
-
- Changes in security policies or architecture might necessitate the removal of certain ACLs. Ensure that such changes are documented and approved, and exclude these events from monitoring if they are part of a planned update.
46
-
- Test environments often undergo frequent configuration changes, including ACL deletions. Differentiate between production and test environments and adjust monitoring rules to reduce false positives in non-production settings.
85
+
- **Expected infrastructure lifecycle events**
86
+
- IaC pipelines may destroy and recreate Web ACLs as part of environment rotation or blue/green deployments.
87
+
- Confirm whether the deleting identity matches known automation roles.
47
88
48
-
### Response and remediation
89
+
- **Planned refactoring or migrations**
90
+
- Organizations transitioning to WAFv2 or moving resources across regions may intentionally delete legacy ACLs.
91
+
92
+
- **Testing and sandbox environments**
93
+
- Developers may frequently create and remove ACLs during experimentation.
94
+
- Tune the rule to suppress events from non-production accounts or specific tags.
49
95
50
-
- Immediately revoke any access keys or credentials associated with the user or role that performed the ACL deletion to prevent further unauthorized actions.
51
-
- Restore the deleted AWS WAF Access Control List from a backup or recreate it using documented configurations to re-establish protective rules.
52
-
- Conduct a thorough review of recent access logs and CloudTrail events to identify any unauthorized access or data exfiltration attempts that may have occurred following the ACL deletion.
53
-
- Notify the security operations team and relevant stakeholders about the incident for awareness and further investigation.
54
-
- Implement additional monitoring and alerting for any future attempts to delete or modify AWS WAF ACLs, ensuring rapid detection and response.
55
-
- Review and tighten IAM policies to ensure that only authorized personnel have permissions to delete or modify AWS WAF configurations.
56
-
- Consider enabling AWS Config rules to continuously monitor and alert on changes to critical AWS resources, including WAF ACLs, to prevent similar incidents.
96
+
- **Automated cleanup**
97
+
- Certain CI/CD processes or teardown scripts remove WAF resources during ephemeral environment shutdowns.
57
98
58
-
## Setup
99
+
If any deletion is inconsistent with normal operational patterns or performed by an unexpected principal, treat it as a potential defense-evasion attempt.
59
100
60
-
The AWS Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule."""
101
+
### Response and remediation
102
+
103
+
- **Containment**
104
+
- Immediately assess exposed applications. If feasible, apply temporary restrictive network controls (e.g., ALB security group tightening or CloudFront WAFv2 fallback rules).
105
+
- Revoke session tokens or access keys associated with suspicious actors.
106
+
107
+
- **Restore protections**
108
+
- Recreate the deleted Web ACL using IaC definitions, backups, or previous configurations.
109
+
- Validate that logging and monitoring (WAF logs, CloudWatch alarms, SIEM ingestion) are correctly restored.
110
+
111
+
- **Scope and impact analysis**
112
+
- Review CloudTrail for follow-on or preceding activity by the same actor:
113
+
- Rule modifications.
114
+
- IAM policy changes.
115
+
- Application configuration updates.
116
+
- API Gateway or ALB changes.
117
+
- Review application access logs for unusual requests following ACL removal.
118
+
119
+
- **Hardening**
120
+
- Limit IAM permissions for `waf:DeleteWebACL`, `wafv2:DeleteWebACL`, and related actions to a small set of trusted roles.
121
+
- Enforce MFA for administrative access.
122
+
- Use AWS Config or Security Hub controls to detect unauthorized modifications to WAF resources.
123
+
124
+
- **Post-incident improvements**
125
+
- Update change-management workflows to include required approvals for WAF modifications.
126
+
- Improve monitoring for other defense-evasion patterns such as disabling GuardDuty, CloudTrail, or logging.
0 commit comments