Overview
The sccm command extracts and decrypts Microsoft SCCM (System Center Configuration Manager) Network Access Account (NAA) credentials from WMI. When elevated on an SCCM client machine, it retrieves the DPAPI_SYSTEM secret and decrypts the stored NAA credentials.SCCM Network Access Accounts are domain credentials used by clients to access distribution points. These accounts often have elevated privileges in the environment.
Basic Usage
Requirements
1
SCCM Client
Target machine must be an SCCM client with the Configuration Manager client installed
2
Network Access Account
SCCM environment must be configured with a Network Access Account
3
Elevation
Must run with Administrator or SYSTEM privileges
How It Works
1
WMI Query
Queries WMI for SCCM policy containing NAA credential blobs:
2
DPAPI_SYSTEM Retrieval
Elevates to SYSTEM and retrieves DPAPI_SYSTEM LSA secret
3
Masterkey Decryption
Uses DPAPI_SYSTEM to decrypt system masterkeys
4
Credential Decryption
Decrypts Network Access Account credentials using masterkeys
What Are SCCM Network Access Accounts?
SCCM Network Access Accounts (NAA) are used by client machines to:Content Access
Content Access
- Access distribution points for software packages
- Download OS deployment images
- Retrieve application content
- Access task sequences
Client Communication
Client Communication
- Authenticate to SCCM infrastructure
- Access management points
- Communicate with distribution points
- Download policies and updates
Deployment Operations
Deployment Operations
- OS deployment operations
- Software distribution
- Update management
- Application deployment
NAA credentials are typically domain accounts with access to distribution points and potentially other network resources.
Example Output
Why Target SCCM NAA?
Privileged Access
NAA accounts often have elevated privileges for accessing network resources
Lateral Movement
Credentials work across SCCM infrastructure and distribution points
Persistence
Credentials rarely change and work indefinitely
Wide Deployment
Present on all SCCM client machines in the environment
Common Scenarios
Initial Access to SCCM Environment
Initial Access to SCCM Environment
After compromising an SCCM client:
Privilege Escalation via SCCM
Privilege Escalation via SCCM
Discover privileged accounts through SCCM:
Systematic SCCM Client Enumeration
Systematic SCCM Client Enumeration
Extract credentials from multiple SCCM clients:
Finding SCCM Clients
Identify SCCM client machines: Registry Check:SCCM Infrastructure Components
Understanding SCCM infrastructure helps maximize the value of NAA credentials: Distribution Points:- Content storage locations
- Software package repositories
- NAA credentials provide access
- Client communication endpoints
- Policy distribution
- Status reporting
- Central SCCM administration
- Database servers
- May be accessible with NAA credentials
Detection Considerations
Host-Based Indicators:- Elevation to SYSTEM privileges
- LSA secret retrieval (DPAPI_SYSTEM)
- WMI queries to SCCM namespaces
- Access to CCM policy data
- SharpDPAPI.exe process execution
- Monitor WMI queries to SCCM namespaces
- Alert on DPAPI_SYSTEM secret access
- Track SYSTEM privilege elevation
- Detect SharpDPAPI or similar tool execution
- Monitor unusual process accessing WMI SCCM data
Related Commands
machinemasterkeys
Extract machine masterkeys (uses same DPAPI_SYSTEM)
machinetriage
Comprehensive machine DPAPI triage
machinecredentials
Extract machine credential files
backupkey
Retrieve domain backup key
Tips
Maximizing SCCM Exploitation
Maximizing SCCM Exploitation
- Target workstations and servers with SCCM client
- NAA credentials often work across entire SCCM infrastructure
- Test NAA credentials against distribution points
- Check for multiple NAA accounts (different sites)
- Correlate with SCCM infrastructure mapping
OPSEC Considerations
OPSEC Considerations
- Requires elevation (high visibility)
- SYSTEM privilege elevation generates events
- WMI queries may be logged
- LSA secret access triggers alerts
- Consider timing and frequency of extraction
Troubleshooting
Troubleshooting
No NAA found:
- SCCM environment may not be configured with NAA
- Machine may not be SCCM client
- NAA may not be cached on this client
- Check WMI namespace manually
- Need Administrator privileges
- UAC may block elevation
- AV/EDR may prevent SYSTEM elevation
- Security policy may restrict access
- Verify SCCM client installation
- Check CcmExec service status
- Confirm CCM directory exists
- Machine may not be managed by SCCM
Manual SCCM NAA Extraction
Alternative PowerShell method:SCCM Lateral Movement
After obtaining NAA credentials:1
Enumerate SCCM Infrastructure
2
Test NAA Access
3
Access SCCM Shares
Additional Resources
SCCM Security
Learn about SCCM security best practices and hardening Network Access Accounts