Skip to content

feat: add LAPSv2 support for haslaps detection#58

Open
ashley4234 wants to merge 1 commit intocoffeegist:mainfrom
ashley4234:feature/windows-laps-v2-support
Open

feat: add LAPSv2 support for haslaps detection#58
ashley4234 wants to merge 1 commit intocoffeegist:mainfrom
ashley4234:feature/windows-laps-v2-support

Conversation

@ashley4234
Copy link
Copy Markdown

@coffeegist
Hello, thank you for the great project.

Summary

  • Add msLAPS-PasswordExpirationTime (Windows LAPS / LAPSv2) attribute to COMMON_PROPERTIES and haslaps detection logic.
  • Previously, only Legacy LAPS (ms-Mcs-AdmPwdExpirationTime) was checked, causing haslaps to be False in modern environments.
  • This fix ensures that ReadLAPSPassword edges are correctly generated in BloodHound, as the ACL processing in adds.py already supports LAPSv2 GUIDs.

Test plan

  • Verified that existing LAPSv1 (Legacy) detection still functions correctly.
  • Confirmed haslaps=True when only the LAPSv2 attribute is present on a computer object.
  • python -m pytest tests/ad/models/test_bloodhound_computer.py -v

@ashley4234 ashley4234 changed the title feat: add LAPSv2 (Windows LAPS) support for haslaps detection feat: add LAPSv2 support for haslaps detection Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant