Skip to Content
Asterrr's Handbook
1 · Detection

AWS Security Hub

Central place for findings, posture checks and automation. Know Security Hub versus Security Hub CSPM and what feeds it.

Exam tasks: 1.1 (skills 1.1.3 to 1.1.5: aggregate security events, detect anomalies, automate recurring assessments), 1.2 (skills 1.2.3 and 1.2.4: security data lakes, analyzing findings)

The decision: which service produces the finding you need, where do all findings land so one team can prioritize them, and which tool do you open to investigate or hunt afterwards?

Security Hub aggregates and prioritizes findings from other security services and runs posture checks against standards. It detects nothing on its own from raw logs. It is Regional, with optional cross-Region aggregation and an organization administrator.

Finding providersDelegated administrator accountfindingcontrol checksfinding eventrespondGuardDutyInspectorMacieConfig rulesSecurity HubEventBridgeRemediation
Providers send findings to Security Hub. Automation rules edit them on ingest. EventBridge starts the response.

Which service finds what

ServiceLooks atProducesDoesn't
GuardDutyCloudTrail, flow logs, DNS, plus plan sourcesThreat findings: something is happeningCheck configuration or scan for CVEs
InspectorEC2 packages and network reachability, ECR images, Lambda code and dependencies, code repositoriesVulnerability findings with a risk scoreDetect live attacks
MacieS3 only: bucket settings and object contentsPolicy findings (bucket public, unencrypted, shared) and sensitive data findings (PII, credentials)Look at databases or EBS
Security Hub CSPMAWS Config-backed control checks against standards (FSBP, CIS, PCI DSS, NIST 800-53)Control findings and security scores, plus aggregated findings from other services in ASFFDetect threats itself
Security HubFindings from Security Hub CSPM, GuardDuty, Inspector, Macie and IAM Access AnalyzerExposure findings that correlate them, an attack path graph, and findings in OCSFReplace the detectors; they still have to be on
IAM Access AnalyzerResource policies and access activityExternal access and unused access findingsSee network paths
AWS ConfigResource configuration historyCompliance per rule and conformance packExplain who made a change (that's CloudTrail)
DetectiveCloudTrail, flow logs, EKS audit logs, GuardDuty findings, up to a yearBehaviour graph, finding groups, investigationsGenerate primary findings or alert
Security LakeRaw logs and findings from AWS, SaaS and custom sourcesAn OCSF, Parquet data lake in your accountDetect anything by itself

Exam signal

Map the verb in the question to the service. "Is being attacked / compromised" is GuardDuty. "Has a known CVE" is Inspector. "Contains credit card numbers" is Macie. "Is non-compliant with CIS" is Security Hub CSPM (on AWS Config). "Root cause, what else did this principal touch" is Detective. "Keep and query all security logs for years in an open schema" is Security Lake.

How findings flow

Each member account, each RegionGuardDutyInspectorMacieAWS Config rulesAccess AnalyzermemberSecurity HubCSPM (ASFF,controls)Security Hub(OCSF,exposures)Aggregation Region indelegated adminEventBridgeSNS, Lambda,Step Functions,SIEMSecurity LakeDetective
Diagram of how findings flow
  • Every detector is Regional and has its own delegated administrator. Use the same security tooling account for all of them so one team sees everything.
  • Findings only reach Security Hub CSPM after you enable it, and only in the Region where it's enabled. Designate an aggregation Region to pull findings, insights and control status from linked Regions.
  • Central configuration lets the delegated admin push configuration policies (which standards and controls are on) to OUs and accounts, instead of configuring each account.

Security Hub and Security Hub CSPM

AWS now has two related services, and exam questions may use either name.

Security Hub CSPMSecurity Hub
JobPosture checks against standards, plus a single place for findingsPrioritise active risk by correlating signals across detectors
FormatAWS Security Finding Format (ASFF)Open Cybersecurity Schema Framework (OCSF)
Signature outputControl findings, security score per standardExposure findings and an attack path graph
Depends onAWS Config recording for most controlsSecurity Hub CSPM, Inspector, GuardDuty, Macie as signal sources
ExtrasAutomation rules, custom actions, insights, cross-Region aggregationUnused access analysis (90-day lookback), Jira Cloud and ServiceNow ticketing
  • An exposure finding combines, for example, "instance reachable from the internet" (CSPM), "critical CVE on it" (Inspector) and "instance role can read a sensitive bucket" into one prioritised item.

Legacy: use Security Hub CSPM instead

Before the new Security Hub arrived, the posture and aggregation service was simply called "AWS Security Hub". Study material that says "Security Hub" and talks about ASFF, standards and controls is describing what is now Security Hub CSPM.

Core facts

ItemWhat to remember
Config dependencyMost CSPM controls need AWS Config enabled with resource recording. No recording, no control findings
Not retroactiveOnly findings generated after you enable it are collected
StandardsAWS Foundational Security Best Practices, CIS AWS Foundations Benchmark (several versions), NIST SP 800-53, PCI DSS, AWS Resource Tagging, plus service-managed standards such as Control Tower
Check scheduleControl findings update every 12 to 24 hours or when the resource changes state
Free trial30 days on first enable
Multi-accountOrganization with a delegated administrator. Findings from members appear in the administrator
Cross-RegionPick one aggregation Region and link other Regions. Findings and updates replicate to it. A Region disabled by default cannot be the aggregation Region
CISFull CIS coverage needs Security Hub CSPM enabled in all supported Regions
Exposure findingsSeverity Critical, High, Medium or Low. Informational ones are not published
Unused accessLooks back 90 days for unused IAM roles, users, keys and permissions

Automation

ToolUse
Automation rulesChange findings as they are ingested. Criteria on ASFF fields, actions such as set severity, workflow status SUPPRESSED, add a note. Up to 100 per administrator. Per Region. Rules have an order, and the last applied wins
EventBridge custom actionsConsole button sends selected findings to EventBridge for Lambda, SSM Automation, ticketing
EventBridge on every findingAutomatic response to new findings

Automation rules do not fire on changes made with BatchUpdateFindings. To stop findings for a control, disable the control instead.

  • Automation rules run before EventBridge sees the finding. Use them to raise severity for production accounts or to set a known exception to SUPPRESSED.
  • Every new or updated finding reaches EventBridge as Security Hub Findings - Imported. A custom action sends the selected finding as Security Hub Findings - Custom Action.

Security Hub with AWS Config off

Enabling Security Hub CSPM standards in an account that doesn't record resources in AWS Config produces controls with no data. If a question says the security score is empty or controls show "no data", the fix is to enable AWS Config recording (organization-wide, through the delegated admin or a StackSet), not to re-enable the standard.

Detective: investigate after the finding

Detective answers "what happened around this finding?"

  • Builds a behaviour graph from CloudTrail, VPC flow logs, EKS audit logs and GuardDuty findings, with up to a year of history, without you building queries.
  • Finding groups cluster related findings and entities into one incident. Investigations check an IAM user or role against indicators of compromise.
  • Pivot into Detective straight from a GuardDuty or Security Hub finding.

Which one to use

NeedPick
Detect threats from logsGuardDuty
Single view and scores across services and accountsSecurity Hub
Check that resources meet a benchmarkSecurity Hub CSPM standards, or Config conformance packs
Raw logs in a queryable lakeSecurity Lake
Sensitive data in S3Macie

Exam trap

Security Hub does not remediate on its own and does not read CloudTrail or flow logs directly. Remediation comes from EventBridge targets or automation rules that only edit finding fields.

Exam signal

"Aggregate findings from all accounts and Regions into one place": delegated administrator plus an aggregation Region. "Automatically raise severity for findings on production resources": automation rule.

Scenarios

Scenario
A logistics company has enabled GuardDuty, Inspector and Macie through a delegated administrator in the security account. The security team complains that it has to open three consoles in four Regions each morning and cannot tell which of 3,000 findings matter most. It wants one prioritised view that highlights resources where a vulnerability, public reachability and access to sensitive data combine. What should the security engineer do?
Scenario
An insurer enabled Security Hub CSPM with the CIS AWS Foundations Benchmark in all accounts using central configuration. Two weeks later, most controls in 30 newly created accounts show no data, while older accounts report normally. What is the MOST likely cause?

GuardDuty, Inspector, Macie, AWS Config, Security Lake. Detective has its own cheat sheet. Alerting mechanisms covers routing findings to people. Security Hub investigation covers triage from the infrastructure side.

Further reading

On this page