Skip to main content
24/7 Sacramento SOC Monitoring • 15-Min Avg Response HQ: 2368 Maritime Dr, Unit 250, Elk Grove, CA Est. 2004 • BBB A+ Accredited
Home / Blog / Cyber Security
Cyber Security

Windows Credential Manager: How It Works, Security Risks & IT Hardening (2026)

TL;DR — Executive & IT Summary

Windows Credential Manager is a native Windows vault encrypted by the Data Protection API (DPAPI) that stores SMB network logins, Remote Desktop (RDP) passwords, application tokens, and certificates. While convenient, any malware running inside an active user session can decrypt stored blobs without administrator privileges. In 2026, Sacramento IT teams should pair Windows Defender Credential Guard and BitLocker + TPM with phishing-resistant FIDO2 MFA and a centralized enterprise password manager rather than relying on cached endpoint passwords.

Windows Credential Manager is a built-in Microsoft Windows digital vault that encrypts and stores usernames, passwords, application tokens, and X.509 certificates under your user Data Protection API (DPAPI) key so authorized Windows services and apps can authenticate automatically.

Most office employees interact with Windows Credential Manager daily without realizing it—whenever Outlook caches a Microsoft 365 login, a finance workstation reconnects to a mapped accounting share, or Remote Desktop remembers an internal server password. Yet for IT administrators and CISOs, those convenience caches represent one of the most frequently abused credential stores during ransomware intrusions and commodity infostealer infections.

This 2026 engineering guide explains exactly how Windows Credential Manager works under the hood, where DPAPI stores secrets on disk, why modern infostealers target its vault files, and the step-by-step Group Policy, Intune, and Zero Trust architecture controls required to lock it down.

1. What Windows Credential Manager Stores (Windows vs. Generic vs. Web)

