AWS CloudTrail Log Created
editAWS CloudTrail Log Created
editDetects creation of a new AWS CloudTrail trail via CreateTrail API. While legitimate during onboarding or auditing improvements, adversaries can create trails that write to attacker-controlled destinations, limit regions, or otherwise subvert monitoring objectives. New trails should be validated for destination ownership, encryption, multi-region coverage, and organizational scope.
Rule type: query
Rule indices:
- filebeat-*
- logs-aws.cloudtrail-*
Severity: low
Risk score: 21
Runs every: 5m
Searches indices from: now-6m (Date Math format, see also Additional look-back time)
Maximum alerts per execution: 100
References:
Tags:
- Domain: Cloud
- Data Source: AWS
- Data Source: Amazon Web Services
- Data Source: AWS Cloudtrail
- Use Case: Log Auditing
- Tactic: Collection
- Resources: Investigation Guide
Version: 211
Rule authors:
- Elastic
Rule license: Elastic License v2
Investigation guide
editTriage and analysis
Disclaimer: This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.
Investigating AWS CloudTrail Log Created
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. Adversaries may create new trails to capture sensitive data or cover their tracks. This detection identifies
CreateTrail calls so responders can verify destination ownership, encryption, and scope before accepting the change.
Possible investigation steps
- Identify the actor and context
-
Review
aws.cloudtrail.user_identity.arn,aws.cloudtrail.user_identity.type,user_agent.original,source.ip. - Confirm a related change request exists (onboarding, architecture change).
- Validate trail configuration
-
In
aws.cloudtrail.request_parameters, verify: -
S3BucketName/CloudWatchLogsLogGroupArnbelong to your org (no external accounts). -
IsMultiRegionTrail=trueandIncludeGlobalServiceEvents=true(as per your standard). -
KmsKeyIdis an approved CMK; log file validation enabled. - Correlate activity
-
Look for
PutEventSelectors,PutInsightSelectors,StartLoggingfollowing creation. -
Check for prior enumeration:
DescribeTrails,ListBuckets,GetEventSelectors.
False positive analysis
- Planned creation: Onboarding or compliance initiatives often add trails. Validate via ticket and standard template.
- Automation: IaC or control-tower pipelines may create trails on account bootstrap.
Response and remediation
- If unauthorized
- Disable or delete the trail; verify and secure the destination S3/CloudWatch resources.
- Review the actor’s recent changes and rotate credentials if compromise is suspected.
- Hardening
-
Restrict
cloudtrail:CreateTrailto admin roles. - Use AWS Config / Security Hub controls to enforce multi-region, global events, and validated destinations.
Additional information
- AWS IR Playbooks
- AWS Customer Playbook Framework
- Security Best Practices: AWS Knowledge Center – Security Best Practices.
Rule query
editevent.dataset: "aws.cloudtrail"
and event.provider: "cloudtrail.amazonaws.com"
and event.action: "CreateTrail"
and event.outcome: "success"
Framework: MITRE ATT&CKTM
-
Tactic:
- Name: Collection
- ID: TA0009
- Reference URL: https://attack.mitre.org/tactics/TA0009/
-
Technique:
- Name: Data from Cloud Storage
- ID: T1530
- Reference URL: https://attack.mitre.org/techniques/T1530/