Back to exam

AWS Certified Security - Specialty SCS-C03 Cheatsheet

AWS Certified Security - Specialty

Download free PDF

Detection (16%)

Security service selection

  • **GuardDuty** detects suspicious activity from AWS telemetry. **EKS Protection** analyzes Kubernetes audit activity; **Runtime Monitoring** adds process, file and operating-system signals on supported workloads.
  • **Inspector** identifies software vulnerabilities and exposure on supported compute and container workloads. **Macie** discovers sensitive data in S3 using managed or custom data identifiers.
  • **Security Hub** centralizes security findings and posture controls. **Detective** connects identities, resources and activity for investigations; it does not replace the original event logs.
  • **Macie automated discovery** samples S3 data to locate sensitive-data concentrations. Use targeted discovery jobs for deeper inspection; sampling does not establish that every object is free of sensitive data.
  • Use **delegated administrators** and service-specific organization configuration for central visibility. Enable the required services, protection plans and integrations in each relevant account and Region.

CloudTrail and durable audit evidence

  • **CloudTrail management events** record control-plane API activity. Enable relevant **data events**, such as S3 object access, when identity, operation and object-level audit detail are required.
  • A **multi-Region trail** covers enabled Regions; an **organization trail** covers member accounts, including new ones. A single-Region account trail does not provide organization-wide coverage.
  • Deliver logs to a protected central **S3 bucket**. Configure the CloudTrail service principal, source conditions and object prefix correctly; changing the trail prefix can require a bucket-policy update.
  • **Log file validation** detects changes to delivered CloudTrail files. **S3 Object Lock** protects retained object versions from deletion or modification; validation alone does not make logs immutable.
  • Query S3 logs with **Athena** or event data stores with **CloudTrail Lake**. **Event history** is a limited management-event view; it is not a substitute for retained cross-account data-event logging.

Application and network telemetry

  • Ship host logs through the **CloudWatch agent** before instances scale in. Set retention explicitly; files on an instance can disappear when the instance is terminated.
  • **API Gateway access logs** are configured per stage with a chosen format. A Lambda function writes logs through its **execution role**, including log-group, log-stream and event-write permissions as needed.
  • **ALB access logs** are delivered to S3. Use **Athena** to analyze them and a visualization tool such as **QuickSight** to explore client activity and known bot sources.
  • **VPC Flow Logs** describe network flows, including addresses, ports and traffic acceptance. They do not contain packet payloads; combine them with DNS and process evidence for mining or exfiltration investigations.
  • Collect **EKS control-plane audit logs** and application logs deliberately; they are different sources. Log metric filters can produce metrics for anomaly alarms, with **SNS** supplying notifications.

Queries, alerts and signal quality

  • **CloudWatch Logs Insights** queries collected log groups. **Metric filters** turn matching log events into metrics; **alarms** evaluate metrics. A subscription filter streams logs to supported processing destinations.
  • **CloudTrail Insights** identifies unusual API call or error rates in supported management activity. Use time-window log queries for thresholds such as repeated authentication failures or large transfers outside working hours.
  • **OpenSearch Security Analytics** applies detection rules to ingested logs and supports alerts. **Security Lake** centralizes supported security data using **OCSF** for downstream analysis.
  • Route service findings through **EventBridge** to **SNS**, Lambda or response workflows. Match finding type, severity and resource scope; test the complete path with suitable sample findings.
  • Investigate missing findings from the **source outward**: service and Region enabled, telemetry supported, protection plan active, finding generated, integration enabled, then event pattern and notification permissions. Custom DNS resolvers can reduce GuardDuty DNS visibility.
  • Narrow **suppression rules** automatically archive matching GuardDuty findings. **Trusted IP lists** reference supported files in S3; use them carefully because trust exclusions can hide activity. Neither setting blocks an attacker.
  • **Cost Anomaly Detection** and budgets can surface unexpected spend. Billing signals have processing delay; combine them with security telemetry rather than treating them as immediate intrusion detection.

Incident Response (14%)

