Home › Knowledgebase › KB-289

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.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

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:

If you suspect a rootkit, avoid logging into banking, email, or any account containing sensitive information until the system is cleaned. Consider using a separate, known-clean device for important transactions in the meantime.

Before You Begin

Preparation helps prevent data loss and ensures you can recover if something goes wrong during the cleanup process.

  1. 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 .exe or .dll) as these may carry the infection. Be cautious when backing up user profile data or documents that may contain malicious macros.
  2. 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.
  3. 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.
  4. Gather your tools. You will need a second device with internet access to download the removal tools below onto a USB drive.
Do not reconnect your backup drive to the infected PC after copying files until you have confirmed the system is clean, as this may infect your backup media.

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.

  1. Press Win + I to open Settings.
  2. Navigate to System > Recovery (Windows 11) or Update & Security > Recovery (Windows 10).
  3. Under Advanced Startup, click Restart now.
  4. After restart, choose Troubleshoot > Advanced options > Startup Settings > Restart.
  5. Press 5 or F5 for Safe Mode with Networking.
If you cannot access Safe Mode, interrupt the normal boot process three times (turn the PC off as Windows starts) to trigger the Windows Recovery Environment, then navigate to Troubleshoot > Advanced options > Startup Settings.

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.

  1. In Safe Mode, press Win + S and type Windows Security, then press Enter.
  2. Click Virus & threat protection.
  3. Under Current threats, click Scan options.
  4. Select Microsoft Defender Offline scan and click Scan now.
  5. Your PC will restart and perform the scan before Windows loads. Allow the process to complete.
If Microsoft Defender Offline will not launch, download the tool onto a USB drive from a clean device using the Microsoft Defender Offline installer, then boot the infected PC from that USB drive.

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.

Only download these tools from their official websites. Never install "free antivirus" software advertised through pop-ups or unknown links, as many are themselves malware.

Step 4: Run a Dedicated Rootkit Scanner

Rootkits hide at a deeper level than standard malware, so specialised tools are often required.

  1. Download Kaspersky TDSSKiller or Malwarebytes Premium onto a USB drive from a clean device.
  2. Transfer and run the tool on the infected PC in Safe Mode.
  3. Follow the prompts to perform a full scan.
  4. Allow the tool to remove or quarantine any rootkits detected.
  5. 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.

  1. Press Ctrl + Shift + Esc to open Task Manager.
  2. Go to the Startup tab and disable any unfamiliar entries. Note the file path before disabling.
  3. Press Win + R, type taskschd.msc, and press Enter.
  4. 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.
  5. 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.

Editing the registry incorrectly can cause Windows to fail to start. This step is advanced. If you are not comfortable editing the registry, skip to Step 7 and perform a clean reinstall instead.
  1. Press Win + R, type regedit, and press Enter.
  2. Navigate to each of the following keys and review the entries on the right-hand pane:
  1. Research any unfamiliar values using their file paths before deleting them. If unsure, export the key first as a backup.
Always export a backup of any key before making changes, and only delete entries you can confidently identify as malicious.

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.

  1. Go to Settings > System > Recovery (Windows 11) or Settings > Update & Security > Recovery (Windows 10).
  2. Click Reset PC next to Reset this PC.
  3. Choose Remove everything for the deepest clean. Keep my files is less thorough and not recommended for suspected rootkit infections.
  4. Choose Local reinstall or Cloud download. Cloud download is preferred as it retrieves a fresh Windows image.
  5. If prompted, select Change settings and ensure Clean data is turned On. This makes data recovery more difficult for malware.
  6. Click Confirm, then Next, and finally Reset.
  7. 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.

This process deletes all files, programmes, and settings on the selected drive. Back up your critical data to an external drive first, and disconnect that drive after the backup is complete.
  1. 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.
  2. 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, or Del) to select the USB drive as the boot device. You may need to enter the BIOS/UEFI settings to change the boot order.
  3. Start Windows Setup. Select your language, time, and keyboard preferences, then click Next. Click Install now.
  4. Enter your product key if prompted, or click I don't have a product key to activate Windows later.
  5. Select the edition of Windows that matches your licence, then click Next. Accept the licence terms.
  6. Choose Custom: Install Windows only (advanced).
  7. 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.
  8. Select the Unallocated space and click Next. Windows will create the necessary partitions and install.
  9. Allow the installation to complete. The PC will restart several times. Follow the on-screen prompts to set up Windows.
If you suspect a bootkit or firmware-level infection, consult our support team before proceeding. Some advanced threats can persist in the BIOS/UEFI and may require a firmware update or reflash by a qualified technician.

Step 8: Post-Recovery Security Steps

After the system is clean or freshly installed, take the following steps before resuming normal use.

  1. 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.
  2. Do not reconnect to the network yet. Keep the recovered PC offline until it is fully patched and protected.
  3. Enable Windows Defender. Open Windows Security, go to Virus & threat protection, and ensure real-time protection is turned on.
  4. 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.
  5. Reinstall only trusted software. Download programmes from official vendor websites only. Avoid pirated software or unknown freeware.
  6. 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.
  7. 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 you are part of a business network (domain, shared drives, server access), inform your IT support team immediately. The infection may have spread to other systems or accessed network resources.

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?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket