1. Resources
  2. Identity Threats
  3. Active Directory

Skeleton Key

Also known as: Skeleton Key malware, misc::skeleton, LSASS master password patch, Domain controller authentication patch

An attacker with domain admin rights patches LSASS on a domain controller so that a single master password is accepted for every account, while each user's real password keeps working.

Platform
Active Directory
Impact
Critical
Last updated
Attack difficulty
Medium
Detection difficulty
High
Privileges required: Tier 0 or tenant admin
Domain Admin or equivalent: administrator on a domain controller with SeDebugPrivilege, able to write to the memory of LSASS.
What the attacker gains
A master password that authenticates as any domain account over NTLM and RC4 Kerberos on the patched domain controller, until that server restarts.
Threat groups
ChimeraGroups that MITRE ATT&CK records using T1556.001.

How it works

On a domain controller, the Local Security Authority process (lsass.exe) validates every logon: it compares NTLM responses against the account's NT hash and decrypts Kerberos pre-authentication data with the account's keys. A Skeleton Key changes the validation code inside that running process so that a second secret, chosen by the attacker, is also accepted for every account.

The technique was first described in 2015 by the Secureworks Counter Threat Unit, who found it as malware on domain controllers of a compromised organization. Benjamin Delpy then added it to Mimikatz as misc::skeleton. The Mimikatz implementation does two things in LSASS on the domain controller:

  • RC4 hooks. It patches the RC4 initialization and decryption routines used for NTLM validation and for Kerberos encryption type 0x17. When a check with the account's real key fails, the patched code retries with the key derived from the master password. In Mimikatz the default master password is mimikatz.
  • Kerberos key patch. AES keys are salted per account, so one master key cannot stand in for all of them. The module therefore patches the KDC's handling of the account's newer (AES) keys, so that clients fall back to RC4. The optional /letaes argument skips this part and leaves AES authentication untouched.

Two properties define the technique:

  • Real passwords keep working. No account is changed, nobody is locked out, and a help desk sees nothing unusual.
  • Nothing is written to the directory or the disk. The change is in the memory of one process on one server. It does not replicate to other domain controllers, and it is gone when that server restarts.

Because only the patched domain controller accepts the master password, an attacker either patches every domain controller or makes sure their own logons are handled by the patched one.

Prerequisites

  • Administrator rights on a domain controller, in practice Domain Admin, with SeDebugPrivilege to open LSASS for writing.
  • Code execution on the domain controller. The patch is applied locally, so the attacker runs the tool there, in an interactive session or through remote execution.
  • LSASS not running as a protected process, or the ability to load a kernel driver that removes the protection.
  • RC4 or NTLM available for the accounts the attacker wants to use. Accounts restricted to AES, and members of Protected Users, fall outside the patched paths.

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

1. Patch LSASS on the domain controller

In an elevated session on the domain controller:

mimikatz # privilege::debug
mimikatz # misc::skeleton

On success the module prints [KDC] keys patch OK, [RC4] init patch OK and [RC4] decrypt patch OK. To leave the Kerberos AES handling alone and only hook the RC4 routines:

mimikatz # misc::skeleton /letaes

2. If LSASS runs as a protected process

With LSA protection (RunAsPPL) enabled, a user-mode process cannot open LSASS. Mimikatz ships a kernel driver that removes the protection flag first:

mimikatz # privilege::debug
mimikatz # !+
mimikatz # !processprotect /process:lsass.exe /remove
mimikatz # misc::skeleton
mimikatz # !-

!+ installs and starts the mimidrv driver as a service, which is one of the loudest steps in the whole chain.

3. Authenticate as any account with the master password

From any machine whose logon is validated by the patched domain controller:

net use \\DC01.corp.example.com\C$ /user:CORP\administrator mimikatz
dir \\DC01.corp.example.com\C$
Enter-PSSession -ComputerName DC01.corp.example.com -Credential CORP\administrator

The account's own password still works at the same time. To direct a logon to the patched server, the attacker targets that domain controller directly, as above, or uses a client in its site.

Impact

While the patch is in memory, the attacker can sign in as any user or computer account in the domain that can authenticate over NTLM or RC4 Kerberos: domain administrators, service accounts, executives' mailboxes through any service that validates against the patched domain controller. Unlike a Golden Ticket, there are no forged tickets to detect, and the logons look like ordinary successful logons by the real accounts from the attacker's address.

The persistence is fragile. A restart of the domain controller removes it, which is why attackers pair it with something durable on the same server, such as a malicious security support provider, a password filter DLL or the DSRM account.

