Sub topic 2
Reducing Noise with GuardDuty and Security Hub
Assume you know AWS accounts, Regions, IAM, basic JSON, and the AWS CLI. This chapter focuses on tuning findings after detection.
Reducing noise with suppression rules and IP lists
GuardDuty creates findings for possible threats. Some findings are expected in your environment. A suppression rule automatically archives new findings that match criteria. Archiving removes them from the active queue, but preserves them for review.
This example archives one known-benign finding type:
DETECTOR_ID=$(aws guardduty list-detectors --query 'DetectorIds[0]' --output text)
aws guardduty create-filter \
--detector-id "$DETECTOR_ID" \
--name suppress-port-probe-sample \
--action ARCHIVE \
--rank 1 \
--finding-criteria '{"Criterion":{"type":{"Eq":["Recon:EC2/PortProbeUnprotectedPort"]}}}'GuardDuty IP lists provide another filter. A trusted IP list identifies approved addresses, such as a security scanner. A threat IP list identifies addresses that should increase suspicion. Upload and activate lists only after confirming ownership and expected behavior.
What Security Hub does
Security Hub is a central service for security findings and posture checks. It collects findings from GuardDuty and other AWS services, then presents them in a common view. It does not replace GuardDuty detection.
caption: A finding moves from detection through review and response
alt: Flow from GuardDuty to Security Hub, then to EventBridge and an automated response
flowchart LR
A[GuardDuty finding] --> B[Security Hub]
B --> C[Standards and controls]
B --> D[EventBridge]
D --> E[Response workflow]Security standards and controls
A security standard is a framework, such as AWS Foundational Security Best Practices. A control is one check within that framework. Controls produce compliance findings, which are different from GuardDuty threat findings. Enable only standards that match your obligations, and assign owners for failed controls.
Understanding the finding format
GuardDuty findings include a finding type, severity, resource, actor, and timestamps. Security Hub commonly represents imported findings in the AWS Security Finding Format (ASFF). Security Hub also supports the Open Cybersecurity Schema Framework (OCSF) for normalized security data.
| Field | Meaning |
|---|---|
| `Type` | The detected activity category |
| `Severity` | A numeric priority indicator |
| `Resources` | Affected AWS resources |
| `ProductArn` | The service that produced the finding |
Viewing GuardDuty findings in Security Hub
Enable Security Hub, then filter for active findings whose product is GuardDuty:
aws securityhub enable-security-hub --enable-default-standards
aws securityhub get-findings \
--filters '{"ProductName":[{"Value":"GuardDuty","Comparison":"EQUALS"}],"RecordState":[{"Value":"ACTIVE","Comparison":"EQUALS"}]}' \
--max-items 5Use the finding type and resource fields to decide whether to investigate, archive, or route the finding.
Exercise
Why should a suppression rule be narrow rather than match every finding from an address?
Show answer
A narrow rule reduces known-benign noise while preserving unrelated findings that may indicate a real attack.