Cloud Infrastructure Investigations

AWS Cloud Forensics and CloudTrail AnalysisWhat the 90 Day Event History Proves, and How to Acquire More

Cloud infrastructure breaks the assumption that evidence lives on a physical disk you can seize. In AWS, the record of what happened lives across CloudTrail, VPC Flow Logs, S3 access logs, and snapshots, and much of it depends entirely on what logging was configured before the incident began.

Updated August 2026 · Reviewed by Elite Digital Forensics examiners · Nationwide breach response

90 daysDefault CloudTrail Event history window available in every account with no configuration required, covering management events only.
Configuration dependentData events, VPC Flow Logs, and S3 access logs must be explicitly enabled before an incident; none are on by default.
Point in timeEBS snapshots and S3 versioning can preserve evidence of a compromised instance or bucket even after remediation begins.

Quick answer

AWS cloud forensics combines CloudTrail API activity records, VPC Flow Logs for network activity, S3 server access logs for object level requests, and EBS snapshot acquisition of compromised instances to reconstruct a cloud intrusion. Every account has CloudTrail Event history covering management events for 90 days at no cost, but data events, flow logs, and S3 access logging are all opt in and must have been enabled before the incident to be available for analysis.

Common questions, answered in one line

QuestionOne line answer
Does every AWS account have CloudTrail?Yes, Event history covering management events is available for 90 days with no setup, but a configured trail is needed for longer retention and data events.
What are data events?Object level API calls like S3 GetObject that show exactly which files were accessed, which is not captured by default.
Can you tell if data left an S3 bucket?With S3 server access logging or CloudTrail data events enabled, yes; without either enabled beforehand, it is very difficult to prove after the fact.
Can a compromised EC2 instance be imaged?Yes, through an EBS snapshot of the attached volumes, which preserves a point in time forensic copy.
What is IMDS abuse?Exploitation of the instance metadata service to steal temporary IAM credentials, often through a server side request forgery vulnerability.
Who should lead an AWS incident investigation?An examiner familiar with IAM, CloudTrail, and the specific AWS services in use, working alongside cloud engineering.

Key terms defined

TermWhat it means
CloudTrailThe AWS service that records API calls made against an account, including who made the call, from where, and what action was taken.
Event historyThe free, always on 90 day rolling view of management events available in every AWS account without any configuration.
TrailA configured CloudTrail resource that delivers events to an S3 bucket or CloudWatch Logs for retention beyond 90 days and for data event capture.
VPC Flow LogsRecords of IP traffic metadata to and from network interfaces in a VPC, showing source, destination, port, and byte counts without payload content.
S3 server access loggingDetailed records of requests made to an S3 bucket, including the requester and the specific object accessed.
IMDSInstance Metadata Service, an endpoint available to EC2 instances that can expose temporary IAM credentials if abused through server side request forgery.

CloudTrail: the backbone of any AWS investigation

CloudTrail is the single most important evidence source in an AWS compromise, and understanding the difference between what exists automatically and what requires prior configuration determines what an investigation can actually prove.

  • Event history is available in every account automatically, covering management events, meaning control plane actions like creating a user, changing a security group, or launching an instance, for a rolling 90 day window.
  • A configured trail delivers events continuously to an S3 bucket, allowing retention well beyond 90 days, and is required to capture data events at all.
  • Data events record object and resource level activity, such as S3 GetObject and PutObject calls or Lambda invocations, and must be explicitly turned on per resource or bucket, since they generate high volume and cost.
  • Multi region and organization trails matter because an attacker who compromises credentials can pivot to a region or member account with no logging configured, exploiting the gap.

Why the 90 day window catches organizations off guard

Many organizations assume CloudTrail simply exists and retains everything, discover during an incident that Event history covers only management events, and find that the specific data event logging needed to prove what was read from a bucket was never enabled. This is the AWS equivalent of discovering after a break in that the security camera was pointed at the wrong door the entire time.

VPC Flow Logs and S3 access logging: proving movement and access

CloudTrail tells an examiner what API calls were made. It does not tell them what network traffic actually flowed, or what happened inside a bucket at the object level unless data events were enabled. Two additional log sources fill that gap, and both require configuration before the fact.

Log sourceWhat it showsConfiguration requirementTypical retention if enabled
VPC Flow LogsSource, destination, port, protocol, and byte count for network flows in and out of a VPC or subnetMust be enabled per VPC, subnet, or network interfaceDelivered to S3 or CloudWatch Logs, retained per configured lifecycle
S3 server access loggingRequester identity, bucket and key accessed, response status, and bytes transferred for each requestMust be enabled per bucket, delivering logs to a target bucketRetained per the target bucket lifecycle policy configured
CloudTrail data eventsObject level API activity such as GetObject and PutObject tied to an identityMust be enabled per trail and resource selectorRetained per trail configuration, commonly matching the management event trail

