Wireshark Display Filters Cheat Sheet for Packet Analysis

High-signal Wireshark and tshark display filters for hunting suspicious HTTP requests, DNS tunneling, TLS handshakes, TCP anomalies, and SMB traffic.

Interactive Target Variable Replacer

Change the target IP or host and the target domain below and every command block on this page updates to match.

Command Reference

1. Filter Traffic by IP or Subnet

Isolate packets involving a specific host or CIDR block.

ip.addr == 192.0.2.10 && !(tcp.port == 22)

2. HTTP POST & Login Requests

Find HTTP requests carrying form submissions or API payloads.

http.request.method == "POST" || http.request.method == "PUT"

3. Suspicious HTTP Status Codes (4xx / 5xx)

Spot brute-force 401/403 responses or 500 server exceptions.

http.response.code >= 400

4. TLS ClientHello & Server Name Indication (SNI)

See which HTTPS hostnames a client is connecting to even when traffic is encrypted.

tls.handshake.type == 1 && tls.handshake.extensions_server_name contains "example.com"

5. DNS Queries & NXDOMAIN Anomalies

Hunt for DGA malware beacons or subdomain enumeration.

dns.flags.rcode == 3 || (dns.qry.name contains "example.com")

6. TCP SYN Scans & Reset Storms

Detect port scanning where SYN packets are met with immediate RST-ACK.

tcp.flags.syn == 1 && tcp.flags.ack == 0

7. SMB2 File Access & Lateral Movement

Inspect Windows file share mounts and named pipe IPC.

smb2 || nbns || dcerpc

8. Extract Cleartext Credentials (FTP / HTTP Basic / Telnet)

Check legacy cleartext protocols for exposed authentication headers.

http.authorization || ftp.request.command == "PASS" || imap.request

Frequently Asked Questions

How can Wireshark see the destination domain of HTTPS traffic without decrypting TLS?

During the TLS ClientHello (tls.handshake.type == 1), the client usually sends the Server Name Indication (SNI) extension in cleartext unless Encrypted Client Hello (ECH) is enabled.

Can I use Wireshark display filters on the command line?

Yes. Pass any Wireshark display filter to tshark using the -Y flag: tshark -r capture.pcap -Y "tls.handshake.type == 1".


Related Guides, Tools & Cheat Sheets