Back to Blog
Red Teaming Sep 30, 2026 107 views

LAPS & Local Admin: Killing Password Reuse on Local Administrator Accounts

A shared local admin password turns one compromised host into all of them. LAPS gives each machine a unique, rotating password. How legacy and Windows LAPS differ, how to deploy and read them, where they go wrong, and how to detect abuse.

By Obaida Albasha, Security Researcher, Cytomate

Part 5 of our Windows Credential Protection series: what breaks when a control is off, how an attacker abuses that gap, and how to turn it on and keep it on. The first four posts covered WDigest, Credential Guard, LSA Protection and Protected Users & tiering; this one closes the local-administrator reuse path that none of them touch.

One password, every machine, the whole domain

Picture a build image rolled out to ten thousand endpoints. Every one of them ships with the same local Administrator account and the same password, because that is what the image had baked in. It is convenient: the helpdesk memorises one password and can rescue any machine. It is also the single most useful thing an attacker can find.

Here is why. An attacker lands on one workstation, dumps the local SAM, and walks away with the NTLM hash of the local administrator. That hash is identical on every other machine built from the same image. Pass-the-Hash to the next box, and the next, and the next. No domain credentials required, no privilege escalation, no exploit. The shared local admin password is the lateral movement. This is the technique behind the vast majority of ransomware that spreads across a whole estate in an afternoon.

LAPS, the Local Administrator Password Solution, removes the shared secret. Each machine gets its own random password, that password is stored centrally and rotated automatically, and no two machines share one. Dump the SAM on one host and the hash you get unlocks exactly one host: the one you already own. The chain that made ransomware fast simply breaks. This post walks through what LAPS is, how to deploy and read it, the difference between the deprecated plaintext version and the modern encrypted one, where it still gets misconfigured, and how to watch for abuse.

What LAPS actually is

LAPS is not an agent or a service in the usual sense. It is a small piece of logic that runs on each managed machine on a schedule (through Group Policy client-side extension, or through Intune / MDM on modern Windows) and does three things:

  • Generates a random password for a chosen local account (by default the built-in Administrator), meeting a length and complexity policy you set.
  • Sets that password on the local account.
  • Stores it centrally, in an attribute on the computer object in Active Directory, or in Microsoft Entra ID (formerly Azure AD), along with an expiration timestamp.

When the expiration time passes, the machine generates a fresh password and updates the stored copy. Retrieval is a directory read gated by access-control: only principals you have explicitly delegated can read the password back. That is the whole model. Its strength is not cryptographic cleverness. It is that the secret is unique per host and rotated, so a stolen password is worth exactly one machine for exactly one rotation window.

Why this collapses lateral movement

Lateral movement across a Windows estate almost always rides on credential reuse. The three classic paths all assume a secret that is valid in more than one place:

  • Pass-the-Hash with the local admin hash: only works because the hash is the same everywhere. Unique passwords mean unique hashes; the replay lands nowhere.
  • Cleartext reuse: an admin password harvested from memory or a script that also happens to work on the file server. Unique passwords mean there is nothing to reuse.
  • Pivot-and-repeat: own one box, harvest its local admin, use it to own the next. With LAPS, "the next box" has a different password you do not have.

None of this makes the first compromise harder. What it does is deny the attacker the cheap, reliable propagation step that turns one host into a domain-wide incident. That is why LAPS shows up in almost every hardening baseline and every good insurance questionnaire: for the effort involved, nothing else shrinks blast radius as much.

The two generations: old LAPS vs Windows LAPS

There are two distinct products that both go by "LAPS," and the difference matters for security, not just history.

Legacy LAPS (the "AdmPwd" solution)

The original, released by Microsoft in 2015 and known internally as AdmPwd. You installed it as an MSI, extended the AD schema with two custom attributes, and pushed a client-side extension by GPO. Its defining weakness: the password is stored in cleartext in the AD attribute ms-Mcs-AdmPwd. AD protects that attribute with the confidential attribute flag, so a plain directory read does not return it, but anyone you delegate read rights to (or anyone who gains those rights through a misconfigured ACL) sees the password as plaintext. There is no encryption at rest. Legacy LAPS is now deprecated in favour of the built-in solution, though it is still widely deployed.

