Packet sniffing is the capture and inspection of frames or packets traveling through a network interface or capture point. Administrators and security teams use packet analyzers for troubleshooting, performance analysis, protocol validation, and incident response. The same visibility, used without authorization, can expose sensitive communications or support an attack.
What a packet capture can contain
source and destination addresses, ports, protocol headers, timing, sequence, and packet sizes;
DNS queries and other service-discovery information when those protocols are visible;
unencrypted application content, including credentials, messages, files, cookies, and commands;
encrypted payloads plus observable connection metadata;
retransmissions, errors, handshakes, resets, and performance evidence.
A capture only shows traffic available at its observation point. A normal workstation on a switched network does not automatically receive every other host's unicast traffic. Visibility can come from the endpoint itself, a switch mirror port, network tap, router, gateway, wireless capture, virtual network, cloud traffic mirroring, or active redirection.
Passive capture vs. active interception
Passive sniffing observes available traffic and may produce no user-visible symptom. Techniques such as ARP spoofing, rogue DHCP, or an evil-twin access point alter the path to gain visibility and become active interception or a MITM attack. This distinction matters when selecting evidence and containment.
What encryption hides
Correctly configured HTTPS/TLS, SSH, and modern VPNs protect application payloads from a passive network observer. They do not necessarily hide endpoint IP addresses, timing, volume, protocol behavior, or every DNS lookup. Authorized analysts may decrypt some traffic when they control session secrets, endpoints, or an enterprise inspection system.
A packet sniffer does not “break encryption” merely by capturing packets. If plaintext credentials appear, identify the legacy or downgraded protocol and replace it rather than relying on network secrecy.
How to investigate unauthorized capture
look for unapproved packet-capture processes, drivers, privileges, files, scheduled tasks, and command history on endpoints;
review switch mirror sessions, network taps, cloud mirroring, administrator changes, and management-account activity;
investigate ARP, DHCP, gateway, DNS, proxy, Wi-Fi, and certificate changes that indicate active interception;
check whether capture files were created, accessed, copied, or uploaded and what traffic they could contain.
Promiscuous mode or one capture library is not proof of malicious activity; monitoring, virtualization, EDR, and network-management software may use them legitimately.
Protection checklist
retire plaintext protocols such as Telnet, FTP, and unprotected HTTP authentication;
enforce authenticated encryption and correct certificate validation;
use WPA2 or WPA3, maintain access points, isolate guest networks, and remove rogue devices;
segment sensitive systems and restrict mirror ports, capture tools, cloud mirroring, and network-administration roles;
protect administrator accounts with phishing-resistant MFA and monitor configuration changes;
minimize reusable credentials and rotate secrets exposed in an unauthorized capture.
Authorized capture workflow
Obtain explicit authorization and define interfaces, systems, time window, purpose, and prohibited data.
Use the narrowest capture and display filters that still answer the question.
Record capture location, synchronized time, tool version, filter, operator, and network changes.
Encrypt PCAP files, restrict access, preserve integrity when evidence is required, and transfer them through approved channels.
Delete or archive captures according to retention, privacy, legal, and incident-response policy.
Wireshark's official User's Guide describes a packet analyzer as a measurement tool for examining network activity. Captures should be treated as sensitive datasets, not ordinary diagnostic attachments.
Packet sniffing FAQ
Can sniffing read HTTPS passwords?
A passive observer should see encrypted payloads, not the password, when TLS is correctly validated and endpoints or keys are not compromised.
Is packet capture legal?
Rules vary by jurisdiction and environment. Capture only networks and data you are explicitly authorized to monitor.