ASD ISM 0489 Four-hour cached SSH private key lifetime and screen locks
What it says
When SSH-agent or similar key caching applications are used, cached private keys have a maximum lifetime of four hours and, where applicable, screen locks are used on workstations and servers.
Quoted as published. Everything else on this page is written by Control Stack.
In plain English
When SSH-agent or similar key caching is used, cached private keys must expire within four hours, and screen locks must be used on workstations and servers where applicable.
Where SSH-agent or a similar key caching application is used, cached private keys must have a maximum lifetime of four hours, and screen locks must be used on workstations and servers where applicable. These applications hold unlocked private keys in memory so SSH connections can be made without re-entering the passphrase. The lifetime runs from when a key is loaded, not from its last use. 'Where applicable' covers machines where an agent runs in a desktop, local console or remote desktop session; ISM-2012 sets how their screen locks work.
Free. Save your status, tasks and notes.
Why it matters
Once a key is cached, anyone who can use the session, at an unlocked screen or through malicious code running as the user, can use the key without its passphrase. Expiring cached keys within four hours and locking unattended screens limits that exposure.
How to implement
Find where key caching applications run.
Use endpoint management or process inventory to find SSH agents on workstations and servers, including agents built into operating systems and password managers with an SSH agent feature.
Set a four-hour maximum lifetime through managed settings.
Start the agent with a default lifetime (ssh-agent -t 4h) and have clients add keys with the same limit (AddKeysToAgent 4h); for other agents, use their maximum lifetime setting. A longer lifetime given when a key is added overrides the agent's default, so check scripts and shortcuts for one.
Replace agents that cannot expire keys.
Some agents keep keys until removed, even after a restart. Turn those off or swap them for one with a lifetime setting.
Lock screens wherever cached keys could be reached.
Identify the workstations and servers where an agent runs in a desktop, local console or remote desktop session, and configure their screen locks as ISM-2012 requires, including activation after at most 15 minutes of inactivity.
Keep it running
Recheck the lifetime setting when operating systems, SSH clients or password managers with agent features are upgraded or replaced, since defaults can change. Add new workstation and server builds to the managed agent and screen lock settings before they are used.
Evidence and audit
- Check 1 of 3What an auditor asks for
Ask for
The managed agent configuration and an endpoint inventory of machines running key caching applications.
Look at
The lifetime each configuration sets, and whether every machine in the inventory receives it.
Good evidence
Every machine running a key caching application applies a maximum lifetime of four hours or less, and none runs an agent without one.
- Check 2 of 3What an auditor asks for
Ask for
A demonstration on a sampled workstation of a key loaded through the normal start-up, with the agent's key list checked just after four hours.
Look at
Whether the key is still cached.
Good evidence
The key is listed when loaded and gone within four hours of loading, without anyone removing it.
- Check 3 of 3What an auditor asks for
Ask for
Screen lock settings on sampled workstations and servers where agents run, including any the organisation treats as not applicable.
Look at
Whether each locks as ISM-2012 requires, and why each exception was judged not applicable.
Good evidence
Each machine where an agent runs in a desktop, local console or remote desktop session locks as ISM-2012 requires, and every machine treated as not applicable has no such session.
Mappings
Closest match in ISO/IEC 27001: A.5.15, Access control, which this control partially meets.
ISO/IEC 27001: 3 mappings
This control partially meets A.5.15.
ISM-0489 requires that where SSH-agent (or similar) key caching is used, it is only on workstations/servers with screen locks and the key cache expires within four hours of inactivity. This relates to ISO/IEC 27001:2022 Annex A 5.15 because it is a concrete access-control rule and procedure that an organisation would implement under its overarching access control policies. Annex A 5.15 is broader and does not prescribe SSH-agent use, screen lock presence, or a four-hour inactivity expiry requirement.
This control partially meets A.8.1.
ISM-0489 requires that cached SSH private keys in SSH-agent style tools have a maximum lifetime of four hours and that screen locks are used where applicable to prevent misuse of unattended sessions. This aligns with ISO/IEC 27001:2022 Annex A 8.1, which requires protection of information accessible via user endpoint devices, including controls that prevent unauthorised use of active sessions and exposed credentials. Annex A 8.1 is broader, covering many endpoint protections beyond SSH key caching and screen locking.
This control partially meets A.8.24.
ISM-0489 requires limiting the duration that an unlocked SSH private key can remain cached and using screen locks to reduce the risk of key misuse from unattended sessions. This relates to ISO/IEC 27001:2022 Annex A 8.24 because constraining SSH-agent key lifetime is a concrete cryptographic key management measure (controlling key exposure and effective key use). Annex A 8.24 is broader and covers governance, lifecycle, storage, rotation, and handling of cryptographic keys beyond SSH-agent caching timeouts.
Mappings show how controls relate across frameworks. They do not imply full equivalence or certification.




