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
| Population | Authoritative source | Evidence to retain | Gap to expose |
|---|---|---|---|
| Workforce identities | Identity provider and Identity Center | Subject ID, assignment, lifecycle event and review reference | IdP disabled but application session still works |
| IAM roles and permissions | IAM inventory and approved policy | Role ID, trust/policy revision, owner and intended use | Ownerless role or unexpected trust principal |
| Long-lived credentials | Approved inventory and metadata | Creation/rotation dates, consumer and replacement plan | Credential with no current owner or policy |
| Application secrets | Secrets Manager metadata and consumer test | Successful rotation, current version stage and recovery result | Rotation enabled but failing |
| Certificates and keys | Relevant certificate/KMS/issuer systems | Renewal/rotation metadata and usage boundary | Secret-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 failure | Expected measure result |
|---|---|
| Directory removal has not removed an application assignment | IAM lifecycle failure with owned remediation |
| Role has no owner | Review gap, not automatic deletion |
| Rotation enabled, last success outside approved window | Rotation failure or explicit time-limited exception |
| Secret rotates but the consumer still depends on an old credential | Consumer recovery failure |
| One account or secret type is missing from collection | Unknown 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.
Continue reading
- AWS Config Cost Spikes from EKS: Daily Recording, Exclusions and Audit Evidence
Model Config recording charges by resource type, then review the evidence trade-off before changing frequency or excluding ephemeral AWS resources.
- FedRAMP KSI-SVC-ACM & SCN: Terraform Change Triage in GitHub Actions
Classify Terraform plan changes for owned review, retain unknowns and keep official significant-change notification decisions separate from a CI label.
- CISA BOD 26-04 & FedRAMP KEV Evidence: Reviewed Clocks and AWS Patch Handoffs
Correlate scanner CVEs with KEV, preserve the actual trigger and approved timing basis, and hand off remediation to an approval-gated patch or mitigation workflow.
Written by
Tymur Chmeruk
Cloud Security & Infrastructure Engineer · Baltimore–Washington Metro · [email protected]