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

Check if ResolveAccountName returns a value #90

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

nurfed1
Copy link
Contributor

@nurfed1 nurfed1 commented Dec 23, 2023

The GPOLocalGroup processor crashes when ResolveAccountName fails to resolve the member name and this stops processing for the GPO entirely.
One such case I've seen is when the group name has a format like PT0-%ComputerName%-LocalAdmin.

Ideally it would be great if some process variables such as %ComputerName% and %DomainName% could be resolved by sharphound, but I don't see a clean way to implement this.
But at least we can prevent a crash and print a warning.

@rvazarkar
Copy link
Contributor

Thanks for the MR, I spent some time trying to track this down but couldn't repro it locally

@rvazarkar rvazarkar merged commit f5f191a into SpecterOps:v3 Jan 19, 2024
2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants