Audit and rotate credentials periodically
Framework question: How do you manage identities for people and machines?
- Risk if not established
- High
- Framework verified
- 23 Oct 2026
AWS Well-Architected Framework — SEC02-BP05 Audit and rotate credentials periodically
Executive summary
Why this practice matters
Where long-term credentials can't be avoided, audit them regularly and rotate them on a schedule. Check that every identity is still needed, that controls such as MFA are still enforced, and that unused credentials are removed. Use continuous monitoring rather than relying on an annual review.
Business impact
- Limits how long a leaked credential stays useful.
- Removes access nobody uses any more.
- Confirms controls such as MFA are still in force.
- Provides audit-ready evidence of credential hygiene.
Assign
Accountable and responsible roles
Responsibilities are held separately from roles, so accountability type and typical roles are stated explicitly.
| Responsibility | Accountability type | Typical roles |
|---|---|---|
Audit credentials Run regular audits across identity sources and track findings to closure. Typical roles: Security Engineer, Security Engineer | responsible | Security EngineerSecurity Engineer |
Rotate and remove credentials Rotate long-term credentials and remove unused ones, automating where possible. Typical roles: Identity & Access Administrator, DevOps Engineer, Identity Administrator, DevOps Engineer | responsible | Identity & Access AdministratorDevOps EngineerIdentity Administrator, DevOps Engineer |
Review audit outcomes Use audit results as assurance evidence. Typical roles: Risk / Compliance / Governance, Risk / Compliance | consulted | Risk / Compliance / GovernanceRisk / Compliance |
Assessment
Assessment and evidence state
States describe how far the practice has moved from intent to something continuously validated.
- 0
Not Assessed
Credential auditing and rotation have not been reviewed.
Indicators
- No credential audit has been done.
- 1
Not Implemented
Credentials are never audited or rotated.
Indicators
- Keys older than a year.
- Unused credentials remain.
- 2
Partially Implemented
Credentials are audited occasionally and rotated manually.
Indicators
- Annual audit only.
- Rotation done by hand and often late.
- 3
Implemented
All identity sources are audited regularly and long-term credentials rotate on schedule.
Indicators
- Unused credentials disabled.
- Rotation within defined interval.
- 4
Continuously Validated
Monitoring continuously checks credential age, MFA and usage, with automatic remediation.
Indicators
- Config rules flag overdue keys.
- Findings closed within target.
Assessment dimensions
Audit coverage
Practice-specificNone · Some sources · All identity sources
Rotation
Practice-specificNone · Manual · Automatic within interval
Unused credential removal
Practice-specificNever · Ad hoc · Automatic
Continuous monitoring
Practice-specificNone · Periodic report · Rules and alerts
Caution
This practice applies to the long-term credentials you couldn't eliminate. A strong score here doesn't compensate for a large number of avoidable long-term keys (SEC02-BP02).
Standard
What you should be able to demonstrate
Statements a reviewer should be able to confirm from evidence, not from intent.
- Identities in every source are audited on a defined schedule.
- Long-term credentials rotate within a defined maximum interval.
- Unused credentials are disabled and removed.
- Continuous monitoring flags old keys, missing MFA and inactive identities.
- Audit findings are tracked to closure.
Trade-offs to hold in view
- Frequent rotation of credentials used by fragile systems risks outages; test rotation before enforcing short intervals.
- Automatic removal of unused credentials can break rarely used but legitimate processes, so disable before deleting.
- Broad audit scope across directories and applications takes effort; prioritise privileged and externally exposed identities.
Assess
Questions to ask
Each question exposes the difference between an intention and an operating practice.
- discovery
What is the oldest active access key, and who owns it?
Quickly reveals rotation discipline.
Usually asked by: Security Engineer
- challenge
Which identity sources are outside your regular audit?
Audits often cover cloud IAM but miss directories and apps.
Usually asked by: Security Architect, Risk / Compliance / Governance
- evidence
Show the latest credential report and the actions taken on its findings.
Proves the audit leads to change.
Usually asked by: Security Engineer, Identity & Access Administrator
- executive
How many working credentials belong to people or systems that no longer need them?
Frames hygiene as unmanaged access risk.
Usually asked by: Security Leader, Risk / Compliance / Governance
Evidence
Required and expected evidence
Reusable evidence definitions held once in the evidence library and referenced by every practice that relies on them. Each links to what good evidence looks like and to worked examples.
Credential & Secrets Inventory
A current inventory of the long-term credentials and secrets a workload or organisation relies on: what each is, what uses it, where it is stored, who owns it, whether it rotates, when it was last rotated and audited, and why a temporary alternative isn't used.
Use the Credential & Secrets Inventory as primary evidence of rotation status and last audit dates.
Minimum expected content
- Scope: workloads, accounts and environments covered
- Each long-term credential or secret: type (access key, password, API token, certificate, etc.) and purpose
- Consuming identity or system
- Storage location (secrets service, parameter store, other)
- Owner
- Rotation method (automatic/manual), interval, and last rotation date
- Last audit or access-review date
- Justification where a temporary credential is not used, and the planned replacement
- Detection of secrets in code repositories or artefacts
- Exceptions with owner and expiry
Anti-patterns
- Access keys for machines where roles could be used
- Secrets in source code, environment files or wikis
- A spreadsheet nobody reconciles
- Rotation 'planned' but never done
- Credentials shared between people or systems
- No owner for service credentials
Review: Reconcile at least quarterly against real configuration, and immediately after any suspected credential exposure.
Compliance Validation / Audit Report
A point-in-time or period-based report that summarises the workload's compliance scope, control validation results, evidence reviewed, exceptions/findings and the resulting conformance conclusion for a defined framework or obligation.
Use a Compliance Validation / Audit Report where credential audits form part of formal assurance.
Minimum expected content
- Compliance framework/obligation and version or assessment basis
- Workload/system scope and assessment period
- Applicable requirements/control objectives assessed
- Validation approach and evidence sources reviewed
- Control or requirement-level conformance results
- Identified gaps, findings or exceptions
- Residual limitations or scope exclusions
- Responsible owners and remediation actions for findings
- Overall assessment/conformance conclusion
- Report date, assessor/reviewer and next required review/audit
Anti-patterns
- A certificate or badge is treated as proof that every workload component is compliant
- The report presents only passed controls and omits gaps or scope exclusions
- Evidence is a collection of screenshots with no requirement/control traceability
- The assessment scope is unclear or broader than the evidence actually supports
- Findings are recorded without owners or remediation actions
- The report is recreated manually for each audit from evidence that is not retained or reproducible
Review: Generate at the cadence required by the applicable compliance framework, audit programme or internal assurance process and after material events where revalidation is required.
Identity Provider & Access Lifecycle Record
A record of the central identity provider arrangement and the identity lifecycle: which provider is authoritative, how it connects to cloud and application access, how joiners, movers and leavers are processed, and how groups and attributes govern access.
Use the access review section of the Identity Provider & Access Lifecycle Record to show identities are reviewed.
Minimum expected content
- Authoritative identity source(s) and the central identity provider
- How the provider connects to cloud accounts and key applications (federation, synchronisation)
- Identities that sit outside the central provider, with justification
- Joiner, mover and leaver process: trigger, steps, timing and owner
- Group model: groups, their purpose and owners
- Attributes used for access decisions, their source and how they're kept accurate
- How permissions are assigned to groups or attributes rather than individuals
- Periodic access review: frequency, reviewer, evidence of completion
- Recent lifecycle metrics (e.g. leaver deprovisioning time)
Anti-patterns
- Separate local user accounts in each cloud account or application
- Leavers removed manually, weeks later
- Permissions granted to individuals one by one
- Groups with no owner and growing membership
- Attributes typed in by hand and never checked
Review: Review the design annually and after identity platform changes; review access and group membership at least periodically according to risk.
Diagnosis
Common evidence gaps
Never-rotated keys
Access keys are years old and have never been changed.
Orphaned credentials
Credentials for people who've left or systems that were retired still work.
Partial audit scope
Only cloud users are audited; directory and application identities aren't.
Point-in-time only
Audits happen once a year with no monitoring in between.
Implementation
Implementation guidance
Audit all identity sources
Audit identities in every source: the identity provider, cloud IAM, directories and application user stores.
Rotate on a schedule
Rotate long-term access keys on a defined maximum interval, automating where possible.
Remove unused credentials
Disable then remove credentials that haven't been used within a defined period.
Monitor continuously
Use configuration rules and security standards to flag old keys, missing MFA and unused identities continuously.
Keep shrinking the list
Keep looking for ways to replace remaining long-term credentials with temporary ones.
Measure
Measurements
- Number of credentials past their rotation interval.
- Number of credentials unused beyond the defined period.
- Percentage of identity sources covered by audit.
- Time to remediate audit findings.
Related
Outcomes and practices
Business outcomes
Practices