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.
Which service finds what
| Service | Looks at | Produces | Doesn't |
|---|---|---|---|
| GuardDuty | CloudTrail, flow logs, DNS, plus plan sources | Threat findings: something is happening | Check configuration or scan for CVEs |
| Inspector | EC2 packages and network reachability, ECR images, Lambda code and dependencies, code repositories | Vulnerability findings with a risk score | Detect live attacks |
| Macie | S3 only: bucket settings and object contents | Policy findings (bucket public, unencrypted, shared) and sensitive data findings (PII, credentials) | Look at databases or EBS |
| Security Hub CSPM | AWS 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 ASFF | Detect threats itself |
| Security Hub | Findings from Security Hub CSPM, GuardDuty, Inspector, Macie and IAM Access Analyzer | Exposure findings that correlate them, an attack path graph, and findings in OCSF | Replace the detectors; they still have to be on |
| IAM Access Analyzer | Resource policies and access activity | External access and unused access findings | See network paths |
| AWS Config | Resource configuration history | Compliance per rule and conformance pack | Explain who made a change (that's CloudTrail) |
| Detective | CloudTrail, flow logs, EKS audit logs, GuardDuty findings, up to a year | Behaviour graph, finding groups, investigations | Generate primary findings or alert |
| Security Lake | Raw logs and findings from AWS, SaaS and custom sources | An OCSF, Parquet data lake in your account | Detect 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
- 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 CSPM | Security Hub | |
|---|---|---|
| Job | Posture checks against standards, plus a single place for findings | Prioritise active risk by correlating signals across detectors |
| Format | AWS Security Finding Format (ASFF) | Open Cybersecurity Schema Framework (OCSF) |
| Signature output | Control findings, security score per standard | Exposure findings and an attack path graph |
| Depends on | AWS Config recording for most controls | Security Hub CSPM, Inspector, GuardDuty, Macie as signal sources |
| Extras | Automation rules, custom actions, insights, cross-Region aggregation | Unused 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
| Item | What to remember |
|---|---|
| Config dependency | Most CSPM controls need AWS Config enabled with resource recording. No recording, no control findings |
| Not retroactive | Only findings generated after you enable it are collected |
| Standards | AWS 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 schedule | Control findings update every 12 to 24 hours or when the resource changes state |
| Free trial | 30 days on first enable |
| Multi-account | Organization with a delegated administrator. Findings from members appear in the administrator |
| Cross-Region | Pick one aggregation Region and link other Regions. Findings and updates replicate to it. A Region disabled by default cannot be the aggregation Region |
| CIS | Full CIS coverage needs Security Hub CSPM enabled in all supported Regions |
| Exposure findings | Severity Critical, High, Medium or Low. Informational ones are not published |
| Unused access | Looks back 90 days for unused IAM roles, users, keys and permissions |
Automation
| Tool | Use |
|---|---|
| Automation rules | Change 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 actions | Console button sends selected findings to EventBridge for Lambda, SSM Automation, ticketing |
| EventBridge on every finding | Automatic 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 asSecurity 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
| Need | Pick |
|---|---|
| Detect threats from logs | GuardDuty |
| Single view and scores across services and accounts | Security Hub |
| Check that resources meet a benchmark | Security Hub CSPM standards, or Config conformance packs |
| Raw logs in a queryable lake | Security Lake |
| Sensitive data in S3 | Macie |
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
Security Hub correlates signals from Inspector, GuardDuty, Macie and Security Hub CSPM into exposure findings, which is exactly "vulnerability plus reachability plus sensitive data" in one prioritised item. Detective helps investigate after you pick a finding but doesn't prioritise the estate. An SNS firehose adds noise. Hand-written Athena joins could work but are the high-effort, non-managed answer.
Most Security Hub CSPM controls are evaluated by service-linked AWS Config rules, so without Config recording they have nothing to evaluate. Central configuration policies do apply to new accounts in the targeted OUs. There is no 30-day evaluation delay, and the free trial doesn't hold findings back.
Related
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.