How HWID Spoofers Work: A Technical Deep Dive into Hardware ID Spoofing
Deep technical explanation of how HWID spoofers modify hardware identifiers at the kernel level using IOCTL hooking, registry manipulation, and disk filter drivers.
By SensePublished
How HWID Spoofers Work
An HWID spoofer is a kernel-level tool that modifies the hardware identifiers your computer reports to software, including anti-cheat systems. When an anti-cheat queries your disk serial number, MAC address, or motherboard ID, the spoofer intercepts the query and returns a modified value. The anti-cheat receives what appears to be a legitimate hardware identifier from a different machine.
Understanding how spoofers work requires understanding how Windows reports hardware identifiers and where in that chain a spoofer can intervene.
How Windows Reports Hardware IDs
When software queries a hardware identifier, it typically follows this path:
- User-mode application calls a Windows API function (e.g.,
GetVolumeInformationfor volume serial numbers, or sends an IOCTL throughDeviceIoControl). - The request passes through the I/O Manager in the kernel.
- The I/O Manager routes the request to the appropriate device driver (disk driver, network driver, etc.).
- The driver communicates with the hardware and returns the identifier.
- The response travels back up the stack to the application.
A spoofer can intercept at several points in this chain:
IOCTL Hooking
The most common spoofing technique hooks the IOCTL (I/O Control) dispatch routines of device drivers. When software sends an IOCTL to query a hardware serial number, the spoofer's hook intercepts the response:
Disk serial numbers: The spoofer hooks the disk driver's IRP_MJ_DEVICE_CONTROL handler. When an IOCTL like IOCTL_STORAGE_QUERY_PROPERTY or IOCTL_DISK_GET_DRIVE_GEOMETRY_EX is processed, the spoofer modifies the serial number string in the response before it reaches the caller.
Network MAC addresses: The spoofer hooks the network adapter driver's IOCTL handler. When OID_802_3_PERMANENT_ADDRESS or OID_802_3_CURRENT_ADDRESS is queried, the spoofer returns a modified MAC address.
The hook is typically installed by patching the driver's dispatch table (the array of function pointers that handle different IRP types) to point to the spoofer's own handler function.
Registry Manipulation
Many hardware identifiers are cached in the Windows registry. Anti-cheats that read identifiers from the registry rather than querying hardware directly can be spoofed by modifying these registry values:
Machine GUID: Stored at HKLM\SOFTWARE\Microsoft\Cryptography\MachineGuid. Changing this value changes one of the most commonly used machine identifiers.
Network adapter addresses: Stored under HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}. Each adapter has a NetworkAddress value that can override the hardware MAC.
Disk identifiers: Volume serial numbers and disk signatures are stored in various registry locations under HKLM\SYSTEM\MountedDevices and disk-related keys.
Disk Filter Drivers
A more sophisticated approach installs a filter driver in the disk driver stack. This filter driver sits between the filesystem and the actual disk driver, intercepting all I/O requests:
How it works: The filter driver registers itself in the device stack above the disk driver. All disk IOCTLs pass through the filter before reaching the real driver (or after the driver responds). The filter modifies serial number responses transparently.
Advantages: Filter drivers are part of the normal Windows driver architecture and appear legitimate to the system. They can modify responses at a lower level than simple hook patches.
SMBIOS Spoofing: Some identifiers come from the System Management BIOS (SMBIOS) tables in firmware. These include motherboard serial numbers, system UUID, BIOS version, and manufacturer information. Spoofers can modify these by hooking the functions that read SMBIOS data (GetSystemFirmwareTable) or by patching the SMBIOS data in kernel memory after Windows has loaded it.
GPU Serial Spoofing
GPU identifiers are queried through the display driver. Spoofers hook the GPU driver's IOCTL handlers or modify the data structures that the driver uses to report GPU information. This includes:
- GPU serial numbers
- Device instance identifiers
- Driver-reported unique IDs
What Makes a Good Spoofer
A comprehensive HWID spoofer must modify all of these identifiers simultaneously:
- Disk serial numbers (all drives, through IOCTL hooks)
- MAC addresses (all adapters, through NDIS hooks)
- Motherboard/BIOS serials (through SMBIOS data modification)
- GPU identifiers (through display driver hooks)
- Volume serial numbers (through filesystem hooks)
- Machine GUID and other registry values (through registry manipulation)
- CPU serial data (where applicable)
Missing any single identifier can allow the anti-cheat to link the new account to the banned hardware through the unchanged identifier.
Sense AC's Approach
Sense AC's HWID spoofer operates as a kernel-mode driver that comprehensively modifies all major hardware identifiers. By hooking at the driver level, it intercepts hardware queries before they reach the anti-cheat's kernel driver, ensuring that the anti-cheat receives consistent, modified identifiers regardless of how it queries the hardware.
The spoofer generates randomized but realistic-looking identifiers that do not match any entries in ban databases, presenting the machine as a completely new device to anti-cheat systems.