Cleaning an MBR rootkit: a practical walkthrough for Windows users
A Master Boot Record rootkit hides in the first sector of your hard drive, rewriting the program that loads your operating system. That code runs before Windows starts, so ordinary security software often sees nothing wrong. The infection can hand control to hidden code, mask other malware, or refuse to boot.
In Australia, home users often notice something is off when their Melbourne laptop takes an extra minute to reach the desktop, or when a Perth tradie finds the "Repair your computer" option appears on its own. The Australian Cyber Security Centre has documented MBR-level threats reaching local machines, often through pirated software or fake driver updates.
Standard real-time scanners struggle here because the payload is outside the file system. A signature in the boot sector looks like normal disk geometry to a scanner that only reads files. Cleanup has to happen from outside Windows, using bootable media and low-level repair commands.
The walkthrough below covers how to spot the infection, what you need before you start, and the sequence to wipe the malicious code, rebuild a clean MBR, and confirm the system is safe. The same principles apply whether you are on a home PC in Brisbane or managing laptops for a small business in Adelaide.
| Tool |
Best for |
Bootable |
Needs internet |
| Windows Recovery Environment |
Rebuilding MBR with bootrec |
Yes |
No |
| Kaspersky Rescue Disk |
Offline scanning of rootkits |
Yes |
Optional |
| TDSSKiller |
MBR or bootkit detection |
No |
No |
| Bootable antivirus ISO |
Cleaning stubborn boot sector malware |
Yes |
Recommended |
Spotting the warning signs
The first hint is often a change in boot behaviour. You might see a new bootloader menu that was not there before, or a brief flash of unfamiliar text before the Windows logo appears. Some MBR rootkits show a fake "Windows is loading files" message that looks normal but takes longer.
Other symptoms include task manager showing disk activity at 100% immediately after boot, even with no programs open. Antivirus software may refuse to start, or close itself a few seconds after opening. These are classic signs that something is intercepting the boot process.
A few users in Sydney have reported their trackpads becoming unresponsive for the first few minutes after logging in, which turned out to be a rootkit throttling input drivers. If you notice multiple oddities stacking up, treat the machine as compromised rather than fixing individual symptoms.
Building a clean working environment
You cannot clean an MBR infection from inside the same operating system that is infected. Download a Windows installation media creation tool on a different, trusted computer, or use the built-in recovery partition if your manufacturer left one. Create a USB drive with at least 8GB free, then boot the affected machine from it.
Gather these items before you start:
- A blank USB drive of 8GB or larger for the recovery media.
- A second, trusted computer with internet access.
- The infected machine, powered off and unplugged from the network.
Before touching the infected disk, disconnect it from the network. Pull the Ethernet cable, disable Wi-Fi from the BIOS, and remove any USB peripherals you do not need. This stops the rootkit from calling home or pulling down extra payloads while you work.
It is also worth photographing any ransom notes, fake alerts, or error messages. Local IT shops in Canberra and Hobart often rely on these screenshots to identify the strain and check whether a decryptor is available through the ransomware response resources maintained by the security community.
Rebuilding the Master Boot Record
Boot into the Windows Recovery Environment and choose Command Prompt. From there, the bootrec tool handles most of the heavy lifting. Run bootrec /fixmbr to write a clean Master Boot Record over the infected one, then bootrec /fixboot to repair the boot sector, and finally bootrec /rebuildbcd to rebuild the Boot Configuration Data.
If the system refuses these commands, the rootkit may have marked the partition as inactive. Tools like diskpart can set the correct one active. Selecting the wrong disk can leave the machine unbootable, and a local technician may charge several hundred Australian dollars to recover.
After the MBR is rewritten, reboot once and check whether Windows loads normally. If it does, you are only halfway done. The rootkit may have dropped a secondary payload inside Windows, which is why a full offline scan comes next.
Running an offline rootkit scan
Boot the machine from a rescue disk such as Kaspersky Rescue or any reputable bootable antivirus ISO. These environments mount a clean Linux-based system and scan the Windows partition without the malware running, so the rootkit cannot hide.
Run a full scan rather than a quick one. MBR rootkits often drop companion files in System32 or hidden partitions. If the rescue environment offers a "detect bootkits" option, enable it explicitly.
While the machine is offline, check for other threats. A common companion to MBR rootkits is a password-stealing trojan that rides in on the same drive-by. The browser password stealer removal walkthrough covers that cleanup if your scan flags anything similar.
Locking the system down after cleanup
Once the scan is clean and Windows boots normally, change every password you have used on that machine, especially email, banking, and social media. Treat any credential stored on the infected system as exposed, because the rootkit may have logged keystrokes before removal.
Turn on Secure Boot in the UEFI firmware if your hardware supports it. Secure Boot verifies the bootloader signature and refuses to load tampered code, which blocks most MBR-level attacks. Also, enable BitLocker or Device Encryption on the system drive to protect the boot chain.
Keep a regular backup schedule on an external drive that you only connect when backing up. Australian small businesses have learned that an always-connected network share can be encrypted by ransomware within minutes of a rootkit reappearing.
Final checks worth running before you call the job done:
- Confirm Windows Update is fully patched, including optional driver updates.
- Verify that the BIOS or UEFI firmware itself is up to date.
- Re-run your primary antivirus from inside Windows to confirm no residual processes.
- Monitor boot time over the next few days for any return of the original slowdown.
A clean MBR is not just a repaired disk. It restores a chain of trust that lets your operating system load verified code, the foundation of every other security measure on the machine.