Cloud forensics on AWS: what you can collect and what you can't.
Evidence capture, chain-of-custody and the prep work that turns CloudTrail into a defensible record.

This field note is drawn from live Digital Forensics & IR engagements. Names and identifying details are anonymised; the patterns, decisions and trade-offs are reproduced as they happened. Read it as case material rather than guidance: the choices made in the moment are not always the choices we would advocate in a clean-room playbook.
Definition
Cloud forensics on AWS involves the collection, preservation, and analysis of digital evidence from EC2 instances, S3 buckets, Lambda functions, and managed services, using AWS-native logging (CloudTrail, VPC Flow Logs, GuardDuty) and forensic tooling to reconstruct attacker activity. Because AWS operates on a shared-responsibility model, certain hypervisor-level and physical evidence is unavailable to customers, requiring forensic teams to design evidence-collection procedures around what the customer layer can actually capture.
Why it matters
The pressure on Digital Forensics & IR programmes is shifting in specific, observable ways:
- SAMA CSF 3.4.3 and NCA ECC-1 2-4-2 require evidence preservation and post-incident forensic analysis; AWS-native logs must be pre-configured before an incident to satisfy the 'adequate logging' requirement — logs not enabled at time of breach cannot be retroactively collected.
- UAE PDPL Article 23 and KSA PDPL Article 30 require forensic evidence of the scope of a personal-data breach for regulatory notification; CloudTrail and S3 access logs are the primary evidence source for data-exfiltration scope determination in AWS environments.
- AWS CloudTrail data events (S3 object-level, Lambda invocation) are not enabled by default and cost approximately USD 0.10/100K events; organisations that discover this limitation during an incident face an unrecoverable evidence gap for potentially the most critical log source.
- Cross-border evidence-transfer considerations under UAE PDPL Article 22 apply when forensic images of EC2 instances are copied out of UAE-region AWS data centres to analyst workstations in other jurisdictions.
Evidence sources to capture
What an auditor or reviewer will sample for — wire each source into your evidence repository before the next review cycle:
- AWS CloudTrail — management events (API calls, IAM changes) and data events (S3 GetObject, PutObject) with event time, source IP, user identity, request parameters
- VPC Flow Logs — source/destination IP, port, protocol, bytes transferred, action (ACCEPT/REJECT) for lateral-movement reconstruction
- AWS GuardDuty findings export — finding type, severity, resource affected, first/last seen, linked CloudTrail event ID
- EC2 memory acquisition — LiME kernel module dump or Magnet AXIOM Cloud snapshot for volatile evidence before instance termination
- EBS volume snapshot — forensic copy taken via AWS snapshot API before instance modification; verified with SHA-256 hash
- S3 server access log and CloudTrail data events — object-level access records showing which files were read, by which IAM principal, and at what time
Recommended next actions
A 90-day plan, sequenced so each step produces evidence the next step depends on:
- Day 0–30: Cloud Security Engineer enables CloudTrail with data events (S3, Lambda) in all production accounts; enables VPC Flow Logs for all VPCs; enables GuardDuty in all regions including ap-south-1 (Mumbai), me-south-1 (Bahrain), me-central-1 (UAE).
- Day 31–60: Create a forensic-ready IAM role (ForensicAnalystRole) with ReadOnlyAccess + EC2 snapshot permissions; document EBS acquisition runbook using AWS CLI snapshot commands and hash-verification steps.
- Day 61–90: Test forensic collection procedure on a non-production EC2 instance: acquire memory dump with LiME, create EBS snapshot, export CloudTrail to S3 forensic bucket with object-lock (WORM) enabled.
- Day 90+: Integrate GuardDuty findings into SIEM (Splunk or Microsoft Sentinel) via EventBridge; configure automated EBS snapshot on GuardDuty High/Critical findings for immediate evidence preservation.
- Ongoing: Audit CloudTrail and VPC Flow Log coverage quarterly using AWS Config rule 'cloudtrail-enabled'; verify log integrity with CloudTrail log-file validation; retain logs for minimum 12 months (SAMA CSF requirement).
Example metrics
Instrument these and report them monthly to the executive sponsor; sustained adverse trends become board-level conversations:
- CloudTrail data event coverage (accounts with data events enabled / total production accounts): target 100%
- VPC Flow Log coverage (VPCs with logs enabled / total VPCs): target 100% for production environments
- Time to acquire forensic EBS snapshot of a running EC2 instance: target ≤15 minutes from decision to snapshot-complete
- CloudTrail log retention period: minimum 12 months online, 24 months archived (SAMA CSF 3.4.3 guidance)
- GuardDuty finding-to-SIEM alert latency: target ≤5 minutes via EventBridge integration
How it played out
The engagement began the way these always do — a specific trigger (evidence capture, chain-of-custody and the prep work that turns cloudtrail into a defensible record.) and an executive sponsor with limited patience for theoretical answers.
The first instinct on the client side was to add tooling. The first instinct on our side was to fix the analysis notebooks so that whatever tooling was added would have somewhere defensible to land.
What surprised the team — and worth noting for anyone running similar Digital Forensics & IR work — is how much of the value came from re-sequencing existing activities rather than introducing new ones.
- Trigger. The work was sponsored after a near-miss the executive team could no longer rationalise.
- First week. Stabilise the investigation report; pause anything that risked making it worse.
- Weeks 2–6. Rebuild the working evidence cadence; the regulator-facing story followed naturally once the internal cadence was honest.
- What we'd do differently. Engage outside breach counsel on day one, not after the diagnostic.
Pitfalls we keep seeing
Across MAST Consulting Group's Digital Forensics & IR portfolio, the same recurring failure modes show up cycle after cycle. None are exotic; all are expensive when they reach the audit report.
- Pattern: no legal-hold trigger in the IR runbook. What good looks like: the same control evidenced inside the workflow it governs, not separately for the audit.
- Pattern: acquisition not write-blocked or not hashed at source. What good looks like: the same control evidenced inside the workflow it governs, not separately for the audit.
- Pattern: cloud forensics started after log retention had expired. What good looks like: the same control evidenced inside the workflow it governs, not separately for the audit.
- Pattern: investigation report mixes opinion with fact. What good looks like: the same control evidenced inside the workflow it governs, not separately for the audit.
Tooling we actually reach for
MAST Consulting Group is deliberately tool-agnostic, but in practice the same shortlist keeps appearing on Digital Forensics & IR engagements because the integrations are cheap and the evidence is defensible:
- EnCase / FTK / Magnet AXIOM (host) — used not because it is fashionable, but because the audit trail it generates is one the reviewer accepts on the first ask.
- Velociraptor / GRR (live response) — used not because it is fashionable, but because the audit trail it generates is one the reviewer accepts on the first ask.
- AWS CloudTrail + S3 lifecycle locks (cloud) — used not because it is fashionable, but because the audit trail it generates is one the reviewer accepts on the first ask.
How MAST Consulting Group can help
MAST Consulting Group runs Digital Forensics & IR programmes for banks, insurers, healthcare networks, payments providers, telcos and government entities across the UAE, KSA, India and the wider GCC. We bring Lead Practitioners, sector specialists, and a working library of policies, risk methodologies and evidence templates that have passed audit at firms recognisable to your board.
If anything in this field note is relevant to a programme you are scoping or rescuing, the fastest next step is a 30-minute working session with the practice lead. We will look at your specific situation, share what we have seen work for Digital Forensics & IR programmes at similar scale, and tell you honestly if the work is something you should bring to us or run in-house.
Turn this briefing into a working plan for your team.
Tell us where you are today and we'll come back within one business day with a scoped, fixed-fee proposal — or an honest opinion if you should run the work in-house.
- 30-minute working session with a Lead Auditor
- Specific to your regulators, scope and timeline
- No-obligation written next-step plan
Prefer email? info@mastcgroup.com
Request a consultation
Reply within one business day from a senior consultant.
Related insights
Matched on service area and shared topics.