My first root capture with process recording on named two programs I had forgotten were running: google_guest_ag and google_osconfig, the GCP guest agents. That is the pitch of Wireshark process aware capture. Each packet carries the PID and name of the local process that sent or received it, so you stop guessing which daemon owns a connection.
I wanted to know where it falls short before trusting it on a real incident, so I tested the parts the release notes skip: what a non-root user sees, whether quick connections get caught, and what happens with multicast. I built Wireshark 5.0.0 from the signed tarball in December 2026 on an Ubuntu 26.04.1 LTS VM on GCP (box1, 8 vCPUs, kernel 7.0), and every capture below comes from that box.
The short version: start dumpcap or tshark with --process-info, or use the GUI, which records IDs and names by default. Then filter on the frame.process.* fields. In my tests, Linux only attributed processes owned by the user running the capture.
Getting Wireshark 5.0 on Linux this week
My first attempt was the lazy one: find a package. I checked six routes on December 4, two days after the 5.0.0 release on December 2, in the order most people would try them. Only one carried the new major release, and that one shipped with a broken dependency.
| Route | What it offered on Dec 4, 2026 |
|---|---|
| Flathub | 4.6.10, listed “without capture support” |
| Snap Store | No snap named wireshark |
| AppImage | No official build; the community AppImage stops at 4.6.9 |
| Fedora COPR | Newest wireshark build is 4.0.2 |
| Debian experimental | Nothing; sid has 4.6.10-1 |
| Arch Linux extra | 5.0.0-1, built Dec 3, missing the lua dependency |
Arch users are the lucky ones. I ran the package in an archlinux container on box1 and tshark refused to start until I added lua by hand, because the package lists lua54 while the binary links against Lua 5.5:
sudo pacman -Syu wireshark-qt lua
The container printed this before and after the fix. If you skip lua, the shared library error in the middle is what you will get.
# pacman -Q wireshark-cli
wireshark-cli 5.0.0-1
# tshark --version
tshark: error while loading shared libraries: liblua.so.5.5: cannot open shared object file: No such file or directory
# pacman -S --noconfirm lua
lua 5.5.1-1
# tshark --version
Running as user "root" and group "root". This could be dangerous.
TShark (Wireshark) 5.0.0.
Capture permission on Arch comes from file capabilities plus a group. The package installs dumpcap as root:wireshark with mode 0754 and cap_dac_override,cap_net_admin,cap_net_raw, so a normal user joins the wireshark group and captures without sudo. That capability set is what tripped the container: under Docker’s default capabilities with --network host, both root and the group member got /usr/sbin/dumpcap: Operation not permitted before a single packet, because cap_net_admin sits outside Docker’s default set. Starting the container with --cap-add NET_ADMIN fixed it. On a real Arch host, the group step is all you need. Log out and back in (or run newgrp wireshark) before the capture, and swap ens4 for an interface from dumpcap -D:
sudo usermod -aG wireshark "$USER"
dumpcap -q -i ens4 -f "tcp port 443" --process-info -a duration:9 -w /tmp/arch-user.pcapng
PIDs and names did appear, with the same per-user limit I describe further down. Here are the counts from the container, first in its own PID namespace and then with --pid host, while a curl ran as the capturing user:
# getcap /usr/bin/dumpcap
/usr/bin/dumpcap cap_dac_override,cap_net_admin,cap_net_raw=eip
# --cap-add NET_ADMIN, user arch (group wireshark)
151 206 curl
# --cap-add NET_ADMIN, container root
181
# --cap-add NET_ADMIN --pid host, user arch
141 10948 curl
6
# --cap-add NET_ADMIN --pid host, container root
160
Two container limits show up in those numbers. The PID comes from whatever namespace dumpcap runs in, so 206 is the container’s view of that curl and 10948 is the host’s. And container root attributed nothing at all, not even its own curl, while the unprivileged group member got its download attributed both times. If you capture from a container, run dumpcap as a non-root user in the wireshark group and add --pid host when you want PIDs you can match against ps on the host.
I did the rest of the testing on an Ubuntu source build for two reasons. My lab box runs Ubuntu, and the only Arch I had was that container, whose namespace and capability limits would have muddied every attribution result below. Everyone else builds from source for now anyway, because none of the other routes has the process code yet. If you only need a working analyzer, the packaged 4.6 route in installing Wireshark on Ubuntu or the Debian desktop guide is less work. The distro packages will catch up, so the build below is a stopgap, not something I would keep around for years.
Verifying and building the signed tarball
I pinned the version on purpose, since this whole section exists only until your distro ships a package. Download the tarball, the signed checksum file and Gerald Combs’ public key from wireshark.org.
export WS_VERSION="5.0.0" # pin: first 5.0 release, no distro package yet #https://www.wireshark.org/docs/relnotes/wireshark-5.0.0.html
mkdir -p ~/src && cd ~/src
curl -sSLO "https://www.wireshark.org/download/src/wireshark-${WS_VERSION}.tar.xz"
curl -sSLO "https://www.wireshark.org/download/SIGNATURES-${WS_VERSION}.txt"
curl -sSLO "https://www.wireshark.org/download/gerald_at_wireshark_dot_org.gpg"
Then check the signature on the checksum file, and compare its SHA256 line with the hash of the tarball you actually downloaded. A good signature on the list is worthless if the file on disk does not match it.
gpg --import gerald_at_wireshark_dot_org.gpg
gpg --verify "SIGNATURES-${WS_VERSION}.txt"
grep "SHA256(wireshark-${WS_VERSION}.tar.xz)" "SIGNATURES-${WS_VERSION}.txt"
sha256sum "wireshark-${WS_VERSION}.tar.xz"
You want “Good signature” from key fingerprint 5A5A DBA7 DBEA 6C3F 8722 4F19 8224 4A78 E6FE AEEA and two identical hashes. The trust warning is normal for a key you have not signed yourself, so it is not a reason to stop.
gpg: Signature made Wed Dec 2 19:18:38 2026 UTC
gpg: using RSA key 5A5ADBA7DBEA6C3F87224F1982244A78E6FEAEEA
gpg: Good signature from "Gerald Combs <[email protected]>" [unknown]
gpg: aka "Gerald Combs <[email protected]>" [unknown]
gpg: Signature notation: manu=2,2.5+1.12,0,3
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 5A5A DBA7 DBEA 6C3F 8722 4F19 8224 4A78 E6FE AEEA
SHA256(wireshark-5.0.0.tar.xz)=59d896be406d75f1d2e43d461f9804ffcba6218242a8a1fd4bb2cfda3f1e2b8a
59d896be406d75f1d2e43d461f9804ffcba6218242a8a1fd4bb2cfda3f1e2b8a wireshark-5.0.0.tar.xz
My first attempt at the dependencies failed before it started, because I went looking for tools/debian-setup.sh and it isn’t there. In this tarball the setup scripts live under tools/os_setup/, and the Debian one pulls in the Qt 6 toolchain when you ask for it. The build wants Qt 6.10.2 or newer, which Ubuntu 26.04 already has.
tar xf "wireshark-${WS_VERSION}.tar.xz"
sudo DEBIAN_FRONTEND=noninteractive bash "wireshark-${WS_VERSION}/tools/os_setup/debian-setup.sh" --install-optional --install-qt6-deps -y
Two capability options in the next step matter more than they look. They make ninja install give dumpcap the raw capture capabilities and restrict it to a wireshark group. That group has to exist before you configure, so create it first.
sudo groupadd --system wireshark
mkdir -p ~/src/build && cd ~/src/build
cmake -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr/local -DDUMPCAP_INSTALL_OPTION=capabilities -DENABLE_DUMPCAP_GROUP=ON "../wireshark-${WS_VERSION}"
ninja
sudo ninja install
sudo ldconfig
Ninja ran 3,038 steps in 536 seconds on the 8 vCPU VM, so budget around ten minutes on similar hardware and a lot longer on a laptop with four cores. The install also drops the global profiles into /usr/local/share/wireshark/profiles, and the new Processes profile is the one this post leans on.
Letting your user capture without sudo
Add yourself to the group you created. Group membership is read at login, so log out and back in afterwards, or the capture will fail with a permission error.
sudo usermod -aG wireshark "$USER"
After logging back in, I checked the version, the file capabilities on dumpcap and my groups in one pass. The binary is group wireshark, not world executable, and carries only cap_net_admin and cap_net_raw.

