Skip to content
Threat Feed
medium advisory

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 DeleteNetworkAcl and DeleteNetworkAclEntry events, prioritizing alerts that lack association with recognized automated deployment roles.
  • Review IAM policies to ensure that only essential roles possess permissions for ec2:DeleteNetworkAcl and ec2:DeleteNetworkAclEntry actions.
  • Enable VPC Flow Logs to monitor traffic patterns following any detected modifications to network security configurations.

Immediate actions

Review CloudTrail for historical ACL deletions

SOC 48h

Threat Hunt

Identify accounts performing high volumes of network modifications

T1562.007 medium high confidence hunt now

Data: CloudTrail Management Events

Detection coverage 5

Detect AWS EC2 Network ACL Deletion

medium

Detects successful deletion of an EC2 Network ACL or ACL entry, excluding activity from known infrastructure-as-code tools.

sigma tactics: defense_evasion techniques: T1562.007 sources: cloud, aws

Detect Unauthorized AWS EC2 User Data Retrieval

medium

Detects the first time an IAM user or role requests the userData attribute for an EC2 instance in AWS CloudTrail, excluding known automation tools.

sigma tactics: credential_access, discovery techniques: T1552.005, T1580 sources: cloud, aws

Detect AWS EBS Encryption Disabled

medium

Detects when the Amazon EBS encryption by default setting is disabled in an AWS region via CloudTrail.

sigma tactics: defense-evasion, impact techniques: T1565.001, T1578.005 sources: cloudtrail, aws

Detect Unauthorized AWS EC2 Security Group Changes

low

Detects unauthorized modifications to AWS EC2 security groups using CloudTrail logs, excluding known automated configuration management tools.

sigma tactics: defense_evasion, persistence techniques: T1562.007 sources: cloud

AWS EC2 Route Table Creation

low

Detects the creation of EC2 route tables or routes, which may indicate malicious persistence or traffic interception.

sigma tactics: persistence techniques: T1578.005 sources: cloud, aws

Detection queries are available on the platform. Get full rules →