Windows LAPS (built into Windows)

Announced in April 2023 and shipped natively in Windows 10/11 and Windows Server 2019+ (via update) and everything newer: no MSI, no separate download. It brings the changes legacy LAPS lacked:

  • Encryption at rest. On a Windows Server 2016+ functional-level domain, the password is encrypted (DPAPI-NG) so that only a chosen principal (a group or user you nominate) can decrypt it. It lands in msLAPS-EncryptedPassword, not a cleartext field. Even a domain admin reading the raw attribute gets ciphertext unless they are the authorised decryptor.
  • Entra ID backend. Cloud-joined and hybrid devices can store the password in Entra ID instead of (or as well as) on-prem AD, retrievable through the portal, Graph, or Intune.
  • Password history (encrypted), so a rotation does not lock you out of a machine that has not checked in.
  • Automatic post-authentication rotation: the password can be set to rotate a configurable time after it is used, so a checked-out password self-destructs.
  • DSRM password management for domain controllers.
Legacy LAPS (AdmPwd) Windows LAPS
Storage at restCleartext in ms-Mcs-AdmPwdEncrypted (DPAPI-NG) in msLAPS-EncryptedPassword
DeploymentMSI + GPO CSEBuilt in; GPO or Intune/MDM
BackendOn-prem AD onlyOn-prem AD or Entra ID
Password historyNoYes (encrypted)
Rotate after useNoYes (configurable grace period)
StatusDeprecatedCurrent, recommended

The headline takeaway: legacy LAPS solves password reuse but not password exposure: the secret sits readable in the directory. Windows LAPS solves both. If you are deploying today, deploy Windows LAPS. If you already run legacy LAPS, treat the cleartext attribute as sensitive data and plan the migration.

Deploying LAPS: Legacy

Everything below runs in CYTOMATE.LOCAL, a lab domain we own. Commands run from an elevated prompt on a domain controller or a management host with RSAT.

1. Install the module and extend the schema

The schema extension adds the two ms-Mcs-AdmPwd* attributes to computer objects. It is a one-time, forest-wide change and requires Schema Admins.

Install AdmPwd.PS module and run Update-AdmPwdADSchema
Output of Update-AdmPwdADSchema: legacy schema attributes added

2. Let machines write their own password

Each computer needs permission to write its password into its own object. This grants SELF write access on the two attributes for every computer in the target OU.

Set-AdmPwdComputerSelfPermission on the Workstations OU

3. Delegate who may read the password

This is the security-critical step. Grant read only to a tightly scoped group, never to broad groups like Authenticated Users. Here we delegate a dedicated LAPS-Readers group.

Set-AdmPwdReadPasswordPermission delegating read to LAPS-Readers
Output: legacy LAPS read permission delegated to LAPS-Readers

4. Push the client policy by GPO

In a GPO linked to the OU: Computer Configuration -> Policies -> Administrative Templates -> LAPS. Enable password settings (length, complexity, age), set Enable local admin password management to Enabled, and if you manage a non-default account, name it. On the next policy refresh, each machine generates and stores its password.

Deploying LAPS: Windows LAPS

Windows LAPS is already present. No install; the LAPS PowerShell module ships with the OS.

1. Extend the schema (Windows LAPS attributes)

Confirm LAPS module and run Update-LapsADSchema
Output of Update-LapsADSchema: Windows LAPS schema attributes added

2. Grant self-write and delegate read

Set-LapsADComputerSelfPermission and Set-LapsADReadPasswordPermission

3. Turn on encryption and set policy