When none of it was enabled

When data events, flow logs, and access logging were never turned on, an examiner is left correlating what remains: management event history for account and IAM activity, EBS snapshots of running instances, and any application level logs the workload itself produced. The finding in that scenario is often that access cannot be ruled in or out with confidence, which is itself an important and honest conclusion to give counsel and a carrier.

Your AWS 90 day window is running

CloudTrail Event history rolls off on a schedule regardless of when the intrusion is discovered. We can export what remains and stand up longer term logging immediately.

Acquiring evidence from a compromised cloud workload

Cloud forensics still requires disk level evidence when malware, a web shell, or attacker tooling was placed on a running instance. The mechanism differs from a traditional seizure, but the goal is the same: a defensible, hashed, point in time copy.

Step 1

Isolate the affected instance at the network layer using a restrictive security group rather than stopping it, to preserve volatile state where possible.

Step 2

Snapshot every EBS volume attached to the instance before any remediation or termination action is taken.

Step 3

Copy the snapshot to a forensic account or region under examiner control, and generate a hash of the resulting volume for integrity documentation.

Step 4

Capture the IAM role attached to the instance and review IMDS access patterns for signs of credential theft through server side request forgery.

Step 5

Export the relevant CloudTrail, flow log, and access log ranges for the instance, its role, and any buckets it accessed, before retention windows close.

IAM key abuse and credential compromise in AWS

A large share of AWS compromises begin with credential exposure rather than a vulnerability in AWS itself: a long lived access key committed to a public code repository, an overly permissive role assumed by a compromised application, or temporary credentials stolen through IMDS abuse.

Exposed access keys

Long lived IAM user access keys leaked in source control or misconfigured environment variables remain a leading initial access vector.

Overprivileged roles

Roles granted far broader permissions than the workload needs turn a minor application compromise into a full account compromise.

IMDS and SSRF

A server side request forgery vulnerability in a web application can be used to query the instance metadata service and steal temporary role credentials.

Cross account pivoting

Compromised credentials with assume role permissions can move into other member accounts in an AWS organization, expanding scope well beyond the original account.

CloudTrail management events reliably capture the use of stolen credentials, including the source IP, user agent, and every action taken, which is why even organizations without data event logging can usually reconstruct the IAM side of a compromise if the 90 day window has not yet closed.

What matters most

  • Knowing before an incident whether data events, flow logs, and S3 access logging are actually enabled, not just assumed to be.
  • Acting inside the 90 day Event history window, since it is the one AWS log source guaranteed to exist regardless of prior configuration.
  • Snapshotting compromised instances before termination or reimaging removes the evidence permanently.
  • Reviewing IAM policies and role trust relationships to understand how far a compromised credential could have reached.
  • Honest reporting when required logging was never enabled, rather than inferring conclusions the data cannot support.

Common misconceptions

CloudTrail logs everything by default

Event history covers management events only for 90 days; data events showing object level access require explicit configuration.

Stopping a compromised instance is the safest first move

Snapshotting the attached volumes before any state change preserves more evidence and is a better first step in most cases.

AWS keeps VPC Flow Logs automatically

Flow logs must be explicitly enabled per VPC, subnet, or interface; nothing is captured unless someone turned it on.

A compromised IAM role only affects the account it lives in

Assume role permissions and cross account trust relationships can let a compromised credential reach far beyond its home account.

When this applies, and when it does not

This applies when

  • An EC2 instance, container workload, or Lambda function shows signs of compromise or unauthorized activity.
  • IAM credentials or access keys are suspected to have been stolen or exposed.
  • An S3 bucket may have been accessed or exfiltrated by an unauthorized party.
  • A carrier or regulator requires an independent account of what occurred in a cloud environment.

This does not apply when

  • The environment is entirely on premises with no cloud infrastructure component.
  • The incident is confined to a SaaS application with its own dedicated audit logging separate from the underlying cloud provider.
  • No AWS account access or logging of any kind survived to support even a partial reconstruction.

How Elite Digital Forensics helps

We are engaged by businesses, managed service providers, and cyber insurance carriers to investigate AWS compromises ranging from a single exposed access key to organization wide account takeover. Our examiners work directly with cloud engineering teams to acquire evidence correctly and quickly, and we document exactly what the available logging can and cannot establish.

Emergency CloudTrail and log export

Same day export of Event history, configured trails, flow logs, and S3 access logs before retention and rolloff eliminate them.

EBS snapshot acquisition

Forensically sound point in time imaging of compromised instances without unnecessary downtime or evidence loss.

IAM compromise analysis

Reconstruction of how a credential was obtained and everywhere it was used, including cross account activity.

S3 exfiltration assessment

Correlation of access logs and data events, where available, to determine what objects were accessed or downloaded.

