AWS and Cloudanix team co-authored this blog: Real-Time Threat and Anomaly Detection for Workloads on AWS

Cloudanix – Your Partner in Cloud Security Excellence

All You Need To Know About AWS CloudTrail

  • Sujay Maheshwari Sujay Maheshwari
  • Thursday, Dec 24, 2020

AWS CloudTrail is a service that helps to simplify the compliance audits by automatically recording and storing event logs for actions that are made within a user AWS account. Learn more about what AWS CloudTrail is and how it works.

AWS CloudTrail integrated with Amazon CloudWatch Logs to offer a convenient way to search through log data, expedite responses to auditor requests, accelerate incident investigations, and identify out of compliance events.

AWS CloudTrail also provides visibility into user and resource activity by capturing and recording the API calls and AWS Management console actions. The event history feature offers an excellent platform to search, view, and download AWS’s recent account activity.

The event history feature allows the gaining of visibility into the AWS account resources’ changes to enable the strengthening of security processes and simplifying operational issue resolution. The multi-region configuration feature allows the proper configuration of AWS CloudTrail to deliver the log files from the multiple regions to a single Amazon S3 bucket for a single user account.

The log file integrity validation feature offers an excellent platform to validate the integrity of AWS CloudTrail log files stored in the S3 Bucket and detect whether the log files were unchanged, deleted, or modified since CloudTrail delivers them to the Amazon S3 bucket.

The log file encryption feature facilitates the encrypting of all log files delivered to a specified Amazon S3 bucket using the S3 server-side encryption. The data events feature insights into the resource operations performed on or within the resource itself.

The management of events features also provides a useful platform for insights into the operations management performed on resources in the Amazon Web Service account.

Some of the Key Benefits of Amazon Web Service CloudTrail

Let’s have a quick look at why CloudTrail could be the perfect Swiss Army Knife to effectively and efficiently analyze events that occur in your platform and environment:

  • Take Charge of proper Security Visibility: By using CloudTrail, you will discover and analyze each activity that occurs within your environment. CloudTrail enables the user to discover and troubleshoot operational and security issues and capture a detailed history of changes at regular intervals.
  • Security Automation: CloudTrail helps to automate responses to security threats faster and enables you to build robust mechanisms to mitigate further future threats.
  • Defect Data Exfiltration: You can take advantage of the AWS CloudTrail to record AWS S3 object-level API events to detect data exfiltration and perform some of the usage analysis of AWS S3 objects.
  • Easy Governance, Compliance, and Monitoring: By integrating CloudTrail with any other AWS service such as Amazon S3 bucket and Amazon CloudWatch, you can alert and expedite your response to any non-compliance event.

How does Amazon Web Service CloudTrail Work?

AWS account activity takes place, which helps the user with the necessary and straightforward information about the AWS CloudTrail:

  • CloudTrail helps to capture and record the activity as a CloudTrail event.
  • The user can set up the CloudTrail and define an Amazon S3 bucket for storage.
  • The user can view and download the activity of CloudTrail with the help of a CloudTrail history.
  • The log of AWS CloudTrail is delivered to the S3 Bucket, and it gets delivered to the CloudWatch events and logs.

Some of the Best Practices and Tips for AWS CloudTrail

  • Logging of CloudTrail: Log all accounts into a single Amazon S3 platform bucket, with the implementation being an organization-wide trail.
  • Object Locking: For a highly compliant environment, enable S3 object locking on your S3 bucket to ensure data cannot be deleted.
  • S3 Access Logging: It enables S3 Access Logging and Tracking for CloudTrail to identify exfiltration.
  • KMS Encryption: Ensure that the log files at rest are encrypted with a customer-managed KMS key to safeguarding against unwarranted access.

AWS CloudTrail Example