Triage and preserve evidence

  • Prepare **runbooks**, incident roles, cross-account access and notification paths before an incident. Track ownership, evidence and stakeholder updates through the response workflow.
  • Validate a finding using its **resource, identity, time, action and behavior**. For suspected mining, correlate processes, mining-domain DNS requests and outbound connections; high CPU alone is inconclusive.
  • Preserve instance metadata, relevant logs and **EBS snapshots**. Capture volatile evidence when required, record collection details, and protect evidence storage and access for chain of custody.
  • Tag affected resources and enable **termination protection** where appropriate. Prevent Auto Scaling or cleanup automation from destroying evidence; investigate forensic copies instead of modifying originals unnecessarily.

Contain compromised credentials

  • For exposed **IAM access keys**, deactivate the compromised key, investigate CloudTrail activity and replace credentials securely. Removing a key from source control does not invalidate copies already obtained by an attacker.
  • **Temporary role credentials** remain a separate concern from the original access key. Revoke affected role sessions or apply a scoped explicit deny to sessions issued before a cutoff; fix the compromise that could issue more sessions.
  • A **quarantine security group** constrains the instance's network path. It cannot stop stolen credentials used from another host; contain credential use and network access separately.
  • For federated or **Identity Center** users, disable access at the authoritative identity source and remove relevant assignments. Address existing AWS role sessions as well as future sign-ins.
  • Preserve protective **compromised-key quarantine** controls during triage. Remove unauthorized resources and persistence, rotate affected credentials, and lift containment only after the recovery checks pass.

Isolate and automate safely

  • Replace every affected network interface's permissive **security groups** with a quarantine group that allows only required forensic access. Attaching a restrictive group alongside permissive groups does not subtract their allows.
  • **Connection tracking** can preserve established flows after security-group changes. Use an appropriate host firewall or stateless network control when existing connections must be interrupted; subnet NACL changes affect other instances too.
  • A common automation path is **GuardDuty or Security Hub → EventBridge → Lambda or Systems Manager Automation**. A Security Hub custom action emits an event; the target workflow performs the response.
  • Give responders a pre-created cross-account role and reduce each incident session with a **session policy**. Bound scope, record actions and make remediation idempotent so repeated findings do not cause repeated damage.

Recover and exercise

  • **RPO** limits acceptable data loss; **RTO** limits restoration time. Align backup frequency, replication lag, infrastructure rebuild and application validation with both objectives.
  • **RDS point-in-time recovery** restores to a new database within the available recovery window. Choose a known clean time before compromise, then validate data and redirect applications.
  • **AWS Elastic Disaster Recovery** continuously replicates supported servers into a staging area. Launch recovery instances and test application recovery; replication also carries unwanted changes, so historical recovery points matter.
  • Keep protected backups and reproducible **infrastructure as code** for ransomware recovery. Exercise restores, dependencies, credentials and key availability rather than assuming a successful backup guarantees recovery.
  • **Fault Injection Service** experiments test resilience with scoped targets and **stop conditions** tied to CloudWatch alarms. Define safety thresholds and measurable success criteria before exercising live workloads.

Infrastructure Security (18%)

Network layers and traffic flow

  • **Security groups** are stateful allow lists on network interfaces; matching allows from multiple groups combine. **Network ACLs** are stateless subnet controls with allow and deny rules evaluated in ascending rule-number order.
  • For outbound **HTTPS**, a NACL must allow destination TCP 443 outbound and the client's ephemeral return ports inbound. Put specific denies before broad allows; plan both directions of every permitted flow.
  • Build tiered rules: internet to the **ALB**, ALB group to application group, then application group to database group on the required port. Limit administrative entry to approved corporate or managed access paths.
  • For supported same-Region **VPC peering**, reference the application's security group in database inbound rules to follow changing instance membership. Security-group references do not create routes or grant IAM permissions.
  • Remove internet default routes from **database subnet route tables** when database egress must be isolated. A NAT gateway enables outbound access; it is not a policy-based firewall. Disable **source/destination checking** on routing appliances as required.

