Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only look up SIDs as found in logs #4

Merged
merged 6 commits into from
Feb 19, 2022

Conversation

theaquamarine
Copy link
Contributor

Get-CimInstance Win32_Account can be very slow, so start by delaying it until Get-WDACApplockerScriptMsiEvent or Get-WDACCodeIntegrityEvent is used rather than doing it at module import.
I then switched to only looking up SIDs as they were found in the logs rather than looking up all domain accounts to save time, since generally only a relatively small number of accounts appear in the logs.

Can take a while, so wait until a function that uses them is run,
rather than looking up at module load. Could also look up SIDs on
demand rather than the whole domain at once.
Getting all accounts can be slow, and often only a small number of
accounts show up in the logs.
Copy link
Owner

@mattifestation mattifestation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is awesome. Thank you so much for taking the time to think this through, implement it, and submit the PR, @theaquamarine!

@mattifestation mattifestation merged commit 6625cf3 into mattifestation:master Feb 19, 2022
@theaquamarine theaquamarine deleted the usermapping branch February 19, 2022 19:49
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.

2 participants