With a Windows Server 2016+ domain functional level, enable encryption and name the principal allowed to decrypt. Configure through GPO (Computer Configuration -> Policies -> Administrative Templates -> System -> LAPS) or Intune. Key settings:

  • Configure password backup directory -> Active Directory (or Entra ID).
  • Enable password encryption -> Enabled.
  • Configure authorized password decryptors -> CYTOMATE\LAPS-Readers.
  • Password Settings -> length (e.g. 20+), complexity, age (e.g. 30 days).
  • Post-authentication actions -> reset the password a set time after use (e.g. 8 hours).

For Intune-managed and cloud-joined devices, the same policy lives under Endpoint security -> Account protection -> Local admin password solution (Windows LAPS), with the backend set to Entra ID.

Applied Windows LAPS policy on the endpoint

4. Force a machine to check in

To validate without waiting for the schedule, trigger a policy refresh and an immediate password reset on the endpoint:

Invoke-LapsPolicyProcessing and Reset-LapsPassword

Reading the password (and the rights it needs)

Retrieving a LAPS password is a legitimate, everyday helpdesk operation. It is what LAPS is for. What matters is that it is gated: you can read it only if you were delegated the right (legacy) or named as an authorised decryptor (Windows LAPS).

Legacy LAPS

The dedicated cmdlet, for a principal in the delegated read group:

Get-AdmPwdPassword -ComputerName WKS01

Or read the raw attribute directly (returns the cleartext, because legacy stores it that way):

Get-ADComputer reading ms-Mcs-AdmPwd raw attribute
Output: legacy LAPS password read from ms-Mcs-AdmPwd

Windows LAPS

The Get-LapsADPassword cmdlet decrypts on the fly for an authorised decryptor. -AsPlainText returns the password in the clear for the operator who is entitled to it:

Get-LapsADPassword -Identity WKS01 -AsPlainText

Because the stored value is encrypted, an unauthorised principal reading msLAPS-EncryptedPassword directly gets ciphertext, not a password. The decryptor identity is enforced by DPAPI-NG, not just by an ACL. For Entra-backed devices, the equivalent is a Graph call or the Local administrator password recovery blade in the portal.

Output: Get-LapsADPassword returning the decrypted password

Rights, in one line: to read a LAPS password you need to be a member of the delegated read group (legacy) or a named authorised decryptor (Windows LAPS). To grant those rights you need write access on the OU's ACL, effectively OU-admin or domain-admin. Anyone with GenericAll, WriteDACL, or All Extended Rights over the computer objects can grant themselves read access. That last sentence is the whole attack surface, and the next section is about it.

Removing LAPS

Decommissioning cleanly, in order:

  1. Stop managing the password. Set the LAPS policy to Not configured / Disabled in the GPO or Intune profile, or unlink the GPO from the OU. Machines stop rotating on the next refresh.
  2. Legacy: uninstall the CSE. Remove the AdmPwd client-side extension from endpoints (MSI uninstall or your software-deployment tool).
  3. Decide what happens to the current password. Disabling LAPS leaves the last password in place and static, which recreates the shared-secret risk if the machines were imaged alike. Reset local admin passwords to fresh unique values (or disable the local admin account) as part of teardown.
  4. Clear the stored values if required. Blank ms-Mcs-AdmPwd / the msLAPS-* attributes on computer objects if policy demands the directory hold no residual secrets. Note the schema attributes themselves cannot be removed (schema extensions are permanent), but they can be emptied.
Clear the legacy ms-Mcs-AdmPwd attribute on a computer object

Where LAPS still goes wrong: the attack surface

LAPS removes the shared secret, but it introduces a new asset that is only as safe as the access control around it. Every finding below is a misconfiguration or a monitoring gap, and every one has a remediation in the next section. These are the things a red team checks first, and the things a blue team should audit for.

1. Over-permissioned read rights

The most common finding by far. The password is only as protected as the list of principals who can read it. If read was delegated to a broad group (a sprawling helpdesk group, a nested group that quietly contains half the company, or worst of all Authenticated Users), then any account in that group can pull every local admin password in scope. Enumeration tooling (for example the publicly documented LAPS toolkit and standard AD ACL enumerators) exists precisely to list who can read what, because that list is the target. Remediation: scope read to one dedicated group with a handful of members; audit the ACL and group nesting regularly.

