A Software Token should be protected on a trusted device with strong device lock, encrypted storage and restricted access to the authenticator app or seed material. Organisations should prevent backup or export of secrets where possible, monitor device compromise, and require re-enrolment if the device is lost, rooted or jailbroken.
Where a Software Token Should Live
A software token should be treated as sensitive authentication material, not as an ordinary app setting. It belongs on a trusted, managed device with a strong device lock, full-disk or equivalent encrypted storage, and access limited to the authenticator app or the protected seed material needed to generate codes or assertions.
The storage question is really about attack surface reduction. If the token is exported, copied into backups, synced into consumer cloud services, or left in a location that other apps can read, the protection model collapses. That is why the safest default is to keep the token bound to a single controlled device and avoid creating extra copies unless the design explicitly requires them.
For broader guidance on storing secrets safely, Secrets Management Guide explains why secret sprawl and weak storage patterns create avoidable exposure. For a deeper look at why long-lived or transferable material is dangerous, Ultimate Guide to NHIs, Static vs Dynamic Secrets is useful background on persistence and rotation pressure.
How to Protect the Token in Daily Use
Protection is not only about where the token is stored, but also how the device and authenticator app are governed during normal use. A strong screen lock, biometric or PIN protection where appropriate, and restricted app permissions reduce the chance that casual device access turns into token theft. If the device supports hardware-backed storage, that is preferable because it makes extraction harder after compromise.
Organisations should also decide whether backup and export are allowed. In many cases, convenience features such as local export, device migration, or cloud sync are the exact paths that make recovery easy for a legitimate user and easy for an attacker after compromise. If backup is permitted, it should be a deliberate exception with clear controls rather than the default.
Two useful references for this protection model are API Key Management Guide, which covers storage, rotation and revocation discipline for bearer-style secrets, and Guide to NHI Rotation Challenges, which shows why lifecycle control matters once any token can be copied, re-used or left in place too long.
What to Do When the Device or Token May Be Exposed
Loss, rooting, jailbreaking or other signs of device compromise should be treated as a trigger for re-enrolment, not as a minor support event. The right response is to assume the token may be recoverable, duplicated or usable by an attacker until proven otherwise. That means revoking the old enrollment, re-issuing the authenticator on a clean device and checking for any related sessions that may have been established before the event was noticed.
This is especially important when the token can unlock access to privileged systems, high-value SaaS accounts or administrative workflows. Where the token is part of a wider access path, the response should include review of recent authentications, unusual device changes and any recovery mechanisms that could have been abused to regain access after the original token was exposed.
For incident patterns where token exposure led directly to account access, Internet Archive breach 2024 and Sourcegraph breach 2023 are strong reminders that exposed tokens often require both revocation and compromise review, not just a password change.
Risk and Threat Considerations
Software tokens are attractive because they are portable, reusable and often sufficient on their own to authenticate a user or app. That makes weak storage, exportability, and device compromise the main failure modes, especially when the token can be replayed outside the original device or recovered from backups.
Failure mechanism: An attacker who gains access to the device, a synced backup, or the underlying seed material can clone the token, impersonate the user or authenticator, and continue access even after the original device is lost.
Impact: The result can be account takeover, MFA bypass, session abuse, and persistent access until the token is revoked and the affected enrollment is rebuilt.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | Software tokens are secret material and must be protected from exposure or export. |
| NHI-07 — Long-Lived Secrets | A software token that persists too long increases replay risk if exposed. | |
| NHI-01 — Improper Offboarding | Lost, rooted or jailbroken devices require removal of the old token enrollment. | |
| Recommendation — Store token material in protected storage and block unnecessary copying or export. Shorten token lifespan and revoke or re-enrol after compromise or device loss. Revoke the old enrollment and re-issue the token on a clean device. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | The question is about storing and protecting an authenticator secret across its lifecycle. |
| IA-2 — Identification and Authentication (Organizational Users) | Software tokens commonly authenticate organizational users and must be protected accordingly. | |
| AC-6 — Least Privilege | Restricting access to the authenticator app and seed material reduces exposure on the device. | |
| Recommendation — Manage issuance, storage, rotation and revocation of the software token. Require strong user authentication before the token can be enrolled or used. Limit which apps and users can reach the token material. | ||
Practitioner Guidance
What to verify: Confirm whether the token is device-bound, whether export or cloud backup is disabled, and whether the storage path is hardware- or OS-protected rather than just app-protected. If those answers are unclear, the token should be treated as higher risk than the user experience suggests.
Decision rule: If the device is lost, rooted, jailbroken or suspected of compromise, revoke the token and require re-enrolment instead of trying to salvage the existing secret. If the token can authenticate into privileged or production systems, prioritise revocation and blast-radius review before assuming there was no abuse.
Practitioner takeaway: The safest software token is one that is hard to extract, hard to copy, and easy to replace after compromise, because recovery is only acceptable when the old token can no longer be trusted.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 17, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org