AWS Certified Security - Specialty Cheatsheet
AWS Certified Security - Specialty
Download free PDFThreat detection and incident response (14%)
Threat detection and investigation
- **Amazon GuardDuty** detects suspicious behavior using AWS activity and network telemetry. Enable it in each required account and Region; use a delegated security administrator and organization auto-enrollment for scale.
- **Foundational telemetry** includes CloudTrail management events, VPC flow information and DNS requests to the Amazon resolver. GuardDuty analyzes independent service feeds; enabling it does not create a customer-accessible archive of raw logs.
- **Optional protections** extend coverage to supported workloads such as S3, EKS, databases, runtime activity and malware. Configure the relevant protection; one enabled detector does not imply every protection is enabled.
- **Findings** identify affected resources, severity, evidence and threat purpose. Reconnaissance suggests discovery, command and control suggests attacker communication, and impact suggests disruption or destruction. Validate findings against workload context.
- **Amazon Detective** helps correlate entities and activity during investigations. **Inspector** identifies vulnerabilities; **Macie** discovers sensitive S3 data; **Security Hub** aggregates findings and posture checks.
Alerts and response automation
- Route **GuardDuty findings → EventBridge → SNS** for email alerts, or invoke Lambda, Step Functions or Systems Manager Automation for response. Match severity and finding type; confirm the SNS subscription and destination permissions.
- **Delegated administration** centralizes member findings. Configure event routing in the account and Regions that receive them; organization membership alone does not establish every service integration.
- **Suppression rules** archive narrowly matched expected findings. **Trusted IP lists** reduce findings for known benign sources; **threat lists** add known malicious IP intelligence. Neither list is a network firewall.
- Build **idempotent runbooks** that tolerate duplicate events, record actions and failures, and recheck resource state. Scope response roles tightly and separate destructive actions from routine containment.
- Use **CloudFormation** to provision a repeatable forensic environment and **Step Functions** to coordinate collection, analysis and notifications. Update finding workflow status after remediation and retain the action trail.
Contain hosts and preserve evidence
- **Quarantine EC2** by replacing its security groups with restrictive groups, removing it from load-balancer targets, and protecting it from Auto Scaling replacement. Security-group permissions are additive; adding a restrictive group alone does not remove existing allows.
- **Connection tracking** can let established sessions survive security-group changes. A carefully scoped **network ACL deny** can interrupt traffic immediately; assess its effect on every resource in the subnet.
- Capture **volatile memory**, running processes, network connections, instance metadata and timestamps before stopping or rebooting when feasible. **EBS snapshots capture disks, not RAM**; document collection methods and evidence hashes.
- Snapshot all relevant volumes and analyze **copies** in an isolated account or environment. Preserve the original evidence, chain of custody and encryption-key access; avoid installing unnecessary tools on the suspect host.
- **Encrypted snapshot sharing** requires a customer managed KMS key, snapshot sharing permissions and usable key permissions. Copy snapshots encrypted with an AWS managed key to a customer-key-encrypted snapshot before sharing.
Compromised identities and recovery
- **Exposed access keys** require containment, replacement and investigation. Deactivate the compromised key promptly; for controlled legacy cutovers, deploy and validate a replacement with the shortest possible overlap. Prefer workload roles afterward.
- **Temporary STS credentials** are distinct from long-term access keys. Revoke older role sessions with a token-issue-time deny and prevent new unauthorized sessions. Removing an instance profile or disabling an IdP user alone does not invalidate every issued token.
- Investigate **CloudTrail** by access key, principal, role session, event time, source IP and action. Correlate federation events and identity-provider records; credential reports summarize credential state rather than every API operation.
- Rotate affected **passwords and secrets**, remove unauthorized persistence, patch the entry point, and redeploy from trusted images. Keep necessary evidence before deleting attacker-created resources.
- For a stolen **SSH key**, remove its public key from each host's authorized_keys and update launch images or configuration. Deleting the EC2 key-pair record does not remove keys already installed on running hosts.
Security logging and monitoring (18%)
CloudTrail coverage and event types
- **CloudTrail** records AWS API activity and identity context. **Event history** provides recent regional management events for 90 days without requiring a trail; use a trail or event data store for designed retention and analysis.
- **Management events** describe control-plane operations such as policy or trail changes. **Data events** cover selected resource operations such as S3 object access and Lambda invocation; enable selectors for the required resources and read/write activity.
- **Organization trails** cover member accounts, including newly added accounts. Use a **multi-Region trail** for regional coverage and account for opt-in Regions and global-service events.
- A stopped trail cannot retrospectively record missing data events. **Event history**, other trails and independently retained telemetry may still help; no investigation service can recreate arbitrary logs that were never collected.
- Monitor **StopLogging, DeleteTrail, policy changes, root activity and credential creation**. Use EventBridge for event-driven alerts or CloudWatch Logs metric filters and alarms for count-based thresholds.
Central log delivery and integrity
- Send audit logs to a restricted **log archive account**. The S3 policy must permit the CloudTrail service to check bucket ACLs and write to the correct account or organization path, including the configured prefix.
- For **SSE-KMS CloudTrail delivery**, authorize the service to generate data keys with appropriate source and encryption-context restrictions. Readers separately need S3 read access and **kms:Decrypt**.
- **Log file integrity validation** produces signed digest files that help detect changes or missing log files. It does not prevent deletion, encrypt logs, or automatically validate every file; perform validation when checking evidence.
- Protect logs with **least privilege**, encryption and suitable **Object Lock** retention. Separate log administration from workload administration; use lifecycle and retention settings for the required retention period.
- Troubleshoot delivery by checking **trail health**, logging status, bucket existence and prefix, bucket policy, KMS key state and policy, and destination-specific role permissions. S3 delivery and CloudWatch Logs delivery use different permission paths.
Application, container and platform logs
- The **CloudWatch agent** collects configured guest files and metrics. Install it in launch images or bootstrap configuration so new Auto Scaling instances forward logs before local disks disappear.
- **Logs permissions** include logs:CreateLogGroup, logs:CreateLogStream and logs:PutLogEvents as needed. **cloudwatch:PutMetricData** publishes metrics and does not authorize log ingestion.
- For missing logs, inspect **agent status, configuration, file permissions, log rotation, timestamps and agent errors**. Then check instance-role credentials, endpoint policy, DNS and outbound HTTPS connectivity.
- **Lambda execution roles** need CloudWatch Logs write permissions. Function output logs describe execution; **CloudTrail Lambda data events** identify invocation activity. Neither source guarantees that an application's business output was logged.
- **ECS/Fargate awslogs** configuration specifies the log group and Region in the task definition. The task execution role supplies applicable logging permissions; Fargate does not expose a customer-managed container host for agent installation.
- **EKS control-plane audit logs** record Kubernetes operations such as pod creation. CloudTrail records AWS EKS API calls; enabling CloudTrail alone does not enable Kubernetes audit logging.
Network, web and DNS telemetry
- **VPC Flow Logs** contain flow metadata such as addresses, ports, protocol, bytes and ACCEPT/REJECT. They do not contain packet payloads, URLs or DNS query names and are not a complete packet capture.
- Use custom **pkt-srcaddr and pkt-dstaddr** fields where original packet addresses matter around intermediate interfaces such as NAT. Select the needed format and capture scope when creating the flow log.
- **ALB access logs** describe HTTP requests and timing; **WAF logs** show inspected requests and rule actions. **S3 server access logs** support object access and transfer analysis; delivery is best effort.
- **API Gateway stage access logs** provide request context for analysis in CloudWatch Logs Insights. Execution logging and detailed metrics serve different diagnostic purposes; keep sensitive request data out of logs.
- **Route 53 Resolver query logging** captures VPC DNS query details, including originating resources and names, with caching-related visibility limits. **Public hosted-zone query logs** describe queries received by Route 53 authoritative DNS.
- Use **Traffic Mirroring** and compatible analysis targets for packet inspection. Encrypted payloads remain encrypted unless inspection includes a supported decryption point; mirroring does not replace TLS trust design.
Queries, thresholds and log pipelines
- **Athena** queries retained S3 logs with SQL. Catalog the correct paths and schema, partition for efficient scans, and grant access to source objects, query results and any KMS keys.
- **Logs Insights** searches CloudWatch log groups. **Contributor Insights** identifies frequent contributors, such as common DNS names; **QuickSight** presents dashboards over supported queryable datasets.
- **Metric filter → metric → alarm → SNS** supports thresholds such as repeated unauthorized calls or failed ConsoleLogin events. Match actual event fields and choose the statistic, period and evaluation count deliberately.
- **CloudWatch Logs subscriptions** stream matching records to supported destinations. **Kinesis Data Streams** provides retained, replayable streams; **Amazon Data Firehose** buffers and delivers data to destinations such as S3 or OpenSearch.
- For **S3 → SNS → SQS → SIEM**, authorize S3 to publish, SNS to send to the queue, and the SIEM role to receive/delete messages and read log objects. Check each link and relevant encryption permissions.
Infrastructure security (20%)
Security groups and network ACLs
- **Security groups** are stateful, allow-only controls on supported network interfaces. Rules from all attached groups combine; return traffic for an allowed tracked connection is permitted automatically.
- **Network ACLs** are stateless subnet controls with allow and deny rules. The lowest matching rule number wins; allow required traffic in both directions, including the client's **ephemeral return ports**.
- Use **security-group references** for application tiers where supported: database ingress from the application group on the database port, with application egress allowed. A reference does not create routes or copy the referenced group's rules.
- Same-Region **VPC peering** supports applicable peer security-group references. For inter-Region peering, use appropriate CIDRs. NACLs match addresses and protocols, not security-group IDs or other NACLs.
- Check **the actual ENI and attached groups**, subnet NACLs, routes, host firewall, listening process and load-balancer target health. An allowed flow record does not prove that the application replied successfully.
Public, private and hybrid routing
- A **public subnet** has a route to an internet gateway; an IPv4 EC2 instance also needs a public address for direct internet connectivity. Place application and database tiers in private subnets behind controlled entry points.
- **Public NAT gateways** provide outbound IPv4 translation for private subnets. Route each private subnet through the intended NAT gateway, commonly in the same Availability Zone; NAT is not a URL filter and has no security group.
- Use **NAT Elastic IP addresses** for stable external allowlists as instances scale. To isolate database subnets from internet egress, remove their default internet/NAT routes while retaining required private connectivity.
- **Egress-only internet gateways** allow initiated outbound IPv6 connections and their replies while blocking unsolicited inbound IPv6 connections. IPv6 addresses are not inherently private.
- **Site-to-Site VPN** supplies IPsec tunnels; **Direct Connect** supplies private connectivity with predictable network characteristics but does not inherently encrypt all traffic. Combine supported VPN-over-Direct-Connect connectivity or other encryption where required.
- **Peering is non-transitive**. Hybrid and multi-VPC paths need explicit connectivity and return routes; longest-prefix routing selects a specific on-premises route over a default internet route.
Private endpoints and data perimeters
- **Gateway endpoints** route supported S3 and DynamoDB traffic through associated route tables. An endpoint policy restricts use of the endpoint; it does not independently grant access to the underlying data.
- **Interface endpoints** use private network interfaces for supported service APIs. Configure private DNS, endpoint security groups allowing HTTPS from clients, client egress, endpoint policy and service permissions.
- **AWS PrivateLink endpoint services** expose a provider service, commonly behind an NLB, to consumers' interface endpoints. Restrict allowed principals and connection acceptance; consumers do not need broad VPC routing access.
- **aws:SourceVpce** restricts requests to a specified endpoint. **aws:SourceVpc** identifies the originating VPC where supported; **aws:SourceIp** does not represent the original private source address for every endpoint path.
- Prevent **exfiltration to external S3 buckets** with endpoint/resource/identity policies limiting destinations and by closing alternate public egress paths. Use supported organization conditions and account for legitimate AWS service calls.
- An **API Gateway private REST API** needs execute-api endpoint connectivity, suitable DNS, endpoint permissions and an API resource policy admitting the intended VPCs or endpoints. A second endpoint alone does not extend authorization.
Inspection and DNS controls
- **AWS Network Firewall** provides managed network traffic inspection. Route traffic through its endpoints with symmetric return paths; deployment alone does not place the firewall in the traffic path.
- **Proxies and host firewalls** can enforce outbound destinations or host-specific rules. Domain/URL enforcement requires visibility at the relevant protocol layer; flow logs cannot inspect encrypted application content.
- For an EC2 **routing appliance or NAT instance**, disable source/destination checking and configure IP forwarding, routes and firewall rules. Preserve high availability and avoid asymmetric stateful inspection.
- **AmazonProvidedDNS** traffic cannot be blocked by security groups or NACLs. Use **Route 53 Resolver DNS Firewall** for resolver-domain filtering; custom DNS and VPC DNS settings require deliberate resolution design.
- **Resolver inbound endpoints** accept DNS queries into a VPC; **outbound endpoints and forwarding rules** send selected queries to on-premises DNS. Query logging supplies the DNS names that flow logs lack.
- **DNSSEC** authenticates DNS data, without encrypting queries. A signed child zone needs a **DS record in its parent** to establish the chain of trust.
Web protection and origin isolation
- **AWS WAF** inspects HTTP(S) requests on supported integrations such as CloudFront, ALB and API Gateway REST APIs. Use managed rules and scoped matches for SQL injection, cross-site scripting, paths, headers, IP sets or geography.
- **Rate-based rules** mitigate abusive request rates using configured aggregation and scope. They are approximate protection, not precise per-user transaction quotas; enforce exact business limits in the application or API design.
- **AWS Shield Standard** provides baseline DDoS protection; **Shield Advanced** adds enhanced protection and response capabilities for eligible resources. Monitor DDoS metrics and prepare an escalation runbook.
- **CloudFront** absorbs and caches traffic near viewers. Keep S3 origins private with **origin access control (OAC)** and a distribution-scoped bucket policy; authorize the distribution in the KMS policy for SSE-KMS objects. **OAI** appears in older designs.
- OAC/OAI protect supported **S3 bucket origins**, not S3 website endpoints. For an ALB origin, restrict origin reachability and validate a secret **origin custom header**; an origin-facing prefix list alone admits other CloudFront distributions too.
- **Signed URLs** delegate access to individual content; **signed cookies** suit multiple restricted files such as streaming segments. Geo restrictions limit viewer countries; authentication and private-origin access remain separate controls.
- **CloudFront response headers policies** can add security headers such as HSTS; edge functions support custom response logic. Forward authorization headers deliberately and design the cache key so one user's protected response is not served to another.
TLS and certificate operations
- **ACM** provisions or imports certificates for supported services. A CloudFront viewer certificate must be in **us-east-1**; an ALB certificate belongs in the ALB's Region. Match domain names, certificate chain and compatible key format.
- Enforce **HTTPS separately on each hop**: viewer to CloudFront, CloudFront to origin, load balancer to targets, and application to database or AWS APIs. One TLS listener does not encrypt downstream plaintext connections.
- **ALB HTTPS termination plus HTTPS targets** creates separate encrypted connections. An **NLB TCP listener** can pass TLS through to the target; a **TLS listener** terminates TLS. Choose according to protocol and decryption-point requirements.
- **TLS security policies** control protocol and cipher compatibility. **Perfect forward secrecy** protects past sessions against later certificate-private-key exposure when ephemeral key exchange is used.
- For **mTLS**, both sides validate peer certificates and trust chains. **AWS Private CA** issues private certificates; plan key custody, deployment, renewal, revocation and workload identity rather than reusing one private key everywhere.
- **DNS-validated ACM renewal** depends on valid CNAME records and eligibility. Check parent NS delegation, CAA restrictions and domain names. Monitor expiration events or DaysToExpiry; imported certificates require an explicit renewal process.
Host and container hardening
- **Inspector** identifies supported EC2, container-image and Lambda vulnerabilities and unintended exposure. Use organization delegated administration and automatic enrollment; scanning identifies risk but does not patch the application for you.
- **Systems Manager Inventory** discovers installed software. **Patch Manager** uses patch baselines, groups and maintenance windows to assess and install approved patches. Private hosts also need access to required package repositories and service endpoints.
- **Hardened AMIs** provide a repeatable baseline; update launch templates and refresh existing fleets deliberately. Use Config to detect drift and host controls for file-integrity monitoring, malware prevention and local firewall policy.
- Minimize **container packages, capabilities, open ports and resource limits**. Run with the least privileges required, isolate trust levels, and scan images in **ECR** before release; repository and IAM policies govern who can push or pull.
- **ECR encryption configuration** is chosen when creating the repository. A change requiring another encryption configuration may require a new repository and image migration. Verify registry Region and Docker login target when authentication fails.
- **AWS Signer and Lambda code signing** validate trusted signed deployment packages when enforcement is configured. Encryption does not establish code provenance; revoking signing trust does not replace removing compromised deployed code.
Identity and access management (16%)
Policy evaluation and least privilege
- **Authentication** establishes identity; **authorization** evaluates actions on resources. Begin with implicit deny, require applicable allows, and remember that an **explicit deny overrides an allow**.
- **Identity policies** attach to users, groups or roles. **Resource policies** attach to supported resources and specify principals. IAM groups contain users; a group is not a resource-policy principal and does not contain roles.
- Match **Action, Resource, Principal and Condition** to the service operation. For S3, **ListBucket** uses the bucket ARN; **GetObject/PutObject** use object ARNs such as arn:aws:s3:::bucket/prefix/*.
- **Permissions boundaries, session policies and SCPs** limit effective permissions; they do not grant permissions. Evaluate their interaction with the relevant resource-policy principal type rather than assuming every policy combines identically.
- Scope privileges by **resource ARN, prefix, supported condition keys and job function**. Use CloudTrail activity and IAM access analysis to remove unused permissions after considering infrequent operational needs.
Workload roles and delegated administration
- **EC2 instance profiles** carry IAM roles for instances; **Lambda execution roles** authorize function activity. Use SDK credential providers and temporary role credentials rather than hardcoded access keys.
- **ECS task roles** authorize application AWS API calls. **Task execution roles** support agent operations such as pulling images, awslogs and retrieving secrets injected at task launch. Grant permissions to the role actually making the request.
- An **Elastic Beanstalk instance profile** governs application calls from EC2; its service role governs environment management. Image Builder build instances likewise need their own permissions to write configured S3 logs.
- **iam:PassRole** lets a caller assign an eligible role to a service; **sts:AssumeRole** obtains a session as a trusted principal. Restrict PassRole by role ARN and supported PassedToService conditions to prevent privilege escalation.
- For delegated role creation, require an approved **permissions boundary** with policy conditions, and prevent its removal or modification. A boundary on the developer alone does not automatically attach a boundary to roles they create.
Cross-account access and trust
- A cross-account role needs a **target trust policy** admitting the source principal and source permission for **sts:AssumeRole**. The assumed role's permissions govern target-resource actions.
- **Role ARN, account ID, principal ARN, trust conditions and session policy** are common troubleshooting points. A successful login to the source account does not establish permission in the destination account.
- **External IDs** mitigate the confused-deputy problem when a third-party provider assumes customer roles. The provider supplies a unique customer value; the target role trust policy checks **sts:ExternalId**.
- For direct cross-account resource access, check **both accounts' applicable policies** and any required KMS authorization. Alternatively, assume a resource-account role and keep access narrowly scoped.
- **Role session names and source identity** improve attribution. Preserve meaningful federation attributes and correlate CloudTrail role activity with the issuing identity provider instead of treating the shared role name as the human identity.
Workforce federation and directories
- **IAM Identity Center** assigns workforce access through permission sets and account assignments. Integrate a supported corporate identity source to avoid managing duplicate IAM users across accounts.
- **SAML federation** exchanges signed assertions for AWS sessions. Configure the IAM identity provider, role trust and claims; the IdP handles the user's password and MFA requirements.
- After **SAML signing-certificate rotation**, update the IdP metadata stored in AWS. Plan overlap with the replacement certificate before expiry; AWS needs public signing metadata, not the IdP's private signing key.
- **AWS Managed Microsoft AD** provides managed directory services. **AD Connector** proxies requests to an existing directory. For trusts, reason from which domain owns resources and which domain's identities must be accepted.
- A one-way **resource-domain trust** can let existing enterprise users access cloud resources without admitting cloud users into enterprise resources. Directory service integrations may impose additional trust requirements.
Application and device identities
- **Cognito user pools** provide application authentication and tokens, including federation through supported SAML or social providers. **Identity pools** exchange supported identities for temporary AWS credentials through IAM roles.
- **API Gateway authorizers** validate supported user tokens or custom authorization logic. **ALB authentication** can use Cognito or OIDC to protect a legacy web application; prevent users from bypassing the authenticated entry point.
- **Cognito groups and role mappings** can select differentiated privileges such as read-only suspended users. Authentication can remain available while backend authorization restricts writes.
- **Cognito pre sign-up triggers** support custom registration validation. Password rules for federated users belong at their IdP; Cognito password policies govern users whose passwords Cognito manages.
- **AWS IoT policies** restrict connect, publish and subscribe actions. Bind identities to registered things and intended topics; do not rely solely on a client-supplied ID or client-side checks to define authorization scope.
- **WorkSpaces trusted-device controls** can use client certificates to restrict supported client access. Device authentication, user authentication and network restrictions address separate requirements.
MFA and root-user protection
- Protect **root credentials** with MFA and a strong protected password; avoid root access keys and routine root use. Alert on root sign-ins and API activity, and tightly control recovery access.
- **Member-account root users** can be constrained by Organizations SCPs. SCPs do not restrict principals in the management account; protect that account and minimize operational workloads there.
- **MFA-aware IAM sessions** can use STS GetSessionToken or AssumeRole with an MFA code for API/CLI access. Assigning an MFA device does not make ordinary long-term access-key calls MFA-authenticated.
- **aws:MultiFactorAuthPresent** is not present in every credential context. A deny using **BoolIfExists: false** also catches missing context; preserve necessary enrollment/recovery paths and avoid unintentionally denying service workloads.
- Enforce **federated MFA at the IdP** using appropriate authentication context or supported session attributes. Do not assume IAM's MFA condition represents MFA performed by every external identity provider.
Data protection (18%)
KMS keys and envelope encryption
- **AWS owned keys** are service-controlled. **AWS managed keys** are visible service-specific keys with AWS-controlled policy/lifecycle. **Customer managed keys** give you policy, grants and lifecycle control, including disabling and scheduled deletion.
- **Envelope encryption** encrypts data with a data key and wraps that data key with a KMS key. GenerateDataKey returns plaintext and encrypted copies; encrypt locally, erase the plaintext key, and retain the encrypted key with the ciphertext.
- **KMS Decrypt** unwraps the stored encrypted data key for authorized use. KMS does not retain an application's plaintext data keys for later retrieval; losing the wrapped key can make ciphertext unrecoverable.
- **Direct symmetric KMS Encrypt** accepts at most 4 KB of plaintext. Use envelope encryption or a suitable encryption SDK for larger files rather than splitting arbitrary application data into KMS calls.
- **AWS Encryption SDK** helps implement authenticated envelope encryption. If using data-key caching, constrain age, message count and bytes according to security requirements; caching trades reduced KMS calls for additional key reuse.
Key authorization and troubleshooting
- Every KMS key has a **key policy**. A policy that delegates to the account permits IAM-based authorization; it does not automatically grant every account identity cryptographic access.
- In-account **direct key-policy grants** and delegated IAM permissions are distinct authorization paths. Cross-account use requires authorization in the key-owning account and the caller's account, with no overriding deny.
- **KMS grants** provide limited, revocable use, often for integrated services. A **grant token** lets a caller use a newly created grant before propagation completes. Grants allow operations; they do not contain deny statements.
- **kms:ViaService** limits supported service-mediated use, such as a regional S3 or EC2 integration. **kms:CallerAccount** can constrain the caller's account; neither condition substitutes for specifying intended operations and principals.
- **Encryption context** is authenticated, nonsecret metadata bound to supported symmetric ciphertext. Supply the same context to decrypt and use supported context conditions in policies. It can appear in CloudTrail, so exclude sensitive values.
- For AccessDenied or failed encrypted-instance launches, check **actual role identity, key policy, IAM/SCP denies, key Region/state, grants and conditions**. EC2, EBS and Auto Scaling may need service grants as well as cryptographic permissions.
Rotation, deletion and imported material
- **Automatic rotation** on eligible symmetric customer managed keys changes backing key material while preserving the key ID and older material for decryption. It does not re-encrypt existing application data.
- **Manual rotation** can create a new customer managed key and repoint an alias. Preserve old keys while old ciphertext exists; moving an alias changes future key selection, not the key protecting existing ciphertext.
- **Imported key material** lets the customer generate and retain an external copy and set supported material-expiration controls. Expiration or deletion of imported material makes dependent cryptographic operations unavailable.
- To restore access after deleting imported material, **reimport the original material into the same KMS key**, using current import parameters. A new unrelated key or fresh material does not decrypt ciphertext protected by the lost material.
- **DisableKey** prevents new KMS cryptographic operations. **Scheduled deletion** uses a 7–30 day waiting period and makes the key unusable while pending; cancel and re-enable before completion if recovery is required.
- **Cryptographic erasure** depends on eliminating every usable copy of key material and plaintext keys. Deleting imported material is different from deleting the KMS key object; caches, replicas, backups and external copies affect the result.
HSM custody and regional resilience
- **CloudHSM** provides dedicated HSMs with customer-controlled cryptographic users and keys. IAM manages AWS infrastructure access; HSM authentication controls cryptographic access. Design multiple HSMs, backups and client connectivity for availability.
- A **KMS custom key store backed by CloudHSM** integrates supported KMS symmetric keys with the HSM cluster. Account for HSM health, connectivity and custom-store feature restrictions.
- Validate **FIPS and compliance requirements** against the exact service, module and configuration. Use AWS Artifact and applicable security documentation; do not infer a certification level merely from the word encryption.
- **KMS keys are regional**. Multi-Region keys provide related key material for supported use cases, while replicas have regional policies and operational settings. They do not automatically replicate application data.
- **Cross-Region snapshots and S3 replication** need a usable destination-Region key. Authorize source decryption, destination encryption and the service's replication/copy role; explicitly include KMS-encrypted objects in S3 replication as required.
- Keep **backup accounts and keys independent** where compromise resilience requires it. A backup still dependent on a source-account key can become unusable if that key is deleted or inaccessible.
S3 encryption and access controls
- **SSE-S3** uses S3-managed encryption keys. **SSE-KMS** uses KMS keys and adds key authorization and audit control. **SSE-C** requires the client to supply the encryption key with requests; S3 does not retain that key for future retrieval.
- **Client-side encryption** protects content before upload and requires compatible clients for decryption. Server-side encryption protects stored content but does not prevent an authorized S3 reader from receiving plaintext.
- **Default encryption** affects new writes and does not retroactively change existing objects to the selected key. Use copy/rewrite or **S3 Batch Operations** for existing objects and verify permissions and object versions.
- **SSE-KMS reads** require S3 object-read permission and KMS decrypt authorization. Writes require appropriate data-key permissions; multipart and other workflows may need additional KMS actions. Key administration alone does not imply decrypt access.
- **S3 Block Public Access** prevents forms of public access; **bucket-owner-enforced Object Ownership** disables ACLs and simplifies ownership. For legacy ACL-enabled cross-account uploads, inspect object ownership and ACLs as well as policies.
- Enforce transport with a bucket-policy **deny when aws:SecureTransport is false**. When requiring a particular KMS key, use the intended key ARN and handle absent request headers consistently with the chosen default-encryption design.
- Keep **PII out of object keys and exposed metadata**. Prefix-based access controls can isolate users' objects, but encryption does not hide object names or replace authorization. Use Macie to identify supported sensitive content.
Secrets and credential rotation
- **Secrets Manager** stores secrets with KMS encryption and supports rotation integrations. **Parameter Store SecureString** stores encrypted parameters; tier choice alone does not enable database-password rotation.
- Runtime access needs **secret/parameter read permissions** and applicable **kms:Decrypt** authorization. Grant per-workload access to specific resources and record access through CloudTrail; never put secrets in source, AMIs or EC2 user data.
- **Secrets Manager rotation** coordinates new secret creation, database update, testing and staging labels such as AWSCURRENT. Custom API keys need rotation logic that actually updates the external provider, not just a new stored value.
- Applications should **cache carefully and refresh on authentication failure or rotation**. Secrets injected into container environment variables at launch are not automatically refreshed in an already running task; redeploy or retrieve at runtime.
- Private rotation functions need **network access to the database and Secrets Manager**, suitable security groups, DNS and an interface endpoint when internet egress is prohibited. Also authorize the execution role and KMS use.
- **Cross-account secrets** require a resource policy, caller permissions and a customer managed key with compatible cross-account policy. **ABAC** can match principal and resource tags, provided users cannot change authorization tags to elevate access.
Databases, volumes and application protection
- **RDS/Aurora encryption** protects supported storage and backups. To migrate unencrypted storage, use a supported encrypted snapshot-copy/restore workflow or migration to a new encrypted database; plan endpoint cutover and data consistency.
- **DMS full load plus change data capture** can reduce write downtime during supported database migrations. Wait for replication to catch up and coordinate the final cutover; a snapshot alone is a point-in-time copy.
- **EBS encryption by default** is an account-and-Region setting for new volumes. Existing unencrypted volumes need a snapshot/copy/restore or replacement workflow; fleet instance refresh applies an updated launch configuration to instances.
- **DynamoDB encryption at rest** protects storage transparently. For application-level confidentiality and detection of unauthorized item changes, use a compatible **DynamoDB encryption client** with appropriate attribute encryption/signing configuration.
- **Database authorization** remains separate from network and storage encryption. Scope Redshift GetClusterCredentials to the intended database users and apply database grants for read-only versus read/write operations.
- Storage encryption does not hide plaintext from a permitted application or database administrator. Use **application-layer encryption** with separate key access when the threat model includes infrastructure operators.
Retention and immutable evidence
- **S3 Object Lock** protects object versions with retention periods or legal holds. **Compliance mode** prevents protected-version deletion during retention; **governance mode** has a controlled bypass permission.
- **Versioning** preserves versions but is not immutable retention. **MFA Delete** adds protection for selected versioning/deletion operations; ordinary deny policies can be changed by principals with policy administration rights.
- **S3 Glacier Vault Lock** applies to legacy Glacier vaults. Initiation creates a validation window; complete the lock within 24 hours or abort and correct it before completion. A completed lock cannot be casually edited.
- Combine **encryption, immutability and restricted analysis access** for evidence. Maintain access to the necessary keys throughout retention and test restore; durable storage alone does not establish recoverability.
Management and security governance (14%)
Organizations and preventive guardrails
- **AWS Organizations** groups accounts into OUs for policy inheritance. Align accounts and OUs with trust, workload and compliance boundaries; separate security/logging and production from development.
- **SCPs** define the maximum permissions available to governed member-account principals. Allows must exist through the applicable hierarchy; any inherited explicit deny wins. An IAM administrator cannot override an SCP deny.
- In an **allowlist strategy**, an additional restrictive Allow does not cancel FullAWSAccess at the same level. In a **denylist strategy**, retain broad allows and deny selected actions such as stopping protected security services.
- **aws:RequestedRegion** can enforce regional API restrictions with deliberate exceptions for global services. It controls the requested endpoint, not every downstream or cross-Region consequence of an action.
- Use narrowly defined **approved-administrator exceptions** where necessary, such as an aws:PrincipalArn condition in a deny. Prevent unauthorized modification or assumption of the exception role.
- **aws:PrincipalOrgID** restricts supported resource-policy access to organization principals. **ResourceOrgID** addresses resource ownership where supported; handle AWS service integrations and necessary external access explicitly.
Configuration history and compliance
- **AWS Config** records supported resource configuration and history. **CloudTrail** records API activity. Use both to connect what changed with who made the change; Config is not an application or packet log.
- **Managed rules** check conditions such as encrypted storage, restricted SSH, public RDS access or aged access keys. **Custom rules** implement additional evaluations where supported; select change-triggered or periodic checks for the resource.
- **Config → EventBridge → SNS** notifies on compliance changes. **Systems Manager Automation remediation** can correct supported issues; include retry limits, necessary roles and an audit trail.
- For missing evaluations, check **recorder status, resource coverage, Region and role permissions**. Delivery to S3/SNS also needs compatible destination policies; an aggregator cannot collect configuration that was never recorded.
- A **Config aggregator** provides a central view across accounts and Regions; it does not by itself enforce settings. Use organization deployment and guardrails to maintain recording and prevent unauthorized tampering.
Posture, standards and centralized policy
- **Security Hub** consolidates security findings and evaluates enabled standards. Many posture controls rely on **AWS Config** recording the required resources; enabling Security Hub alone does not satisfy every prerequisite.
- Enable relevant **CIS and AWS best-practice controls**, investigate failures and manage documented exceptions. Passing a technical control set is evidence toward compliance, not a substitute for the full compliance process.
- **Firewall Manager** centrally applies supported security policies, including WAF and security-group policies, across scoped organization resources. Configure policy scope, prerequisites and remediation behavior intentionally.
- **Control Tower** helps establish and govern a multi-account landing zone. Enroll existing accounts and use account provisioning with consistent controls; central guardrails complement workload-specific permissions.
- **AWS Artifact** provides AWS compliance reports and agreements. **Trusted Advisor** provides recommendations for supported checks; neither is an incident-evidence imaging service or a replacement for continuous threat detection.
Secure provisioning and permission reviews
- **CloudFormation StackSets** deploy consistent controls across accounts and Regions. **Change sets** preview a stack update; they do not themselves deploy an organization-wide configuration.
- **Service Catalog launch constraints** specify an execution role for approved products, letting users launch governed resources without receiving all underlying provisioning permissions.
- Design **CI/CD stages and approvals** so required testing precedes production. Evaluate pipeline configuration with appropriate controls; signing artifacts verifies provenance but does not prove the pipeline followed every approval step.
- **IAM credential reports** expose credential age, MFA and last-use information. Schedule checks or use Config for aged/unused keys; automated replacement must also update consumers before safely retiring credentials.
- **IAM Access Analyzer and last-accessed information** support policy validation and permission reduction. Use the applicable observation window and retained CloudTrail evidence; absence of recent use is not proof that recovery permissions are unnecessary.
Operational access and session auditing
- **Session Manager** supplies managed interactive access without inbound SSH/RDP or bastion key management. Require SSM Agent, an authorized instance role, authorized operators and HTTPS access to the required Systems Manager messaging endpoints.
- In isolated networks, configure **interface endpoints, private DNS and endpoint security groups**. An instance with no outbound permissions cannot reach an endpoint merely because the endpoint exists.
- Configure **session encryption and S3/CloudWatch Logs recording** for supported interactive shell sessions. Session Manager cannot record the contents of SSH or port-forwarding tunnels; use host/application audit controls for those paths.
- **Run Command** executes noninteractive commands across managed nodes. **EC2 Instance Connect** supplies temporary SSH public keys but still needs SSH connectivity and compatible host configuration.
- Require **IMDSv2 tokens** on existing instances and enforce metadata options for new launches. Monitor **MetadataNoToken** for remaining IMDSv1 use; use host isolation or disable metadata access where untrusted local users must not obtain the instance role.
- Send **SES SMTP** through an appropriate regional endpoint with TLS, such as STARTTLS on port 587. Encryption of one integration does not cover other application connections; inventory and test every sensitive data path.