Private service access and data perimeters

  • **S3 gateway endpoints** provide private VPC access to S3, including authorized buckets in another account. Configure route tables; VPC peering to the bucket owner's VPC is unnecessary for S3 access.
  • **Interface endpoints** use PrivateLink, private IPs, endpoint security groups and DNS. For private KMS calls, configure the KMS endpoint and private DNS, plus endpoint and key-policy permissions.
  • An **endpoint policy** limits requests through that endpoint and does not grant service access by itself. Combine it with identity and resource policies to prevent writes to attacker-controlled destinations.
  • **aws:ResourceOrgID** restricts resource ownership; **aws:PrincipalOrgID** restricts caller organization. **aws:SourceVpce** binds applicable requests to an endpoint. Account for service-mediated requests and missing context before applying broad denies.
  • **Direct Connect** provides dedicated connectivity but is not inherently IPsec encrypted. Combine the connectivity design with **Site-to-Site VPN** when an IPsec tunnel is required; provide redundant paths for availability.

WAF, Shield and centralized protection

  • **AWS WAF** filters HTTP requests on supported resources such as CloudFront, ALB and API Gateway REST API stages. It cannot attach directly to an EC2 instance or a Network Load Balancer.
  • Use managed or custom rules for **SQL injection**, malicious headers and bots. Start new rules in **Count**, inspect matches and tune before blocking; user-agent strings are spoofable and can also identify legitimate clients.
  • **Rate-based rules** aggregate matching requests over an evaluation window. Choose aggregation keys and scope carefully; shared IPs and distributed attacks make per-IP limits imperfect. Exact application quotas may need application-side enforcement.
  • **Shield Standard** supplies baseline DDoS protection. **Shield Advanced** adds protections and response capabilities for registered resources; monitor its CloudWatch DDoS metrics and configure supported automatic application-layer mitigation where needed.
  • **Firewall Manager** applies centrally scoped WAF and other supported security policies across an organization. Configure the policy in relevant Regions and include existing and future resources; it is distinct from a finding aggregator.

CloudFront and secure compute

  • Use **CloudFront OAC** with a private S3 origin and a bucket policy restricted to the distribution. Enforce geographic requirements at CloudFront or WAF and prevent direct-origin bypass.
  • **Response headers policies** can add security headers at the edge; functions can apply custom behavior. Choose **cache policies** for cache keys and **origin request policies** for forwarding, without placing unnecessary headers in the cache key.
  • When a proxy sits before an API, distinguish the immediate peer IP from the **original client IP**. Correlate edge and application logs; explicitly select required fields and trust forwarded headers only from controlled proxies.
  • Use **Inspector** findings to prioritize fixes and **Systems Manager Patch Manager** to apply approved updates. Configure **ECR image scanning**; repository encryption is chosen at creation, so changing it requires a replacement repository.
  • **Session Manager** supports managed access without inbound SSH ports or stored SSH keys; its agent needs permissions and network reachability. **EC2 Instance Connect** uses short-lived SSH public-key delivery; server host-key validation remains a separate trust check.

Identity and Access Management (20%)

Policy evaluation and least privilege

  • An applicable **explicit deny** overrides an allow. Trace identity policies, resource policies, SCPs, permissions boundaries, session policies and endpoint policies when troubleshooting access; do not fix denial by attaching broad administrator policies.
  • **Permissions boundaries** cap permissions delegated through identity policies. Require the approved boundary when developers create roles, and prevent them from replacing the boundary or changing its managed policy.
  • **Session policies** restrict a role session to the intersection with the role's permissions. They cannot grant actions that the role does not have; use them for incident-specific temporary access.
  • Separate service **actions and resource types**: S3 ListBucket targets the bucket ARN, while GetObject targets object ARNs such as a bucket's `/*` path. A Lambda function reads S3 through its execution role.
  • For **AccessDenied**, inspect the failing CloudTrail event, principal ARN, action, resource, conditions and organizational controls. For SQS, check both the instance role's permissions and queue policy, plus KMS authorization for encrypted data where applicable.

