For the complete documentation index, see llms.txt. This page is also available as Markdown.

USB capture

USB audit records are available for supported USB capture representations. A PCAP link-type name alone does not prove the selected decoder understands that operating system's USB header layout.

Offline from dumpfile

net capture -read usb.pcap -out usb-audit -base usb -payload -dpi=false
net dump -read usb-audit/USB.ncap.gz -fields
net dump -read usb-audit/USB.ncap.gz -json

Use a small known fixture from the capture tool/platform you intend to support. Check record counts and payload fields against the source. Historical net.cap -r examples use an obsolete executable/flag; use net capture -read.

Live Capture

USB interfaces depend on the OS, driver, permissions and capture-tool support. List the interfaces visible to the installed runtime with net util -interfaces. Do not assume an XHC20 interface from older macOS versions exists or can be captured on current macOS. Capture with a compatible platform tool first if the Netcap live driver cannot supply the expected link format.

Audit Records

Record
Evidence

USB

Transfer/event metadata, bus/device/endpoint, status, lengths and supported payload

USBRequestBlockSetup

Setup request type, request, value, index and length

Read types/netcap.proto and dump -fields for current types; timestamps are integer nanoseconds rather than the historical string schema. -payload preserves available supported payload fields but cannot recover bytes omitted by the source capture.

Last updated