Encrypted storage protects a secret while it is stored on disk, but runtime exposure covers the moment the browser decrypts it for use. Infostealers focus on the second condition because the secret is readable in memory even when the vault is technically encrypted. For practitioners, runtime exposure is the control gap that matters most.
Encrypted at rest, exposed in use: where the real difference sits
Encrypted storage and runtime exposure solve different problems. Storage encryption helps if someone steals the file, database, or vault contents from disk. Runtime exposure begins when the application, browser, or password manager has to decrypt the secret for legitimate use, because the secret is then present in plaintext somewhere the local process can read.
The practical difference is not theoretical, it is about the attack surface. A password can be strongly protected on disk and still be recoverable by malware, memory scraping, process injection, browser extension abuse, or session theft once the user or application has opened it for use.
That is why the control question changes from "is it encrypted?" to "who can see it after decryption, for how long, and in what execution context?" In other words, at-rest protection is about preservation, while runtime protection is about containment.
Why infostealers care about the decrypted moment
Infostealers do not need to break encryption if they can capture secrets at the moment of use. They target browsers, password managers, and application memory because the plaintext exists briefly during autofill, login, token refresh, or decryption for API use. That makes runtime exposure the exploitable condition, even when the underlying vault remains technically encrypted.
This is also why local host hardening and browser hygiene matter so much. If malware can run in the same user context as the application that opens the secret, encryption at rest stops being the decisive barrier and becomes only one layer in a longer chain of protection.
For password handling, the operational consequence is simple: the shortest possible plaintext lifetime is better than relying on disk encryption alone. Controls that limit how long a secret is resident, how broadly it is shared across processes, and how easily it can be copied reduce the value of the decrypted window.
What practitioners should check in password managers, browsers, and endpoints
Password security is not only about where secrets are stored, but about where they are rendered usable. A manager that encrypts well but leaves unlocked databases, weak local protections, or permissive browser integration can still expose secrets at runtime. The same is true for endpoints where malware can read memory, intercept clipboard content, or abuse signed-in sessions.
Practitioners should distinguish between storage controls and exposure controls. Storage controls include encryption, access restriction, and vault protection. Exposure controls include endpoint detection, browser hardening, process isolation, short session lifetimes, and limiting how often secrets are displayed or exported.
Good practice is to reduce reusable password exposure wherever possible, and to treat any secret that is repeatedly decrypted on the endpoint as high-risk. NHIMG’s Password Security and Password Manager Guide is useful here because it frames password handling as a lifecycle problem, not just a storage problem.
Risk and Threat Considerations
Runtime exposure is the failure mode that turns a protected secret into an immediately usable credential. Once malware, a malicious extension, or another local adversary can observe the decrypted state, the protection offered by encryption at rest no longer prevents theft or misuse.
Failure mechanism: The secret is decrypted in a process the attacker can inspect, so plaintext can be captured from memory, autofill flows, clipboard use, or browser storage while the application is actively using it.
Impact: The attacker can reuse the password for account takeover, lateral access, session hijacking, or further credential theft, even though the stored vault or file remained encrypted.
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 and OWASP ASVS set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Protects password lifecycle and reuse risk in storage and use. |
| SI-3 — Malicious Code Protection | Stops infostealers that capture plaintext secrets during runtime. | |
| AC-6 — Least Privilege | Limits which processes and users can reach decrypted secrets at runtime. | |
| Recommendation — Enforce secure credential lifecycle controls and rotate exposed authenticators promptly. Deploy anti-malware and runtime protections on endpoints that handle decrypted secrets. Restrict local access so only the minimum processes can read sensitive credential material. | ||
| OWASP ASVS | V9 — Self-contained Tokens | Covers secret handling and exposure of bearer material used during runtime. |
| Recommendation — Minimise token and secret exposure windows in application and client flows. | ||
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | Directly addresses secrets becoming readable after decryption or export. |
| Recommendation — Eliminate secret leakage paths from memory, logs, clipboard, and browser storage. | ||
Practitioner Guidance
What to prioritise: Treat any secret that must be decrypted on an endpoint as more exposed than a secret that is only encrypted on disk. Prioritise browser, endpoint, and process controls before assuming the vault itself is the main defensive layer.
What to verify: Confirm whether the password manager or browser ever leaves decrypted material in memory, exports to clipboard, or caches reusable session state longer than required. If it does, that is the point to harden first.
Common mistake: Teams often stop at "encrypted" and miss the more important question of whether the secret is readable during use. That is the gap infostealers exploit.
Practitioner takeaway: Encryption at rest is necessary, but runtime exposure determines whether a password is actually stealable on the endpoint.
Related resources from NHI Mgmt Group
- What is the difference between direct access and effective access in Active Directory?
- What is the difference between managing human identities and non-human identities?
- What is the difference between exposure management and exposure management with runtime detection?
- What is the difference between encrypted transport and encrypted storage for personal data?
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 7, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org