Protego field desk
Threat Detection and Incident Response · 14% of exam

L16. Automated Remediation: Security Hub, EventBridge & Lambda

Video generating

Check back soon for the video lesson on Automated Remediation: Security Hub, EventBridge & Lambda

Course outlineLesson 16 of 18
AWS Security Specialty Exam Prep: course overview

How Security Hub CSPM normalizes findings from GuardDuty, Inspector, Macie, and Config into ASFF, scores continuous compliance, and feeds an EventBridge-to-Lambda auto-remediation pipeline.

Exam scope: Use the current SCS-C03 guide linked below; this lesson covers the topic rather than the complete exam syllabus.

One Format for Every Finding

AWS Security Hub CSPM aggregates findings from GuardDuty, Amazon Inspector, Amazon Macie, IAM Access Analyzer, and supported third-party security tools. It also generates control findings, using AWS Config service-linked rules for most controls. It processes these findings into a single schema called the AWS Security Finding Format (ASFF). Instead of a SOC analyst switching between five different consoles with five different finding shapes, every finding lands in Security Hub CSPM with the same structure: severity, resource, remediation guidance, and workflow status, regardless of which service originally generated it. This is what makes Security Hub CSPM the aggregation layer the exam expects you to reach for whenever a scenario mentions multiple security services and a need for a single pane of glass.

Continuous Compliance, Not Periodic Audits

Beyond aggregation, Security Hub CSPM runs automated compliance checks against recognized standards, including the CIS AWS Foundations Benchmark, PCI DSS, the AWS Foundational Security Best Practices standard, and NIST 800-53. Each standard produces a compliance score that updates as resources change, replacing a periodic manual audit cycle with a continuously refreshed view of posture; check timing depends on the control and its evaluation schedule.

Centrally Managed, Same Pattern as GuardDuty

Security Hub CSPM follows the same organization-wide management pattern as GuardDuty: a delegated administrator account can enable and configure Security Hub CSPM across every member account in an AWS Organization, rather than requiring per-account setup. Any exam scenario about consistent security tooling across many accounts should make you think of this delegated administrator pattern for both services.

The Automated Remediation Pattern

The standard architecture for auto-remediating a Security Hub CSPM or GuardDuty finding follows a consistent pipeline:

  1. For Security Hub CSPM, a new or updated ASFF finding is published to Amazon EventBridge as a Security Hub Findings - Imported event (source aws.securityhub). Direct GuardDuty events instead use source aws.guardduty and detail type GuardDuty Finding; their payload is not the Security Hub ASFF envelope. Match the event pattern and handler to the chosen source.
  2. An EventBridge rule matches on finding type, severity, or another attribute.
  3. The rule invokes a Lambda function (or a Step Functions workflow, or an SSM Automation document) that performs the actual remediation.

Typical remediations triggered this way include revoking a leaked IAM access key, isolating a compromised instance's security group, or closing an overly permissive security group rule that opened a port to 0.0.0.0/0. This is the same finding-to-EventBridge-to-Lambda shape used for GuardDuty findings, which is why the two services are usually taught together.

StageComponent
Finding generatedGuardDuty, Inspector, Macie, third-party tools, or Config-backed Security Hub controls
Finding normalizedSecurity Hub CSPM (ASFF)
Finding routedEventBridge rule matching type/severity
Remediation executedLambda, Step Functions, or SSM Automation
Make response handlers idempotent because finding updates can trigger the rule again. Use least-privilege execution roles, validate the account and resource, require approval for disruptive changes, and confirm remediation before marking the finding resolved. Aggregation and scoring do not themselves fix the resource.

Custom Actions for Human-in-the-Loop Response

Not every remediation should be fully automatic. Security Hub CSPM supports custom actions, which let an analyst select a specific finding in the console and manually trigger a pre-built remediation workflow for it, rather than waiting for or relying on full automation. This is the answer whenever a scenario describes an analyst wanting to kick off a specific response for one finding on demand, as opposed to a pipeline that runs unattended for every matching finding. Exam tip: If a question mentions findings from more than one security service and asks about a single aggregated view with compliance scoring, that is Security Hub CSPM. If it then asks how a finding gets automatically fixed, the answer is the EventBridge-to-Lambda pattern, not Security Hub CSPM acting on the resource directly.

References

Continue Learning

Exam Focus Points
  • ✓Security Hub CSPM processes integrated-service findings and its own Config-backed control findings in the AWS Security Finding Format (ASFF)
  • ✓Security Hub CSPM continuously checks resources against standards like CIS AWS Foundations, PCI DSS, AWS Foundational Security Best Practices, and NIST 800-53
  • ✓Security Hub CSPM can be centrally managed org-wide through a delegated administrator account, the same pattern used by GuardDuty
  • ✓The standard automated remediation pattern is: finding published to EventBridge, an EventBridge rule matches it, and a Lambda function (or Step Functions/SSM Automation) performs the actual fix
  • ✓Security Hub CSPM custom actions let an analyst manually trigger a specific remediation workflow for a finding directly from the console
Knowledge Check

1. A company uses GuardDuty, Inspector, and Macie and wants a single normalized view of all findings plus continuous compliance scoring against PCI DSS. Which service should they use?

2. What is the standard architecture pattern for automatically remediating a GuardDuty finding without human intervention?

3. An analyst reviewing a Security Hub CSPM finding wants to manually kick off a specific, pre-built remediation workflow for that one finding from the console, rather than waiting for full automation. What feature supports this?