CyberKit

SAM/LSA Secrets Extraction

Also called registry hive credential extraction.

Pulling local hashes and service secrets from the registry.

What it is

The extraction of credentials from the SAM and SECURITY registry hives on a host: local account password hashes from SAM, and LSA secrets such as service-account passwords, cached domain logons, and machine secrets from SECURITY. It is commonly done from a live system or from offline hive copies.

Why it matters

Local administrator hashes recovered this way enable pass-the-hash, and a shared local-admin password across machines turns one host into many, while LSA secrets can leak cleartext service credentials. It motivates unique local-admin passwords and least privilege.

In practice

An attacker copies the SAM and SECURITY hives, extracts the local admin hash, and reuses it across the subnet because every host shared the same password.

What to look for

  • reg save of SAM, SYSTEM or SECURITY hives.
  • Volume shadow copies used to read locked hive files.
  • Remote registry access to a host's hives.

Common mistake

Ignoring local accounts. Shared local admin passwords turn one host's hash into many hosts.

Practice it nearby

CyberKit has no tool for this term itself. These are the closest places to practice it.

In the field

Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.

  • CrowdStrike Falcon Commercial

    An EDR agent that records process, file and network activity on each host and flags this kind of behavior.

  • Microsoft Defender for Endpoint Commercial

    Microsoft's EDR, with advanced hunting tables you can query for this activity across Windows, macOS and Linux.

  • Velociraptor Open source

    Collects and hunts for artifacts across many hosts at once, often during live response. Our notes.

  • Sysmon Free

    Free Windows logging of process starts, network connections and more, which many detections rely on. Our notes.

Read next

Sources