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

Added dpapi command for NAA credential extraction. #30

Merged
merged 2 commits into from
Dec 4, 2023

Conversation

RalphDesmangles
Copy link
Contributor

@RalphDesmangles RalphDesmangles commented Dec 4, 2023

This pull request introduces the dpapi command to sccmhunter, aimed at extracting NAA (Network Access Account) credentials from DPAPI encrypted blobs.

Edge Cases Tested:

  • Successful extraction with Domain Admin (DA) Credentials.
  • Successful extraction with Local Admin Credentials.
  • Successful extraction with direct user password input.
  • Successful extraction with LM and NT hashes.

Limitations / Edge Cases Not Tested:

  • Kerberos Authentication has not been tested.
  • Scenarios where multiple SCCM credentials are available have not been explored.

Additional Notes:

This update is particularly beneficial in environments where the MachineAccountQuota (MAQ) is set to 0, and traditional extraction methods like leveraging SCCM's HTTP API are not viable. The dpapi command offers an alternative approach for accessing necessary credentials in such constrained settings.

@RalphDesmangles
Copy link
Contributor Author

Example Usage:
sccmhunter_dpapi

@garrettfoster13
Copy link
Owner

Very, very excited about this @RalphDesmangles it's been on my whiteboard for awhile. I'll run through some tests this afternoon.

@garrettfoster13
Copy link
Owner

Ran through testing and everything worked perfectly. Thanks again for the PR!

@garrettfoster13 garrettfoster13 merged commit 325eb61 into garrettfoster13:main Dec 4, 2023
garrettfoster13 added a commit that referenced this pull request Jul 24, 2024
Added dpapi command for NAA credential extraction.
garrettfoster13 added a commit that referenced this pull request Jul 24, 2024
Added dpapi command for NAA credential extraction.
garrettfoster13 added a commit that referenced this pull request Jul 25, 2024
Added dpapi command for NAA credential extraction.
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