Join our Newsletter — 33% off our NHI Course
Home› Glossary› Foundations & NHI Taxonomy› Security Account Manager (SAM) Hive
Foundations & NHI Taxonomy

Security Account Manager (SAM) Hive

← Back to Glossary
By NHI Mgmt Group Updated October 29, 2026 Domain: Foundations & NHI Taxonomy

The Security Account Manager (SAM) hive is a Windows Registry hive that stores local user, group and password-related account data on a machine. It underpins local authentication and account management, and offline access to it can expose local credential material and account information.

What the Security Account Manager hive stores

The SAM hive is the local Windows registry database for account records on a single machine. It holds local users, local groups, and password-related metadata that the operating system relies on for sign-in and local authorization decisions.

Because it is part of the local trust boundary, the SAM hive is not just another registry file. If an attacker or administrator can read it offline, they may gain durable insight into local account structure and credential material that should normally remain protected by the OS.

Why the SAM hive matters for authentication and access

The practical importance of the SAM hive is that it underpins local authentication on Windows endpoints and servers. That makes it a high-value target in compromise chains that aim to recover local account data, map privileged local groups, or use offline access to prepare lateral movement.

Its security significance comes from what it can reveal, not from how it is queried. A protected system can still be at risk if the hive is copied from disk, extracted from backups, or accessed through another trusted path that bypasses normal logon controls.

Common exposure paths and what they reveal

The most common exposure paths are disk-level access, malicious backup access, offline forensic collection, and registry hive copying from a compromised host. In each case, the goal is usually the same: obtain account names, group membership, and other local security data without needing an interactive logon.

Tools and techniques associated with credential dumping often target the SAM alongside LSASS, LSA secrets, and cached credentials. Credential Dumping Guide is a useful companion reference because it places the SAM hive in the broader extraction and detection landscape.

For defenders doing Windows triage, registry hives are also part of the evidence trail. Windows Forensic Artefacts Guide helps connect SAM exposure to the wider artefacts that show how a system was accessed or handled.

What defenders should assume after SAM exposure

If the SAM hive has been copied from a live or recently compromised system, defenders should treat local account data as potentially exposed even when no interactive login was observed. That matters because local credentials and group membership can support reuse, privilege discovery, and follow-on intrusion attempts.

Post-incident review should focus on whether the host was imaged, whether backup media or admin tooling had access to the hive, and whether other secrets or registry data were exposed at the same time. The main operational question is not only whether the machine was accessed, but whether the attacker gained durable offline visibility into local trust material.

Risk and Threat Considerations

The SAM hive is dangerous because offline access can bypass normal authentication controls and expose data that helps an attacker impersonate or target local accounts. Once an endpoint is compromised, SAM access often becomes part of a larger credential access or persistence workflow.

Failure mechanism: An attacker gains read access to the hive through disk theft, malware with SYSTEM-level access, backup abuse, or forensic extraction, then uses the recovered data to support password guessing, local account targeting, or privilege mapping.

Impact: Local account compromise can extend the breach, simplify lateral movement, and expose trusted machine-level account structure that defenders may not notice until after the attacker has moved on.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementSAM stores password-related account material that falls under authenticator lifecycle protection.
IA-2 — Identification and Authentication (Organizational Users)Local account records in SAM support authentication decisions on the machine.
AU-9 — Protection of Audit InformationOffline hive extraction often requires preserving evidence around privileged access and tampering.
Recommendation — Protect stored authenticator material and enforce secure lifecycle handling for local account secrets. Ensure local sign-in paths authenticate users through controlled identity and authenticator checks. Protect logs and forensic evidence that can reveal unauthorized access to the SAM hive.
CIS Controls v8CIS-5 — Account ManagementSAM contains local account and group data that this control family helps govern.
Recommendation — Inventory and govern local accounts so offline exposure does not become unnoticed privilege sprawl.
MITRE ATT&CKT1003 — OS Credential DumpingSAM hive access is a classic source of credential material during credential dumping.
Recommendation — Map suspected SAM extraction to OS credential dumping and hunt for associated collection activity.

Practitioner Guidance

Why practitioners should care: Treat the SAM hive as protected authentication material, not as ordinary registry data. Its value lies in the local account and password-related information it can reveal when the operating system protections are bypassed.

What to watch for: Unusual hive access, suspicious backup or shadow copy activity, registry export behaviour, and endpoint telemetry that suggests credential-dumping tooling or offline collection. A small local extraction can still be operationally significant if the host is privileged or widely trusted.

Practitioner takeaway: Protect the host, the backup path, and the admin workflow together, because SAM exposure usually happens through the path that was least expected to carry authentication risk.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org