Lesson 1 of 3 AWS Security Hub and Amazon Security Lake

Aggregating Findings and Checking Posture with AWS Security Hub

This lesson explains how AWS Security Hub gives one place to see security findings and posture across accounts and Regions, and runs automated checks against security standards.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify the services whose findings Security Hub aggregates in a normalised format.
  • Distinguish the security standards that Security Hub CSPM checks.
  • Explain how findings are triaged so that critical ones are handled first.

Aggregating findings

Security Hub collects findings from GuardDuty, Inspector, Macie, IAM Access Analyzer, Firewall Manager, Patch Manager, AWS Config and many partner products, normalised to the AWS Security Finding Format (ASFF). The newer Security Hub experience also uses OCSF and correlates signals into prioritised exposures.

True or false

Findings and controls

Exam skills 1.1.3

Check how Security Hub aggregates findings and evaluates controls.

Log in to try this activity Interactive activities are free with an account.

Security standards (Security Hub CSPM)

Security Hub CSPM (cloud security posture management) checks resource configurations against security standards, each a set of controls with a different purpose. AWS Foundational Security Best Practices (FSBP) is AWS's own recommended baseline across many services and is the usual starting point. The CIS AWS Foundations Benchmark is an industry benchmark focused on account-level settings such as logging, monitoring and IAM. PCI DSS covers the controls relevant to payment card data, and NIST SP 800-53 covers US federal security controls. The AWS Resource Tagging standard checks that resources carry required tags. The following table summarises the standards.

StandardPurpose
AWS Foundational Security Best Practices (FSBP)AWS's recommended baseline
CIS AWS Foundations BenchmarkIndustry benchmark
PCI DSSPayment card compliance
NIST SP 800-53US federal controls
AWS Resource TaggingTagging standards

Each control checks one configuration (e.g. "S3 buckets should block public access") and passes or fails; each standard gets a security score. Most controls use service-linked Config rules, so AWS Config must be enabled or they show no data.

The following diagram traces a failed S3.8 Security Hub control to its cause and shows the options for preventing it.

Tracing a failed S3.8 control. The Security Hub finding names the bucket; because the control is backed by an AWS Config rule, the Config timeline shows when the setting changed and the linked CloudTrail event shows who changed it. Fixing the bucket passes the control; preventing a recurrence is a separate decision.
SCP and RCP stand for service and resource control policy.
Match the pairs

Security Hub standards

Exam skills 1.1.5 · 6.3.1

Match each Security Hub CSPM standard with its purpose.

Log in to try this activity Interactive activities are free with an account.

Triage

A large organisation can generate thousands of findings, and treating them all equally means the critical ones are missed. Triage is the process of deciding which findings matter, who owns them and what happens next. Security Hub records a workflow status on each finding, so the team can track whether it has been seen, handed to an owner, accepted as a known risk or resolved. Insights and filters group findings so that the most important resources and issues are handled first. The following list describes the triage features.

  • Workflow status: NEW, NOTIFIED, SUPPRESSED or RESOLVED.
  • Insights group findings, e.g. instances with the most critical findings.
  • Filters and severity labels help prioritise.
Match the pairs

Workflow statuses

Exam skills 1.1.3 · 2.2.3

Match each Security Hub workflow status with the situation it records.

Log in to try this activity Interactive activities are free with an account.
Worked example

From a failed control to its cause

The security score for FSBP drops, and control S3.8 (S3 general purpose buckets should block public access) is failing in one account. The control's finding names the bucket. Because the control is backed by an AWS Config rule, the Config timeline for that bucket shows when the setting changed, and the linked CloudTrail event shows who changed it:

aws securityhub get-findings --filters '{
  "ComplianceSecurityControlId":[{"Value":"S3.8","Comparison":"EQUALS"}],
  "ComplianceStatus":[{"Value":"FAILED","Comparison":"EQUALS"}],
  "RecordState":[{"Value":"ACTIVE","Comparison":"EQUALS"}]
}' --query 'Findings[].{account:AwsAccountId,bucket:Resources[0].Id,updated:UpdatedAt}'

Fixing the bucket makes the control pass at the next evaluation. Preventing a recurrence is a separate decision: account-level Block Public Access, an SCP denying s3:PutBucketPublicAccessBlock for non-administrators, or an RCP that refuses access from outside the organisation regardless of bucket policy.

Check yourself

Which service must be enabled for Security Hub's posture checks to work?

Show answer

AWS Config, because the security standard controls are evaluated with Config rules.

Exam Tips

Remember for the exam

  • Security Hub posture checks require AWS Config to be enabled.
  • One view of findings from GuardDuty, Inspector, Macie and partners is provided by Security Hub.
  • For continuous scoring against the CIS benchmark, enable the CIS standard.
  • AWS's recommended baseline checks are the Foundational Security Best Practices standard.
  • The normalised finding format is ASFF.