Malware & ransomware

How Do You Remove a Keylogger? Detect, Remove and Recover

A keylogger records every keystroke, so removal is only half the job. Here is how to find it, remove it safely and recover your accounts afterwards.

Cysoro Security TeamPublished · 8 min read
password123hunter2 ••••card 4111 •••• Every keystroke logged MALWARE & RANSOMWARE Remove a keylogger Find it. Remove it. Reset.
Quick answer

To remove a keylogger, disconnect from the internet, boot into Safe Mode, run a full scan with reputable anti-malware software, uninstall suspicious programs, remove unknown browser extensions, disable suspicious startup entries and physically check your keyboard cable for a hardware logger. Then change all passwords from a clean device, starting with email and banking, and turn on multi-factor authentication.

Key takeaways

  • A software keylogger hides in startup entries, processes and browser extensions; a hardware keylogger hides in the keyboard cable.
  • Remove it in Safe Mode with a full anti-malware scan, then check startup entries and extensions by hand.
  • Assume every password typed while the logger ran is compromised — change them from a clean device.

A keylogger records every keystroke you type: passwords, messages, card numbers and search terms. Removing the logger is urgent, but it is only half the job — anything you typed while it ran may already be in someone else's hands.

What is a keylogger?

A keylogger is software or hardware that records what you type and sends it to an attacker, or stores it for later collection. It is a form of spyware, and it is often installed alongside other malware.

Software keyloggers run as a program, a browser extension or a driver. They use the same operating system functions as accessibility software to receive a copy of every keyboard event, which makes them hard to spot. More advanced ones run at the kernel level, inside the core of the operating system, before security software can look.

Hardware keyloggers are different: a small plug sits between a USB keyboard and the computer, or a module is built into a keyboard or cable. They leave no trace in the operating system at all, and no antivirus can see them. The only test is a physical one.

Keyloggers arrive through phishing attachments, malicious downloads, compromised software, infected USB drives and, in workplaces or shared homes, physical access to the machine. Knowing how they arrive helps you prevent the next one.

How do you know if you have a keylogger?

No single sign proves you have a keylogger, but several together should make you investigate. Look for lagging keystrokes, a slow browser, a disappearing cursor, or a mouse that moves oddly on its own.

Check your accounts too. Logins you did not make, password reset emails you did not request, and sent messages you did not write are stronger evidence than a slow computer, because a keylogger's real goal is your accounts.

Other warning signs include unknown processes in Task Manager, unfamiliar startup programs, new browser extensions, new programs in your installed apps list, and your security software being disabled without your action.

Do not panic at one symptom. A slow browser alone is usually just a slow browser. But if you see two or three of these signs together, treat it as a possible infection and work through the detection steps below.

CheckWindowsMac
Running processesTask Manager (Ctrl+Shift+Esc)Activity Monitor
Startup programsTask Manager, Startup tabSystem Settings, Login Items
Keyboard permissionNo single permission listInput Monitoring and Accessibility lists
Browser extensionsExtension manager in each browserExtension manager in each browser
Deep scan toolsAutoruns and TCPView (Sysinternals)Built-in permission lists plus a scan

Avast's keylogger detection guide recommends the same manual checks alongside a full antivirus scan.

Two kinds of keylogger, two kinds of check Software keylogger • Runs as a program, driver or browser extension • Found in Task Manager, startup entries, extensions, scans • Removed by anti-malware Hardware keylogger • Small plug between keyboard and computer, or in a cable • No trace in the operating system • Antivirus cannot see it • Found only by looking Check both: a scan will never find a hardware logger.
Software keyloggers hide in the system; hardware keyloggers hide in the cable. Check both. Illustration by Cysoro.

How do you detect a keylogger on Windows?

On Windows, a software keylogger has to start with the system and usually has to send what it records somewhere, so check what starts automatically, what talks to the internet, and which processes are running.

Press Ctrl+Shift+Esc to open Task Manager, then look at the Processes tab for unfamiliar programs using CPU or memory. Right-click a suspicious process and choose Search online to research it. Do not end processes at random: ending a real system process can crash your session, and on a PC with more than one signed-in session, more than one winlogon.exe is normal.

Next, check the Startup tab in Task Manager and disable anything you do not recognize. Then open Settings, Apps, Installed apps and look for programs you do not remember installing, especially ones installed recently.

