Sub topic 8
Security standards and controls
This chapter assumes you know what Security Hub is from the previous chapter, can use the AWS CLI, and understand IAM and Regions. It explains how Security Hub checks your resources against rules and how to read the results.
Standards, controls, and checks
A security standard is a published set of best practices. Security Hub turns each standard into controls. A control is one specific rule, such as "S3 buckets should block public access". Each control runs one or more automated checks against your resources and produces a finding with a pass or fail result.
Security Hub supports these common standards:
| Standard | Purpose |
|---|---|
| AWS Foundational Security Best Practices (FSBP) | AWS's own baseline for its services |
| CIS AWS Foundations Benchmark | Industry hardening guidance |
| NIST SP 800-53 | US government security and privacy controls |
| PCI DSS | Rules for payment card data |
FSBP is the usual starting point. The --enable-default-standards flag you used earlier turns on FSBP, and in many setups the CIS benchmark too. Check the console or get-enabled-standards to see what your account has.
How checks run
Most controls are evaluated by AWS Config, so Config must be recording the resources the controls cover. Security Hub creates the Config rules it needs. Some controls run on a schedule and others run when a resource changes. If Config is off, checks cannot run and controls report no data.
Control status and severity
Each control has a severity: critical, high, medium, or low. Each control also has a status:
- Passed: all checked resources comply.
- Failed: at least one resource does not comply.
- Unknown or No data: Security Hub cannot evaluate it, often because Config is not recording or the resource type does not exist.
- Disabled: you turned the control off.
The security score is the share of passed checks, shown per standard and overall. Treat it as a trend, not a goal. A low-severity failure and a critical failure count differently in practice, so sort by severity first.
Working with standards from the CLI
List the standards available, then see which are enabled:
aws securityhub describe-standards
aws securityhub get-enabled-standardsDisable a control that does not apply to you, for example one about a service you never use. Control IDs look like S3.1. You need the control's ARN, which includes your Region and account.
STANDARD_ARN=$(aws securityhub get-enabled-standards \
--query 'StandardsSubscriptions[0].StandardsSubscriptionArn' --output text)
aws securityhub describe-standards-controls --standards-subscription-arn "$STANDARD_ARN" \
--query 'Controls[?ControlStatus==`ENABLED`].[ControlId,SeverityRating]' --output textTo turn one off, call update-standards-control with its StandardsControlArn, --control-status DISABLED, and a --disabled-reason. Always record why.
Common errors
- Many controls show "No data". AWS Config is not enabled in that Region, or it is not recording all resource types.
- A failed control reappears after you disable it in one Region. Standards and controls are per Region. Enable central configuration through a delegated administrator to apply one policy across accounts and Regions.
- Scores drop after enabling a new standard. New controls start failing on existing resources. This is expected. It shows past drift.
- Treating GuardDuty and standards as the same thing. GuardDuty detects active threats. Standards find misconfigurations. Both produce findings in Security Hub, but they answer different questions.
Exercise
Your Security Hub shows "No data" for most controls in one Region, although the standard is enabled. What is the most likely cause, and where do you fix it?
Show answer
AWS Config is not enabled or not recording resources in that Region. Most controls rely on Config rules, so turn on Config recording (or use Security Hub central configuration) in that Region and wait for the checks to run.