Zum Hauptinhalt springen
LIVE Intel Feed
"Not a Pentest" Notice: Remediation guide for your own Windows infrastructure only.
Academy · CVE FeedHIGH · CVSS 6.5 · EXPLOITED IN WILD

CVE-2025-24054

Windows NTLM Hash Disclosure via .library-ms Files

Impact: Minimal-interaction NTLM credential leak via malicious .library-ms files. User navigating to a folder containing the file is sufficient to trigger outbound NTLM authentication to an attacker-controlled server. Captured NTLMv2 hashes enable offline cracking and relay attacks. Actively exploited in phishing campaigns. Patch immediately + block outbound 445.

6.5
CVSS Score
HIGH
Severity
NTLMv2
Credential leak
KB5055523
Fix KB

Step-by-Step Fix Runbook

1
Apply Windows security update (KB5055523 or later)
# Check current Windows version and pending updates (PowerShell):
Get-WindowsUpdate -KBArticleID KB5055523
# Or check via Windows Update:
# Settings > Windows Update > Check for updates

# Install via PowerShell (WSUS/direct):
Install-WindowsUpdate -KBArticleID KB5055523 -AcceptAll -AutoReboot

# Verify patch applied:
Get-HotFix -Id KB5055523
# Should return the hotfix entry if installed

# Affected OS versions requiring patch:
# Windows 10 21H2, 22H2
# Windows 11 22H2, 23H2, 24H2
# Windows Server 2008 R2 through 2025
# Released: March 2025 Patch Tuesday
2
Block NTLM authentication (where possible)
# Group Policy: disable NTLM authentication outbound
# Computer Configuration > Windows Settings > Security Settings
# > Local Policies > Security Options
# "Network security: Restrict NTLM: Outgoing NTLM traffic to remote servers"
# Set to: Deny all

# Via PowerShell (domain GPO):
Set-GPRegistryValue -Name "NTLM Restriction Policy" \
  -Key "HKLM\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0" \
  -ValueName "RestrictSendingNTLMTraffic" \
  -Type DWord -Value 2
# Value 2 = Deny all

# For specific servers that require NTLM: add exception list
# Computer Config > Security Settings > Security Options
# "Network security: Restrict NTLM: Add server exceptions for NTLM authentication"

# Check current NTLM usage before disabling (audit mode first):
# Set RestrictSendingNTLMTraffic = 1 (Audit) → check Event ID 8001/8002 in Event Viewer
3
Enable SMB signing to prevent NTLM relay
# Enable SMB signing on all Windows machines
# (Prevents captured NTLM hashes from being relayed)

# Via Group Policy (recommended for domain):
# Computer Config > Administrative Templates > Network
# > Lanman Server: "Require server-side packet signing" → Enabled
# > Lanman Workstation: "Require client-side packet signing" → Enabled

# Via PowerShell:
Set-SmbServerConfiguration -RequireSecuritySignature $true -Force
Set-SmbClientConfiguration -RequireSecuritySignature $true -Force

# Verify:
Get-SmbServerConfiguration | Select RequireSecuritySignature
Get-SmbClientConfiguration | Select RequireSecuritySignature
# Both must show True

# Note: SMB signing adds ~5-15% overhead on file server workloads
# Test in staging before prod rollout
4
Enable EPA (Extended Protection for Authentication)
# Extended Protection for Authentication (EPA) prevents NTLM relay to web services
# Require EPA on IIS, Exchange, and other web services

# IIS — enable EPA via PowerShell:
Import-Module WebAdministration
Set-WebConfigurationProperty -Filter "system.webServer/security/authentication/windowsAuthentication" \
  -Name "extendedProtection.tokenChecking" \
  -Value "Require"  # Or "Allow" for gradual rollout

# Verify IIS EPA setting:
Get-WebConfigurationProperty -Filter "system.webServer/security/authentication/windowsAuthentication" \
  -Name "extendedProtection.tokenChecking"