Cross-account trust and third parties

  • Place the **target role** in the account that owns the resources. Its trust policy authorizes the source principal to assume it; the source identity also needs **sts:AssumeRole** permission.
  • The target role's permissions govern actions after assumption. Verify the **role ARN**, caller identity, trust conditions and applicable SCPs; assuming a role does not merge the source user's permissions into the session.
  • For third-party services, require a customer-specific **ExternalId** in the role trust policy to reduce the **confused deputy** risk. The provider supplies and checks the identifier; it is not a password or a replacement for a trusted principal.
  • For direct **cross-account S3 access**, authorize both the caller and bucket side. If objects use SSE-KMS, the key policy and external account's IAM permissions must also permit the necessary key operations.
  • Resource-policy conditions can target a particular **principal or session**. Match the actual principal context, not an assumed display name, and scope a deny to the intended bucket and actions.
  • **AWS RAM** shares supported resources such as IPAM pools. The share's permissions define available resource operations; recipient-account IAM policies can restrict which local principals may perform them.

Workforce federation and MFA

  • **IAM Identity Center** provides workforce access to accounts and supported applications such as **Amazon Q Developer**. **SAML** federates sign-in with an external IdP; **SCIM** provisions users and groups. Authentication and provisioning are separate integrations.
  • A **permission set** defines an account role's permissions and session duration. Assign the user or group to the account with the permission set; directory synchronization alone does not create account access.
  • Customer-managed policies referenced by permission sets must exist in target accounts with the expected **name and path**. Keep their contents consistent; permission-set assignment does not copy the policy document automatically.
  • Use a **delegated administrator** for routine Identity Center administration. Keep management-account permission sets and assignments tightly controlled and administer those privileged assignments from the management account.
  • For IAM-user CLI access with MFA, **GetSessionToken** returns access key, secret key and session token after MFA validation. **AssumeRole** can also require MFA in its trust policy. Long-term access keys do not carry an MFA-authenticated session context.
  • A deny with **BoolIfExists: aws:MultiFactorAuthPresent = false** also catches missing MFA context. Plan enrollment and federation exceptions carefully; enforce federated-user MFA and password rules at the authoritative IdP, and Cognito user passwords in the user pool.

Customer and workload identities

  • **Cognito user pools** authenticate application users and issue tokens. **Identity pools** exchange supported identities for temporary AWS credentials. Workforce account access belongs in Identity Center rather than an application user directory.
  • Validate JWT **signature, issuer, audience or client binding, token use and expiration** before serving microservices. Use an appropriate API Gateway authorizer; a user token does not automatically authorize every downstream resource.
  • A Cognito **pre sign-up Lambda trigger** can perform custom acceptance checks. WAF can filter applicable user-pool traffic, while geographic blocking is a coarse control rather than proof of identity.
  • Give ECS applications **task roles** for AWS API calls. The **task execution role** supports launch-time activities such as image pulls and configured secret retrieval; it is separate from permissions used by application code.
  • **IAM Roles Anywhere** exchanges trusted X.509 certificate authentication for temporary role credentials for external workloads. Configure the trust anchor, profile, role trust and certificate lifecycle; issuing a certificate alone grants no AWS API access.
  • For CI systems, configure an IAM **OIDC provider** and **AssumeRoleWithWebIdentity** trust constrained by audience and subject claims such as repository and branch. **IoT policies** should bind device identity to permitted client IDs and topic resources; do not trust arbitrary client-supplied identifiers.

Data Protection (18%)

KMS authorization and encryption design

  • **Envelope encryption** encrypts data with a data key and protects that key with a KMS key. Keep plaintext data keys short lived; store the encrypted data key with the ciphertext.
  • **Key policies** are central to KMS authorization. An account-principal statement can delegate authority to IAM policies; it does not automatically give every principal permission to use the key.
  • Separate **key administrators** from **key users**. Reading SSE-KMS data needs both data-service access and the required KMS permission, such as Decrypt; access to only one gate is insufficient.
  • **kms:ViaService** restricts eligible operations through a named integrated service acting for a principal. **Encryption context** is authenticated metadata useful in authorization; it is logged and must not contain secrets.
  • A **KMS grant** delegates selected key operations without repeatedly editing a key policy. Pass the **grant token** returned by CreateGrant when immediate use is required before eventual consistency completes; revoke or retire grants when appropriate.

