Interview Prep/DevSecOps/Incident Response and Governance

AWS sends an abuse notice saying one of your EC2 instances is scanning other hosts on the internet. What do you do?

BeginnerScenarioIncident Response and Governance
Answer

Situation read → The instance is almost certainly compromised (or an unapproved tool is running). AWS may restrict the account if we do not respond.

What I'd do →

  1. Isolate the instance with a quarantine security group and snapshot volumes for forensics.
  2. Check GuardDuty findings and VPC Flow Logs for the outbound traffic pattern.
  3. Find the entry point: exposed SSH, unpatched service, leaked key.
  4. Rebuild from a clean AMI rather than cleaning the host.
  5. Reply to the AWS abuse case with what you found and the actions taken.

Why → A compromised host cannot be trusted after cleanup; rebuild is the safe option.

Interview tip → Always respond to the abuse report; ignoring it can lead to account suspension.

All DevSecOps questions

More on Incident Response and Governance