Accessible via Control Panel (control /name Microsoft.CredentialManager), Windows Credential Manager divides stored secrets into two visible UI tabs—Web Credentials and Windows Credentials—which actually map to four distinct underlying credential types inside the Windows Vault and Local Security Authority (LSA) subsystems:

  • Windows Credentials (Domain & Network Logins): Stores SMB file-share passwords, mapped network drive credentials, NTLM/Kerberos fallback logins for non-domain servers, and Remote Desktop (TERMSRV/*) saved passwords.
  • Certificate-Based Credentials: Stores client authentication X.509 certificates and smart card references used for VPN tunnels, 802.1X Wi-Fi authentication, and enterprise web portals.
  • Generic Credentials: Used by desktop software, PowerShell automation scripts, Git Credential Manager, older Outlook/Teams MSAL/ADAL caches, and third-party LOB (line-of-business) connectors via the Win32 CredWrite() API.
  • Web Credentials (Legacy IE / EdgeHTML & Windows Vault): Historically held browser form logins for Internet Explorer and legacy UWP apps. Note that in modern Windows 11 environments, Chromium-based Microsoft Edge and Google Chrome store website passwords in their own browser-managed profiles (also DPAPI-encrypted) rather than writing to the legacy Web Credentials UI tab.

2. Under the Hood: DPAPI Encryption, Vault Files & cmdkey

Unlike a cross-platform password manager protected by a dedicated zero-knowledge master passphrase, Windows Credential Manager derives its encryption boundary directly from your Windows logon identity through the Data Protection API (DPAPI) and the Credential Manager service (VaultSvc).

Windows Credential Manager & DPAPI Trust Boundary (2026)

1. User Identity & Key Windows Password / PIN TPM 2.0 + BitLocker Unlocks DPAPI Master Key

2. DPAPI (CryptProtectData) Uses User SID + Master Key Domain AD Backup Key (if joined) %AppData%MicrosoftProtect

3. Encrypted Credential Blobs • SMB Shares & Mapped Drives • RDP (TERMSRV/*) & App Tokens • %LocalAppData%MicrosoftCredentials • %LocalAppData%MicrosoftVault

Attack Exposure: In-Session Infostealers Malware running as the logged-in user calls CryptUnprotectData() to extract plaintext SMB, RDP, and app logins—no admin rights needed. Fix: Disable RDP/SMB caching + enforce MDR + Zero Trust MFA

Enterprise Defense Stack (BPS Recommended) 1. Enable Credential Guard (VBS) to isolate NTLM & Kerberos TGTs 2. Block persistent network password caching via GPO / Intune 3. Replace shared passwords with Enterprise Vault + FIDO2 Passkeys

How Windows Credential Manager encrypts secrets with DPAPI—and why active-session infostealers bypass disk encryption once a user logs in.

When a user or application saves a secret, Windows calls CredWrite() and encrypts the payload using DPAPI (CryptProtectData) into binary blobs stored across four primary per-user locations:

  • %LocalAppData%MicrosoftCredentials and %AppData%MicrosoftCredentials — Individual encrypted credential files visible under Windows & Generic Credentials.
  • %LocalAppData%MicrosoftVault — Structured vault containers for legacy Web Credentials and certificate-backed entries.
  • %AppData%MicrosoftProtect<User-SID> — The DPAPI Master Key files protected by a hash derived from the user’s Windows password (and, on Active Directory-joined endpoints, optionally backed up to the Domain Controller’s DPAPI backup key).

For quick command-line auditing on any workstation, IT engineers can run Windows’ native cmdkey utility in PowerShell or Command Prompt:

# List all cached Windows & Generic credentials for the current user
cmdkey /list

# Delete a risky saved Remote Desktop server credential
cmdkey /delete:TERMSRV/srv-sql01.corp.local

3. Why Infostealers & Ransomware Operators Target Credential Manager

Windows Credential Manager was engineered primarily to prevent offline casual inspection—if someone steals an unbooted hard drive protected by BitLocker, they cannot read the blobs. However, enterprise cyber incidents rarely start with physical laptop theft. They start inside an active, unlocked user session via phishing attachments, malicious browser downloads, or compromised remote support tools.

Because DPAPI automatically authorizes CryptUnprotectData() for any process executing under the logged-in user’s security context, credential theft does not always require local Administrator privileges or LSASS memory dumping:

  1. Commodity Infostealers (Lumma, Vidar, RedLine, StealC): Malware runs briefly in user space, enumerates %LocalAppData%MicrosoftCredentials, decrypts saved RDP, VPN, FTP, and LOB application logins via standard Windows DPAPI calls, and exfiltrates plaintext credentials within seconds.
  2. Post-Exploitation AD Domain Escalation (SharpDPAPI / Mimikatz): If an attacker obtains a domain controller DPAPI backup key (via DCSync or domain admin compromise), they can decrypt Credential Manager vaults offline from every joined workstation in the company—often uncovering hardcoded service-account passwords saved inside mapped drive shortcuts or scheduled tasks.
  3. Unattended Lateral Movement via Cached RDP (TERMSRV/*): When staff check “Remember me” on Remote Desktop prompts to domain servers, accounting hosts, or EHR servers, an attacker who compromises one receptionist workstation inherits seamless RDP access to backend infrastructure.
  4. Confusing Credential Manager with LSASS Memory: Note that Windows Defender Credential Guard protects domain NTLM hashes, Kerberos TGTs, and single sign-on tickets inside Virtualization-Based Security (VBS), isolating them from LSASS dumps. Credential Guard does not automatically eliminate all risk for user-saved Generic Credentials or legacy mapped-drive passwords in WCM—making policy hardening and 24/7 Managed Detection and Response (MDR) essential.

4. Credential Manager vs. Enterprise Vaults vs. Windows Hello / FIDO2

Selecting the right authentication layer depends on whether you are securing legacy Windows network shares, SaaS logins, or cloud workforce identity. Below is how Windows Credential Manager compares against dedicated enterprise solutions:

CapabilityWindows Credential ManagerEnterprise Password Manager (e.g., 1Password / Bitwarden)Windows Hello for Business / FIDO2 Passkeys
Primary PurposeLocal OS app, SMB share, RDP & certificate cacheCross-platform team vaults, SaaS logins, API secrets & TOTPPhishing-resistant hardware-backed OS & SSO authentication
Encryption BoundaryUser Windows login session (DPAPI)Zero-knowledge master password + hardware biometrics/SSOTPM 2.0 / physical FIDO2 security key private enclave
Infostealer ResistanceLow — Any in-session user process can query DPAPIHigh — Requires master unlock, auto-locks on idle/anomalyVery High — Private key never leaves TPM or hardware token
Central IT RevocationLimited (GPO disable only; no shared vault audit trail)Full RBAC, instant offboarding wipe & SIEM audit logsInstant Entra ID / Active Directory session & token revocation
Cross-Device SyncNone across non-Windows or unmanaged endpointsEncrypted sync across Windows, macOS, iOS, and AndroidSynced passkeys or portable hardware FIDO2 USB/NFC keys
2026 IT RecommendationRestrict to essential OS/cert tasks; disable RDP/SMB savingStandardize for all shared business, vendor & SaaS accountsMandatory for Microsoft 365, VPN, firewall & admin portals

5. IT Hardening Checklist: GPO, Intune & Credential Guard

Rather than leaving Windows Credential Manager wide open by default, regulated healthcare, financial, legal, and SMB organizations across Greater Sacramento should enforce these five hardening controls:

  1. Block Persistent Network & RDP Credential Caching: In Group Policy (Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options), enable “Network access: Do not allow storage of passwords and credentials for network authentication”. Simultaneously enable “Do not allow passwords to be saved” under Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Connection Client (or deploy the equivalent Settings Catalog profile in Microsoft Intune).
  2. Enable Windows Defender Credential Guard (VBS): On Windows 11 22H2+ Enterprise/Pro hardware with TPM 2.0 and UEFI Secure Boot, verify Credential Guard is running via msinfo32 to isolate LSA secrets, NTLM hashes, and Kerberos tickets from user-mode malware.
  3. Enforce BitLocker Full-Disk Encryption + TPM PIN: Prevent offline DPAPI key extraction from lost or stolen laptops by requiring BitLocker XTS-AES 256-bit encryption escrowed to Microsoft Entra ID or Active Directory.
  4. Prohibit Domain Admin Credentials on Daily Workstations: Use dedicated Privileged Access Workstations (PAWs) or Just-In-Time (JIT) PAM elevation—never allow engineers to click “Remember credentials” for Tier-0 servers from a browser-connected desktop.
  5. Migrate Shared Credentials & SaaS Access Out of Windows Caches: Move staff logins into a centrally audited enterprise password manager protected by FIDO2 hardware MFA, and schedule recurring cybersecurity vulnerability assessments to detect lingering cmdkey secrets.

6. Troubleshooting Corrupted Vaults, Stale Tokens & Error 0x80090345

IT help desks frequently encounter authentication loops in Microsoft 365, OneDrive, Teams, and mapped network drives caused by damaged or outdated entries inside Windows Credential Manager. Apply these safe remediation steps before resetting user profiles:

  • Fixing Error 0x80090345 (DPAPI Master Key Decryption Failure): This occurs when an administrator forces an Active Directory password reset instead of letting the user change their password normally, or when a user profile is migrated without its %AppData%MicrosoftProtect SID keys. On domain-joined PCs connected to line-of-sight DCs, signing out and signing back in with the new password refreshes the domain backup key; otherwise, purge stale WAM/MSAL entries and re-authenticate Microsoft 365.
  • Clearing Stale Outlook / Teams / OneDrive Password Loops: Open Credential Manager → Windows Credentials → remove entries prefixed with MicrosoftOffice16_Data:, OneDrive Cached Credential, or legacy TERMSRV/ targets, then restart the app to force a clean Modern Authentication (OAuth 2.0 / Entra ID) prompt.
  • Verifying the Credential Manager Service (VaultSvc): If Windows refuses to retain legitimate 802.1X certificate or VPN prompts, verify via services.msc that Credential Manager (VaultSvc) is set to Manual (Trigger Start) or Running and check Event Viewer under Applications and Services Logs > Microsoft > Windows > Crypto-DPAPI.
  • Beware of Malware Disguised as Credential Prompts: Unexpected OS login dialogs asking users to re-enter domain credentials while opening PDFs or Teams links are a classic sign of credential-harvesting attacks or targeted spear phishing.

Need Help Auditing Endpoint Credentials & Locking Down Windows 11?

From Intune GPO hardening and BitLocker escrow to 24/7 SOC endpoint monitoring, our Sacramento cybersecurity team eliminates cached-credential exposure without slowing down your staff. Guaranteed 15-minute emergency response.

Request a Security Assessment → Sacramento IT Support

7. Frequently Asked Questions About Windows Credential Manager

What is Windows Credential Manager used for?

Windows Credential Manager stores login details, application tokens, Remote Desktop passwords, mapped drive credentials, and digital certificates on a Windows PC so apps and network resources can sign you in automatically without repeated password prompts.

Is Windows Credential Manager safe for business passwords?

Windows Credential Manager encrypts secrets at rest using DPAPI, which blocks offline disk inspection, but any infostealer or script running inside an active logged-in session can decrypt stored blobs without admin rights. Businesses should pair it with Credential Guard, Intune policies, and an enterprise password vault.

Where does Windows Credential Manager store files on disk?

Encrypted credential files live under %LocalAppData%MicrosoftCredentials, %AppData%MicrosoftCredentials, and %LocalAppData%MicrosoftVault, while DPAPI encryption master keys sit inside %AppData%MicrosoftProtect<User-SID>.

Does Windows Defender Credential Guard protect Credential Manager entries?

Not entirely. Credential Guard isolates NTLM hashes, Kerberos tickets, and derived credentials inside Virtualization-Based Security (VBS), whereas third-party Generic Credentials and user-saved network logins remain accessible to in-session processes unless blocked via Group Policy or Intune.

How can IT check and remove risky saved Windows credentials?

Administrators can run cmdkey /list in PowerShell or Command Prompt to inspect cached targets, delete specific entries with cmdkey /delete:<targetname>, and enforce Group Policy rules preventing persistent SMB and Remote Desktop password storage.

Ready to Strengthen Your Business IT & Cybersecurity?

Business PC Support delivers managed IT services, cybersecurity protection, Microsoft 365 cloud solutions, network design, and automated data backup for growing businesses.

Explore Business PC Support Services →