For a deeper check, use Microsoft's free Sysinternals tools. Autoruns shows every startup entry on the system, and TCPView shows which programs are talking to the internet. Both are more thorough than Task Manager alone.

Finally, check your browsers. Keyloggers often hide as extensions, so open the extension manager in every browser you use and remove anything you did not deliberately install. If you are unsure whether your phone is affected too, read our guide on how to know if your phone is hacked.

How do you detect a keylogger on a Mac?

On a Mac, the check is simpler because macOS asks permission before an app can read keystrokes. Open System Settings, Privacy and Security, and look at the Input Monitoring and Accessibility lists.

Any app in those lists can monitor your keyboard, mouse or trackpad. If you see an app you do not recognize, or an app that has no business reading keystrokes, remove it from the list and uninstall it.

Also open Activity Monitor from Finder, Applications, Utilities, and research anything unfamiliar. Check System Settings, General, Login Items for programs that start at login, and review your browser extensions the same way as on Windows.

Macs are not immune to keyloggers, but the permission system gives you a short list to check, which is a real advantage over Windows. Keep macOS updated, because updates close the holes that malware uses to get in.

How do you remove a keylogger?

Work through these steps in order. Do not log in to banking or email from the infected machine until the logger is gone, because anything you type may be recorded.

  1. Disconnect from the internet. Unplug the network cable or turn off Wi-Fi. This stops the logger sending what it has already recorded.
  2. Boot into Safe Mode. On Windows, hold Shift while clicking Restart, then go to Troubleshoot, Advanced Options, Startup Settings, Restart, and choose Safe Mode. Most malware does not load in Safe Mode.
  3. Run a full anti-malware scan in Safe Mode. Use your primary security software plus a second scanner, because different tools detect different threats. Guardio's guide to keylogger removal also recommends scanning in Safe Mode, where the logger cannot defend itself.
  4. Uninstall suspicious programs. Remove anything you do not recognize from Settings, Apps, Installed apps on Windows, or Applications on a Mac.
  5. Remove suspicious browser extensions in every browser on the device, not just your main one.
  6. Clean up startup entries. Disable or delete any suspicious startup programs found during your investigation.
  7. Check for a hardware logger. Follow the keyboard cable from the keyboard to the port and look for anything between the plug and the port that you did not put there.
  8. Restart normally and scan again. Run one more full scan after restarting to confirm the logger is gone.

If the logger keeps coming back after scans and manual removal, it may be a kernel-level rootkit. In that case, back up your personal files, reinstall the operating system from clean media, and restore only documents, not programs. A clean reinstall is the most reliable fix for a persistent infection.

Do not type passwords on the infected machineUntil the logger is gone, assume every keystroke is recorded. Use a different, clean device for any password change or banking task.

What should you do after removing a keylogger?

Removal is only the first step, because your credentials may already be stolen. Assume every password typed while the logger ran is compromised, and change them from a different, clean device.

Start with email, because email is the key to resetting almost every other account. Then change banking, payment apps, social media, work accounts and cloud storage. Use a password manager to create a unique, strong password for each account, and never reuse a password across accounts.

Turn on multi-factor authentication everywhere it is offered, preferably with an authenticator app or a security key rather than SMS codes. Check your email account for new mail-forwarding rules, unknown devices and changed recovery addresses, because attackers often set these up to keep access after a password change.

Check whether your passwords already appear in known breaches with our free pwned password checker, and generate new ones with a password generator. If money was stolen, report it to your bank immediately and file a report at ic3.gov. The FBI received 191,561 phishing complaints in 2025, and total reported cybercrime losses reached about $20.9 billion, so you are far from alone.

Recovery checklist: change these first 1 Email — it resets everything elseCheck forwarding rules and unknown devices 2 Banking and payment appsCheck recent transactions for anything you did not make 3 Work, cloud storage and social mediaUse unique passwords and turn on multi-factor authentication 4 Everything else, from a clean deviceNever type a new password on the infected machine
Change passwords in priority order, from a clean device, after the keylogger is gone. Illustration by Cysoro.

How do you prevent a keylogger in the future?

Prevention is mostly about the same habits that stop other malware. Keep your operating system and browser updated, because updates close the holes malware uses to get in. Use reputable anti-malware software and keep it running.