{
  "eventVersion": "1.05",
  "userIdentity": { "type": "AWSService", "invokedBy": "ec2.amazonaws.com" },
  "eventTime": "2019-12-10T01:44:26Z",
  "eventSource": "sts.amazonaws.com",
  "eventName": "AssumeRole",
  "awsRegion": "us-east-1",
  "sourceIPAddress": "ec2.amazonaws.com",
  "userAgent": "ec2.amazonaws.com",
  "requestParameters": {
    "roleSessionName": "i-00888ddddd3333322",
    "roleArn": "arn:aws:iam::123456789012:role/S3SecurityDataAssumeRole"
  },
  "responseElements": {
    "credentials": {
      "sessionToken": "IQoJb3JpZ2luX2VjEIL//==",
      "accessKeyId": "AAAASSSRRRRRZZZZZZCC",
      "expiration": "Dec 10, 2019 7:46:42 AM"
    }
  },
  "requestID": "09a32e7f-f51d-4f84-8f53-38e1cd773e3f",
  "eventID": "f12888b4-4208-4ead-aa6a-1a21ffb24c15",
  "resources": [
    {
      "ARN": "arn:aws:iam::123456789012:role/S3SecurityDataAssumeRole",
      "accountId": "123456789012",
      "type": "AWS::IAM::Role"
    }
  ],
  "eventType": "AwsApiCall",
  "recipientAccountId": "123456789012",
  "sharedEventID": "0aa168dc-6402-4bbf-9bc6-4d2bf58f106c"
}

AWS CloudTrail Uses

  • Security Check

The user can take charge of security validation and analysis. With CloudTrail events and log management, patterns, and analytics solutions, they can notice user behavior.

  • Data Exfiltration

With the help of an object-level API event recorded in CloudTrail, the user can watch the data exfiltration by collecting activity data on the S3 objects.

  • Compliance AID

AWS CloudTrail makes it easier to confirm governance, compliance with the internal policies, and regulative standards by offering a history of activity in the account. For more additional information, transfer the AWS governance whitepaper.

  • Troubleshooting the Operational Issue

The AWS user can troubleshoot operational problems by supporting the AWS API decision history created by the CloudTrail. Let’s say, for instance; the user will be able to quickly determine the significant and recent changes that have been created to resources in the atmosphere as well as modification, creation, and deletion of AWS resources.

Bottom Line

Hence, here we get to know the CloudTrail is enabled on all AWS accounts and records the user account activity as per the user account creation. The user will then read and transfer the last ninety days of the user account activity to modify, produce, and delete operations of supported services.

How can Cloudanix help?

Cloudanix is your Ops Dashboard, which cuts across all these tools and several others and gives you a single swiss-knife for your Ops needs. We also provide a recipe for monitoring and auditing your CloudTrail to ensure security, availability and reliability. Use the free trial and check it out for yourself.

People Also Read

What Our Users Are Saying

Customer Reviews

Cloudanix is trusted by security leaders worldwide to deliver proactive, reliable, and cutting-edge cloud security.

One day, I changed the password of a root account, and my CTO called me within less than a minute to confirm if I did so. I was not expecting a reaction this quick. He told me Cloudanix alerted him of this password change and that he wanted to confirm as it was a critical security notification. I couldn't believe it!

Ritesh Agarwal
Ritesh Agarwal
CEO, Airgap Networks

Compliance is one way of staying secure, but what I want is the ability to go deeper and attain 'true security.' Cloudanix provides us the capability to do so.

Vishal Madan
Vishal Madan
Head of Engineering, iMocha

Cloudanix is building for the future of the cloud, which makes the product all the more desirable.

Ritesh Agarwal
Ritesh Agarwal
CEO, Airgap Networks

Cloudanix gave us the visibility we were missing. Being able to move from permanent access to a robust Just-In-Time (JIT) workflow has fundamentally changed our security posture without slowing down our engineering velocity.

Pavan Kumar Lekkala
Pavan Kumar Lekkala
SRE Lead, HugoHub

We are excited to leverage Cloudanix's comprehensive multi-cloud DevSecOps solution to secure our production workloads on AWS. Cloudanix has demonstrated that it can solve many challenges that DevSecOps teams face while continually adding new features such as SOC2 compliance and drift detection.

Satish Mohan
Satish Mohan
Co-founder & CTO, Airgap Networks

Managing third-party partner access was once a major concern for our security posture. With Cloudanix JIT Cloud, we've effectively achieved zero third-party risk. We can now grant access confidently, knowing that it is temporary, audited, and automatically revoked, resulting in a 100% reduction in our privileged access exposure.

Okesh Badhiye
Okesh Badhiye
Head of Technical Engineering, Finfinity

The snooze feature and responsible alerts have helped us save time and prioritize what to tackle first.