Remember those two capabilities. They’re enough to sniff every packet on the interface, because raw sockets are all a capture needs. They turned out not to be enough to name every process, though, so that gap shapes most of what follows.
Recording processes with dumpcap and tshark
The new option takes an optional level, and the help text writes it as --process-info[=basic|full]. That bracket means the level is glued on with an equals sign, so type --process-info=full rather than leaving a space. Each level writes a different amount into the pcapng file.
basic, the default: process ID, name and start timefull: adds executable path, full command line, parent PID and user- Neither: plain pcapng, which is what
tsharkanddumpcapdo without the flag
Why did my first command line capture come back empty? The release notes say Wireshark records IDs and names by default, and the GUI does, because its capture.process_info preference starts out on “Record process IDs and names”. The command line tools don’t read it that way. I captured a curl to wireshark.org twice without the flag and got zero frames with process data from both tshark and dumpcap, so on the command line you have to ask for it.
Here is a basic capture with tshark, taken while a curl download and a small Python script ran as my user in a second terminal. The second command counts packets per process and direction, which is the quickest way I found to see who owns the traffic.
tshark -q -i ens4 -f "tcp port 443" --process-info -a duration:12 -w ~/basic.pcapng
tshark -r ~/basic.pcapng -T fields -e frame.process.pid -e frame.process.name -e ip.src -e ip.dst | sort | uniq -c | sort -rn
Every packet in this run was attributed, in both directions. Treat it as the best case, because both connections lived for seconds and both belonged to the user running the capture.
Capturing on 'ens4'
189 packets captured
94 27936 curl 10.128.0.55 104.26.11.240
84 27936 curl 104.26.11.240 10.128.0.55
7 27904 python3 10.128.0.55 142.0.200.124
4 27904 python3 142.0.200.124 10.128.0.55
Attribution only covers packets that belong to a TCP or UDP socket, so ARP and ICMP will always land under !frame.process.pid. Process data also needs pcapng, so keep the default output format and don’t add -F pcap. I haven’t tested it against container traffic, so if you capture inside Kubernetes the way the tcpdump pod capture guide does, check what the PID column shows before you trust it.
Reading the process fields with display filters
Everything lands under frame.process, so the usual display filter syntax works on it. These are the ones I ended up typing most.
frame.process.name == "curl": one program by nameframe.process.pid == 28831: one process instanceframe.process.pid: anything attributed at all!frame.process.pid: traffic no local process was matched toframe.process.user == "philip": one user, full mode only
Full mode is where it gets interesting and slightly alarming. I ran a curl with a fake bearer token in a header, captured with --process-info=full, and pulled the extra fields out with tshark -T fields.
dumpcap -q -i ens4 -f "tcp port 443" --process-info=full -a duration:8 -w ~/full.pcapng
tshark -r ~/full.pcapng -Y 'frame.process.name == "curl"' -T fields -E header=y -e frame.process.pid -e frame.process.path -e frame.process.ppid -e frame.process.user -e frame.process.cmdline | head -2
The traffic was TLS, so the header never crossed the wire in clear text. The token is in the capture file anyway, because the command line is recorded with every argument intact.
frame.process.pid frame.process.path frame.process.ppid frame.process.user frame.process.cmdline
33848 /usr/bin/curl 33847 philip curl -s -o /dev/null --limit-rate 100k -H Authorization: Bearer c4g-demo-9f2b7e1d4a https://www.wireshark.org/download/src/wireshark-5.0.0.tar.xz --max-time 4
Full mode turns an encrypted capture into a file that can leak any secret passed as an argument, because nothing in the capture path masks it. Tools that take tokens on the command line are common, so this is not a corner case. I’d keep basic as the default and switch to full only on a box you own, for a capture that never leaves it unless it’s been stripped (more on that below).
Using the Processes profile in the GUI
On the GUI side, most of it is ready made. I started Wireshark with wireshark -C Processes and opened a capture that had process data; picking the profile from the status bar does the same. The profile adds two columns and two filter buttons, and it does nothing useful on a capture without process blocks.

