Join our Newsletter — 33% off our NHI Course
Home› Guides› Wireshark Display Filters Cheat Sheet: Filters for Triage…
Template Network Security

Wireshark Display Filters Cheat Sheet: Filters for Triage and Investigation

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 12 min read
On this page

Most time lost in a packet capture is lost typing filters that silently match nothing, or match far more than the analyst thinks. This cheat sheet collects tested Wireshark display filters for security triage, grouped by task: DNS, HTTP, TLS server names, SMB, Kerberos and NTLM, plus hunting patterns, the operator and function reference, and the difference between display and capture filters. Field names were checked against the Wireshark Display Filter Reference, which lists them for releases up to 4.6. It is for SOC analysts, incident responders and network engineers who already capture traffic. For capture design, TLS decryption, TShark automation and safe handling of captures, see the Wireshark for Security Analysis Guide.

This is an independent guide from NHI Mgmt Group, based on Wireshark's public documentation as of November 2026. It is not sponsored or reviewed by the Wireshark project. Dissector fields change between releases, so confirm field names against the current Display Filter Reference.

Key takeaways

  • Display filters never discard data. They hide packets already captured, so you can refine them freely; capture filters use a different syntax (libpcap) and drop packets for good.
  • Field names come from dissectors. If a filter turns red or matches nothing, check the exact field in the Display Filter Reference or by right clicking a field and choosing Apply as Filter.
  • Negation is the classic trap. Since Wireshark 3.6, != means "all not equal", so ip.addr != 10.0.0.5 removes every packet involving that host; older playbooks may assume the opposite.
  • Protocol fields beat port numbers. dns, http and tls match by dissector, which catches services on odd ports that a tcp.port filter misses.
  • Save the filter with the evidence. Record every filter used to reach a finding so another analyst can reproduce it, and turn repeat filters into saved filter buttons for the team.

How to use this template

  1. Replace placeholders: 10.0.0.5, example.org and [Organisation] values are examples. Swap in the host, domain, realm or share from your case.
  2. Start broad, then narrow: open the capture with a protocol filter (dns, kerberos), then add and clauses. Use Statistics, Conversations and Protocol Hierarchy first to see what is actually in the file.
  3. Check the version: run Help, About Wireshark and confirm the release. Fields such as tls.handshake.ja4 exist only from 4.2 onwards; older sensors and analyst laptops may not know them.
  4. Script the keepers: the same filters work in TShark with -Y, so a filter proven in the GUI can run across a folder of captures.
  5. Adapt for [Organisation]: add your internal resolver addresses, domain controllers, proxy ranges and approved TLS destinations to the hunting filters, and store the result in your runbook.

Syntax basics

A display filter is a protocol name, a field, or a comparison between a field and a value, joined with logical operators. A bare protocol or field name tests for presence: tls shows every frame the TLS dissector decoded, and http.authorization shows every frame with that header.

PatternExampleWhat it matches
Protocol presentdnsFrames decoded as DNS, on any port
Field presenthttp.cookieFrames carrying a Cookie header
Field equals valueip.src == 10.0.0.5Source address is 10.0.0.5
Subnet (CIDR)ip.addr == 192.168.0.0/24Either address in the subnet
Set membershiptcp.port in {80, 443, 8080}Any of the listed ports
Range in a settcp.port in {443, 4430..4434}443 or 4430 to 4434
String containshttp.user_agent contains "curl"Substring, case sensitive
Regular expressionhttp.host matches "acme\\.(org|com|net)"PCRE2 match, case insensitive
Combineddns and not ip.addr == 10.0.0.53DNS not involving the internal resolver
  • Strings: use double quotes. Regular expressions are parsed twice (by Wireshark, then PCRE2), so backslashes are doubled; a raw string such as r"\(X11;" avoids the doubling.
  • Brackets: group with parentheses, for example (dns or http) and ip.src == 10.0.0.5. Without them, mixed and and or clauses are easy to misread.
  • Colour feedback: green means valid syntax, red means invalid, yellow warns that the filter may not do what you expect (often a != on a multi value field).

Protocol filters

Filters by task, using field names listed in the Wireshark Display Filter Reference. Numeric values (record types, message types, status codes) come from the protocol specifications.

DNS

TaskFilter
Queries onlydns.flags.response == 0
Responses onlydns.flags.response == 1
A name and its subdomainsdns.qry.name contains "example.org"
Failed lookups (NXDOMAIN)dns.flags.rcode == 3
TXT queries (record type 16)dns.qry.type == 16
Long query namesdns.qry.name.len > 50
Answers resolving to a given addressdns.a == 203.0.113.10
Very short TTLs in answersdns.resp.ttl < 60
Responses with many answersdns.count.answers > 10

HTTP (cleartext)

