AWS - Security Specialty Study Guide

    4: Identity and Access Management

    This chapter is the identity and access management layer that authorizes every API call against the workloads hardened in the previous chapter. It covers federated identity through IAM Identity Center, SAML 2.0, OIDC, Amazon Cognito, and AWS Directory Service; secure authentication with MFA, password policies, and credential storage; temporary credentials through STS and S3 presigned URLs; the full authorization surface from IAM identity-based and resource-based policies through permission boundaries, SCPs, RCPs, and session policies; the policy evaluation algorithm with explicit-deny precedence; ABAC patterns for least privilege at scale; and cross-account access with role trust, external IDs, and the confused-deputy controls that close the loop.

    Learning Objectives

    By the end of this chapter, you will be able to:

    • Design, implement, and troubleshoot federated identity solutions across IAM Identity Center, SAML 2.0, OIDC, Amazon Cognito, and AWS Directory Service, including application-level authorization with Amazon Verified Permissions and IAM Roles Anywhere
    • Implement MFA, password policies, and secure credential storage, and audit access with IAM Access Analyzer, the IAM policy simulator, CloudTrail, and last-accessed information
    • Issue and manage temporary credentials through AWS STS and S3 presigned URLs, with correct session duration, condition-key, and revocation controls
    • Troubleshoot authentication failures using CloudTrail, Cognito error codes, Identity Center permission-set drift, and Directory Service trust diagnostics
    • Design authorization controls for human, application, and system access using identity-based policies, resource-based policies, permission boundaries, SCPs, RCPs, and session policies
    • Apply the full IAM policy evaluation algorithm including the explicit-deny precedence rule across organization, identity, and resource layers
    • Implement least-privilege access through identity-based, resource-based, and attribute-based access control mechanisms
    • Implement cross-account access through role trust policies, AssumeRole, external IDs, and resource-based policies that close the confused-deputy gap

    Executive Summary

    • The IAM evaluation engine processes every API call through five gates: SCP, RCP, permission boundary, session policy, and identity-and-resource policy. An explicit Deny at any gate ends the evaluation with an implicit Deny, regardless of grants elsewhere.
    • Federation pushes identity to the customer's IdP. Workforce identity lands in IAM Identity Center; customer identity lands in Amazon Cognito; workloads outside AWS land in IAM Roles Anywhere or Cognito identity pools. AWS IAM users are reserved for the few cases where federation cannot reach.
    • Temporary credentials from STS, presigned URLs from S3, and signed cookies from CloudFront all carry the issuing principal's permissions. Revoking the underlying session through aws:TokenIssueTime is the only way to invalidate active credentials early.
    • Resource control policies, introduced as the resource-side counterpart of service control policies, let the organization deny access to resources from outside the organization or from outside a permitted IP range without depending on every team to write a resource policy.
    • ABAC scales permissions through tags rather than policies; a single role with aws:ResourceTag and aws:PrincipalTag condition keys can replace dozens of project-specific roles, but only if the tag enforcement chain is closed at provisioning.

    Assumptions

    • The reader has the depth of Chapters 1 through 3: org CloudTrail in a log archive account, GuardDuty and Security Hub delegated administration, the centralized inspection VPC, EC2 hardening through Image Builder, and Session Manager as the default shell path.
    • Examples assume a multi-account organization with at least one delegated administrator for IAM Access Analyzer and a separate security tooling account.
    • Region naming uses us-east-1 for global services that anchor there (IAM, STS global endpoint, CloudFront), with regional endpoints called out where they matter.
    • Policy JSON snippets use straight ASCII quotes and the latest documented condition keys.

    Sections in this chapter

    1. Free
    2. Free with account
    3. Free with account
    4. Free with account
    5. Free with account
    6. Free with account
    7. Free with account
    8. Free with account
    9. Free with account