Credits¶
LAPSLens started as LAPS for macOS at The Pennsylvania State University (2018–2021, versions 0.5–2.0). Thank you to Penn State for the start, and to everyone who has helped since.
LAPSLens 3.0 is a ground-up rewrite by Joshua D. Miller, with Claude. The original 2.0 app remains available at tag 2.0.0(515).
- Sister project: macOSLAPS, which also started at Penn State. macOSLAPS writes the password; LAPSLens reads it. The CI's Samba AD domain controller provisioning is shared with macOSLAPS.
- Encrypted Windows LAPS: LAPSLens decrypts
msLAPS-EncryptedPasswordon a Mac thanks to people who worked out what Microsoft's specs leave out. Our code follows Microsoft's [MS-GKDI], [MS-RPCE] and [MS-ADA2] specs, cross-checked against their work: - dpapi-ng by Jordan Borean (MIT): a complete non-Windows implementation of
NCryptUnprotectSecret. It is our main reference for the blob format, the RPC client, key derivation and DH/ECDH. Its Windows-made test blobs are our test vectors:Spec/vectors/windows-laps-encrypted.json, licence inSpec/vectors/LICENSE-dpapi-ng.txt. Some byte-level RPC test expectations come from its test suite. - Grzegorz Tworek (@0gtweet) and Michał Grzegorzewski, credited by dpapi-ng for access to the tool that revealed how Windows derives the key-encryption key for public-key blobs (the undocumented SP800-56A step).
- impacket (
GetLAPSPassword.py,dpapi_ng.py,gkdi.py): an independent implementation we checked against. It's where the UTF-16 plaintext layout is easiest to see. - Adam Chester (@xpn), "LAPSv2 Internals": a detailed write-up of how Windows LAPS encryption works.
- go-msrpc (MIT): a third implementation of the GKDI
ISDKeyinterface, used for cross-checking. - LAPS4LINUX by schorschii: an existing Linux/macOS LAPS client that showed admins want this outside Windows. GPLv3, so no code was taken from it.
- Other LAPS projects whose ideas shaped LAPSLens: Microsoft's legacy LAPS and Windows LAPS, and the many community macOS LAPS tools (LAPSforMac and others).