Skip to content

Cloudtrail Disable Trail (aws)

PlatformAuthorLast Update
awsNick Jones2024-12-02

An attacker may attempt to disable a cloudtrail instance in order to avoid detection

MITRE IDs

Required Permissions

  • cloudtrail:StopLogging

Required Parameters

NameTypeDescriptionExample Value
trailnamestrName of the cloudtrail to be targetedexample-cloudtrail

Attacker Action

Terminal window
aws cloudtrail stop-logging --name example-cloudtrail

Detection Case

ELK query

When logs are ingested into ELK, the following Lucene query can be used to identify relevant events.

eventName:StopLogging AND eventSource:*.cloudtrail.amazonaws.com

Sigma Definition

---
title: Cloudtrail disable trail
id: bf856088-70f3-498b-af19-f061c0bd7740
status: experimental
author: Nick Jones
date: 2024-12-02
description: An attacker may attempt to disable a cloudtrail instance in order to avoid detection
logsource:
service: cloudtrail
detection:
selection_source:
- eventSource: "*.cloudtrail.amazonaws.com"
events:
- eventName: "StopLogging"
condition: selection_source and events
level: low
tags:
- attack.T1562
falsepositives:
- Developers making legitimate changes to the environment. Verify whether the user identity, user agent, and/or hostname should be making changes in your environment.