RepositorySwift
RockxyApp

RockxyApp/Tracexy

Native, local-first network intelligence for macOS—capture live traffic, inspect PCAP/PCAPNG files, and investigate sessions, protocols, processes, flows, and packet evidence.

514stars
29forks
34issues
5views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: network-monitoring

#1 Repository of the week

1
TINIX TRENDING·Topic: packet-capture

#1 Repository of the week

1
TINIX TRENDING·Topic: network-debugging

#1 Repository of the week

Tracexy app icon

Tracexy

Native macOS network intelligence, organized around sessions—not packet noise.

Capture live traffic or open a saved capture, then investigate hosts, processes, protocols, timing, and raw packet evidence in one local-first workspace.

Build and validation status macOS 14 or later Swift 5 MVP status AGPL-3.0 license Pull requests welcome


Tracexy is an open-source network intelligence app built specifically for macOS. It captures traffic passively and turns frames into explainable sessions and correlated activities: which process contacted which host, which protocols appeared, how much data moved, and what evidence supports the grouping.

The main experience is session-first. Raw protocol fields and hex remain one click away when the bytes are the answer, but they do not dominate the workspace.

[!IMPORTANT] Tracexy is under active MVP development. Live capture, capture-file IO, bounds-checked decoding, session grouping, filtering, correlation, and the native investigation workspace are implemented and tested. Stateful reassembly, persistent storage, deeper analysis, enforced export redaction, and AI/MCP integration remain future work.

See Tracexy in action

Tracexy live capture workspace with session list, traffic graph, decoded packet fields, and raw bytes

From live capture to explainable sessions and packet-level evidence.

Tracexy interface picker showing Wi-Fi, Ethernet, Thunderbolt, tunnel, VPN, and loopback sources

Choose the interface and start from the traffic surface that matters.

Tracexy capture settings for interface selection, BPF filters, snap length, and packet retention

Control capture scope, filters, packet detail, and retention before traffic leaves the wire.

Tracexy source tree grouping captured sessions by application and address

Navigate from applications to domains and IP addresses without losing the session context.

Tracexy packet inspector showing decoded protocol fields beside raw hexadecimal bytes

Inspect decoded protocol fields alongside the raw bytes that support them.

Watch the full 45-second walkthrough on Rockxy Web →

Why Tracexy

  • Sessions before packets. Bidirectional traffic is grouped by canonical five-tuple so one conversation stays together.
  • Explainable correlation. Related DNS, TCP, TLS, and HTTP observations can be grouped into an activity with visible confidence and contested-attribution states.
  • Native investigation workflow. The app uses SwiftUI and AppKit for a real macOS sidebar, table, toolbar, split views, inspectors, menus, keyboard behavior, and SF Symbols.
  • Evidence stays available. Summaries lead to decoded layers, field ranges, and raw hex without leaving the selected session.
  • Honest unknowns. Missing process, hostname, protocol, or timing evidence is shown as unknown; Tracexy does not manufacture telemetry.
  • Local-first by design. Captured frames and derived session data stay on the Mac unless the user explicitly exports a capture.

What works today

AreaAvailable now
CaptureLive libpcap capture through a privileged helper; interface discovery; bounded frame buffering; classic PCAP read/write; PCAPNG read
DecodeEthernet, loopback and tunnel framing; ARP; IPv4/IPv6; ICMP/ICMPv6; TCP/UDP; DNS, TLS, HTTP/1, and QUIC summaries
SessionsDirection-normalized five-tuple grouping, byte and timing summaries, status derivation, and higher-level activity correlation
InvestigationOverview, session table, flow map, scoped search, structured filters, grouping, context menus, decoded fields, and hex evidence
WorkspaceNative sidebar, independent workspace tabs, vertical or bottom inspector layouts, status/footer surfaces, Focus Sets, and Noise Control
AttributionBest-effort process ownership from pktap metadata with a local socket-to-process fallback

Protocol coverage

Application-layer decoding is intentionally summary-level in the current MVP. It identifies a conversation from data visible in an individual frame; it does not reconstruct an encrypted or segmented stream.

LayerCoverageImportant limits
Link / networkEthernet II, BSD loopback/null, raw/tunnel IP, ARP, IPv4 options, IPv6 extension headers, ICMP/ICMPv6Partial decode is returned for malformed or truncated input
TransportTCP flags and common option TLVs; UDP endpointsNo TCP stream reassembly
DNSQuestions, compression pointers, and common answer records including A, AAAA, CNAME, MX, TXT, SRV, and SOANo DNSSEC analysis
TLSRecord and handshake metadata, offered/chosen versions, cipher information, SNI, and ALPNNo decryption, certificates, or application data
HTTP/1Request-line recognition and the Host headerNo full headers, response parsing, bodies, chunking, or decompression
QUICLong-header identification on UDP/443No frame or payload decode

See the source-grounded protocol matrix for exact field coverage.

Current boundaries

These are deliberate statements of present capability, not hidden roadmap promises:

  • No TLS or QUIC decryption.
  • No TCP reassembly or stateful connection engine.
  • No deep HTTP/2, HTTP/3, or WebSocket decoder.
  • No persistent capture database.
  • No durable security-analysis engine.
  • No MCP or AI data path.
  • Privacy preferences for redaction, IP masking, credential stripping, and retention are stored, but the export-redaction and auto-clear pipelines that would enforce them are not implemented yet.

