---
title: AWS Network Gateway created or modified
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > Datadog Security > OOTB Rules > AWS Network Gateway created or modified
---

# AWS Network Gateway created or modified
Classification:complianceTactic:[TA0005-defense-evasion](https://attack.mitre.org/tactics/TA0005)Technique:[T1562-impair-defenses](https://attack.mitre.org/techniques/T1562)Framework:cis-awsControl:4.12 
## Goal{% #goal %}

Detect when an AWS Network Gateway has been created or modified.

## Strategy{% #strategy %}

Monitor CloudTrail and detect when an AWS Network Gateway has been created or modified with one of the following API calls:

- [CreateCustomerGateway](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateCustomerGateway)
- [DeleteCustomerGateway](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeleteCustomerGateway)
- [AttachInternetGateway](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_AttachInternetGateway)
- [CreateInternetGateway](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateInternetGateway)
- [DeleteInternetGateway](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeleteInternetGateway)
- [DetachInternetGateway](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DetachInternetGateway.html)

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

1. Determine if the API call: {{@evt.name}} should have occurred.
1. If it shouldn't have been made:
   - Contact the user: {{@userIdentity.arn}} and see if they made the API call.
1. If the API call was not made by the user:
   - Rotate the user credentials.
   - Determine what other API calls were made with the old credentials that were not made by the user.

## Changelog{% #changelog %}

6 April 2022 - Updated rule cases and signal message.
