---
title: AWS EC2 subnet deleted
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > Datadog Security > OOTB Rules > AWS EC2 subnet deleted
---

# AWS EC2 subnet deleted
Classification:attackTactic:[TA0040-impact](https://attack.mitre.org/tactics/TA0040)Technique:[T1485-data-destruction](https://attack.mitre.org/techniques/T1485) 
## Goal{% #goal %}

Detect when an attacker is destroying an EC2 subnet.

## Strategy{% #strategy %}

This rule lets you monitor this CloudTrail API call to detect if an attacker is deleting an EC2 subnet.

- [DeleteSubnet](https://docs.aws.amazon.com/cli/latest/reference/ec2/delete-subnet.html)

## Triage and response{% #triage-and-response %}

1. Determine if {{@userIdentity.arn}} should be deleting EC2 subnets.
1. Contact the user to see if they intended to make this API call.
1. If the user did not make the API call:
   - Rotate the credentials.
   - Investigate if the same credentials made other unauthorized API calls.

## Changelog{% #changelog %}

1 April 2022 - Updated rule and signal message.
