T1003.002 Security Account Manager — ATT&CK Technique
Adversaries may attempt to extract credential material from the Security Account Manager (SAM) database either through in-memory techniques or through the Windows Registry where the SAM database is stored. The SAM is a database file that contains local accounts for the host, typically those found with the net user command. Enumerating the SAM database requires SYSTEM level access. A number of tools can be used to retrieve the SAM file through in-memory techniques: * pwdumpx.exe * gsecdump * Mimikatz * secretsdump.py Alternatively, the SAM can be extracted from the Registry with Reg: * reg save HKLM\sam sam * reg save HKLM\system system Creddump7 can then be used to process the SAM database locally to retrieve hashes. Notes: * RID 500 account is the local, built-in administrator. * RID 501 is the guest account. * User accounts start with a RID of 1,000+.
Detection coverage (36)
- Antivirus Password Dumper Detection critical
- Sensitive File Dump Via Print.EXE high
- Possible Impacket SecretDump Remote Activity - Zeek high
- PUA - Memory Dump Mount Via MemProcFS high
- Dumping of Sensitive Hives Via Reg.EXE high
- Transferring Files with Credential Data via Network Shares - Zeek medium
- Credential Dumping Tools Service Execution - Security high
- Possible Impacket SecretDump Remote Activity high
- VSSAudit Security Event Source Registration informational
- Transferring Files with Credential Data via Network Shares medium
- Critical Hive In Suspicious Location Access Bits Cleared high
- Volume Shadow Copy Mount low
- Crash Dump Created By Operating System medium
- Credential Dumping Tools Service Execution - System high
- Mimikatz Use high
- HackTool - QuarksPwDump Dump File critical
- Cred Dump Tools Dropped Files high
- NTDS.DIT Creation By Uncommon Process high
- Potential SAM Database Dump high
- HackTool - Credential Dumping Tools Named Pipe Created critical
- VolumeShadowCopy Symlink Creation Via Mklink high
- Copying Sensitive Files with Credential Data high
- HackTool - Pypykatz Credentials Dumping Activity high
- HackTool - Mimikatz Execution high
- HackTool - Quarks PwDump Execution high
- PowerShell SAM Copy high
- Shadow Copies Creation Using Operating Systems Utilities medium
- Esentutl Volume Shadow Copy Service Keys high
- Azure AD Privileged Authentication Administrator Role Assigned
- Azure AD Privileged Graph API Permission Assigned
- O365 Privileged Graph API Permission Assigned
- Detect Copy of ShadowCopy with Script Block Logging
- Esentutl SAM Copy
- SAM Database File Access Attempt
- Windows Rapid Authentication On Multiple Hosts
- Windows Sensitive Registry Hive Dump Via CommandLine
Malware using this technique
- gsecdump
- Koadic
- pwdump
- HOPLIGHT
- CosmicDuke
- Cobalt Strike
- Mimikatz
- Remsec
- CozyCar
- Mivast
- Fgdump
- POWERTON
- CrackMapExec
- Impacket
- IceApple