Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
AWS · SCS-C03

Validate, contain, and recover

SCS-C03 · Lesson 6 of 22 · 48:41

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: validating an incident (true or false positive, scope, impact), containment with an isolation security group, a network ACL to break tracked connections, deactivated access keys, and revoked sessions, eradication and rebuilding from a known good AMI, restoring from a logically air-gapped vault or from S3 versions, and finding the root cause with Amazon Detective. Includes three original practice questions.

Study notes

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

Three questions

The automation isolated the instance, and the evidence is safe. Now the responders must answer three questions: is this real, how far did it go, and how do we get back to normal? This lesson covers validation, containment, eradication, recovery, and the root cause.

Validating the incident

First, validate the finding: is it a true positive, or a false positive? Check whether the activity was expected, for example an approved vulnerability scanner, a known batch job, or a test by the red team. Then define the scope: which accounts, resources, identities, and data are involved. And assess the impact, such as patient records exposed, services down, or money spent, which sets the priority and who you must inform. Security Hub exposure findings and their attack paths show what an attacker could reach from the resource.

Containing the threat

Then contain the threat, to stop it from spreading. For an instance, attach an isolation security group with no rules, and detach the instance from its Auto Scaling group and its load balancer. Changing a security group does not cut the connections that are already tracked, so add a network ACL rule that blocks the traffic, which breaks the existing connections at once. For a stolen access key, deactivate it, and for a role, revoke its active sessions, which denies every action to the sessions issued before that time. For a bucket made public, turn on S3 Block Public Access.

Eradicating and restoring

Next, eradicate the threat: remove what the attacker left, such as new users, access keys, roles, and Lambda functions, and rotate every secret that the attacker could reach. Do not clean a compromised instance in place: launch a new one from a known good AMI, fully patched, and keep the old one only as evidence. Then restore the data from backups taken before the compromise. AWS Backup can copy backups to a logically air-gapped vault, locked in compliance mode, which you can share with a recovery account, and S3 versioning brings back earlier versions of objects. Finally, watch closely for signs that the attacker is coming back.

Finding the root cause

Last, find the root cause, or the same attack will work again. Amazon Detective collects log data on its own, such as CloudTrail events, VPC Flow Logs, and GuardDuty findings, keeps up to a year of history, and its finding groups link related findings to show how an attack unfolded. Ask how the attacker got in: a leaked key, an unpatched service, an open port, or too many permissions. Then fix the cause, and add detective controls, such as a Config rule, a GuardDuty plan, or a metric filter, so that the next attempt raises an alert at once. Write it all in a report, and improve the runbooks.

Recap

Let's recap. Validate first: true or false positive, scope, and impact. Contain with an isolation security group, a network ACL to break tracked connections, deactivated keys, and revoked sessions. Eradicate what the attacker left, rebuild from a known good AMI, and restore from an air-gapped vault or from S3 versions. And find the root cause with Detective, then add detective controls and improve the runbooks.

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. GuardDuty reports port scanning from an instance in the security tooling account. The instance runs the vulnerability scanner that the security team approved, on its weekly schedule. What should the security engineer do?

    • Isolate the instance and capture its memory
    • Confirm a false positive and suppress it
    • Turn off GuardDuty in the tooling account
    • Terminate the instance and rotate all keys
    Show the answer

    Confirm a false positive and suppress it

    The activity is expected, so it is a false positive, and a suppression rule on that instance keeps the next scans from raising alerts. “Isolate the instance and capture its memory” would isolate a tool that works as intended. “Turn off GuardDuty in the tooling account” would remove threat detection from the whole account. And “Terminate the instance and rotate all keys” would destroy an approved tool, for no reason.

  2. An attacker holds temporary credentials of a role, valid for several more hours. The security engineer must make these credentials useless now, before they expire. What should the engineer do?

    • Deactivate the access keys of every IAM user
    • Change the trust policy of the role
    • Revoke the active sessions of the role
    • Wait for the credentials to expire
    Show the answer

    Revoke the active sessions of the role

    Revoking the active sessions attaches a policy that denies every action to the sessions issued before that time, while new sessions still work. “Deactivate the access keys of every IAM user” would disable the keys of users, while these credentials come from a role. “Change the trust policy of the role” would only change who can assume the role from now on, and the credentials already issued would keep working. And “Wait for the credentials to expire” would leave the attacker hours of access.

  3. After an incident, the responders want to see how several high severity GuardDuty findings relate to each other, with the activity of each entity over the past months. What should they use?

    • Amazon Detective finding groups
    • A Security Hub CSPM standard
    • AWS Config conformance packs
    • Macie automated sensitive data discovery
    Show the answer

    Amazon Detective finding groups

    Detective finding groups link related findings and show the activity of each entity, with up to a year of history, which helps to find the root cause. “A Security Hub CSPM standard” would check configurations against a standard. “AWS Config conformance packs” would deploy rules and remediation actions. And “Macie automated sensitive data discovery” is for finding sensitive data in S3.