Overview
Theget naa command retrieves and decrypts Network Access Account (NAA) credentials from SCCM. NAAs are domain accounts used by SCCM clients to access distribution points when the computer account cannot be used.
Syntax
Parameters
The FQDN or NetBIOS name of the SCCM Management Point server
The three-character site code of the SCCM site
The client name to impersonate (defaults to current machine)
Output file path for saving credentials (optional)
Examples
Output Format
The command outputs discovered NAA credentials in the following format:Technical Details
How NAA Extraction Works
How NAA Extraction Works
- Policy Request: SharpSCCM requests machine policy from the Management Point
- Policy Parsing: Identifies policies containing NAA configurations
- DPAPI Decryption: Uses DPAPI to decrypt the credentials blob
- Credential Extraction: Parses the decrypted data to extract plaintext credentials
Detection Opportunities
Detection Opportunities
Security teams can detect NAA extraction attempts by monitoring for:
- Unusual policy requests from client machines
- DPAPI decryption events related to SCCM
- Access to NAA-related WMI classes
- Network traffic to Management Points from unexpected sources
Common Issues
Access Denied
Access Denied
Error:
Access denied when requesting policySolution: Ensure you’re running from a domain-joined machine with SCCM client installedNo NAA Found
No NAA Found
Error:
No Network Access Account found in policiesSolution: The site may be using Enhanced HTTP or may not have NAAs configuredDecryption Failed
Decryption Failed
Error:
Failed to decrypt NAA credentialsSolution: You may not have the necessary DPAPI keys. Try running as SYSTEM or with elevated privilegesSecurity Recommendations
1
Enable Enhanced HTTP
Configure Enhanced HTTP to eliminate the need for Network Access Accounts
2
Use Least Privilege
If NAAs are required, use accounts with minimal permissions - only read access to distribution points
3
Regular Rotation
Rotate NAA passwords regularly and monitor for unauthorized access
4
Monitor Usage
Set up alerts for NAA authentication from unexpected sources
Related Commands
get collection-variables- Extract collection variablesget task-sequences- Get task sequence credentialsshow naa- Display NAA configuration without decryption