Password sniffing
Password sniffing is harvesting passwords by means of software that scans traffic on a network. Learn how password sniffing works, which protocols expose credentials, and how to keep passwords from being captured.
What is password sniffing?
Password sniffing is the capture of passwords as they travel across a network. An attacker uses a packet sniffer, a tool that records network traffic, to look for usernames and passwords inside the data. It works best against protocols that send credentials in plaintext, such as Telnet, FTP, and plain HTTP.
Packet sniffers themselves are legitimate tools that administrators use for troubleshooting; the attack lies in using them to capture other people's credentials.
How does password sniffing work?
- The attacker gains a position where they can see traffic: on the same Wi-Fi network, on a compromised device, or on a network link.
- They run sniffing software, sometimes combined with techniques like ARP spoofing to redirect traffic through their machine.
- The software filters the captured packets for sign-in exchanges and extracts the credentials.
- The attacker uses the passwords directly or tries them on other systems.
Even when the password itself is protected, attackers may capture weak challenge-response exchanges or session cookies that let them impersonate the user.
Password sniffing vs. password cracking
Sniffing captures a password in transit. Cracking works a password out from a stored hash or by guessing. Sniffing is stopped mostly by encryption; cracking is slowed mostly by strong, unique passwords and good hashing.
Why does password sniffing matter?
Legacy protocols and devices still send credentials in plaintext on many networks. Replacing them with encrypted alternatives, such as SSH instead of Telnet, SFTP instead of FTP, and HTTPS instead of HTTP, removes the main risk. Unique passwords limit the damage if one is captured, and multifactor authentication makes a stolen password much less useful.
Monitoring for unexpected packet capture tools and for ARP spoofing on the network can also reveal sniffing attempts in progress.
Frequently asked questions
What is password sniffing?
Password sniffing is harvesting passwords by means of software that scans traffic on a network, especially traffic sent without encryption. Packet sniffers themselves are legitimate tools that administrators use for troubleshooting; the attack lies in using them to capture other people's credentials.
Which protocols are vulnerable to password sniffing?
Protocols that send credentials in plaintext, such as Telnet, FTP, plain HTTP, and some older email and authentication protocols.
Does HTTPS prevent password sniffing?
HTTPS encrypts traffic between the browser and the server, so a sniffer on the network cannot read the password. It does not protect a compromised device.
Keep credentials off the wire and out of sight
Credentials are injected at launch so they never touch a clipboard.
Related terms
Wiretapping
Wiretapping is eavesdropping on telephone or internet communications, either for malicious purposes or as part of a criminal investigation.
Read now →TELNET
TELNET is a protocol for interfacing terminal devices and processes, and for facilitating terminal-to-terminal and process-to-process communication.
Read now →