11.4 Secrets Management & Centralized Security Findings
Key Takeaways
- AWS Secrets Manager provides automatic credential rotation using Lambda for databases and API keys, whereas Systems Manager Parameter Store offers hierarchical configuration management (Standard and Advanced tiers) with KMS-encrypted SecureString parameters.
- AWS Security Hub consolidates, normalizes, and correlates security findings from GuardDuty, Inspector, Macie, IAM Access Analyzer, and AWS Config into the standardized AWS Security Finding Format (ASFF) and scores compliance against CIS and FSBP benchmarks.
- Amazon GuardDuty provides agentless, intelligent threat detection by applying machine learning and anomaly detection to VPC Flow Logs, DNS logs, CloudTrail management/data events, EKS audit logs, and EBS volume malware scans.
- Amazon Inspector delivers automated vulnerability management for EC2 instances, ECR container images, and Lambda functions, computing contextual risk scores against the Common Vulnerabilities and Exposures (CVE) database.
- Event-driven remediation architectures route high-severity security findings from EventBridge to AWS Systems Manager Automation runbooks or Lambda functions to automatically quarantine compromised resources and notify incident response teams.
11.4 Secrets Management & Centralized Security Findings
CloudOps Blueprint Focus: The AWS Certified CloudOps Engineer – Associate (SOA-C03) exam tests your ability to safeguard application credentials and centrally govern security findings. You must master the architectural trade-offs between AWS Secrets Manager and SSM Parameter Store, implement automatic credential rotation, consolidate findings across multi-account environments using AWS Security Hub, detect threats with Amazon GuardDuty, identify CVE vulnerabilities via Amazon Inspector, and orchestrate automated event-driven remediation.
Secrets Management: AWS Secrets Manager vs. Systems Manager Parameter Store
Hardcoded credentials and plaintext configuration files in source code repositories represent catastrophic operational vulnerabilities. AWS provides two distinct services for managing sensitive configuration data: AWS Secrets Manager and AWS Systems Manager Parameter Store.
| Architectural Dimension | AWS Secrets Manager | AWS Systems Manager Parameter Store |
|---|---|---|
| Primary Use Case | Database passwords, API keys, OAuth tokens, credentials. | Application configuration values, license keys, AMI IDs. |
| Automated Rotation | Native out-of-the-box support using Lambda rotation templates for RDS, Aurora, Redshift, DocumentDB. | No native rotation. Requires custom EventBridge and Lambda implementation. |
| Cross-Account Access | Native resource-based secret policies simplify cross-account sharing. | Complex; parameters cannot have resource policies; requires cross-account IAM role assumption. |
| Storage Tiers & Limits | Single tier; up to 64 KB per secret. | Standard: Free, 4 KB, 10,000 parameters. Advanced: Paid, 8 KB, 100,000 parameters. |
| Parameter Policies | Not applicable. | Advanced parameters support policies (Expiration, Notification). |
| Encryption at Rest | Mandatory; always encrypted with AWS KMS. | Optional; plaintext String/StringList, or KMS-encrypted SecureString. |
| Pricing Model | $0.40 per secret / month + $0.05 per 10,000 API calls. | Standard is free; Advanced is $0.05 per parameter / month + API charges. |
Secrets Manager Turnkey Credential Rotation
Secrets Manager natively automates credential rotation without application downtime through a four-step lifecycle orchestrated by an AWS Lambda function:
createSecret: Lambda generates a new password, encrypts it with the KMS CMK, and stores it in Secrets Manager under the staging labelAWSPENDING.setSecret: Lambda updates the backend database (e.g., executingALTER USERin Amazon RDS PostgreSQL) with the new credentials.testSecret: Lambda verifies network connectivity and authentication against the database using theAWSPENDINGcredentials.finishSecret: Lambda moves theAWSCURRENTstaging label from the old secret to the new secret, demoting the previous secret toAWSPREVIOUS.
By leveraging dual-user rotation strategies (alternating between master and secondary application users), database passwords rotate seamlessly without disrupting active connection pools.
AWS Security Hub: Centralized Posture & Compliance Management
Operating dozens or hundreds of AWS accounts creates fragmented visibility. AWS Security Hub acts as the central cloud security posture management (CSPM) clearinghouse for an enterprise AWS Organization.
Aggregation and Normalization via ASFF
Security Hub ingests, correlates, and aggregates findings from native AWS security tools:
- Amazon GuardDuty: Runtime threat intelligence and anomalous behavioral findings.
- Amazon Inspector: Software CVE vulnerabilities and network exposure analysis.
- Amazon Macie: Sensitive data discovery and public S3 bucket policies.
- AWS IAM Access Analyzer: Unintended external public or cross-account access.
- AWS Config: Infrastructure compliance rule breaches.
- Third-Party Integrations: Ingests findings from vulnerability scanners, firewalls, and SIEMs.
All ingested findings are normalized into the AWS Security Finding Format (ASFF)—a standardized JSON schema containing resource IDs, account IDs, severity ratings (Low, Medium, High, Critical), compliance status, and remediation advice.
Automated Compliance Frameworks
Security Hub continuously assesses resource configurations against industry security benchmarks:
- CIS AWS Foundations Benchmark: Multi-tier prescriptive technical guidance for identity, logging, and networking.
- AWS Foundational Security Best Practices (FSBP): Curated controls developed by AWS security experts.
- PCI-DSS: Cardholder data environment compliance checks.
Security Hub calculates a dynamic Security Score (0-100%) for each account and aggregated across the organization, tracking security hygiene over time.
Amazon GuardDuty: Intelligent Threat Detection
Amazon GuardDuty is a continuous, agentless threat detection service that combines machine learning, anomaly detection, and integrated threat intelligence (AWS, CrowdStrike, Proofpoint) to identify unauthorized and malicious behavior.
Ingested Telemetry Data Sources
GuardDuty operates completely out-of-band at the AWS infrastructure plane, meaning it incurs zero performance impact on EC2 instances or container workloads. It analyzes:
- VPC Flow Logs: Detects anomalous network traffic patterns, port scans, and communication with known botnet command-and-control (C2) servers.
- DNS Query Logs: Identifies DNS tunneling, data exfiltration, and domain generation algorithms (DGAs).
- AWS CloudTrail Management & S3 Data Events: Flags suspicious API calls, unusual console logins, and credential exfiltration attempts.
- Amazon EKS Audit Logs: Evaluates Kubernetes control plane activity for pod privilege escalation or unauthorized cluster administration.
- EBS Malware Protection: Automatically initiates agentless malware scans on attached EBS snapshots when an EC2 instance demonstrates suspicious behavior.
Finding Naming Conventions & Severities
GuardDuty findings follow a structured naming syntax:
ThreatFamily:ResourceAffected/ThreatType!Artifact
Examples include:
CryptoCurrency:EC2/BitcoinTool.B!DNS(EC2 instance querying cryptocurrency mining pools).UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWS(EC2 metadata credentials used outside the AWS infrastructure).
Findings are scored into four severity bands:
- Low (0.1 – 3.9): Informational or low-risk suspicious activity.
- Medium (4.0 – 6.9): Suspicious behavior warranting investigation.
- High (7.0 – 8.9): Active compromise or significant security exposure.
- Critical (9.0 – 10.0): Immediate active attack or critical asset compromise.
Amazon Inspector: Automated Vulnerability Management
While GuardDuty detects active threats, Amazon Inspector discovers potential vulnerabilities before adversaries exploit them. Modern Amazon Inspector operates continuously across three compute surfaces:
- Amazon EC2 Instances: Agentless vulnerability scanning orchestrated natively through the AWS Systems Manager (SSM) Agent (no separate Inspector agent required). Inspects operating system packages and application dependencies against known vulnerability databases.
- Amazon ECR Container Images: Scans container base layers and application dependencies on push and continuously re-scans stored images when new CVEs are published.
- AWS Lambda Functions: Scans application dependencies (e.g., Python
requirements.txt, Node.jspackage.json) and function runtime code for known vulnerabilities.
Inspector Contextual Risk Scoring
Traditional scanners assign static CVSS base scores. Amazon Inspector calculates a dynamic, contextual Inspector Score by adjusting the CVSS score based on the actual operating environment:
- If a vulnerability has an exploit available in the wild, the score increases.
- If the EC2 instance is located in an isolated private subnet with no internet route and strict security groups, the network reachability score drops, lowering the overall finding severity.
Event-Driven Security Finding Remediation
Manual incident response cannot keep pace with automated cloud attacks. Enterprise operations link security findings directly to automated remediation runbooks via Amazon EventBridge:
+-----------------------------------------------------------------------------+
| Automated Security Remediation Architecture |
| |
| [GuardDuty / Inspector / Security Hub] |
| │ |
| ▼ (Emits High/Critical ASFF Finding) |
| [Amazon EventBridge Default Bus] |
| │ |
| ┌────────────┴────────────┐ |
| ▼ ▼ |
| [AWS Lambda Function] [SSM Automation Runbook] |
| • Revoke compromised IAM • Replace Security Group with Quarantine SG |
| access keys immediately • Snapshot EBS volumes for forensics |
| • Publish alert to SNS • Terminate malicious containers in EKS |
+-----------------------------------------------------------------------------+
By executing automated containment within seconds of detection—such as replacing an instance's security groups with an empty quarantine security group that permits zero ingress and egress—the blast radius of a compromised node is neutralized while preserving disk state for forensic review.
A high-security financial application running on Amazon EC2 connects to an Amazon Aurora PostgreSQL database. Company compliance mandates that: (1) database credentials must be rotated automatically every 30 days without application downtime, (2) secrets must be shared securely across accounts with dedicated development and production environments, and (3) access to database passwords must be logged and audited in AWS CloudTrail. Which AWS solution satisfies all requirements with the least administrative effort?
An organization's Security Operations Center (SOC) receives an alert from Amazon GuardDuty indicating that an Amazon EC2 instance in a production VPC is communicating with a known command-and-control (C2) server and mining cryptocurrency (CryptoCurrency:EC2/BitcoinTool.B!DNS). The security team requires immediate, automated isolation of the compromised instance to prevent lateral movement while preserving the instance disk state for forensic examination. Which automated architecture fulfills this requirement?
A cloud operations manager wants to establish centralized security governance across 100 AWS accounts managed under AWS Organizations. The requirements state that: (1) security findings from Amazon GuardDuty, Amazon Inspector, Amazon Macie, and AWS Config must be consolidated into a single pane of glass using a standardized JSON finding format, (2) accounts must be continuously measured against the CIS AWS Foundations Benchmark and AWS Foundational Security Best Practices, and (3) overall organizational compliance scores must be tracked over time. Which AWS service should be enabled as the central posture management solution?