- 1PID and Proc Name columns
- 2With process
- 3Process information
The PID and Proc Name columns (1) join the default packet list columns, and the With process button (2) applies frame.process.pid while its neighbour No process applies the negation. Expand the Frame tree and the Process information subtree (3) shows the PID, name and start time. On Linux the thread ID always read 0 (not available) in my captures, so don’t build anything on it.
For live captures in the GUI, the level is a drop-down rather than a flag. Open Capture, then Options (Ctrl+K), and pick the level on the Output tab before you press Start.

- 1Output
- 2Full: paths, command lines and users
On the Output tab (1), the Processes drop-down already says “Record process IDs and names”, which is why GUI captures get process data even when you never touched the setting. The last entry, marked Full: paths, command lines and users (2) and labelled “Record process IDs, names, paths, command lines and users” in the menu, is the GUI twin of --process-info=full, with the same token problem I showed above.
My favourite piece is the new conversation filter. Right-click any packet in the list and follow the two menus marked below.

- 1Conversation Filter
- 2Process
Conversation Filter (1) now has a Process entry (2) between the protocol choices. Clicking it on a curl packet swaps the display filter for one on that packet’s frame.process.pid, which matches every packet that one curl process sent or received, across all of its connections. That’s the view you want when one process opens a dozen sockets.
Testing what non-root and root can see
This is where my expectations broke. The dumpcap man page says it can describe your own processes, and everyone’s with CAP_SYS_PTRACE or as root. So I ran a download as philip and another as root, both rate limited to keep them alive, and captured the same traffic twice, once as each user, while both downloads kept running in other terminals.
dumpcap -q -i ens4 -f "tcp port 443" --process-info=full -a duration:8 -w /tmp/as-philip.pcapng
sudo dumpcap -q -i ens4 -f "tcp port 443" --process-info=full -a duration:8 -w /tmp/as-root.pcapng
Counting packets per process in each file gave a clean split. Each capture named only its own user’s curl and left the other download unattributed, even though both downloads ran for the whole capture window.

