Join our Newsletter — 33% off our NHI Course

How should security teams decide whether to store TOTP secrets alongside passwords in a shared vault?

Teams should treat co-location as a trade-off, not a default. Storing passwords and TOTP secrets together improves usability, access continuity, and auditing, especially for shared workflows. The downside is concentration risk, because one compromise can expose both factors at once. Use separation when you want stronger failure isolation, and co-location only when the operational benefit clearly outweighs the expanded blast radius.

How to Judge the Vault Boundary for TOTP Secrets

Security teams should decide based on failure isolation, not on whether co-location is technically possible. A shared vault can be reasonable when the same workflow, team, and recovery path already govern both the password and the TOTP seed. It becomes weaker when the organisation wants two-factor separation to survive a vault compromise, insider misuse, or overly broad access.

That trade-off is why secret sprawl matters: NHIMG research on the secret sprawl challenge shows how quickly centralisation can become a single point of exposure when teams stop distinguishing convenience from control boundary. The practical question is whether the vault is protecting one access path or collapsing two independent ones into a single recovery surface.

In practice, many teams discover the boundary problem only after a shared recovery process has already made both factors retrievable by the same operators.

How Co-Location Changes the Authentication Model

Passwords and TOTP secrets serve different security functions. The password is the primary static secret, while the TOTP seed is the material that generates the second factor. If both are stored together, the vault is no longer just a convenience layer; it becomes the effective holder of the full authentication bundle. That can be acceptable, but only if the team is comfortable treating vault access as equivalent to full account access.

The main operational benefit is continuity. Shared workflows are easier to support when the help desk, incident responders, or account owners need to restore access without hunting across tools. Auditing also becomes simpler because access to the full set of login material can be tracked in one place. The downside is that compromise, mispermissioning, or bulk export of the vault now affects both factors at once.

Teams should evaluate four things before co-locating:

  • Who can read the vault and whether that list is already trusted with full account recovery.
  • Whether the vault enforces separate policy, logging, and approval for password retrieval and TOTP retrieval.
  • Whether the TOTP seed is needed for routine operations or only for exceptional break-glass scenarios.
  • Whether the account in question protects low, medium, or high consequence systems.

When the account is high value, co-location usually deserves stronger justification because one vault compromise can replace two independent hurdles with one access path. NIST guidance on security controls is useful here because it treats access enforcement, auditability, and least privilege as distinct design questions rather than a single vault decision. These controls tend to break down when a shared vault is made the default for every account class, because teams stop distinguishing recoverability from assurance.

When Separation Is Worth the Extra Friction

Tighter separation often increases operational overhead, requiring teams to balance faster recovery against stronger compromise isolation. Separate storage is more defensible when the organisation wants the TOTP secret to remain protected even if password storage is exposed, or when different administrative domains own the two factors.

Separation is also useful when the TOTP seed is rarely needed after enrollment, because the operational burden is then limited to exceptional recovery events rather than daily access. In that pattern, the second factor behaves more like a protected recovery artifact than an ordinary shared credential.

Current guidance suggests the right answer is usually environment-specific rather than universal. Shared service accounts, break-glass access, and help-desk restored accounts may justify co-location if the alternative creates unsafe workarounds. Consumer-style user accounts, privileged admin access, and production secrets usually merit more restraint. The key is to avoid letting ease of support become a proxy for good security design.

For teams managing many credentials, the OWASP Non-Human Identity Top 10 is a useful companion reference because it reinforces the broader principle that credentials should be scoped, observable, and isolated according to their blast radius. Co-location is least defensible where vault access is broad, the account is privileged, and the secret would let an attacker bypass both possession and knowledge checks at once.

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 and OWASP Agentic AI Top 10 address the attack and risk surface, while CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-01 — Secrets and Credential Management Co-locating TOTP seeds and passwords is a machine-secret handling decision.
Recommendation — Separate or tightly scope stored credentials when vault compromise would expose multiple factors.
CIS Controls v8 5 — Account Management The question hinges on how shared credentials are stored and recovered.
6 — Access Control Management Vault access should reflect least privilege for both password and TOTP retrieval.
Recommendation — Restrict recovery access and remove unnecessary shared credential exposure paths. Apply least privilege to vault readers and limit who can retrieve second-factor material.
NIST CSF 2.0 PR.AC — Identity Management, Authentication, and Access Control The issue is whether authentication factors remain independently effective.
GV.PO — Policy Teams need a policy decision on when co-location is acceptable by account class.
Recommendation — Preserve factor separation where one compromise should not unlock full access. Define when shared vault storage is allowed for different account types.
OWASP Agentic AI Top 10 A2 — Sensitive Data Exposure Shared vaulting can expose both login factors through one sensitive-store failure.
Recommendation — Store sensitive authentication material with controls that reduce single-point exposure.

Practitioner Guidance

Decision rule: Co-locate only when the people and systems that can recover the password are already acceptable holders of the TOTP seed, and when losing both factors together does not create unacceptable impact.

What to verify: Confirm who can export, restore, or synchronise the vault contents, and test whether those permissions would still look acceptable if treated as full account compromise rather than as routine administration.

What practitioners underestimate: The real risk is often not theft from the vault itself but policy drift, where a recovery convenience gradually becomes the organisation’s de facto identity boundary for privileged access.

Practitioner takeaway: Treat the vault as part of the authentication control plane, not as a neutral storage location; if co-location collapses your intended failure separation, it is the wrong design for that account class.