Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
AWS · SCS-C03

Automated response and forensics

SCS-C03 · Lesson 5 of 22 · 42:04

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the SCS-C03 exam (AWS Certified Security – Specialty). In this lesson: EventBridge rules that start Lambda, Step Functions, or Automation runbooks, Amazon Application Recovery Controller zonal shift and Region switch, forensics orchestration (memory capture, isolation, snapshots, analysis in a forensic account), evidence stored with S3 Object Lock, hashes, and a chain of custody, and building a timeline across accounts and Regions with Security Lake, Athena, and CloudWatch Logs Insights. Includes three original practice questions.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Two in the morning

At two in the morning, GuardDuty raises a finding: an instance in the patient app account talks to a cryptocurrency mining pool. No one is awake, and AnyCompany Health wants the first steps to run on their own, with the evidence kept before anyone touches the instance. This lesson covers automated response, forensics, evidence, and searching the logs.

Automated remediation

Automated remediation starts with an event. GuardDuty and Security Hub send their findings to Amazon EventBridge, where a rule matches the type and the severity of each finding. For one short action, such as disabling an access key or tagging a resource, the rule calls an AWS Lambda function. For many steps, with retries, waits, branches, and a human approval, AWS Step Functions runs a state machine, and Systems Manager Automation runbooks act on the instances themselves. Keep a human decision for actions that are hard to undo, such as deleting resources.

Moving traffic away

Some incidents hit a whole Availability Zone, such as a bad deployment or an impaired zone. Amazon Application Recovery Controller can start a zonal shift, which moves the traffic of supported resources, such as load balancers, away from one zone for up to three days, and you can cancel it at any time. Prescale the application first, so that the other zones have enough capacity to take the traffic. And for a whole Region, Region switch plans and coordinates the failover to another Region.

Forensics orchestration

The Automated Forensics Orchestrator for Amazon EC2 and EKS is a guidance that you deploy in your own accounts. Findings flow to Security Hub in the security account, and from there through EventBridge to Step Functions, which triages each request: isolation depends on the Security Hub action, and acquisition depends on the tags of the instance. The memory flow captures memory first, then attaches a new security group that removes all access, and the disk flow snapshots the EBS volumes and shares them with the forensic account. An investigation instance, launched from a forensic AMI built with EC2 Image Builder, analyzes the copies through Systems Manager, never the original instance. AWS makes no claim that this evidence is fit for a court, so check the legal needs with your counsel.

Capturing evidence

Evidence must be complete and must not change. Capture each forensic artifact: memory dumps, EBS snapshots, and copies of the logs, all stored in the forensic account, in an S3 bucket with Object Lock, which no one can modify or delete during the retention period. Keep a hash of each artifact, and a chain of custody that lists who collected what, when, and how. GuardDuty Malware Protection can also keep the snapshots of the volumes in which it found malware.

Searching the logs

Then search the logs to see what else happened. Start from what you know, such as the access key, the role, or the source IP address, and correlate it across sources. CloudTrail event history is quick, but it covers one account and one Region, for ninety days of management events. Security Lake keeps the logs of every account and Region in one place, and Athena runs SQL on them, while CloudWatch Logs Insights searches the log groups. Build a timeline from the first sign of compromise to the last action of the attacker.

Recap

Let's recap. EventBridge rules start Lambda for short actions, and Step Functions or Automation runbooks for many steps. Application Recovery Controller moves traffic away from a zone with a zonal shift, or away from a Region with Region switch. The forensics orchestrator captures memory, isolates, snapshots, and investigates copies in the forensic account. Evidence is stored with Object Lock, with hashes and a chain of custody. And Security Lake, Athena, and Logs Insights build the timeline across accounts and Regions.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. When GuardDuty reports an instance talking to a mining pool, AnyCompany Health wants to capture memory, isolate, snapshot the volumes, and wait for an analyst's approval before terminating it. Which service should coordinate these steps?

    • One AWS Lambda function for all the steps
    • An Application Recovery Controller zonal shift
    • A Step Functions state machine from EventBridge
    • An AWS Config rule on the instance
    Show the answer

    A Step Functions state machine from EventBridge

    A Step Functions state machine, started by an EventBridge rule, runs the steps in order, retries them, and waits for the approval. “One AWS Lambda function for all the steps” is for one short action, and it cannot wait for hours. “An Application Recovery Controller zonal shift” would move traffic away from a zone, not handle a compromised instance. And “An AWS Config rule on the instance” would check configurations, without acting on the instance.

  2. A responder wants to stop a compromised instance right away. The legal team still needs the running processes and the network connections of the instance. What should happen first?

    • Capture memory, then isolate and snapshot
    • Stop the instance, then snapshot its volumes
    • Terminate the instance to end the attack
    • Copy every file to S3 with the AWS CLI
    Show the answer

    Capture memory, then isolate and snapshot

    Memory is lost when an instance stops, so capture it first, then isolate the instance and snapshot its volumes. “Stop the instance, then snapshot its volumes” would keep the disk, but the processes and connections would be gone. “Terminate the instance to end the attack” would erase both memory and disk. And “Copy every file to S3 with the AWS CLI” would run commands on the compromised instance, which changes the evidence, and it would miss the memory.

  3. The responders know the access key that an attacker used. They must find every API call made with it, in all accounts and Regions, over the past six months. What should they use?

    • CloudTrail event history in the console
    • VPC Flow Logs in CloudWatch Logs Insights
    • The AWS Config timeline of each resource
    • Athena queries on Security Lake
    Show the answer

    Athena queries on Security Lake

    Security Lake keeps CloudTrail events from every account and Region, and an Athena query can filter them on the access key. “CloudTrail event history in the console” covers one account and one Region, for ninety days only. “VPC Flow Logs in CloudWatch Logs Insights” would show network traffic, without the API calls or the key. And “The AWS Config timeline of each resource” would show changes to the configuration of resources, not every call made with the key.