How to recognise and remove a rootkit or persistent malware from your Windows PC
Summary
This guide helps you troubleshoot and resolve: How to recognise and remove a rootkit or persistent malware from your Windows PC. Follow the steps below to fix the issue.
Common Causes
Rootkits and persistent malware are among the most difficult threats to detect and remove from a Windows PC. Unlike standard viruses, they are designed to hide deep within your operating system, often surviving regular antivirus scans and even reinstalling themselves after removal. This guide walks you through recognising the signs of a deep infection, removing it using trusted tools, and securing your system afterwards. If at any point you feel unsure or the infection appears to be spreading, stop and Open a Ticket with our support team for assistance.
Signs Your PC May Be Infected
Persistent malware and rootkits often produce subtle symptoms that can be mistaken for hardware issues or software conflicts. Watch for any combination of the following:
- Unexplained slow performance, especially during startup or when opening files
- Unusual network activity even when no programmes are running (check your router lights or data usage)
- Disabled or unresponsive antivirus software that will not re-enable
- Unknown processes visible in Task Manager that cannot be terminated
- Browser redirects, persistent pop-ups, or a changed default search engine that reverts after you fix it
- Files or folders appearing, disappearing, or becoming inaccessible without your action
- Windows Defender or Microsoft Defender reporting repeated infections it cannot quarantine
- Unexpected system reboots or blue screen errors
Before You Begin
Preparation helps prevent data loss and ensures you can recover if something goes wrong during the cleanup process.
- Back up critical files. Copy important documents, photos, and data to an external drive or a reputable cloud service. Do not back up executable files (such as
.exeor.dll) as these may carry the infection. Be cautious when backing up user profile data or documents that may contain malicious macros. - Disconnect from the network. Unplug the Ethernet cable or turn off Wi-Fi to stop the malware communicating with remote servers. If the PC is part of a business network, disconnecting it prevents the infection from spreading to shared drives, servers, or other workstations.
- Note your passwords. Have a list of your important account credentials ready, as you will need to change them from a clean device after cleanup.
- Gather your tools. You will need a second device with internet access to download the removal tools below onto a USB drive.
Step-by-Step Removal Process
Step 1: Boot Into Safe Mode with Networking
Safe Mode loads Windows with only essential drivers and services, which prevents most malware from starting.
- Press
Win + Ito open Settings. - Navigate to System > Recovery (Windows 11) or Update & Security > Recovery (Windows 10).
- Under Advanced Startup, click Restart now.
- After restart, choose Troubleshoot > Advanced options > Startup Settings > Restart.
- Press
5orF5for Safe Mode with Networking.
Step 2: Run a Full Scan with Microsoft Defender Offline
Microsoft Defender Offline runs outside the normal Windows environment, which makes it far more effective against rootkits.
- In Safe Mode, press
Win + Sand type Windows Security, then press Enter. - Click Virus & threat protection.
- Under Current threats, click Scan options.
- Select Microsoft Defender Offline scan and click Scan now.
- Your PC will restart and perform the scan before Windows loads. Allow the process to complete.
Step 3: Use a Second-Opinion Malware Scanner
No single antivirus engine catches everything. Running a reputable second scanner helps identify threats Defender may have missed.
- Malwarebytes Free — Download from the official site onto a USB drive, transfer it to the infected PC, install, and run a Full Scan. Quarantine everything it finds.
- ESET Online Scanner — A browser-based alternative that does not require installation. Run a full scan and review the results.
- HitmanPro — Useful for detecting persistent threats. Run a default scan and remove flagged items.
Step 4: Run a Dedicated Rootkit Scanner
Rootkits hide at a deeper level than standard malware, so specialised tools are often required.
- Download Kaspersky TDSSKiller or Malwarebytes Premium onto a USB drive from a clean device.
- Transfer and run the tool on the infected PC in Safe Mode.
- Follow the prompts to perform a full scan.
- Allow the tool to remove or quarantine any rootkits detected.
- Restart the PC when prompted.
Step 5: Check Startup Items and Scheduled Tasks
Persistent malware often reinstalls itself through scheduled tasks or startup entries. Removing the infection is only half the battle — you must also remove its persistence mechanisms.
- Press
Ctrl + Shift + Escto open Task Manager. - Go to the Startup tab and disable any unfamiliar entries. Note the file path before disabling.
- Press
Win + R, typetaskschd.msc, and press Enter. - Review the Task Scheduler Library for any tasks you did not create. Pay particular attention to tasks that run at logon or with elevated privileges.
- Delete any suspicious tasks by right-clicking and selecting Delete.
Step 6: Inspect Registry Run Keys
Malware frequently adds itself to registry locations that launch automatically.
- Press
Win + R, typeregedit, and press Enter. - Navigate to each of the following keys and review the entries on the right-hand pane:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
- Research any unfamiliar values using their file paths before deleting them. If unsure, export the key first as a backup.
Step 7: Reset or Reinstall Windows if Needed
If the infection persists after all the above steps, or if you cannot be certain the system is clean, a clean reinstallation is the most reliable option. For a confirmed rootkit, wiping and reinstalling Windows is often more reliable than attempting to clean the infection, as rootkits can survive standard reset procedures and may persist in the BIOS/UEFI firmware or boot sector (bootkits).
Option A: Reset This PC
Use this option if you want to attempt keeping Windows installed while removing applications and settings.
- Go to Settings > System > Recovery (Windows 11) or Settings > Update & Security > Recovery (Windows 10).
- Click Reset PC next to Reset this PC.
- Choose Remove everything for the deepest clean. Keep my files is less thorough and not recommended for suspected rootkit infections.
- Choose Local reinstall or Cloud download. Cloud download is preferred as it retrieves a fresh Windows image.
- If prompted, select Change settings and ensure Clean data is turned On. This makes data recovery more difficult for malware.
- Click Confirm, then Next, and finally Reset.
- Windows will restart several times. Allow the process to complete without interruption.
Option B: Clean Reinstall (Format and Reinstall Windows)
This is the most certain way to remove a rootkit. It erases everything on the drive and installs a fresh copy of Windows.
- Create installation media. On a second, clean device, download the Windows Media Creation Tool from the official Microsoft website. Run it and follow the prompts to create a bootable USB flash drive (at least 8 GB) for Windows 10 or Windows 11.
- Boot from the USB drive. Insert the USB drive into the infected PC. Restart the PC and press the boot menu key for your manufacturer (commonly
F12,F10,F2,Esc, orDel) to select the USB drive as the boot device. You may need to enter the BIOS/UEFI settings to change the boot order. - Start Windows Setup. Select your language, time, and keyboard preferences, then click Next. Click Install now.
- Enter your product key if prompted, or click I don't have a product key to activate Windows later.
- Select the edition of Windows that matches your licence, then click Next. Accept the licence terms.
- Choose Custom: Install Windows only (advanced).
- Delete partitions. Select each partition on the drive where Windows is installed (usually
Drive 0) and click Delete until only Unallocated space remains. This removes hidden partitions where malware can hide. - Select the Unallocated space and click Next. Windows will create the necessary partitions and install.
- Allow the installation to complete. The PC will restart several times. Follow the on-screen prompts to set up Windows.
Step 8: Post-Recovery Security Steps
After the system is clean or freshly installed, take the following steps before resuming normal use.
- Change all passwords from a clean device. Using your second device or another known-clean PC, change passwords for email, banking, business applications, and any accounts accessed on the infected machine. Do not change passwords on the recovered PC until it is fully updated and secured.
- Do not reconnect to the network yet. Keep the recovered PC offline until it is fully patched and protected.
- Enable Windows Defender. Open Windows Security, go to Virus & threat protection, and ensure real-time protection is turned on.
- Run Windows Update. Go to Settings > Windows Update (Windows 11) or Settings > Update & Security > Windows Update (Windows 10). Check for updates, install all available updates, and restart if required. Repeat until no further updates are found.
- Reinstall only trusted software. Download programmes from official vendor websites only. Avoid pirated software or unknown freeware.
- Restore documents safely. Scan your backed-up files with antivirus software before copying them back to the recovered PC. Be especially cautious with documents containing macros (
.docm,.xlsm) and executable files. - Reconnect to the business network last. Once the system is clean, updated, and protected, reconnect to your office network and shared drives. If the infected PC had access to a server or shared folders, notify your IT administrator so those locations can be checked for signs of infection.
If the infection returns after following these steps, or if you are unable to complete the clean reinstall, stop and Open a Ticket with our support team for further assistance.
Still Having Issues?
💻 Open a Ticket