Be careful with downloads and attachments. Do not open attachments from unexpected emails, do not download software from unofficial sites, and do not plug in USB drives you found or were given. Most keyloggers arrive through one of these routes.

Use a password manager with autofill. A password manager types nothing, so a keylogger cannot record the password it fills in — though it can still record anything you type by hand, so autofill is a help, not a guarantee.

On shared or public computers, check the keyboard cable before you type a password, and never log in to banking or email on a machine you do not trust. At home, secure your Wi-Fi network so attackers cannot reach your devices through it in the first place.

Finally, review your installed programs, startup entries and browser extensions every few months. A five-minute check catches a logger early, before it has recorded months of passwords.

What about keyloggers on phones?

Keyloggers on phones are less common than on computers, but they exist, usually as spyware apps installed by someone with physical access to the phone. The signs are similar: battery draining fast, the phone running hot, unfamiliar apps, and data usage that jumps without explanation.

On Android, check Settings, Apps for applications you do not recognize, and review which apps have accessibility permissions, since a keylogger needs those to read keystrokes. On iPhone, check Settings, General, VPN and Device Management for configuration profiles you did not install, and review Screen Time for apps you do not remember using.

If you suspect a phone keylogger, a factory reset is the most reliable removal method. Back up your photos and contacts first, reset the phone, and reinstall only apps you recognize. Then change your passwords from a different device, just as you would after a computer infection.

The bottom line

To remove a keylogger, disconnect from the internet, boot into Safe Mode, run a full anti-malware scan, remove suspicious programs and extensions, clean up startup entries, and check the keyboard cable for a hardware logger.

Then change every password from a clean device, starting with email and banking, and turn on multi-factor authentication. You can check whether a password already appears in known breaches with the free pwned password checker.

Frequently asked questions

What is a keylogger?

A keylogger is software or hardware that records what you type, including passwords, messages and card numbers. Software keyloggers run as a program or browser extension, while hardware keyloggers are small plugs between a keyboard and a computer.

How do I know if I have a keylogger?

Common signs are lagging keystrokes, a slow browser, a disappearing cursor, unknown processes in Task Manager, unfamiliar startup programs, new browser extensions and accounts showing logins you did not make. No single sign proves it, so check several places.

Can antivirus remove a keylogger?

Yes, reputable anti-malware software can detect and remove most software keyloggers, especially when run in Safe Mode. Kernel-level loggers and hardware loggers are harder: the first may need a clean reinstall, and the second can only be found by physical inspection.

How do I check for a hardware keylogger?

Follow the keyboard cable from the keyboard to the computer. Anything between the plug and the port that you did not put there is suspect. On a laptop, check for an unfamiliar USB device and look at the keyboard for anything unusual.

Should I change my passwords after removing a keylogger?

Yes. Assume every password typed while the logger was running is compromised. Change them from a different, clean device, starting with email and banking, and use a password manager to create unique passwords for each account.

Can a keylogger infect a phone?

Yes, though it is less common. On Android, check Settings and Apps for applications you do not recognize. On iPhone, check Settings, General, and VPN and Device Management for configuration profiles you did not install. A factory reset is the most reliable removal method on a phone.

Is it legal to install a keylogger?

Installing a keylogger on a device you do not own, or that someone else uses, without their knowledge breaks wiretap, computer misuse or privacy laws in many countries, including the US federal Wiretap Act. This guide covers finding keyloggers on your own devices only.

What if the keylogger keeps coming back?

If scans and manual removal do not clear it, back up your personal files, then reinstall the operating system from clean media and restore only documents, not programs. A persistent logger may be a kernel-level rootkit that only a clean reinstall reliably removes.

Sources

  1. Avast — How to Detect and Remove a Keylogger
  2. Guardio — What Is a Keylogger? Signs and How to Remove It
  3. BreachSense — Keylogger Detection: How to Find and Remove Keystroke Loggers
  4. Reviewed by Pro — How to Detect a Keylogger on Windows and Mac, and Remove It
  5. FBI Internet Crime Complaint Center — 2025 IC3 Annual Report
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against detection and removal guides from Avast, Guardio, BreachSense and Reviewed by Pro, and FBI IC3 2025 complaint figures.

How we write and fact-check →

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free