
Proof of Concept for the NTLM Hash Leak via .library-ms CVE-2025-24054 / CVE-2025-24071
This PoC demonstrates the exploitation of the NTLM hash leak via .library-ms files on unpatched Windows systems (March 2025 Patch Tuesday).
⚠️ This is for educational and research purposes only. Do not use this on production or unauthorized systems.
When a .library-ms file with a UNC path is opened (or previewed) in Windows Explorer, it triggers an SMB authentication request to the specified server, leaking the NTLMv2 hash.
generate_library_ms.py : generates the malicious .library-ms filexd.library-ms : sample malicious file (points to a configurable SMB server)Instructions_Responder.md : how to set up a fake SMB server with ResponderStart Responder on your attacker machine:
sudo responder -I eth0
On the victim Windows VM:
.library-ms fileOn the attacker side:
PoC Demo
.library-ms files from untrusted sourcesPoC created by Helidem