AWS CloudTrail Log Updated
Description
Detects updates to an existing CloudTrail trail via UpdateTrail API which may reduce visibility, change destinations, or weaken integrity (e.g., removing global events, moving the S3 destination, or disabling validation). Adversaries can modify trails to evade detection while maintaining a semblance of logging. Validate any configuration change against approved baselines.
Query · kuery
data_stream.dataset: "aws.cloudtrail"
and event.provider: "cloudtrail.amazonaws.com"
and event.action: "UpdateTrail"
and event.outcome: "success"
Investigation fields
Pivot points the source recommends for triage.
@timestampuser.nameuser_agent.originalsource.ipaws.cloudtrail.user_identity.arnaws.cloudtrail.user_identity.typeaws.cloudtrail.user_identity.access_key_idevent.actionevent.outcomecloud.account.idcloud.regionaws.cloudtrail.request_parametersaws.cloudtrail.response_elements
Known false positives
- Trail updates may be made by a system or network administrator. Verify whether the user identity, user agent, and/or hostname should be making changes in your environment. Trail updates from unfamiliar users or hosts should be investigated. If known behavior is causing false positives, it can be exempted from the rule.
Analyst notes
Investigating AWS CloudTrail Log Updated
AWS CloudTrail is a service that enables governance, compliance, and operational and risk auditing of your AWS account. It logs API calls and related events, providing visibility into user activity. Trail modifications can be used by attackers to redirect logs to non-approved buckets, drop regions, or disable valuable selectors. This rule identifies a modification on CloudTrail settings using the UpdateTrail API.
Possible investigation steps
- Actor and context
- Check
aws.cloudtrail.user_identity.arn,user_agent.original,source.ip; verify approved change. - Assess the modification
- In
aws.cloudtrail.request_parameters, note changes to:S3BucketName,CloudWatchLogsLogGroupArn,KmsKeyIdIsMultiRegionTrail,IncludeGlobalServiceEvents- Event or insight selectors (management vs data events)
- Correlate
- Look for preceding
StopLoggingor followingDeleteTrail. - Review concurrent IAM policy edits or role changes by the same actor.
False positive analysis
- Planned changes: Baseline drift during region onboarding or encryption rotation.
- Automation: IaC pipelines updating trails as templates evolve.
Response and remediation
- If unauthorized
- Revert to baseline; validate destination ownership and KMS policy.
- Investigate time ranges where visibility may have been reduced.
- Hardening
- Constrain
cloudtrail:UpdateTrail, require approvals, and monitor with AWS Config rules.
Additional information
- AWS IR Playbooks
- AWS Customer Playbook Framework
- Security Best Practices: AWS Knowledge Center – Security Best Practices.