2. ACL abuse and delegation as persistence

Anyone holding GenericAll, WriteDACL, WriteOwner, or All Extended Rights over the computer objects (or the OU) can add themselves to the readers, then read the password. In an attack chain this is both a lateral-movement enabler and a persistence mechanism: an attacker who reaches domain admin once can grant an innocuous-looking account standing read rights on an OU, then come back later and harvest fresh passwords at will, long after the original foothold is cleaned up. Remediation: baseline and monitor the ACLs on OUs and computer objects; alert on new ACE grants of read/extended rights.

3. Legacy cleartext at rest

With legacy LAPS the password is plaintext in ms-Mcs-AdmPwd. The confidential-attribute flag stops a casual read, but any delegated reader, or anyone who reaches the object through the ACL paths above, gets a usable password with no decryption step. From a non-Windows attacker's perspective this is trivial: any LDAP client that authenticates as a principal with the right can query the attribute. Remediation: migrate to Windows LAPS with encryption so the at-rest value is ciphertext bound to a named decryptor.

4. Passwords that do not rotate after use

Legacy LAPS rotates only on expiry. A password checked out by the helpdesk (or an attacker) stays valid until its expiration time, potentially days or weeks. Steal it once and you have a working credential for the rest of that window. Remediation: Windows LAPS post-authentication rotation resets the password a short, configurable time after it is used, so a checked-out password self-expires. Set the grace period low.

5. Machines excluded from LAPS

LAPS only protects machines in scope. Servers left out of the OU, machines with a second local admin account LAPS does not manage, or a stale image still carrying the old shared account: each is a place the shared-secret attack still works. Remediation: reconcile LAPS coverage against your full inventory; manage every local admin account, and remove or disable extra ones.

6. The password's value depends on the account still being usable

LAPS randomises the password, but if the local admin account remains enabled and usable over the network, a read password is still a network logon. Pairing LAPS with controls that limit where a local admin can authenticate (blocking network/RDP logon for local accounts) turns a leaked password into a far smaller problem. Remediation: apply the "Deny access to this computer from the network" and "Deny log on through RDP" rights to local accounts, as in the Microsoft security baselines.

Remediation, recommendations & monitoring

Do all of these, not just one. Deployment without tight access control is a new single point of failure; access control without monitoring means you never see the abuse.

  1. Deploy Windows LAPS with encryption. New rollouts should use the built-in solution with password encryption enabled (Server 2016+ DFL) and a named authorised-decryptor group. If you run legacy LAPS, plan the migration and treat the cleartext attribute as sensitive until it is gone.
  2. Scope read rights to one small group. Delegate password read to a single dedicated group with a handful of members and no surprise nesting. Never Authenticated Users, never a catch-all helpdesk group. Review membership and ACLs on a schedule.
  3. Turn on post-authentication rotation. Configure Windows LAPS to reset the password a short time after it is used, so checked-out passwords self-destruct. Keep the maximum age low as well (e.g. 30 days).
  4. Constrain the local admin account. Deny network and RDP logon for local accounts via GPO, so a leaked LAPS password cannot be used for remote logon. This is the control that makes a stolen password nearly worthless.
  5. Cover every machine and every local admin. Reconcile LAPS scope against inventory; disable or remove secondary local admin accounts; retire images that carry a shared account.
  6. Audit reads of the password. The password attribute is a directory object: put a SACL on it and log every read. In AD, Event ID 4662 (an operation on a directory object) fires when the LAPS password attribute is read; tune the SACL to the ms-Mcs-AdmPwd / msLAPS-Password attributes so each retrieval is attributable to an account. A spike, an off-hours read, or reads by an unexpected principal are the signals that matter.
    Enable Directory Service Access auditing with auditpol
  7. Watch the LAPS operational log. Windows LAPS writes to Microsoft-Windows-LAPS/Operational: policy processing, password updates, and post-authentication resets all appear there (event IDs in the 100xx range). Forward it centrally; a machine that suddenly stops updating, or one resetting far too often, is worth a look.
  8. Alert on ACL and group changes. Monitor for new ACE grants of read / extended rights on OUs and computer objects (Event ID 5136, directory object modified) and for additions to the LAPS readers group (4728 / 4732 / 4756). This is how you catch delegation-as-persistence before it is used.
  9. Prove it holds. Configuration drifts, delegations creep, and audit rules rot. The only way to know your read scope is still tight and your 4662 alert still fires is to exercise it on purpose: attempt a read as an out-of-scope account, grant a test ACE, and confirm prevention and detection both do their job. That is exactly what breach and attack simulation is for: run the abuse in a controlled test, watch what your stack catches, and close the gaps before someone else finds them.
