AWS Cloudtrail is a service that helps to track user activity and API usage, enabling compliance, governance, risk auditing, and operational auditing of your AWS infrastructure. The service helps to simplify auditing troubleshooting and compliance. Users can review the logs with the help of a CloudTrail Event History. It can also set it up to deliver the reports to S3 buckets and optionally report to the CloudWatch Events and Logs for even more robust monitoring of your AWS resources. To know more about AWS CloudTrail, you should read my article that will tell you all you need to know about CloudTrail. In this article, we will take a look at some of the best practices you should follow while using AWS CloudTrail for better security and cost optimization.
As of 2026 — This post and All You Need To Know About AWS CloudTrail overlap. Treat the other post as the overview and this one as a checklist. Be aware that several items below are general AWS hardening advice, not CloudTrail configuration, so the CloudTrail-specific steps (log file validation, all-Region or organization trails and a protected log bucket) are the ones to prioritise. See also AWS’s CloudTrail security best practices.
Some of the basic CloudTrail functionalities
- Provide an event history of account activity
- Provide visibility into user and resource activities.
- Simply compliance audits
- Track and automatically respond to security threats
- Log, retain account activity, and continuously monitor.
Best practices for AWS Cloudtrail
Let us take a look at some of the AWS CloudTrail best practices.
Insufficient visibility
Cloud resources are ephemeral, which makes it highly difficult to keep an actual track of assets. According to a report, a cloud resource’s average lifespan is two hours and seven minutes only. Additionally, many companies have platforms or environments which involve multiple cloud regions and accounts. This leads to proper decentralized visibility and makes it tough to detect the risks. Moreover, you can’t secure what you can’t see.
As of 2026 — The “two hours and seven minutes” lifespan statistic is uncited and from an older vendor report. The point stands, because containers, serverless functions and autoscaled instances are short-lived, but do not rely on the exact figure. A continuously updated cloud inventory and cloud asset management are the practical answer.
Use a cloud security solution that offers visibility into the types and volume of resources across multiple cloud accounts and regions in a single pane of glass. A live cloud inventory combined with continuous CSPM monitoring keeps track of ephemeral resources that would otherwise slip past a periodic audit. This challenge is exactly what teams face when securing multi-account AWS without a landing zone or Control Tower.
Exposed root node
Your root node accounts can do the most harm when any unauthorized parties acquire access to them. Admin often forgets to disable the root API access.
No one should have access to your Amazon Web Service root account the majority of the time, not even your top admins. Never share them across the applications and users. Root accounts must be protected by 2FA and used as sparingly as possible.
As of 2026 — AWS now enforces MFA for the root user of all account types (see AWS’s documentation). Use phishing-resistant MFA, do not create root access keys, and alert on any root sign-in using CloudTrail. See AWS events and changes you should track.
Not changing IAM access keys
IAM Access keys are often not rotated. That weakens up the IAM’s ability to secure your groups and user accounts, thus giving cyber attackers a longer time window to acquire them. Additionally, it ensures that old keys are not being used to access some of the critical services.
Rotate or change your access keys at last once every 90 days. If you have given the users some of the necessary permissions, they can rotate their own access keys.
As of 2026 — Rotation is a fallback. Prefer roles with short-lived credentials (IAM Identity Center, instance roles and OIDC federation for CI/CD) so there are no long-term keys to rotate. Where keys remain, use the IAM credential report and IAM Access Analyzer’s unused access findings to find and remove stale ones. See transforming cloud security with short-lived service credentials.
Poor authentication practices
Stolen or lost credentials are a significant cause of cloud security incidents. It is common to find access credentials to public cloud environments exposed on the internet, as was the case in the data security breach. Organizations need a proper way to detect account compromises.
Strong password policies and 2FA should be enforced on the AWS platform. Amazon recommends enabling the 2FA for all the accounts that have a console password.
Too many privileges
Stolen or lost credentials are a significant cause of cloud security incidents. AWS IAM can be developed and deployed to manage all user groups or accounts, with detailed policies and permissions options.
Moreover, admins often assign overly permissive access to AWS resources. That enables the users to make some changes and have access that they should not be allowed to have, but if a cyber-attacker acquires their account, more harm can be done.
Like any other user permission system, your IAM configuration should comply with the principle of least privileges. That means any user and group should only have the permissions required to perform their jobs and no more. Getting there at scale usually means adopting CIEM to right-size entitlements, as one team did while making sense of read and admin identities across multi-account AWS.
Restrict access to the CloudTrail bucket logs and use of 2FA for the bucket deletion
Unrestricted access, even to the admins, increases the risk of authorized access in the case of the stolen credentials following a phishing attack. If the AWS account becomes compromised, 2FA authentication will make it more difficult for the hackers to delete some of the evidence of their actions and conceal their presence.
As of 2026 — Protect the log bucket in layers. MFA Delete is only available on versioned buckets and can only be turned on by the root user, so most teams rely on other controls instead: S3 Object Lock, SSE-KMS encryption, a bucket policy that restricts writes to the CloudTrail service, and a separate log archive account that workload administrators cannot access. Use a service control policy to stop member accounts from stopping or deleting trails.
Enable CloudTrail Log File Validation
Apart from delivering the cloudtrail events for your AWS S3 bucket, you can also instruct the cloudtrail to create a digest file for your log files and deliver them to the same AWS S3 bucket.
You can even use the digest file to validate your cloudtrail log file integrity. You can also make sure the cloudtrail log files are not being tampered with after it was delivered to your AWS S3 bucket. The log file validation is done using the SHA-256 for hashing and SHA-256 with the RSA for the digital signing.
As of 2026 — Validation only helps if you use it. Run
aws cloudtrail validate-logson a schedule or during investigations, and keep the digest files for as long as the logs. See validating CloudTrail log file integrity.
Use Auto Scaling to dampen DDoS effects
Amazon AutoScaling helps ensure that you have the correct number of Elastic Compute 2 instances available to handle your application’s high load density.
You can even create a collection of your EC2 instances, called by the name Auto Scaling Groups. You can also specify the minimum number of instances in each account and group, and Amazon Auto Scaling makes sure that your group never goes below that size.
As of 2026 — This section is not a CloudTrail practice, and “Elastic Compute 2” should read Amazon EC2 (Elastic Compute Cloud). Auto Scaling helps absorb traffic spikes but is not a DDoS defense on its own. For DDoS and web attacks, use AWS Shield, AWS WAF and a CDN such as Amazon CloudFront in front of your application. See AWS WAF.
Enable CloudTrail in All Regions
When you create an AWS Cloudtrail, you can create it for one region or even for all the regions in your AWS user account.
Even when you are putting your entire workload in only one region, you should still enable the CloudTrail All AWS regions as a best practice. This way, when activity happens in any other region, other than your primary working region, you can track them and take action immediately.
As of 2026 — In a multi-account setup, use an organization trail so one trail created in the management (or a delegated administrator) account logs every member account and cannot be disabled by them. See creating an organization trail. CloudTrail Insights can also flag unusual API call volume or error rates (see Insights events).
How Can Cloudanix Help?
Cloudanix helps you to implement these AWS CloudTrail best practices. We provide you with a recipe for AWS CloudTrail which audits your AWS account and lets you know if you are not implementing the best practices. Furthermore, by implementing these best practices, you also adhere to compliance standards like NIST, HIPAA, MAST, GDPR, and so on. today!
As of 2026: What has changed
- CloudTrail Lake availability: AWS stopped accepting new CloudTrail Lake customers on 31 May 2026. Existing customers can keep using it. New setups should use a trail delivering to S3 (queried with Athena), CloudWatch Logs or a SIEM. See AWS’s notice.
- Alerting: use Amazon EventBridge for near real-time rules on CloudTrail events. CloudWatch Events is now part of EventBridge.
- Data events and cost: management events are logged by default, while S3 object-level and Lambda data events are opt-in and billed separately. Enable them for sensitive buckets, not everywhere.
- Interpretation: raw logs are only useful if someone reads them. See cloud detection and response and what is AWS CloudTrail.
- Normalised logs: Amazon Security Lake collects CloudTrail and other logs in the OCSF schema. See what is OCSF.
People Also Read
- AWS CSPM Implementation Guide
- What is AWS CloudTrail?
- Closing the Audit-Trail Gap: From Missing Logs to Complete Access Auditing
- All You Need To Know About AWS CloudTrail
- CloudTrail, CloudWatch, Splunk, Custom logs solution
- AWS Events and Changes You Should Track
- A Practical Step by Step Guide To Prevent Security Breach Of Your AWS Account
- Why do we need continuous audits for public cloud?
- Understanding AWS Cloud Compliance
- Various Tools From AWS Which Help You With Compliance
- Top 18 Challenges of Cloud Security in 2026