Root cause and timeline reporting

A defensible written account of initial access, dwell time, and scope for counsel, carriers, and regulators.

Expert witness testimony

Court qualified examiners able to explain AWS logging architecture and defend findings under cross examination.

Problems we solve

  • You do not know whether object level S3 activity was ever logged, and the 90 day window is closing.
  • A compromised access key was found in a public repository and you need to know what it was used for.
  • A web application vulnerability may have allowed IMDS based credential theft and lateral movement.
  • Your carrier requires an independent root cause report for a cloud based incident.
  • A compromised instance needs to be imaged without destroying evidence or extending downtime.

Talk with a forensic examiner about your incident

Consultations are confidential. We work directly with affected businesses, with outside counsel, and with cyber insurance carriers and brokers nationwide.

About Elite Digital Forensics

Elite Digital Forensics is an independent digital forensics firm serving businesses, attorneys, and insurers nationwide. Our examiners include former law enforcement forensic examiners who have testified as court qualified expert witnesses in state and federal proceedings. We do not sell security software and we do not manage client networks, so our findings carry no conflict of interest when the question is whether an environment was adequately secured.

Every engagement follows documented chain of custody, defensible acquisition methods, and reporting written for attorney review, insurer submission, regulator response, or courtroom use. Work performed at the direction of counsel is generally treated as attorney work product prepared in anticipation of litigation. Call (833) 292-3733 or request a confidential consultation.

Frequently asked questions

What is the difference between CloudTrail Event history and a CloudTrail trail?

Event history is a free, always on view of management events retained for a rolling 90 days in every account with no setup required. A configured trail actively delivers events to an S3 bucket or CloudWatch Logs, enabling retention beyond 90 days and the capture of data events, which Event history does not include.

Can AWS prove what was downloaded from an S3 bucket?

Only if S3 server access logging or CloudTrail data events were enabled on that bucket before the activity occurred. Without either configured in advance, there is generally no reliable object level access record, which is why enabling them proactively matters far more than trying to add them after a breach.

Should a compromised EC2 instance be shut down immediately?

Snapshotting the attached EBS volumes before any state change is usually the better first step, since it preserves a forensic copy without necessarily destroying volatile evidence. Isolating the instance at the network layer with a restrictive security group is often safer than stopping or terminating it outright.

How does an attacker steal AWS credentials through IMDS?

A server side request forgery vulnerability in an application running on an EC2 instance can be used to query the instance metadata service, which can expose temporary IAM role credentials attached to that instance. Those credentials can then be used from outside the instance until they expire or are revoked.

Do VPC Flow Logs show the content of network traffic?

No. Flow logs record metadata such as source and destination IP addresses, ports, protocol, and byte counts, not payload content. They are useful for proving that a connection occurred and estimating data volume, but not for reading what was actually transmitted.

What happens if none of the optional AWS logging was ever enabled?

The investigation relies on the 90 day CloudTrail Event history for management events, EBS snapshots of affected instances, and any application level logs available. Findings in that scenario are often more limited, and a defensible report will explicitly state what could not be determined due to the absence of enabled logging.

References and authoritative sources

  1. AWS, Working with CloudTrail Event history (90 days) — https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events.html
  2. AWS, VPC Flow Logs — https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html
  3. NIST SP 800-86, Guide to Integrating Forensic Techniques into Incident Response — https://csrc.nist.gov/pubs/sp/800/86/final
  4. NIST SP 800-61 Rev. 3, Incident Response Recommendations (April 2025) — https://csrc.nist.gov/pubs/sp/800/61/r3/final
  5. MITRE ATT&CK Enterprise Matrix — https://attack.mitre.org/matrices/enterprise/
  6. Federal Rule of Civil Procedure 37(e), Failure to Preserve Electronically Stored Information — https://www.law.cornell.edu/rules/frcp/rule_37

#DigitalForensics #ComputerForensics #CellPhoneForensics #ExpertWitness #DigitalForensicExperts #EliteDigitalForensics #ForensicInvestigation #DataBreachResponse #DataBreachInvestigation #IncidentResponse #CyberForensics #AWSForensics #CloudTrail #CloudSecurity #IAMSecurity

This content is for educational and informational purposes only and does not constitute legal advice. Elite Digital Forensics provides independent digital forensic services and expert witness testimony; we do not provide legal representation. Every case is fact specific; outcomes depend on the evidence, jurisdiction, and counsel. Retain qualified legal counsel for advice about your matter.

Assistant Icon Elite Digital Forensics Assistant
πŸ‘‹ Live Chat Now!
Free Virtual Consultation 24/7
Chat Now!

By submitting this form, you consent to be contacted by email, text, or phone. Your information is kept secure and confidential. Reply Stop to opt out at anytime.Β 

IMPORTANT: Please remember to check your spam or junk folder