Root seeing only root’s processes surprised me more than anything else in this test. I tried the obvious fixes next, each with fresh captures and the same two downloads running.
- Added
cap_sys_ptraceto dumpcap with setcap: philip still saw only philip - Added
cap_dac_read_searchas well: no change - Ran the capture with sudo on those same file caps: root saw only root’s curl
These are the commands for the first two attempts. The capture line is the one from above, run as philip after each setcap, followed by getcap and a per-process count of the new file:
cat /proc/sys/kernel/yama/ptrace_scope
sudo setcap cap_net_raw,cap_net_admin,cap_sys_ptrace+ep /usr/local/bin/dumpcap
sudo setcap cap_net_raw,cap_net_admin,cap_sys_ptrace,cap_dac_read_search+ep /usr/local/bin/dumpcap
getcap /usr/local/bin/dumpcap
tshark -r /tmp/as-philip.pcapng -T fields -e frame.process.pid -e frame.process.name -e frame.process.user | sort | uniq -c | sort -rn
The getcap lines confirm each set took effect, and the per-process counts underneath barely move. The empty rows are the other user’s download.
1
/usr/local/bin/dumpcap cap_net_admin,cap_net_raw,cap_sys_ptrace=ep
222 41658 curl philip
180
/usr/local/bin/dumpcap cap_dac_read_search,cap_net_admin,cap_net_raw,cap_sys_ptrace=ep
189 41658 curl philip
160
# same caps, sudo dumpcap
178
164 41911 curl root
Put the default set back afterwards with sudo setcap cap_net_raw,cap_net_admin+ep /usr/local/bin/dumpcap. My reading, which I haven’t proven: the lookup walks /proc/<pid>/fd to match socket inodes, those directories are mode 0500 and owned by the process owner, and dumpcap drops every capability except CAP_SYS_PTRACE after it opens the interface. The first line of that output is Ubuntu’s ptrace_scope, which was 1. Whatever the cause, plan your captures around it: to attribute a service’s traffic on Linux, run the capture as the user that owns the service.
Watching short-lived connections slip through
The man page does warn that a socket must still exist when its packet is captured. How much does that cost in practice? I ran 20 quick curls to example.com and 5 rate limited two second downloads while dumpcap captured in basic mode. Start the capture first, then run the two loops in a second terminal within its 30 second window.
dumpcap -q -i ens4 -f "tcp port 443" --process-info -a duration:30 -w /tmp/short2.pcapng
for i in $(seq 20); do curl -s -o /dev/null https://example.com/; sleep 0.5; done
for i in $(seq 5); do curl -s -o /dev/null --limit-rate 50k https://www.wireshark.org/download/src/wireshark-5.0.0.tar.xz --max-time 2; done
I then counted packets and attributed packets per TCP stream with tshark and awk. Counting per stream matters here, because a stream is either one quick request or one download.
tshark -r /tmp/short2.pcapng -T fields -e tcp.stream -e frame.process.name | awk '{t[$1]++; if ($2!="") a[$1]++} END {for (s in t) printf "stream %2d %3d packets %3d attributed\n", s, t[s], a[s]+0}' | sort -k2 -n
Streams 0 to 19 are the quick curls, 20 and 22 to 25 the downloads, and 21 is a stray three packet stream.
stream 0 22 packets 0 attributed
stream 1 23 packets 0 attributed
stream 2 22 packets 0 attributed
stream 3 22 packets 0 attributed
stream 4 24 packets 24 attributed
stream 5 24 packets 0 attributed
stream 6 22 packets 0 attributed
stream 7 23 packets 0 attributed
stream 8 23 packets 23 attributed
stream 9 23 packets 0 attributed
stream 10 25 packets 0 attributed
stream 11 22 packets 0 attributed
stream 12 22 packets 22 attributed
stream 13 25 packets 0 attributed
stream 14 24 packets 0 attributed
stream 15 27 packets 0 attributed
stream 16 23 packets 0 attributed
stream 17 23 packets 0 attributed
stream 18 23 packets 0 attributed
stream 19 23 packets 0 attributed
stream 20 65 packets 62 attributed
stream 21 3 packets 0 attributed
stream 22 65 packets 61 attributed
stream 23 70 packets 66 attributed
stream 24 75 packets 72 attributed
stream 25 64 packets 64 attributed
Grouped by kind of connection, the table says this:
- Quick curls: 3 of 20 attributed, all or nothing per stream
- Downloads: attributed, minus the first 0 to 4 packets
- Stream 21, three packets: nothing
Missing packets at the start of a download are probably from the opening exchange, which is often the part you care about most. I didn’t check frame by frame which ones lost their PID, so treat that as likely rather than proven. Either way, a process filter can hide how a connection began, so follow up with a stream filter to see the whole thing.
That pattern fits the lookup code in wsutil/process_lookup.c, which rebuilds its socket table only after a lookup misses, and at most once every 250 ms. A small HTTPS request can easily open and close its socket inside that window, which would explain the all or nothing result. For DNS lookups, health checks or anything else that opens and closes fast, treat a missing PID as “unknown”, never as “not from this host”.
Seeing multicast with several owners
The release notes say a packet that several processes could have sent or received, such as a multicast datagram, is attributed to all of them. I wanted to see what that looks like in the fields, so I started two receivers joined to 239.1.1.1 on port 5007 and a sender, all small Python scripts on box1.