EVENT ID 4662

Password reads

With a SACL on the LAPS password attribute, every retrieval logs a 4662 naming the account and object. This is your primary signal for both legitimate and malicious reads: baseline the normal helpdesk pattern, then alert on the outliers.

EVENT ID 5136

ACL changes on OUs

A new ACE granting read or extended rights on a computer OU is how an attacker backdoors LAPS for persistence. 5136 on the OU's nTSecurityDescriptor catches the grant as it happens, before any password is pulled.

LAPS/OPERATIONAL

Client-side health

Microsoft-Windows-LAPS/Operational records policy processing, updates, and post-auth resets on each endpoint. Forward it: a host that stops updating has fallen out of coverage, and that is where the shared-secret risk creeps back in.

4728 / 4732 / 4756

Readers-group changes

Additions to the delegated LAPS readers group expand who can pull every password in scope. Alert on membership changes to that group specifically: it should change rarely and only through change control.

The short version

A shared local administrator password is what turns one compromised host into all of them; LAPS gives every machine a unique, rotating password and takes that propagation step away. Legacy LAPS solves reuse but stores the password in cleartext; Windows LAPS solves both, encrypting the secret to a named decryptor and rotating it after use, so deploy that one. The residual risk is not the crypto, it is the access control: scope read rights to one small group, watch the ACLs and the reads (4662, 5136, the LAPS operational log), constrain where local admins can log on, and test that all of it holds. Do that, and the key that used to open the whole building opens exactly one door.

Coming up in this series

LAPS closed the local-admin reuse path. Each remaining post takes a single Windows credential-protection control through the same lens: what breaks when it is off, exactly how an attacker abuses that gap, and how to turn the control on and keep it on, each with its own lab walkthrough and detections.

  1. Cached logons & DCSync: MSCache/DCC2 exposure, replication-rights abuse, and locking down the last credential stores.
  2. Kerberoasting & delegation: Weak service-account secrets and unconstrained delegation, from the offensive test to the hardening.

Sources & Further Reading Microsoft, Local Administrator Password Solution (LAPS) and Windows LAPS documentation
Microsoft Download Center, Local Administrator Password Solution (LAPS) (legacy MSI & operations guide)
Microsoft Learn, Windows LAPS overview, Configure Windows LAPS, and Windows LAPS event log reference
HackTricks and The Hacker Recipes, Reading LAPS passwords / ReadLAPSPassword (attack-surface reference)
Hacking Articles, Credential Dumping: LAPS; NetSPI, Running LAPS Around Cleartext Passwords
SentinelOne and Truesec, LAPS security assessment and hardening
MITRE ATT&CK: T1078 (Valid Accounts), T1550.002 (Pass-the-Hash), T1098 (Account Manipulation: ACL persistence)

Everything shown here was performed in an isolated lab we own, for defensive research and authorised testing. Don't run it anywhere you don't have explicit permission to.

More from the Blog

Threat Intelligence Nov 29, 2026

The Build-Pipeline Backdoor: Inside the NullReceiver Supply-Chain Campaign

Read More
Deception Nov 29, 2026

Lying to the Machines: The Secret Weapon Against AI Attacks

Read More
Agentic Security Nov 24, 2026

Your AI Coding Agents Need an EDR Too: Introducing cADRe

Read More