Password Sniffing: Who Can Read a Secret in Transit?
A password can leave your screen and cross a network before a service checks it. If it travels in readable form, someone able to observe that traffic may collect it along the way. Password sniffing is the attempt to obtain passwords from communications that carry them.
The important questions are where the observer is positioned and what the application sends. Merely being nearby or sharing a network name doesn't reveal every login.
A packet-capture tool records the units of network data, or packets, that reach its collection point. Such tools also help administrators diagnose problems. Password sniffing describes the attempt to obtain login secrets from that traffic.
- Make a stolen password useless without the key in your hand.
- Sign in with a tap instead of typing a code.
- Protect Google, Microsoft, Apple and more than 1,000 other accounts.
Follow an Unprotected Login
Imagine an older internal service that sends a name and password without encrypting the exchange. An observer who can receive that traffic may see the secret as readable text.
No password guessing is needed to learn a value exposed this way. The problem is the path carrying it. MITRE's network-sniffing description includes collecting credentials and other information from accessible traffic.
The result depends on the protocol, the rules used for the exchange. Some authentication exchanges carry encrypted records. Others carry a calculated response to a challenge rather than the password itself. A recording of a login is therefore not automatically a recording of a readable password.
Put the Same Secret Inside HTTPS
Now consider a browser sending login information over a properly established HTTPS connection to the intended service. Transport Layer Security, or TLS, protects the exchange between those endpoints.
A passive observer, someone watching without changing the exchange, can record traffic along the route without learning the password from its protected contents. The Federal Trade Commission explains how web encryption changes the risks of public Wi-Fi. Sharing the Wi-Fi alone doesn't let another user read a properly protected HTTPS login.
Encryption doesn't stop the packets from existing or being recorded. Their lengths and timing may remain visible. Those details can show communication patterns; they aren't the password hidden inside.
An application using an unprotected protocol on the same network can still expose its own secrets. Protection belongs to the actual exchange, not to a general impression that a network is safe or unsafe.
Who's Sitting Between You and the Website?
The Password Can Be Stolen at Either End, Too
HTTPS protects the journey to the site you connected to. If that site is fraudulent, it still receives the information you submit. Phishing takes advantage of the recipient's deception, even when the connection itself is encrypted.
A keylogger operates earlier, capturing input on the device. A compromised endpoint may see information before encryption or after decryption. Those positions are different from an observer reading network traffic in between.
Replacing an exposed password doesn't repair an infected device. Nor does it stop an application from sending the replacement over the same unprotected path. If the observer can still read that exchange, the new password can be collected too.
Packet Sniffing: What a Record of Network Traffic Can Reveal

Basic Authentication: Why an Encoded Password Still Needs HTTPS

TLS Protects the Connection. The Destination Still Gets the Data.

QUOTE:
"Amateurs hack systems, professionals hack people."