TaskFilter
All requestshttp.request
POST requestshttp.request.method == "POST"
Server errorshttp.response.code >= 500
Requests to a hosthttp.host == "example.org"
Unusual or scripted clientshttp.user_agent matches "(?i)(curl|python|powershell|wget)"
Basic authentication in cleartexthttp.authbasic or http.authorization contains "Basic"
Long URIslen(http.request.uri) > 200
Redirects and where they gohttp.location
Executable downloads by content typehttp.content_type contains "application/x-msdownload"

TLS

TaskFilter
Client Hello (handshake type 1)tls.handshake.type == 1
Server name (SNI) is a domaintls.handshake.extensions_server_name == "example.org"
SNI matches a patterntls.handshake.extensions_server_name matches "\\.(top|xyz)$"
Client Hello with no SNItls.handshake.type == 1 and not tls.handshake.extensions_server_name
Certificates in the clear (TLS 1.2 and earlier)tls.handshake.type == 11
Legacy record versions (TLS 1.0 = 0x0301, 1.1 = 0x0302)tls.record.version in {0x0301, 0x0302}
Alerts (failed handshakes)tls.alert_message
ALPN offeredtls.handshake.extensions_alpn_str == "h2"
Fingerprint present (JA3 from 3.6, JA4 from 4.2)tls.handshake.ja4, tls.handshake.ja3

In TLS 1.3 the server certificate is encrypted, so tls.handshake.type == 11 only shows it if you supplied decryption secrets. The SNI is still visible unless Encrypted Client Hello is in use. See the JA3 and JA4 TLS Fingerprinting Guide.

SMB2/3, Kerberos and NTLM

TaskFilter
Session setup (SMB2 command 1)smb2.cmd == 1
Tree connects to shares (command 3)smb2.cmd == 3
Admin share accesssmb2.tree matches "(?i)(ADMIN|C|IPC)\\$$"
File opens (Create, command 5) for a namesmb2.cmd == 5 and smb2.filename contains ".ps1"
SMB errorssmb2.nt_status != 0
Accounts authenticating over SMBsmb2.acct
Kerberos AS-REQ / TGS-REQ (types 10 and 12)kerberos.msg_type in {10, 12}
Kerberos errors (KRB-ERROR, type 30)kerberos.msg_type == 30
Pre-authentication failed (error 24)kerberos.error_code == 24
Unknown client principal (error 6)kerberos.error_code == 6
Tickets for a servicekerberos.SNameString == "MSSQLSvc"
RC4 encryption type (23) in ticketskerberos.etype == 23
NTLM authenticate messages (type 3)ntlmssp.messagetype == 0x00000003
NTLM user namesntlmssp.auth.username

SMB 3 encryption hides commands and file names; you will see only the encrypted transform. See the SMB Protocol Security and Signing Guide and Kerberos vs NTLM.

Security hunting filters

Hunting filters narrow a large capture to traffic worth a closer look. None of them proves malice on its own: each result needs context from logs, the asset owner or threat intelligence.

HypothesisFilterWhat to check nextATT&CK
Hosts bypassing the internal resolverdns and not ip.addr in {10.0.0.53, 10.0.0.54}Which process and why; DoH on 443 will not show hereT1071.004 DNS
DNS tunnelling or exfiltrationdns.qry.name.len > 50 or dns.qry.type == 16Volume per domain, entropy of labelsT1071.004, T1048
Cleartext credentials on the wirehttp.authbasic or ftp.request.command == "PASS"Rotate the secret and move the service to TLST1040 Network Sniffing (the exposure)
Kerberoasting style ticket requestskerberos.msg_type == 12 and kerberos.etype == 23Many service tickets from one client in a short windowT1558.003 Kerberoasting
Password spraying against Kerberoskerberos.error_code == 24Many users failing from one sourceT1110.003 Password Spraying
Lateral movement over admin sharessmb2.cmd == 3 and smb2.tree contains "ADMIN$"Source host, account, follow-on service creationT1021.002 SMB/Windows Admin Shares
Port scanningtcp.flags.syn == 1 and tcp.flags.ack == 0Statistics, Conversations: one source, many destinationsT1046 Network Service Discovery
Rejected connectionstcp.flags.reset == 1Scans, blocked egress, failing servicesT1046
Downloads of scripts and binarieshttp.request.uri matches "\\.(exe|dll|ps1|hta|vbs)$"Export the object, hash it, check reputationT1105 Ingress Tool Transfer
  • Beaconing: filter on one destination (ip.dst == 203.0.113.10 and tcp.flags.syn == 1), then use Statistics, I/O Graphs to look for regular intervals. Long captures are better analysed with flow tooling; see the Beaconing and C2 Detection Guide.
  • Time window around an alert: select the alert packet, then use a field reference, frame.time_relative >= ${frame.time_relative} - 300, to show the five minutes before it.
  • Noise reduction: exclude known good traffic with a saved clause, for example not (arp or mdns or ssdp or llmnr), before you start reading.
  • Tunnelled traffic: the layer operator reads the inner header of encapsulated traffic: ip.addr#2 == 192.168.30.40 matches only the second IP layer.

