AWS EC2 Network ACL Deletion Defense Evasion
Adversaries may delete AWS EC2 Network Access Control Lists (ACLs) or their ingress/egress entries to disable network-level security controls and facilitate unauthorized access or data exfiltration.
What's new
- 1. added detection rule: AWS EC2 Route Table Creation Aug 24, 09:51 via elastic
- 2. added detection rule: Detect Unauthorized AWS EC2 Security Group Changes Aug 24, 09:50 via elastic
- 3. added detection rule: Detect AWS EBS Encryption Disabled Aug 24, 09:49 via elastic
- 4. added detection rule: Detect Unauthorized AWS EC2 User Data Retrieval Aug 24, 09:46 via elastic
Adversaries targeting AWS environments may attempt to impair security defenses by modifying or deleting Network Access Control Lists (ACLs) within a Virtual Private Cloud (VPC). By removing these firewall layers, attackers can bypass traffic filtering, enable lateral movement, or facilitate the exfiltration of sensitive data. This activity typically manifests as API calls within AWS CloudTrail, specifically targeting the DeleteNetworkAcl or DeleteNetworkAclEntry actions. Because Network ACLs are critical for subnet security, unauthorized deletions are significant indicators of potential defense evasion. Organizations must distinguish these malicious modifications from legitimate infrastructure-as-code (IaC) updates, such as those performed by Terraform, Pulumi, or Ansible, which may legitimately manage network configurations in automated environments.
Impact
Successful deletion of Network ACLs exposes subnets to unauthorized inbound and outbound traffic, effectively nullifying intended network security perimeters. This can result in unauthorized access to sensitive internal resources, facilitate command-and-control communication, or enable the unauthorized exfiltration of data from the affected VPC subnets.
Recommendation
- Deploy the Sigma-compatible rule below to monitor for unauthorized Network ACL deletions in AWS CloudTrail logs.
- Establish a baseline of authorized administrative and IaC service accounts to tune out legitimate network configuration changes.
- Implement AWS CloudTrail alerts for
DeleteNetworkAclandDeleteNetworkAclEntryevents, prioritizing alerts that lack association with recognized automated deployment roles. - Review IAM policies to ensure that only essential roles possess permissions for
ec2:DeleteNetworkAclandec2:DeleteNetworkAclEntryactions. - Enable VPC Flow Logs to monitor traffic patterns following any detected modifications to network security configurations.
Immediate actions
Review CloudTrail for historical ACL deletions
Threat Hunt
Identify accounts performing high volumes of network modifications
Data: CloudTrail Management Events
Detection coverage 5
Detect AWS EC2 Network ACL Deletion
mediumDetects successful deletion of an EC2 Network ACL or ACL entry, excluding activity from known infrastructure-as-code tools.
Detect Unauthorized AWS EC2 User Data Retrieval
mediumDetects the first time an IAM user or role requests the userData attribute for an EC2 instance in AWS CloudTrail, excluding known automation tools.
Detect AWS EBS Encryption Disabled
mediumDetects when the Amazon EBS encryption by default setting is disabled in an AWS region via CloudTrail.
Detect Unauthorized AWS EC2 Security Group Changes
lowDetects unauthorized modifications to AWS EC2 security groups using CloudTrail logs, excluding known automated configuration management tools.
AWS EC2 Route Table Creation
lowDetects the creation of EC2 route tables or routes, which may indicate malicious persistence or traffic interception.
Detection queries are available on the platform. Get full rules →