Add SeMachineAccountPrivilege to maq module#1083
Open
serwiz wants to merge 7 commits intoPennyw0rth:mainfrom
Open
Add SeMachineAccountPrivilege to maq module#1083serwiz wants to merge 7 commits intoPennyw0rth:mainfrom
serwiz wants to merge 7 commits intoPennyw0rth:mainfrom
Conversation
Collaborator
|
Nice addition |
Member
|
Looks cool, thanks for the PR! Probably the better way to integrate the GPO parsing. |
|
Hey ! Really nice, good trick to enumerate which GPO is relevant, I will close my PR since yours looks perfect. |
13 tasks
mpgn
previously approved these changes
Feb 6, 2026
Member
|
This looks like it breaks on the first GPO it found with the privilege. We should probably iterate through all existing GPOs and check if there are multiple occurrences, so we don't miss any. |
Author
Collaborator
|
Interesting, could be usefull to get the level of the GPO |
Author
|
Since the current scope only includes GPOs linked to the Domain Controllers OU,
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
I recently spent some time working on SeMachineAccountPrivilege enumeration, following the discussion and initial work introduced in PR #1029 by @Blatzy.
Based on that, I’m proposing this PR, which integrates the check directly into the MAQ module and makes it especially useful during internal penetration tests.
The idea is to keep everything dynamic and reliable, by:
This avoids hardcoded assumptions and provides a clearer picture of how the privilege is actually configured on Domain Controllers.
Type of change
Setup guide for the review
The feature relies on:
Screenshots:
Debug
Checklist:
poetry run python -m ruff check . --preview, use--fixto automatically fix what it can)tests/e2e_commands.txtfile if necessary (new modules or features are required to be added to the e2e tests)