Key lifecycle and dedicated key stores

  • **Automatic rotation** changes backing key material while preserving the KMS key identity and access to earlier ciphertext. It does not require application policies to move to a new key ARN.
  • **DisableKey** stops cryptographic use reversibly. **ScheduleKeyDeletion** starts a mandatory waiting period; alert on these CloudTrail events. Deleting an alias does not delete its key.
  • For a multi-Region primary key, **replica keys must be deleted first** before primary-key deletion can finish. Related keys have independent policies and operational state; an `mrk-` identifier signals a multi-Region key.
  • If **imported key material** is removed, recovery requires the same original material in the same KMS key. Fresh material or an old encrypted EBS snapshot cannot decrypt ciphertext protected by the missing material.
  • A **CloudHSM-backed custom key store** keeps supported symmetric KMS key material in dedicated HSMs while retaining KMS APIs and policy controls. Use HSMs across Availability Zones for availability; do not assume every standard KMS key type or operation is supported.
  • **CloudHSM client access** needs private network connectivity, security-group rules and HSM-user authentication. IAM control-plane access alone does not authorize HSM cryptographic operations. Audit KMS API calls through CloudTrail and collect relevant HSM audit logs.

S3 encryption and controlled sharing

  • **SSE-S3** uses S3-managed keys; **SSE-KMS** adds KMS authorization and key-use auditing. Customer-managed KMS keys support explicit key-policy control and cross-account designs; **SSE-C** requires customer-provided keys on requests.
  • **Default encryption** controls new writes but does not rewrite existing objects. If a specific KMS key is mandatory, combine the default with upload-policy enforcement and a plan to re-encrypt older data.
  • Enforce **TLS** with a bucket-policy deny when **aws:SecureTransport** is false, covering bucket and object resources. Encryption-at-rest conditions and encryption-in-transit conditions solve different requirements.
  • **Presigned URLs** authorize a specific operation and object using the signer's permissions. Treat them as bearer credentials; they expire at the earlier of the requested expiry or the signing credentials' expiry or loss of validity.
  • Keep buckets private with **Block Public Access** and narrow resource policies. A private endpoint changes network reachability; it does not automatically restrict all other access paths or make a bucket's data policy safe.

Immutable retention and lifecycle

  • **S3 Versioning** preserves object versions but does not prevent privileged permanent deletion. **Object Lock** adds WORM protection to object versions with retention periods or legal holds.
  • **Governance mode** can be bypassed by principals with the required permission. **Compliance mode** prevents deletion of protected versions during retention, including by the account root user.
  • **S3 replication** needs appropriate versioning, roles, destination permissions and KMS access. Configure Object Lock-compatible replication for protected copies; replication and backups address different recovery risks.
  • **AWS Backup Vault Lock** protects recovery points under retention controls. Governance and compliance have different bypass properties; compliance protection becomes immutable after its changeable grace period ends.
  • **S3 Lifecycle** transitions and expires objects; account for noncurrent versions separately. **Glacier Flexible Retrieval** supports archive retrieval on an hours-scale path. Lifecycle expiry does not override an active lock or legal hold.

Secrets, databases and encrypted storage

  • **Secrets Manager** stores secrets and supports managed rotation workflows. **Parameter Store SecureString** protects configuration secrets with KMS. Restrict retrieval to the workload role and avoid credentials in repositories or plaintext handoffs.
  • Retrieve secrets at runtime or through supported integrations, and plan **refresh after rotation**. A principal allowed to retrieve a secret can obtain its plaintext; rotation alone does not enforce separation of duties.
  • **Secrets Manager replication** creates regional copies encrypted with keys in the destination Region. Applications should use local endpoints for regional independence; a primary Region's key ARN is not a destination Region key.
  • Enforce database **TLS** using the engine's supported parameters and validate the server certificate. Aurora MySQL uses **require_secure_transport**; Aurora PostgreSQL uses **rds.force_ssl**. TLS termination at an ALB does not encrypt subsequent application or database hops.
  • Share eligible encrypted **RDS snapshots** using a customer-managed key and permissions in both accounts. AWS managed keys cannot be shared for this purpose; restore tests must verify key access as well as snapshot availability.
  • For encrypted **EBS volumes, AMIs and DynamoDB tables**, service permissions and KMS access both matter. Imported material can support origin-control requirements, but continued key availability is essential to data access and recovery.

