Explore our new Cybersecurity Terms Glossary, explained by our experts.
Cybersecurity Terms Glossary
A keylogger is software or hardware that secretly records keystrokes to capture passwords, messages, and other sensitive input, usually as part of a wider malware infection.

What Is a Keylogger?
A keylogger, short for keystroke logger, is a tool that records what a user types—passwords, card numbers, emails, chat messages, search terms—and sends that record to someone else. Keyloggers can be small hardware devices or, far more commonly, software running silently on a compromised computer or phone.
MITRE ATT&CK tracks the technique as T1056.001, Input Capture: Keylogging. It is rarely the whole attack. Keystroke capture is usually one module inside a remote access trojan or information stealer, used to harvest credentials that open the door to email, VPN, and banking accounts.
A small adapter between a keyboard and a USB port, or a modified keyboard or cable, stores keystrokes in internal memory or transmits them over Wi-Fi. They need physical access, so they turn up in shared spaces: hot desks, reception PCs, hotel business centres, and kiosks. No antivirus product will detect them, because no software is involved.
SetWindowsHookEx or polls GetAsyncKeyState to read keystrokes as they reach applications. This is the simplest and most widespread approach.Many modern families also capture screenshots, clipboard contents, and saved browser credentials, since passwords pasted from a password manager never pass through the keyboard.
Most software keyloggers arrive through phishing emails carrying malicious attachments—fake invoices, shipping notices, or purchase orders are the classic lures. Others come bundled with cracked software, malvertising, or fake browser updates. Agent Tesla and Snake Keylogger, both sold on criminal forums as commodity malware, have been among the most frequently observed information stealers in recent years and specialise in exactly this kind of mass email campaign.
A close relative is the web skimmer. In 2018, attackers injected malicious JavaScript into British Airways’ website and app to capture payment card details as customers typed them. The ICO later fined the airline £20 million for failing to protect personal data.
Keyloggers are designed to be invisible, so obvious symptoms are uncommon. Clues worth investigating include:
An EDR platform is far better placed than a user to catch these behaviours, because it can see API hooking, suspicious child processes, and network beacons across the whole estate.
Keystroke monitoring software is sold for parental control and employee monitoring. In the UK, installing a keylogger on someone else’s device without authorisation is an offence under the Computer Misuse Act 1990. Employers who monitor staff must also meet UK GDPR requirements, and the ICO regards keystroke logging as highly intrusive: it is very difficult to justify outside narrow, clearly documented circumstances.
Because most keyloggers arrive by email, testing how your staff respond to realistic lures through our social engineering services is a practical first step.
Antivirus detects most known commodity keyloggers such as Agent Tesla, especially when signatures are up to date. It is less reliable against new variants, kernel-level loggers, and malicious browser extensions, and it cannot detect hardware devices at all. Behaviour-based EDR improves the odds considerably by flagging the actions a keylogger must take, such as hooking keyboard input and sending data to remote servers.
Partly. Autofill means your password is never typed, so a pure keystroke logger misses it. However, many modern stealers also capture clipboard contents, take screenshots, and steal saved browser credentials and session cookies. A password manager reduces exposure but should be combined with phishing-resistant MFA, which ensures a stolen password alone does not grant access to your accounts.
Disconnect the device from the network but do not wipe it yet, as evidence may be needed. From a separate, clean device, change passwords for every account used on the affected machine, starting with email and administrator accounts, and revoke active sessions. Then investigate how the keylogger arrived, check other machines for the same indicators, and rebuild the affected device from a trusted image.
The software itself is not illegal to own, but using it on a device you do not own or are not authorised to monitor is an offence under the Computer Misuse Act 1990 and may also breach data protection law. Employers face strict UK GDPR requirements, and the ICO considers keystroke logging so intrusive that it is very hard to justify in normal workplaces.
You May Be Interested In These
Cybersecurity Terms
17 November 2026
What Is the Difference Between the Deep Web and Surface Web?
Read More
We use a few cookies that are needed to make this website work, and they are always on. We would also like to set analytics cookies, to see which pages are useful; functional cookies, so that our live chat works; and advertising cookies, to measure our campaigns. We will not set any of those until you say yes, and you can change your mind at any time from the Cookie Settings link in the footer.
Choose the cookies you are happy for us to use. Strictly necessary cookies are always on; everything else is off until you turn it on.
These cookies keep the website working: they hold your security checks, your form submissions and the choice you make here. The site cannot run without them, so they are always on.
These let our live chat open and remember your conversation, and let the newsletter sign-up work. Switch them off and the chat window will not appear.
These tell us which pages are read and how people find us, so that we can improve the site. The reports are about groups of visitors, never about you personally.
These let us measure our advertising and show you our adverts on other websites, such as LinkedIn, Google and Meta. Switch them off and you will still see adverts, but they will be less relevant.