# Exchange — enable EPA:
# Exchange Admin Center: Security > EPA settings
# Or via: Get-ExtendedProtectionConfig / Set-ExtendedProtectionConfig

# Apache/Nginx: Not applicable — configure Kerberos instead of NTLM for reverse proxy auth
5
Block outbound SMB to internet (port 445/139)
# Prevent NTLM hash leakage to external servers
# Block outbound SMB ports at firewall/security group level

# Windows Firewall (outbound block):
New-NetFirewallRule -DisplayName "Block Outbound SMB" \
  -Direction Outbound \
  -Protocol TCP \
  -LocalPort 445,139 \
  -Action Block \
  -Profile Any

# For cloud VMs — block at network level too:
# AWS Security Group: remove any outbound rule allowing port 445
# Azure NSG: add outbound deny rule for port 445 to Internet
# Reason: .library-ms exploit triggers NTLM auth to attacker-controlled SMB server
# Blocking outbound 445 breaks this exfiltration path even if host is unpatched

Frequently Asked Questions

How does CVE-2025-24054 work technically?

CVE-2025-24054 exploits Windows' handling of .library-ms files (Windows Library files used by Explorer). When a user navigates to a folder containing a malicious .library-ms file (even without opening it — just having it in the folder view triggers the vulnerability in some scenarios), Windows Explorer automatically initiates an NTLM authentication request to an attacker-controlled SMB server embedded in the file's network path. This leaks the user's NTLM hash to the attacker. The attacker can then use the captured hash for offline cracking (if weak password) or NTLM relay attacks (pass-the-hash to access other internal services).

What level of user interaction is required for exploitation?

Very minimal — this is why CVSS is 6.5 (Medium) but actively exploited in the wild. Exploitation scenarios: 1) Minimal interaction: user navigates to a folder containing the .library-ms file in Windows Explorer — the file doesn't need to be opened or double-clicked. 2) Phishing via email: attacker sends a ZIP archive containing the .library-ms file. User extracts and browses to the folder. 3) Shared network drives: if an attacker can write a .library-ms file to a network share that users browse, hash capture is automatic. The hash disclosure requires outbound network access to the attacker's SMB server (port 445) — blocking outbound 445 breaks the chain.

Can NTLM hashes be cracked or replayed directly?

Both. Cracking: NTLMv2 hashes captured via NetNTLMv2 challenge/response (what's leaked here) can be cracked with Hashcat. With common passwords and modern GPUs, cracking time ranges from seconds (dictionary words) to days (8-char mixed case). Relay attacks (Pass-the-Hash): even without cracking, captured NTLMv2 challenge/response can be relayed to other services in the network that also use NTLM authentication — within the validity window of the challenge (time-sensitive). This is why SMB signing and EPA are critical mitigations: they prevent relay even when the hash is captured.

Is this vulnerability being exploited in the wild?

Yes. Microsoft rated this as 'Exploitation Detected' in their March 2025 Patch Tuesday advisory. Active exploitation was observed in phishing campaigns distributing malicious .library-ms files in ZIP archives, targeting enterprise environments. The attack is particularly attractive because: NTLMv2 hash capture is silent (no user-visible prompt), captured hashes can be immediately used for lateral movement in corporate networks, and many enterprise environments still heavily rely on NTLM. Prioritize patching in any environment with Windows workstations browsing network shares or receiving email attachments.

Further Resources

🔒 Quantum-Resistant Mycelium Architecture
🛡️ Kuratierte Runbooks – EU-gehostet in Frankfurt
🌐 Zero Known Breaches – Powered by Living Intelligence
🏛️ DSGVO Art. 25 & 32 • SOC 2 & ISO 27001 in Vorbereitung
⚡ Real-Time Global Mycelium Network – 347 Bedrohungen in 60 Minuten
🧬 Trusted by SecOps Leaders worldwide