For hunt planning and hypotheses beyond a single capture, see Network Threat Hunting and How to Hunt for Kerberoasting.

Operators and functions

EnglishC-likeMeaning
eq (any_eq)==Equal (any occurrence if the field repeats)
ne (all_ne)!=Not equal (all occurrences)
all_eq===Equal (all occurrences)
any_ne!==Not equal (any occurrence)
gt, lt, ge, le>, <, >=, <=Greater, less, greater or equal, less or equal
containsProtocol, field or slice contains a value
matches~Perl compatible regular expression (PCRE2)
and, or, xor, not&&, ||, ^^, !Logical operators
inSet membership, with .. ranges

The negation trap in practice: to hide one host, write !(ip.addr == 10.0.0.5) or ip.addr != 10.0.0.5 on 3.6 and later; both now exclude every frame where either address is 10.0.0.5. To keep frames where at least one address differs, use ip.addr !== 10.0.0.5. English operators are case insensitive from Wireshark 5.0.

Function or featureExampleUse
len()len(http.request.uri) > 100Byte length of a string or bytes field
lower(), upper()lower(http.server) contains "apache"Case insensitive substring tests
count()count(ip.addr) > 2Number of occurrences in a frame (tunnels, ICMP errors)
string()string(frame.number) matches "[13579]$"Treat a non-string field as text
max(), min()max(tcp.srcport, tcp.dstport) <= 1024Both ports in the well known range
Slice [n:m]eth.src[0:3] == 00:00:83Vendor prefix (OUI) of a MAC address
Bitwise AND &tcp.flags & 0x02Test single flag bits
Arithmetic in bracesframe.cap_len < { 14 + ip.hdr_len + tcp.hdr_len }Frames with no TCP payload captured
Field reference ${}http and ip.dst eq ${dns.a}Compare with the selected packet's value
Raw bytes @@field == aa:bbCompare undecoded bytes instead of the displayed value

Subtraction needs a space before the minus sign (A - B), because A-B can be read as a field name.

Display vs capture filters

Capture filters are written in the libpcap language (documented in the pcap-filter manual page) and decide what is stored. Display filters use Wireshark's own field language and decide what is shown. The syntaxes are not interchangeable: host 10.0.0.5 is a capture filter, ip.addr == 10.0.0.5 is a display filter.

AspectCapture filterDisplay filter
Languagelibpcap / BPF primitives: host, net, port, src, dstDissector fields: ip.src, dns.qry.name
When appliedBefore packets are writtenAfter capture, on loaded packets
EffectExcluded packets are lostPackets are hidden, never deleted
Protocol awarenessHeader offsets, ports and addresses onlyFull decode, including application fields
Where usedCapture Options, dumpcap and TShark -f, tcpdumpDisplay filter bar, TShark -Y, colouring rules
Example: one hosthost 10.0.0.5ip.addr == 10.0.0.5
Example: telnet except from one hosttcp port 23 and not src host 10.0.0.5tcp.port == 23 and ip.src != 10.0.0.5
Example: DNSport 53dns (also matches DNS on other ports)

When to use which: capture filters keep sensor files small on busy links and limit the personal data you collect, so use them for scope (the host or segment approved for capture). Use display filters for analysis. If you are unsure what an incident involved, capture wider for a short, bounded window and filter on display, because a capture filter cannot be undone. See the Network Monitoring and Packet Capture Guide.

Framework fit: packet analysis supports NIST CSF 2.0 DE.AE-02 (potentially adverse events are analysed), NIST SP 800-53 SI-4 System Monitoring, ISO/IEC 27001:2022 Annex A 8.16 Monitoring activities and CIS Controls v8.1 Control 13 Network Monitoring and Defense.

Practitioner checklist

  • Confirm the Wireshark release on every analyst workstation and sensor, and keep it current.
  • Store [Organisation]'s resolvers, domain controllers and proxies as saved filter clauses.
  • Start every capture review with Protocol Hierarchy and Conversations before filtering.
  • Filter by protocol name rather than port where the dissector exists.
  • Review older playbooks for != filters written before Wireshark 3.6.
  • Record the exact filter beside each finding in the case notes.
  • Turn every cleartext credential found into a rotation ticket and a transport fix.
  • Use capture filters only for approved scope; analyse with display filters.
  • Share proven filters as filter buttons or TShark scripts across the SOC.

Standards and references

Related NHI Mgmt Group resources: Wireshark for Security Analysis Guide · Network Forensics Guide · Network Threat Hunting · DNS Security Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.