A keylogger records keyboard input so it can be read later, either as a small piece of hardware between keyboard and computer or as a program in the system.
In a security context it is above all a tool for capturing credentials and text without being noticed.
Types of Keyloggers
Types of keyloggers differ by whether they sit as a device on the keyboard's connection or as software in the operating system.
Both end up with a sequence of characters;
installation and detection differ.
Hardware Keyloggers
Hardware keyloggers are small devices or modified keyboards that record keystrokes before the operating system sees them.
They survive a reinstallation of the software and are more likely to be noticed by looking at cables and ports than by a scan.
Software Keyloggers
Software keyloggers run as a program or as part of another process and read input through interfaces of the operating system.
They need a way onto the system, can then be read out remotely, and leave traces in processes, startup entries, and files.
Uses of Keyloggers
Uses of keyloggers range from consensual monitoring of one's own systems to secretly capturing someone else's input.
The same technical mechanism is a control with a legal basis in the first case and an attack in the second.
Legitimate Uses
Legitimate uses include troubleshooting one's own applications, supervision of devices the organization owns and about which staff have been informed, and parental control on a device one administers, within the legal frame.
In each case the people affected know about the recording, or a clear authority exists.
Malicious Uses
Malicious uses aim to capture passwords, messages, and payment data and send them to a third party.
The user types in the belief that only the intended program sees the input, while a copy is already leaving.
How to Detect Keyloggers
Keyloggers are detected by unfamiliar devices on the keyboard, by unknown programs, and by behavior that sends input to a foreign destination.
No single sign proves a keylogger;
several together justify an examination of the device.
Using Antivirus Software
Using antivirus software recognizes known software keyloggers by signatures and suspicious behavior, provided the definitions are current.
It does not see a pure hardware capture between keyboard and computer, because no program is running there.
Using Anti-Keylogger Software
Using anti-keylogger software watches for programs that read keyboard events and warns or blocks such access.
It complements antivirus, but it does not replace a look at the physical ports or a current system.
How to Protect Against Keyloggers
Protection against keyloggers joins software that recognizes known sniffers with habits that make a capture less useful.
Input that is especially sensitive does not belong on foreign or unattended devices.
Using Security Software
Using security software includes current antivirus, a check for unknown startup entries, and, where needed, a tool against keyboard capture.
It has to be updated continuously, or it will recognize only older specimens.
Good Security Practices
Good security practices are not to tolerate unknown devices between keyboard and computer, to keep systems current, to use an on-screen keyboard or a second check for particularly sensitive accounts, and not to use foreign computers for passwords.
An unexpected request to enter credentials again is checked through a path to the organization that one chose oneself.
Conclusion
Keyloggers capture input through hardware or software and become dangerous once they carry credentials away unnoticed.
Physical control of the ports, current protection software, and restrained typing on foreign devices limit that risk.