Every datagram carried three PIDs, sender first (33728) and then both receivers, with the names as a matching comma list. That is accurate, but it changes how you read the PID column, because a value like 33728,33717,33718 is one packet with three owners, not three packets. If you export to CSV for a spreadsheet, split that field before you sum anything by process.
Stripping process data before you share a capture
Given the command line problem, the most useful companion command is the new editcap option. It writes a copy without the process blocks and leaves the packets alone.
editcap --discard-process-info ~/full.pcapng ~/full-clean.pcapng
I checked the result three ways: frames with process data, the fake token as raw bytes, and the file sizes. The grep matters most, since it looks at the bytes a colleague would receive.
tshark -r ~/full.pcapng -Y frame.process | wc -l; tshark -r ~/full-clean.pcapng -Y frame.process | wc -l
grep -c c4g-demo ~/full.pcapng ~/full-clean.pcapng
ls -l ~/full.pcapng ~/full-clean.pcapng
All 152 attributed frames dropped to 0, the token is gone, and the file shrank by under 3 KB.
152
0
/home/philip/full.pcapng:1
/home/philip/full-clean.pcapng:0
-rw-rw-r-- 1 philip philip 436164 Dec 4 06:01 /home/philip/full-clean.pcapng
-rw------- 1 philip philip 438968 Dec 4 06:01 /home/philip/full.pcapng
Look at the permissions too. Dumpcap creates its files mode 600, while the stripped copy follows your umask and came out group writable, so the “safe” file is the more exposed one on a shared box. If you’re attaching captures to a ticket or working through them with the TCP vs UDP walkthrough, strip first and share the clean copy only.
What I still don’t know
Process aware capture already changed how I’ll triage a noisy host: start from the process, then look at the packets. A few questions stayed open after the lab, and they’re the ones I would want answered before relying on it in production.
- Why root sees only root’s processes, against what the man page says
- Whether a shorter refresh interval is exposed anywhere; I found no option
- How Windows and macOS compare; I only tested Linux
- Whether processes in other network namespaces show up at all
The first one matters most, because it decides whether a sensor like the one in this Security Onion build could ever use this for every user on a host. If you’ve had dumpcap name another user’s process on a recent kernel, I’d like to know what capabilities it had. The full list of what’s new is in the Wireshark 5.0.0 release notes, and if you’re newer to the analyzer, the Wireshark on Kali walkthrough and these Wireshark books cover the basics this post skips.