OPSEC and artifacts

  • No directory change and no file. The patch itself writes nothing that an audit of Active Directory or of the file system would find. That is the reason it is used. What remains is the activity needed to apply it.
  • Getting the tool onto the domain controller. Mimikatz has to run on the server. Operators load it reflectively or from memory to avoid a file on disk, but the logon to the domain controller (event 4624, with 4672 for the administrator) and the process that hosts it are recorded.
  • Opening LSASS. Writing to LSASS requires a handle with write access. Sysmon event 10 and endpoint detection products record a process opening lsass.exe with those rights, and on a domain controller very few processes should.
  • The driver. Removing LSA protection loads mimidrv.sys, which creates a kernel driver service: System event 7045 and, with Audit Security System Extension, Security event 4697. Operators rename the driver, but an unexpected kernel driver on a domain controller stands out under any name.
  • Using /letaes. Without it, the Kerberos patch makes the domain controller issue RC4 where clients would use AES, which shows as encryption type 0x17 in event 4768 and event 4769 for accounts that have AES keys. With it, Kerberos looks normal and the master password works only where RC4 or NTLM is still used.
  • One domain controller differs from its peers. The same account authenticating normally against one domain controller and with a different pattern of encryption types against another is the comparison that exposes the patch.
  • Logons with the master password are indistinguishable from real ones in the event itself. Only context (source address, time, the account's habits) marks them.

Detection

  • Kernel drivers and services installed on domain controllers. Any new service of type kernel driver on a domain controller, most of all one named mimidrv. See the service installed on a domain controller rules.
  • Write access to LSASS. Process access to lsass.exe with rights that allow writing or thread creation, from anything other than the security products baselined for that server.
  • RC4 where AES is expected. Service tickets and TGTs with encryption type 0x17 for accounts that support AES, concentrated on one domain controller. The Kerberos RC4 downgrade rules cover this pattern.
  • Integrity checks of LSASS memory. Endpoint detection products that verify the code of loaded authentication packages can flag the hooks directly. Microsoft Defender for Identity raises an encryption downgrade alert for Skeleton Key activity.
  • Loss of LSA protection. System event 12 from Wininit records that LSASS started as a protected process at boot. A domain controller where the setting is configured but the event is missing, or where the process is later found unprotected, needs investigation.
// RC4 service tickets per domain controller: a controller that stands out from its peers
SecurityEvent
| where EventID == 4769 and Status == "0x0"
| where ServiceName !endswith "$" and ServiceName != "krbtgt"
| summarize Total = count(), RC4 = countif(TicketEncryptionType == "0x17") by Computer, bin(TimeGenerated, 1h)
| extend RC4Share = todouble(RC4) / Total
| order by RC4Share desc

A direct test is possible in an investigation: attempt a logon with the known default master password against each domain controller. A success proves the patch on that server; a failure proves nothing, because the password can be changed in a rebuilt tool.

Mitigation

  • Run LSASS as a protected process on domain controllers. LSA protection blocks user-mode writes to LSASS and forces the attacker to load a kernel driver, which is much easier to detect and can be blocked. The LSA protection and Credential Guard guide covers the rollout, including audit mode for third-party plug-ins.
  • Block vulnerable and unsigned drivers. Enable the Microsoft vulnerable driver blocklist and an application control policy on domain controllers so that a driver such as mimidrv cannot load.
  • Put privileged accounts in Protected Users. Members cannot authenticate with NTLM or with RC4 in Kerberos pre-authentication, which takes them out of the hooked paths. The Protected Users guide lists the compatibility checks.
  • Retire RC4. Enforce AES for accounts and services, following the RC4 to AES migration guide. It narrows the hooked path to NTLM and makes any RC4 ticket an anomaly worth an alert.
  • Keep administrators off domain controllers. The patch needs Domain Admin on the server. Tiered administration, privileged access workstations and a small Domain Admins group are the primary control.
  • Restrict what can run on domain controllers. Application control stops unknown executables and scripts from running on them at all.
  • Respond as to a full compromise. Restarting the domain controller removes the patch but not the attacker. Rebuild or restore the server from a trusted source, look for durable persistence on every domain controller, and then reset credentials, including krbtgt twice.

Detection rules for this attack

Log events to collect

FAQ

Does a Skeleton Key survive a reboot?

No. The patch lives only in the memory of the LSASS process on the domain controller where it was applied. A restart of that server removes it. An attacker who still has administrator access, or another persistence mechanism on the server, can apply it again after the restart.

Does changing passwords remove a Skeleton Key?

No. The master password is not stored on any account. It is accepted by modified code in the domain controller's memory, so resetting user or krbtgt passwords changes nothing. The domain controller has to be restarted, and because the attacker had administrator rights on it, it should be treated as compromised.

Which accounts are not affected?

The Mimikatz implementation hooks NTLM validation and the RC4 Kerberos path. Accounts that can only authenticate with AES are outside those hooks. Members of Protected Users cannot use NTLM or RC4 pre-authentication, so the master password is not expected to work for them. Authentication handled by an unpatched domain controller is not affected either.

How do you detect a Skeleton Key?

There is no dedicated event. Look for the steps around it: a kernel driver or service installed on a domain controller, a process opening LSASS with write access, and Kerberos tickets issued with RC4 (encryption type 0x17) for accounts that have AES keys, on one domain controller but not on its peers.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.