How it works
Microsoft Configuration Manager (SCCM, MECM) can be given a network access account (NAA): a domain account that clients use to read content from a distribution point when they cannot authenticate with their own computer account. That covers workgroup machines, computers from untrusted domains and machines in the middle of an operating system deployment. The site has to hand this account's name and password to the clients that might need it, and it does so in machine policy.
Three properties turn that design into credential theft:
- Every client gets the secret. The
NAAConfigpolicy is not limited to machines that need it. Any approved client of the site can download it from the management point. - The protection is reversible. In transit the secret is obfuscated in a way the client can undo, and public tooling undoes it too. At rest the client stores it in the
CCM_NetworkAccessAccountclass of theroot\ccm\policy\Machine\ActualConfigWMI namespace, encrypted with DPAPI under the SYSTEM master key. A local administrator can reach that key. - Becoming a client is cheap. By default the site approves registration requests from computers in trusted domains automatically and does not require PKI client certificates. A domain user who can create a computer account (the default
ms-DS-MachineAccountQuotais 10) can register a device that does not exist and ask for its policy.
The same policy channel also carries task sequences and collection variables, which often hold domain join accounts, local administrator passwords and other secrets. The tools below pull all three.
There are three variants:
- Policy request from a fake client. Create or reuse a computer account, register a new device with the management point, request the secret policies and deobfuscate them.
- Local dump over WMI. On a client where the attacker is already local administrator, read the DPAPI blobs from WMI and decrypt them with the SYSTEM master key.
- Old secrets from disk. WMI data lives in
C:\Windows\System32\wbem\Repository\OBJECTS.DATA. Deleted policy objects can stay in that file, so an account that was the NAA years ago may still be recoverable after the site stopped using it.
The value of the result depends on how the account was set up. Microsoft's guidance is a dedicated account with read access to content only. In practice the NAA is frequently an over-permissioned service account: a local administrator on servers, a Configuration Manager full administrator, or a member of Domain Admins.
Prerequisites
For the policy request variant:
- Network access to a management point over HTTP or HTTPS.
- The password or hash of a domain computer account, or the right to create one.
- A site that approves clients from trusted domains automatically and does not require PKI certificates for client authentication. Both are default settings.
For the local variants:
- Local administrator rights on a computer that is, or once was, a client of the site.
For either to pay off, the site must have a network access account configured now or in the past, or secrets in task sequences and collection variables.
Attack steps
For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.
1. Find the site
Management points are published in Active Directory, so any domain user can find them:
python3 sccmhunter.py find -u alice -p 'Password1!' -d corp.example.com -dc-ip 192.0.2.10
On a client, the management point and site code are in the local WMI repository, and SharpSCCM reads them by default.
2. Request policy as a new client
From a domain-joined Windows host, create a computer account and let SharpSCCM register a device with it:
# Powermad: add a computer account (prompts for its password)
Import-Module .\Powermad.psm1
New-MachineAccount -MachineAccount WS99
# Register "newdevice" as a client, request the secret policies, decrypt them
.\SharpSCCM.exe get secrets -r newdevice -u WS99$ -p 'ComputerPassw0rd!'
The output lists NetworkAccessUsername and NetworkAccessPassword, followed by any task sequence and collection variable secrets.
From Linux, sccmhunter creates the computer account, registers and requests the policy in one run:
python3 sccmhunter.py http -u alice -p 'Password1!' -d corp.example.com -dc-ip 192.0.2.10 -auto
SCCMSecrets does the same with an existing computer account and also saves every secret policy it finds:
python3 SCCMSecrets.py policies -mp http://sccm01.corp.example.com -u 'WS99$' -p 'ComputerPassw0rd!' -cn 'newdevice'
Policies are tied to collections. A new device lands only in the default collections, so it sees the NAA and the secrets deployed there. To read policies targeted at a specific collection, SCCMSecrets can impersonate a real client whose registration key was taken from a compromised machine (--use-existing-device).
3. Dump the secrets from a client
With local administrator rights on a client, no registration is needed:
# Secrets the client holds now (WMI)
.\SharpSCCM.exe local secrets -m wmi
# Secrets still in the CIM repository file, including deleted ones
.\SharpSCCM.exe local secrets -m disk
To check by hand whether a client holds an NAA, and whether the repository file has leftover blobs:
Get-WmiObject -Namespace 'root\ccm\policy\Machine\ActualConfig' -Class 'CCM_NetworkAccessAccount'
.\SharpDPAPI.exe search /type:file /path:C:\Windows\System32\wbem\Repository\OBJECTS.DATA
Each <PolicySecret> value is a DPAPI blob that SharpDPAPI decrypts once it has the SYSTEM master keys (SharpDPAPI.exe machinetriage).
4. Use the account
The recovered credential is an ordinary domain account. The attacker signs in with it, enumerates the directory, and uses whatever rights it was given.
Impact
At minimum the attacker moves from "local administrator on one workstation" or "any domain user" to a second domain identity whose password does not expire with the user's session. Because the account is shared by the whole site, one recovery works everywhere.
When the account is over-privileged, the step is much larger: local administrator on distribution points and other servers, Configuration Manager administration (which leads to code execution on every client, see SCCM application deployment), or direct domain administration. Secrets in task sequences add domain join accounts and local administrator passwords.
The same policy can also be obtained with no domain account at all through PXE boot and task sequence media.
OPSEC and artifacts
- Reusing an existing computer account instead of creating one avoids event 4741 on the domain controller. The registration still creates a new device record in the site.
- Registration leaves a device behind. Each fake client is a record in the Configuration Manager console with a name the operator chose, an approval entry, and registration lines in
MP_RegistrationManager.logon the management point. A standard user cannot delete the record afterwards. - Policy requests look like client traffic. They arrive at the management point's IIS site (
/ccm_system/request, then/SMS_MP/.sms_pol?...) like any other client request. What stands out is the source: a request for secret policy from an address that is not a managed workstation, or a device that registers, pulls policy once and never reports inventory. - The local WMI variant reads a WMI namespace and, in SharpSCCM's default mode, temporarily changes the permissions on the
SECURITY\Policy\Secrets\DPAPI_SYSTEMregistry key and reverts them. The-soption uses token duplication to become SYSTEM instead. Either way the tool runs as a process on the host and appears in event 4688 and in EDR telemetry. - The disk variant only reads
OBJECTS.DATA, a file that is always in use by the WMI service. - Using the account is the loud part. The NAA exists to make network logons to distribution points. A sign-in anywhere else, or an interactive logon, is out of character.
Detection
- Treat the NAA as a tripwire. Its only job is reading content from distribution points. Alert on any event 4624 for that account on a host that is not a distribution point, on any interactive or remote interactive logon, and on Kerberos or NTLM authentication for it from a source that is not a client in the middle of content download.
- Computer accounts created by ordinary users, especially just before a new client registration. The computer account creation rules cover the directory side.
- Device records that never become real clients: registered, approved, policy requested, then no hardware inventory and no heartbeat. Review them in the console and against
MP_RegistrationManager.log. - Local dumping: process creation for tools that query
CCM_NetworkAccessAccount, permission changes on the LSA secrets registry keys, and non-system processes reading the WMI repository file.
// Network access account used anywhere except the distribution points
let NAA = "svc-sccm-naa";
let DistributionPoints = dynamic(["SRV01", "SRV02"]);
SecurityEvent
| where EventID == 4624 and TargetUserName =~ NAA
| extend Host = tostring(split(Computer, ".")[0])
| where Host !in~ (DistributionPoints) or LogonType != 3
| project TimeGenerated, Computer, TargetDomainName, TargetUserName, LogonType,
IpAddress, AuthenticationPackageName
Replace the account and host names with your own. The policy request itself is hard to tell from normal client activity with standard logging, which is why the rules above concentrate on how the account is used afterwards.
Mitigation
- Stop using the network access account. With HTTPS or Enhanced HTTP, clients reach distribution points without it. Check the exceptions Microsoft documents for operating system deployment, then remove the account from the site.
- Retire it in two steps. Removing the account from the site does not erase the copies clients already hold. After clients have refreshed their policy, change the old account's password or disable it in Active Directory.
- If the account must stay, make it a dedicated account with read access to content and the right to access the distribution point from the network. No interactive logon, no local administrator rights, no Configuration Manager role, no privileged group. See how to secure Active Directory service accounts and the principle of least privilege.
- Keep secrets out of task sequences and collection variables where a supported alternative exists, and rotate the ones that have been there.
- Make registration harder. Require PKI certificates for client authentication, or switch client approval to manual for computers that are not expected.
- Set
ms-DS-MachineAccountQuotato 0 so that ordinary users cannot create the computer account the policy request needs. The MachineAccountQuota guide walks through the change. - Limit local administrator rights on clients. Every client is a place where the credential can be decrypted.
Detection rules for this attack
Log events to collect
FAQ
What is the SCCM network access account used for?
Clients use it to read content from a distribution point when they cannot use their own computer account: workgroup computers, computers from untrusted domains, and machines in the middle of an operating system deployment that have no domain identity yet. It needs read access to content and nothing else.
Who can recover the network access account password?
A local administrator on any client that received the policy can decrypt it from WMI or from the CIM repository on disk. Where the site approves clients automatically and does not require PKI client certificates, any domain user who can create a computer account can register a fake client and request the same policy from the management point.
Does removing the network access account from the site fix it?
Not by itself. Clients that already received the credential can keep a copy, and old values can remain in the CIM repository file on disk after the WMI object is gone. Remove the account from the site and then change or disable its password in Active Directory, so that every stored copy stops working.
Is the network access account still needed with Enhanced HTTP?
For most content access, no. With HTTPS or Enhanced HTTP, clients reach distribution points without it. Microsoft documents a few exceptions, mostly in operating system deployment, so check those task sequences before retiring the account.
References
- Accounts used in Configuration Manager: network access account (Microsoft Learn)
- Enhanced HTTP (Microsoft Learn)
- Credentials from Password Stores, T1555 (MITRE ATT&CK)
- Valid Accounts: Domain Accounts, T1078.002 (MITRE ATT&CK)
- Misconfiguration Manager: CRED-2, request computer policy and deobfuscate secrets
- Misconfiguration Manager: CRED-3, dump currently deployed secrets via WMI
- Misconfiguration Manager: CRED-4, retrieve legacy secrets from the CIM repository
- SharpSCCM wiki: get secrets and local secrets
- Unobfuscating Network Access Accounts (Adam Chester)
Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.