Why this module exists. Before LAPS, the canonical AD post-exploitation move was: dump the local Administrator hash from any workstation, then Pass-the-Hash to every other workstation in the estate. LAPS killed that move by making each machine’s password independent. But LAPS adoption is incomplete in Indian enterprises (typically 60-80% coverage in audits) and the ACLs around the LAPS attribute are routinely misconfigured. This module is the practical guide.
What LAPS actually is — two generations
“LAPS” today means two related but distinct products:
- Legacy LAPS (originally released 2015): client-side .msi installed on each managed machine; the password is stored in clear text in the
ms-Mcs-AdmPwdattribute on the computer object. ACLs on that attribute control who can read. - Windows LAPS (built into Windows 10/11 and Server 2019+ since April 2023 KB): client-side functionality baked into the OS; password stored encrypted (DPAPI-NG with a designated decryptor) in
msLAPS-EncryptedPassword, optionally with password history inmsLAPS-EncryptedPasswordHistory.
Many estates run a hybrid for ~2 years during migration. Hybrid estates are the highest-risk because admins forget the legacy attributes still exist on older machines.
How the protection works
The LAPS client (or built-in Windows LAPS) randomises the local Administrator password on a schedule (default 30 days, configurable) and writes the new value into AD. To read the password, a principal needs Read permission on the ms-Mcs-AdmPwd (legacy) or msLAPS-EncryptedPassword (modern) attribute on the target computer object. By default, this read permission is granted only to specific delegated principals.
Bypass 1: ACL misconfiguration on the attribute
The most common LAPS bypass is not really a “bypass” — it is the defender granting read permission too broadly. We have seen all of these in Indian enterprise audits:
- Read granted to
Domain Users. Every authenticated user can read every LAPS password in the OU. Found in 4 of the last 20 audits. - Read granted to a help-desk group that includes 200+ members, several of whom no longer need the role. The group has not been pruned.
- Read inherited from a parent OU. The IT OU has read for IT admins; the OU was reparented under a partner OU; partner admins now read everything.
Enumerate who can read LAPS attributes:
# PowerShell with RSAT — find every principal with read on ms-Mcs-AdmPwd
$ou = "OU=Workstations,DC=corp,DC=local"
Get-Acl "AD:\$ou" | Select-Object -ExpandProperty Access |
Where-Object { $_.ObjectType -eq [guid]'PROPERTY-SET-OR-ATTRIBUTE-GUID-HERE' -and
$_.AccessControlType -eq 'Allow' } |
Select-Object IdentityReference,ActiveDirectoryRights
# Modern Windows LAPS:
Find-LapsADExtendedRights -Identity $ou
# Anything other than the designated reader group is suspect.
Bypass 2: writing your own LAPS
If an attacker has WriteProperty on the LAPS attribute (rare but real — over-delegated OU admins sometimes have this), they can set a known password directly. They then trigger a local Administrator login with the known password, and they have local admin on that machine.
The control here is to ensure only the LAPS client itself (running as SYSTEM on the target machine) has WriteProperty on its own LAPS attribute. Helpdesk roles should have Read only, never Write.
Bypass 3: LAPS-not-deployed coverage gaps
The most common gap, by far. Estates report “we use LAPS” but the deployment script ran on the 2018 Windows 10 build and never re-ran on machines re-imaged after that. Or LAPS targets only the corporate OU and a separate “Servers” OU was never covered. Enumerate machines with no LAPS attribute set:
# Modern Windows LAPS — find computer objects without an encrypted password set
Get-ADComputer -Filter * -Properties msLAPS-EncryptedPassword,LastLogonDate |
Where-Object { -not $_.'msLAPS-EncryptedPassword' -and $_.LastLogonDate -gt (Get-Date).AddDays(-30) } |
Select-Object Name,LastLogonDate
# Active machines without LAPS coverage are the priority gap.
# Stale machines (last logon >90 days) should be tombstoned, not "fixed".
Bypass 4: extracting from a domain controller backup
If an attacker reaches any DC’s NTDS.dit (or an offline backup), they can extract every LAPS password as part of the AD database. Modern Windows LAPS encrypts at rest with DPAPI-NG, but the decryption key is stored in the configuration directory — accessible to anyone with DA on the forest. This is one of the reasons LAPS is a Tier-1 control, not a Tier-0 control: a forest compromise reads every machine’s password trivially.
Bypass 5: the help-desk member with too-broad read
If a help-desk technician has LAPS read on the entire Workstations OU, they can pull every password and store them outside AD. A disgruntled offboarding scenario or an account-compromise of that technician’s account becomes a fleet-wide compromise. Limit help-desk read to the minimum scope that satisfies the operational need — for example, by site OU rather than by domain.
Detection
- Audit reads on the LAPS attribute. Enable Directory Service Access auditing on the OU containing computer objects; event 4662 with the LAPS attribute GUID shows every read. Volume is the diagnostic — the baseline is help-desk usage; spikes are investigation triggers.
- Anomalous reader identity. A service account that reads 200 LAPS passwords in 5 minutes is the canonical alert. Correlate against the principal’s normal pattern.
- BloodHound CE surfaces “Can Read LAPS Password” as an edge from any principal with the right to any computer object. The shortest-path query “from Domain Users to a high-value computer” exposes the attack surface.
Deployment hardening checklist
- Modern Windows LAPS, not legacy LAPS. Migrate any 2015-era deployment.
- Password length: 20+ characters. Default 14 is too short for resistance against future brute-force on a captured hash.
- Rotation interval: 24 hours, not 30 days. Frequent rotation limits the value of a stolen password.
- Read delegation: a single, named, frequently-reviewed group per OU. No
Domain Users, no global help-desk group spanning multiple business units. - Audit reads: SIEM rule on event 4662 with the LAPS attribute GUID, alerting on volume anomalies.
- Coverage check: weekly script that lists machines with no LAPS password set and last-logon within 30 days. Drive that count to zero.
- Server LAPS: yes, deploy on servers too. The classic mistake is “LAPS is for workstations.” Tier-1 server fleet is one of the highest-value targets.
What about Azure / Entra-joined machines?
Windows LAPS supports Azure AD / Entra ID-joined machines as of November 2023. The password is stored on the device object in Entra ID instead of in AD. The read permission model uses Microsoft Graph API rather than LDAP. Same threat model, different ACL surface — audit Graph API permissions for the relevant scope (Device.Read.All and the LAPS-specific scopes).
Key takeaways
- LAPS turns “same local admin password on every machine” into “unique password per machine, stored in AD.”
- The most common bypass is not technical — it is ACL misconfiguration granting read too broadly.
- Modern Windows LAPS (built into the OS) replaces the legacy .msi installer; hybrid estates are the highest risk.
- Coverage gaps are routine: re-imaged machines that missed the deployment, server OUs that were never targeted.
- Audit reads of the LAPS attribute; volume anomalies are the alert.
Get a VAPT scoping call
Senior practitioner-led VAPT — not a checklist run by juniors. CVSS-scored findings, free retest, attestation letter. India's SMBs and SaaS teams.