Satish Mohan
Satish Mohan
Co-founder & CTO, Airgap Networks

Implementing Cloudanix JIT internally allowed us to practice what we preach. By eliminating permanent access to our own clouds and databases, we've neutralized the risk of standing privileges, ensuring our own 'keys to the kingdom' are never left exposed.

Girish Manghnani
Girish Manghnani
Managing Partner, Tech Inspira

The problem with permissions is a lot of times, the gaps are left open due to oversights from inside the organization itself. With Cloudanix's CIEM, we get a complete view of user permissions and access. This enables us to update the permissions, reducing the attack surface.

Nilesh Pethani
Nilesh Pethani
Application Architect, iMocha

In the world of Fintech, trust is our currency. Cloudanix provided the frictionless visibility we needed to secure our EKS workloads across AWS, ensuring we stay audit-ready for SOC2 and GDPR without slowing down our engineering velocity.

Amol Naik
Amol Naik
Head of Security & Infrastructure, HugoHub

Cloudanix delivered value within 5 minutes of onboarding. Continuous monitoring, timely detection, and excellent documentation helped us attain a great cloud security posture.

Divyanshu Shukla
Senior DevSecOps, Meesho

Technology strategies and business strategies are in a state of constant change which includes centralization and decentralization of responsibilities. Regardless of strategic shift, we still have intellectual property to protect. Cloudanix are critical partners for us in our public cloud security posture across our three cloud providers.

Jerry Locke
Jerry Locke
Senior Director Global Solutions Engineering, Eversana

Cloudanix has been amazing. They opened up a common Slack channel with us — and it feels like we are talking to our own team and getting things done with Cloud security. The support team is always available, friendly, helpful, and ready to go out of their way.

Satish Mohan
Satish Mohan
CTO, Airgap Networks

Beyond just access management, Cloudanix CSPM has given us a unified view of our AWS environment. The real-time alerting and anomaly detection allow us to prevent any untoward activity before it happens, which is critical for a marketplace connecting 50+ financial institutions.

Okesh Badhiye
Okesh Badhiye
Head of Technical Engineering, Finfinity

For a Fintech company, data is our most valuable — and most sensitive — asset. Cloudanix DAM hasn't just improved our visibility; it has given us control. The ability to mask data and prevent unauthorized queries in real-time is a game-changer for our compliance and customer trust.

Jiten Gala
Jiten Gala
President Engineering and Product, Kapittx

Our clients, especially in the Middle East financial sector, demand absolute accountability. Cloudanix JIT Cloud has been a competitive differentiator for us, allowing us to provide secure, governed access to customer accounts that meet their strictest audit and compliance requirements.

Girish Manghnani
Girish Manghnani
Managing Partner, Tech Inspira

Cloudanix is always on my team's lips because of its exceptional support. Be it a small or big query, Cloudanix has gone above and beyond to resolve them. This one's a keeper for us.

Sujit Karpe
Sujit Karpe
CTO, iMocha

For a long-lasting partnership, great support goes a long way. Cloudanix has delivered exceptional support whenever required. Their edge is their team is always ready to go beyond to solve any issues that we have. This speaks volumes about the culture at Cloudanix.

Akash Maheshwari
Akash Maheshwari
Co-founder, MoveInSync

Beyond the technology, Cloudanix feels like an extension of our own team. Their willingness to stand up a dedicated Middle East tenant for us and provide exceptional support at a sensible price makes them a long-term partner for Hugosave.

Surya Tamada
Surya Tamada
CTO, HugoHub

The real-time notifications that Cloudanix provides are a real lifesaver. Their adaptive notifications ensure that my team stays productive and doesn't get interrupted all the time.

Digvijay Singh
Staff Security Engineer, Meesho

The whole point in technological evolution is to help improve the world we live in. We must protect that and to do so requires an effective and efficient security strategy. The Cloudanix team helped make our public cloud security posture management strategy a reality. The symbiotic relationship we have allows for a continuous feedback loop which is how business should operate.

Larry Wheat
Larry Wheat
Staff Solutions Engineer, Eversana

Ready to see your graph?

Connect a cloud account in under 30 minutes. See every finding rooted in identity, asset, and blast radius — with a fix path attached.

Book a Demo