Detection rules › Sigma
Attempt To Stop CloudTrail Logging
A user attempted to disable CloudTrail logging but it was denied due to a lack of permissions. Sample command line: aws cloudtrail stop-logging --name TrailName
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Stealth | T1562.008 Impair Defenses: Disable or Modify Cloud Logs |
Event coverage
| Provider | Event |
|---|---|
| AWS-cloudtrail | StopLogging |
Rules detecting the same action
Other rules on this platform that filter on the same API call or operation.
- AWS CloudTrail Important Change (Sigma)
- AWS CloudTrail Log Suspended (Elastic)
- AWS Defense Evasion Stop Logging Cloudtrail (Splunk)
- CloudTrail Logging Stopped (Sigma)
Rule body yaml
title: Attempt To Stop CloudTrail Logging
id: 21a06b91-4860-4d2c-96fb-5c5c6374e3b2
status: test
description: |
A user attempted to disable CloudTrail logging but it was denied due to a lack of permissions.
Sample command line: aws cloudtrail stop-logging --name TrailName
references:
- https://securitylabs.datadoghq.com/cloud-security-atlas/attacks/stopping-cloudtrail-trail/
- https://research.splunk.com/cloud/8a2f3ca2-4eb5-4389-a549-14063882e537/
- https://logrhythm.com/blog/aws-defense-evasion-and-centralized-multi-account-logging/
- https://medium.com/daniel-grzelak/disrupting-aws-logging-a42e437d6594
- https://pages.awscloud.com/rs/112-TZM-766/images/Visibility_detect_respond_AWS_SANS_whitepaper.pdf
- https://traildiscover.cloud/#CloudTrail-StopLogging
author: Zach Mathis (@yamatosecurity)
date: 2025-04-23
modified: 2025-04-23
tags:
- attack.defense-evasion
- attack.t1562.008 # Impair Defenses: Disable or Modify Cloud Logs
logsource:
product: aws
service: cloudtrail
detection:
selection:
eventSource: 'cloudtrail.amazonaws.com'
eventName: 'StopLogging'
errorCode: 'AccessDenied'
condition: selection
falsepositives:
- Admins trying to turn off unneeded logging but lacked permissions.
level: medium
Stages and Predicates
Stage 0: condition
selectionStage 1: selection
selection:
eventSource: 'cloudtrail.amazonaws.com'
eventName: 'StopLogging'
errorCode: 'AccessDenied'
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
errorCode | eq |
|
eventName | eq |
|
eventSource | eq |
|