5 min read
AWS CloudTrail - CloudTrail Log Stopped
Description
This query detects when an AWS CloudTrail is stopped. An adversary may disable or modify cloud logging capabilities and integrations to limit what data is collected on their activities and avoid detection, in AWS an adversary may disable CloudWatch/CloudTrail integrations prior to conducting further malicious activity.
Query
AWSCloudTrail
| where EventName == "StopLogging"
| extend Trail = parse_json(RequestParameters).name
| project TimeGenerated, UserIdentityArn, UserIdentityAccessKeyId, SessionMfaAuthenticated, SourceIpAddress, UserAgent, Trail
MITRE ATT&CK
ID | Technique | Tactic |
---|---|---|
T1562.008 | Impair Defenses: Disable or Modify Cloud Logs | Defense Evasion |
Analytic Rule
Notes
Monitor for events where logging is stopped, erased, or interfered with, as this can be a sign of malicious activity.