Published

FedRAMP KSI-IAM-AAM & KSI-SVC-ASM: AWS Identity and Secret Rotation Evidence

Build joined account-lifecycle and secret-rotation evidence using metadata, ownership and failure tests without exporting credential values.

A clean IAM user list and a secret marked RotationEnabled=true are not enough to show a working identity lifecycle. The operating question is whether access changes propagate to the systems that enforce them, and whether rotated credentials are actually accepted by their consumers without retaining unintended old access.

The current KSI objectives separate automated management of accounts, roles and groups (KSI-IAM-AAM) from automated management, protection and regular rotation of keys, certificates and other secrets (KSI-SVC-ASM). Join their evidence through resource ownership and access paths, while keeping distinct pass/fail decisions for each measure.

Start with owners and enforcement boundaries

PopulationAuthoritative sourceEvidence to retainGap to expose
Workforce identitiesIdentity provider and Identity CenterSubject ID, assignment, lifecycle event and review referenceIdP disabled but application session still works
IAM roles and permissionsIAM inventory and approved policyRole ID, trust/policy revision, owner and intended useOwnerless role or unexpected trust principal
Long-lived credentialsApproved inventory and metadataCreation/rotation dates, consumer and replacement planCredential with no current owner or policy
Application secretsSecrets Manager metadata and consumer testSuccessful rotation, current version stage and recovery resultRotation enabled but failing
Certificates and keysRelevant certificate/KMS/issuer systemsRenewal/rotation metadata and usage boundarySecret-manager-only collection omits other key types

Do not equate an unused-access finding with permission to delete a role. Emergency, recovery and infrequent automation roles require a reviewed disposition. Lack of observed use is scoped by the service’s observation window and coverage; it does not prove that a principal never used the permission.

Collect metadata with least privilege

Use read-only collection roles. The following are examples for one explicitly selected account and Region, not a complete organization-wide inventory:

set -eu
aws sso-admin list-instances --output json > identity-center-instances.json
aws sso-admin list-account-assignments \
  --instance-arn "$INSTANCE_ARN" --account-id "$ACCOUNT_ID" \
  --permission-set-arn "$PERMISSION_SET_ARN" \
  --output json > assignments.json
aws iam get-account-authorization-details --filter Role \
  --output json > role-authorization.json
aws secretsmanager describe-secret --secret-id "$SECRET_ARN" \
  --query '{ARN:ARN,RotationEnabled:RotationEnabled,LastRotatedDate:LastRotatedDate,NextRotationDate:NextRotationDate,RotationRules:RotationRules,VersionIdsToStages:VersionIdsToStages}' \
  --output json > secret-rotation-metadata.json

DescribeSecret returns metadata rather than the secret value. Deliberately omit GetSecretValue from the collection role. Resource names, ARNs, tags and policy documents can still reveal architecture, so retain them in approved private storage. A public CI log should contain a sanitized summary and input digest, not a credential or a full identity export.

Reconcile every required identity-store instance, permission set, assigned account, role and secret against the declared population. A single selected permission set is a sample until that reconciliation is complete. Record pagination completion, API errors, collection identity, timestamps and account/Region coverage.

Test the lifecycle beyond the directory

Identity Center automatic provisioning is one transition in the access path. Test a dedicated synthetic principal through creation, group membership, permission assignment, application sign-in, removal and the relevant session restrictions. Record how existing sessions behave and whether your revocation procedure reaches the application boundary. Do not claim that disabling a directory record instantly invalidates every previously issued session.

Use IAM Access Analyzer unused-access findings to prioritize review, with the analyzer’s tracking period and resource coverage attached. Retain the owner decision and any exception expiry rather than converting every finding into an automatic removal job.

Rotation needs a success and a consumer check

For each secret define the expected schedule, the relevant last successful rotation time and the maximum acceptable lag. A null LastRotatedDate is not a recent success. LastChangedDate is not a substitute for successful rotation. New resources may need an explicit initial-state exception rather than being silently passed.

A controlled rotation test should show the intended new version, a successful consumer operation, and the agreed behavior of the retired credential. Capture metadata and test outcomes without logging the secret material. A rollback plan must account for the credential in the target system as well as the Secrets Manager version stage. See the detailed rotation guide for that failure boundary.

Synthetic failureExpected measure result
Directory removal has not removed an application assignmentIAM lifecycle failure with owned remediation
Role has no ownerReview gap, not automatic deletion
Rotation enabled, last success outside approved windowRotation failure or explicit time-limited exception
Secret rotates but the consumer still depends on an old credentialConsumer recovery failure
One account or secret type is missing from collectionUnknown coverage; aggregate pass blocked

The 30-Day Continuous Evidence Sprint — $9,500–$14,500 scopes collectors and lifecycle tests around your actual access boundary. The 20x Kit and $499 Team Edition help track owners, cadence, evidence and unresolved gaps.

Companion reference and local evidence check

The original downloadable reference and authoritative source remain available. The companion policy and synthetic fixture test a local evidence-record contract; they do not collect cloud state or certify the service. Review collection scope, timestamps and the current platform documentation before use.

Continue in the fedramp-20x-ksi topic hub. The companion kit lists its free reference archive and any optional Team Edition.

Frequently asked questions

Should identity evidence exports contain secret values?

No. Use metadata and controlled consumer-test results. Exclude secret-value APIs from the collector and keep sensitive architecture metadata in approved storage.

Does RotationEnabled prove that rotation is healthy?

No. Review the last successful rotation, schedule, failures and consumer recovery. Missing or stale success evidence remains a gap.

Can an unused IAM role be deleted automatically?

An unused-access finding is a review input within a defined tracking window. Confirm ownership, expected infrequent use and recovery dependencies before an authorized change.

Browse all writing · RSS feed

Tymur Chmeruk

Written by

Tymur Chmeruk

Cloud Security & Infrastructure Engineer · Baltimore–Washington Metro · [email protected]