Removing a keylogger that steals passwords from login forms
A keylogger is malware that records keystrokes and may capture usernames, passwords, messages, search terms, and payment details. Some variants monitor browser forms directly, while others save keystrokes locally and send them to a remote operator. Because the theft happens silently, an infected computer may appear normal during everyday use.
If you suspect this type of spyware, avoid signing in to email, banking, social media, or cryptocurrency accounts on the affected device. Use a different, trusted computer or phone to change important passwords and enable multifactor authentication. This limits further account access while you investigate the infection.
Removing the malicious program is only part of the response. You should also check startup locations, browser extensions, scheduled tasks, and recent downloads, then review your accounts for unfamiliar activity. The steps below apply primarily to Windows and include related checks for Mac users.
Disconnect the device and protect your accounts
Disconnect the computer from Wi-Fi or unplug its network cable before beginning cleanup. This can interrupt communication between the keylogger and its command server, although it cannot undo credentials that were already transmitted. Do not connect external drives or enter new passwords until the system has been scanned.
From a separate, trusted device, change the password for your primary email account first. Email access can allow an attacker to reset other passwords. Continue with banking, shopping, work, cloud storage, and social accounts, using unique passwords for each service. Activate an authenticator app or hardware security key where available, and sign out other active sessions.
Run a full malware scan
Start with the security software already installed on the system. In Windows Security, open Virus & threat protection, update protection definitions, and run a Full scan. If the scan cannot start, detects a threat but cannot remove it, or Windows behaves abnormally, use Microsoft Defender Offline from the same area. It restarts the computer and scans before the usual Windows environment loads.
A second-opinion scanner from a reputable security vendor can identify spyware that the first tool missed. Download it only from the vendor’s official website, not from advertisements or file-sharing pages. On macOS, use an updated security application and review installed profiles, login items, and applications for anything unfamiliar. Never install a supposed “keylogger remover” that demands payment before scanning or displays aggressive fake warnings.
Inspect browser extensions and persistence points
A password-stealing keylogger may arrive alongside adware, a cracked application, or a malicious browser add-on. Remove extensions you do not recognize from Chrome, Firefox, Edge, or Safari, especially those with broad permissions to read browsing data. If unwanted advertisements, redirects, or search changes remain, follow this browser cleanup guide for additional browser and system checks.
In Windows, review Settings > Apps > Installed apps and uninstall recently added software that has no clear purpose. Check Task Manager > Startup apps, Task Scheduler, and common startup folders for suspicious entries. Do not delete system files at random; research the file name and its location, and create a restore point before making manual changes. On a Mac, inspect System Settings > General > Login Items and remove unknown background items after confirming they are not required by legitimate software.
| Warning sign |
What it may indicate |
Safe response |
| Unknown extension with broad permissions |
Browser monitoring or credential theft |
Remove it, then reset the browser |
| New startup item or scheduled task |
Persistence after reboot |
Disable it and scan the referenced file |
| Security tools suddenly disabled |
Tampering by malware |
Run an offline or second-opinion scan |
| Repeated account login alerts |
Stolen credentials or session abuse |
Change passwords and revoke sessions |
| Slowdowns after installing a cracked app |
Trojan or bundled spyware |
Uninstall it and perform a full scan |
Remove the infection without losing evidence
If security software identifies a keylogger, quarantine it rather than manually opening or modifying the flagged file. Record the detection name, file path, and scan date. This information can help with later research or incident reporting. Restart the computer after removal and run another scan to check whether the threat returns.
Persistent infections may restore themselves through another component. If the detection reappears, boot Windows into Safe Mode with Networking only when needed for a trusted scanner, then repeat the scan. Disconnect the network again afterward. For severe or uncertain cases, back up personal documents after scanning them and consider resetting Windows or reinstalling the operating system. A clean installation is more reliable than repeatedly deleting individual files when system integrity is in doubt.
Check for stolen passwords and related damage
Review sign-in history, account recovery settings, email forwarding rules, and newly created users. Attackers may create an additional recovery method or application token instead of changing the visible password. Revoke unfamiliar sessions, connected apps, API keys, and saved browser passwords. Contact your bank or payment provider immediately if financial details were entered while the computer was infected.
A keylogger can coexist with ransomware, remote-access trojans, or information stealers. If files were renamed or encrypted, avoid paying or downloading random “decryptors.” Preserve copies of affected files and review specialist recovery information, including this Dharma decryptor guidance, before taking action. Keep the original encrypted files unchanged because future recovery options may depend on them.
Reduce the chance of reinfection
A clean device can become infected again through the same download, extension, or stolen account. Keep the operating system, browsers, security software, and commonly used applications updated. Download programs from official sources, avoid pirated software and key generators, and inspect installer screens for bundled offers. Use a standard user account for everyday activity instead of an administrator account whenever practical.
Adopt habits that make credential theft less useful. A password manager can generate unique passwords, while multifactor authentication can block access even if a password is captured. Back up important files to a disconnected or versioned location, and test that backups can be restored.
Practical safeguards to apply now
- Change passwords from a separate, trusted device, starting with email.
- Enable multifactor authentication for important accounts.
- Remove unknown browser extensions, applications, startup items, and login items.
- Run an updated full scan followed by an offline or second-opinion scan if necessary.
- Monitor account alerts, payment activity, and active sessions for several weeks.
If you find signs of credential theft, treat every password entered on the device as exposed. Isolate the computer, complete the cleanup carefully, and secure the affected accounts from a trusted device today.