Skip to content

Cloud IAM Blast-Radius Revocation & Federated Token Invalidation

Density:

Forces immediate revocation of active OAuth refresh tokens, triggers Continuous Access Evaluation (CAE) event streams, invalidates AWS STS temporary role credentials, and attaches temporary explicit DENY IAM guardrails.

  • Target Tier: Microsoft Entra ID, AWS IAM / STS, Google Cloud Identity
  • โš ๏ธ Global Administrator / Cloud Security Admin role in Entra ID
  • โš ๏ธ AWS IAM SecurityAdmin policy attachment permissions
  • โš ๏ธ Emergency Break-Glass administrative accounts unaffected
  1. Revoke all user sign-in sessions and invalidate refresh tokens via Graph API
    Terminal window
    curl -s -X POST "https://graph.microsoft.com/v1.0/users/$COMPROMISED_UPN/revokeSignInSessions" \
    -H "Authorization: Bearer $GRAPH_TOKEN" \
    -H "Content-Type: application/json"
    # Block user account from re-authenticating
    curl -s -X PATCH "https://graph.microsoft.com/v1.0/users/$COMPROMISED_UPN" \
    -H "Authorization: Bearer $GRAPH_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{"accountEnabled": false}'
    Expected Telemetry: "value": true
  1. Attach DenyAllSessionsBefore policy to invalidate all issued STS assume-role sessions
    Terminal window
    CURRENT_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
    cat << EOF > /tmp/deny_sts.json
    {
    "Version": "2012-10-17",
    "Statement": [
    {
    "Effect": "Deny",
    "Action": "*",
    "Resource": "*",
    "Condition": {
    "DateLessThan": {"aws:TokenIssueTime": "$CURRENT_TIME"}
    }
    }
    ]
    }
    EOF
    aws iam put-role-policy \
    --role-name $COMPROMISED_ROLE \
    --policy-name EmergencyRevokePriorSessions \
    --policy-document file:///tmp/deny_sts.json
    Expected Telemetry: Policy EmergencyRevokePriorSessions applied.

AWS CloudTrail unauthorized API response

Check Command:

Terminal window
aws cloudtrail lookup-events --lookup-attributes AttributeKey=Username,AttributeValue=$COMPROMISED_ROLE | head -n 20

Expected Target State: All sub-sequent requests fail with errorCode: AccessDenied (TokenIssueTime older than cut-off).

  • ๐Ÿ”„ Delete EmergencyRevokePriorSessions policy from role: aws iam delete-role-policy โ€ฆ
  • ๐Ÿ”„ Re-enable Entra ID account after password reset and FIDO2 MFA re-registration: accountEnabled=true

Validation: User successfully completes fresh FIDO2 authentication challenge.