Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

Windows SAM secrets leak - HiveNightmare

Disclosed
Jul 20, 2021
Created
Jul 29, 2021

Description

Due to mismanagement of SAM and SYSTEM hives in Windows 10, it is possible for an unprivileged
user to read those files. But, as they are locked while Windows is running we are not able
to read them directly. The trick is to take advantage of Volume Shadow Copy, which is generally
enabled, to finally have a read access. Once SAM and SYSTEM files are successfully dumped and
stored in `store_loot`, you can dump the hashes with some external scripts like secretsdump.py

Authors

Kevin Beaumont
romarroca
Yann Castel (yann.castel Yann Castel ([email protected])

Platform

Windows

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use post/windows/gather/credentials/windows_sam_hivenightmare
msf post(windows_sam_hivenightmare) > show actions
...actions...
msf post(windows_sam_hivenightmare) > set ACTION < action-name >
msf post(windows_sam_hivenightmare) > show options
...show and set options...
msf post(windows_sam_hivenightmare) > run

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.