guides-resources

Keylogger: What It Does and How to Find It (Hardware and Software)

Keylogger: What It Does and How to Find It (Hardware and Software)

How a keylogger works and what it is, hardware and software, how to recognize it on Windows and what the law says, from the FTC case against the SpyFone app.

  • Posted on 2026-10-12
  • Reading time: 5 min

Keylogger: What It Is, How It Works, and How to Find Out #

A keylogger is a software or hardware device that records keyboard input, hidden from the user. It's probably the most direct form of digital surveillance available: depending on the implementation, it can capture credentials, messages, and other typed data. It's not necessarily necessary to interpret network traffic or decipher behavior; often, reading the victim's typing is enough.

In short: a keylogger records every keystroke on a device, without the user's knowledge. It can be software installed as part of spyware or a Trojan , or a small hardware device physically connected between the keyboard and the computer.

How a Keylogger Works #

The principle is the same for each variant: intercept input before or as it's processed by the system, record it in a local log, and exfiltrate it —sending it to a remote server, immediately or at intervals. The point of interception varies: a software keylogger inserts itself between the keyboard and applications at the operating system level (sometimes deeper, at the kernel level, to be more difficult to detect); a hardware keylogger intercepts the electrical signal before it even reaches the computer, which is why no software—including antivirus—can see it.

Keylogger Software vs Hardware #

SoftwareHardware
How to installExecutable, often via Trojan or infected downloadPhysical adapter (USB, PS/2), modified HID device, or altered firmware/internal component
Detectable with antivirus/EDRPossible, if the signature is knownGenerally no — it's not code on the operating system
Requires physical accessNot necessarilyGenerally yes
Where it saves dataLocal file or remote sending over networkInternal memory of the device, or sending via network if equipped with Wi-Fi

The most important practical difference is that a hardware keylogger is almost never detectable by security software, no matter how up-to-date it is: it's not code running on the system; it's independent electronics. The only way to detect it is by physically checking the cables, ports, and—in the most sophisticated cases—the internal components, something that in practice almost no one ever does on a computer they use every day.

Where Keylogger Software Usually Hides #

A keylogger rarely comes alone: ​​it's almost always integrated into a larger piece of malware, or disguised as a seemingly innocuous browser extension —an often overlooked vector because extensions appear more "secure" than a downloaded executable, yet they still have access to everything you type in your browser. Banking Trojans use it to capture credentials entered during online banking; many Remote Access Trojans (RATs) include it as standard, along with webcam and microphone monitoring; and stalkerware apps — marketed as "parental control" tools but often used to monitor partners or family members without consent—integrate keylogging as one of their core functions, installed with direct physical access to the victim's device rather than through an exploit.

Fair Use (and the Legal Gray Area) #

Not every keylogger is malware in the strictest sense of the term. Declared and contractually regulated employee monitoring software, parental controls on minors' devices for which parents are legally responsible, and corporate IT auditing tools on company-owned devices can all legally include keylogging functions. Legality depends on jurisdiction, consent, context of use, and how data is collected and processed—there's no single rule that applies everywhere. What remains constant is that secretly installing it on someone else's personal device without consent can lead to significant criminal penalties, regardless of who installs it or the stated motive.

A real-world case illustrates how authorities treat these apps when they cross the line: in 2021, the U.S. Federal Trade Commission banned Support King, the company behind the monitoring app SpyFone, from the surveillance industry—the first comprehensive ban on a stalkerware company, after the app was found to be collecting and sharing data on victims' locations, messages, and phone activity without their knowledge. For those who suspect they are being monitored in this way, the Coalition Against Stalkerware —founded by the EFF along with several antivirus companies—offers free detection and removal resources.

How to Recognize a Keylogger #

For a software keylogger, the signs overlap with those of many other malware: noticeable slowdowns in typing (a keylogger that records and sends data in real time can introduce some latency), unknown processes running, and an antivirus reporting a detection. For a hardware keylogger, the check is physical: visually inspecting the keyboard cable where it connects to the computer, looking for a small adapter that normally shouldn't be there—a check that literally takes seconds but that almost no one ever performs routinely.

A basic check in Windows is to open Task Manager and look at the running processes for unknown names; Sysinternals' Autoruns goes a step further, also showing what starts automatically with the system—many software keyloggers specifically target startup memory. As with any check of this kind, a "strange" process is a clue to investigate further, not a diagnosis.

How to Protect Yourself (and Defend Yourself) from a Keylogger #

An updated antivirus program detects most known software keyloggers, but not custom or hardware ones. Two-factor authentication reduces the impact of password-only theft, but it doesn't protect against more sophisticated malware capable of stealing session cookies or tokens—passkeys, resistant to phishing by design, offer stronger protection. A virtual keyboard (clicked instead of typed) prevents capture by a keylogger that only captures physical keyboard events, but it doesn't protect against malware that captures screenshots, clipboards, or data directly from the application—a technique, not surprisingly, used by many online banking sites at their most sensitive times.

It's also worth distinguishing between a keylogger and a credential stealer : not all credential theft occurs via the keyboard. Malware can directly target passwords stored in the browser, session cookies, or authentication tokens without ever recording a single keystroke—so "I didn't find a keylogger" doesn't necessarily mean "my credentials are safe."

Think You Have a Keylogger Now? How to Check It #

If you have a genuine suspicion that someone is reading what you write—a partner, a shady employer, anyone else—here's a three-step check, from simple to more thorough.

  1. Physically inspect the keyboard cables, especially where they connect to the computer: an unrecognized adapter is a sign worth investigating seriously, although it's not conclusive in itself—in rare cases, it could be a forgotten, legitimate accessory. On laptops, also check for any unused USB ports.
  2. On Windows, open Device Management (Device Manager) and look under “Keyboards” and “HID Devices”: an unknown device listed there, in addition to your regular keyboard, is a concrete sign to investigate.
  3. Run Sysinternals Autoruns and check any autostart entries you don't recognize — many software keyloggers aim to stay active from boot.
  4. If the suspicion concerns a context of control or abuse by another person, consider your personal safety before removing anything: the same caution seen with stalkerware applies here.

FAQ #

What is a keylogger? It's a software or device that records every keystroke on a keyboard, without the user's knowledge.

Does an antivirus always detect a keylogger? No: it detects software with known signatures, but a custom keylogger can slip past it. A hardware keylogger is generally invisible to any software because it isn't code running on the system.

Are keyloggers always illegal? It depends on jurisdiction, consent, and context: overt employee monitoring, parental controls for minors, and corporate audits of company-owned devices may be legal. Covertly installing one on someone else's device without consent can result in significant criminal penalties.

How do I protect myself from a keylogger even if I don't detect it? Two-factor authentication reduces the impact of password-only theft (though it doesn't protect against malware that steals sessions or tokens), and the virtual keyboards used by many online banking sites prevent keyloggers that only intercept the physical keyboard from being caught.

Can a keylogger steal passwords even if I copy and paste them instead of typing them? A "pure" keylogger that only intercepts the keyboard won't—but many modern variants also include clipboard capture or periodic screenshots, which defeats this purpose.

#keylogger #hardwarekeylogger #keylogger software #keyloggerwindows #spyfone

leave a message

I'm not a robot