Privacy and security

Network captures can contain credentials, private hostnames, personal messages, and application payloads. Tracexy treats them as sensitive by default.

  • Captured traffic and derived sessions remain local; Tracexy does not upload capture payloads.
  • Live capture starts when the user presses Start. If the user explicitly enables Auto-start capture on launch, that preference starts capture when the app opens.
  • Opening .pcap or .pcapng files does not require the privileged helper or administrator access.
  • Saving a capture currently writes raw captured frames. Redact sensitive data yourself before sharing; the Settings redaction preferences do not sanitize exports yet.
  • Live capture crosses a narrow, typed XPC boundary with code-signing checks around the privileged helper.
  • Signed update checks are separate from capture data and never include captured traffic.

Read Privacy & security for the full trust model. Report vulnerabilities privately through SECURITY.md, not a public issue.

Quick start

Requirements

  • macOS 14 or later
  • Xcode 16 or later
  • An Apple Developer Team for code-signing the app and helper

SwiftLint and SwiftFormat are optional for building, but required for contribution checks.

Get the source

git clone https://github.com/RockxyApp/Tracexy.git
cd Tracexy
cp Configuration/Developer.xcconfig.template Configuration/Developer.xcconfig
open Tracexy.xcodeproj

Set your own Team ID in Configuration/Developer.xcconfig:

TRACEXY_TEAM_ID = YOUR_TEAM_ID_HERE
CODE_SIGN_IDENTITY = Apple Development
DEVELOPMENT_TEAM = $(TRACEXY_TEAM_ID)

Developer.xcconfig is gitignored. Never commit your signing identity, certificates, provisioning profiles, packet captures, or exported sessions.

Opening a saved capture is the quickest zero-helper path through the decode and session pipeline. Live capture additionally requires one-time approval for the privileged helper in System Settings.

Build and validate

# Build
xcodebuild -project Tracexy.xcodeproj -scheme Tracexy -destination 'platform=macOS' build

# Full app and UI test suite
xcodebuild -project Tracexy.xcodeproj -scheme Tracexy -destination 'platform=macOS' test

# Non-mutating style checks
swiftformat --lint .
swiftlint lint --strict

Changes to TracexyCaptureHelper/ or the shared XPC protocol require uninstalling, rebuilding, and reinstalling the helper; rebuilding the app alone does not hot-reload the privileged service.

Detailed setup and troubleshooting live in Getting started.

Architecture

Capture  →  Protocol  →  Session  →  Workspace
LayerSourceResponsibility
CaptureTracexy/Core/Capture, TracexyCaptureHelperLive acquisition, capture-file IO, interface discovery, and capture statistics
ProtocolTracexy/Core/ProtocolBounds-checked packet access and stateless per-frame decoding
SessionTracexy/Core/SessionCanonical conversation grouping, summaries, and activity correlation
WorkspaceTracexy/Models, Tracexy/ViewModels, Tracexy/ViewsApp policy, workspace state, orchestration, and native presentation

The privileged helper exposes typed capture operations rather than arbitrary shell or file access. Capture files and packet bytes are untrusted input: decoders return partial results or controlled errors instead of reading beyond available data.

See Architecture for the repository map, current seams, and known transitional debt.

Documentation

GuideContents
Documentation indexCurrent implementation status and navigation
Getting startedBuild, signing, helper approval, and validation
UsageCapture, sessions, correlation, filtering, and inspectors
ArchitectureData flow, module boundaries, and repository map
Protocol supportExact decode coverage and limitations
Privacy & securityLocal-first posture and privileged trust boundary
ChangelogUnreleased work and future tagged releases

Contributing

Bug reports, tests, documentation fixes, protocol fixtures, and focused pull requests are welcome. Please read CONTRIBUTING.md before submitting a change.

For decoder work, include normal, truncated, and malformed-input coverage. Captures attached to an issue must be reviewed and redacted first.

License

Tracexy is available under the GNU Affero General Public License v3.0.

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
secdev/scapy

Scapy: the Python-based interactive packet manipulation program & library.

12.7k
Nov 29, 2026
RepositoryRust
GyulyVGC/sniffnet

Comfortably monitor your network traffic 🕵️‍♂️

43.4k
Nov 28, 2026
RepositoryPython
netalertx/NetAlertX

Centralized network visibility and continuous asset discovery. Monitor devices, detect change, and stay aware across distributed networks.

7.5k
Dec 1, 2026
RepositoryRust
matthart1983/netwatch

Network diagnostics in your terminal. Inspect traffic, connections and network behaviour. Built with Rust.

3.9k
Nov 28, 2026
Repository
jlevy/the-art-of-command-line

Master the command line, in one page

162.8k
Jun 25, 2024
RepositorySwift
MonitorControl/MonitorControl

🖥 Control your display's brightness & volume on your Mac as if it was a native Apple Display. Use Apple Keyboard keys or custom shortcuts. Shows the native macOS OSDs.

34.9k
Oct 14, 2026
RepositorySwift
jordanbaird/Ice

Powerful menu bar manager for macOS

30.1k
Oct 6, 2026
RepositorySwift
CocoaDebug/CocoaDebug

iOS Debugging Tool 🚀

4.1k
Jun 11, 2023
RepositoryC
arkime/arkime

Arkime is an open source, large scale, full packet capturing, indexing, and database system.

7.6k
Dec 1, 2026