Security Foundations and Governance (14%)

Organization guardrails

  • **SCPs** set maximum permissions for principals in member accounts; they do not grant access. Explicit denies inherit, and an allow-list design requires the action to be allowed at every level from root through OU to account.
  • SCPs apply to member-account users and roles, including member root users, but not the **management account** or service-linked roles. An SCP cannot repair a missing role policy or resource permission.
  • A **Region restriction** commonly uses **aws:RequestedRegion**, with deliberate exceptions for required global services. The condition identifies the endpoint receiving the call; consider cross-Region effects and recovery operations.
  • Use preventive controls for **denied API operations** and supported deployment constraints. **EventBridge or Config remediation** runs after a change; a notification or rollback is not proof the resource was never noncompliant.

Config coverage and remediation

  • **AWS Config** records supported resource configuration and evaluates compliance. **CloudTrail** records API activity; the last API call alone may not describe the resulting resource configuration.
  • A **Config aggregator** centralizes configuration and compliance views across accounts and Regions. It does not enable recording or deploy rules into source accounts; provision those components separately.
  • **Conformance packs** group rules and remediation definitions. Use organization deployment and **CloudFormation StackSets** for consistent coverage, including new accounts; ensure recorders and delivery configuration are present.
  • Use managed rules for checks such as **publicly accessible RDS instances**, and custom rules for additional tag or encryption logic. Scope evaluations to relevant resources; sensitive-data discovery belongs to Macie rather than Config.
  • Route **compliance change events** through EventBridge to SNS for notification, or invoke **Systems Manager Automation** for remediation. Check IAM permissions and verify the post-remediation state; stale evaluations can trigger unnecessary actions.

Tags and deployment controls

  • **Tag policies** standardize supported tag keys and values and can enforce supported tagging operations. They do not generally require a tag on every resource; use **aws:RequestTag**, **aws:TagKeys** and missing-tag conditions on supported APIs to enforce creation requirements.
  • Prevent removal or alteration of protected tags as well as invalid creation. **required-tags** is a detective Config rule; check service-specific tagging support and exceptions before relying on a universal tag guardrail.
  • **CloudFormation Guard** evaluates templates against policy rules in CI. Generate candidate rules from known compliant templates, review them and validate before deployment; **validate-template** checks template validity rather than organizational security compliance.
  • **StackSets** roll out standardized infrastructure across accounts and Regions. **Service Catalog portfolios** distribute approved products and AMIs to authorized users; constrain alternate deployment permissions if approved products are mandatory.
  • When deployment fails in one OU, inspect the **failed API event**, execution role and inherited SCPs. Preserve delivery speed with automated policy checks and actionable notifications rather than removing guardrails to troubleshoot.

Assessments and security responsibilities

  • **AWS Artifact** provides AWS compliance reports and agreements. **Audit Manager** organizes assessment evidence; neither automatically proves the security or compliance of the customer's application.
  • **IAM Access Analyzer** identifies supported external or internal access paths and policy issues. **CloudTrail** establishes recorded API activity; a credential report summarizes credential status rather than reconstructing every resource accessed.
  • Use the **Well-Architected security and reliability pillars** to assess architecture, document risks and implement improvements. Vulnerability scans, configuration checks and resilience exercises provide complementary evidence.
  • Apply **shared responsibility**: AWS secures underlying cloud infrastructure, while customers configure identities, data access, workloads and appropriate service settings. Reduce interactive administration, log actions and deploy repeatable changes.
  • Keep security testing **scoped and controlled**, with agreed targets and stop conditions. Validate restores and high availability against defined outcomes; record lessons from incidents and exercises in updated runbooks.