Interview Prep/DevSecOps/Vulnerability Management and Incident Response

How do you collect forensic evidence from a cloud workload?

AdvancedConceptVulnerability Management and Incident Response
Answer

Order of volatility: memory first, then disk, then logs.

  • Memory: capture with tools such as LiME or AVML before shutdown.
  • Disk: snapshot the EBS volumes (aws ec2 create-snapshot), share them to an isolated forensics account and analyse from a separate instance, never on the compromised host.
  • Isolation: swap the instance's security group to one with no rules rather than terminating it, and enable termination protection so nobody deletes it by accident.
  • Logs: CloudTrail, Flow Logs, DNS, application logs, preserved with Object Lock.
  • Chain of custody: record who collected what and when, with hashes.

Automate this with a runbook or Step Function so evidence collection is consistent under pressure.

All DevSecOps questions Roadmap: Security in the pipeline

More on Vulnerability Management and Incident Response