The project is in a healthy, maintained state
Product native SDK operations through a UTF-8 JSON C ABI; driver installed separately.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 1.1, < 2
 Project Readme

Connection Trace Studio

Read-only Windows connection lifecycle diagnostics with a native C++ SDK and a WFP kernel sensor.

Inspect the application, process, local/remote address and port, and observed Windows Filtering Platform stage behind a connection. Designed as a compact integration example for desktop diagnostics, OEM software and support tooling.

Offline preview with synthetic data; no live capture

Microsoft-signed evaluation package: the driver is signed by Microsoft Windows Hardware Compatibility Publisher. The returned package and self-contained console installer passed installation and functional checks in a Windows 10 build 19045 x64 VM. Earlier normal and targeted Driver Verifier campaigns covered the same submitted executable. Windows 11, HVCI and extended coexistence qualification remain pending. Microsoft signing is not WHQL certification or a production guarantee. Targets Windows 10 2004+ / Windows 11 x64.

Install and use

  1. Download the complete release archive from Releases.
  2. Run ConnectionTraceSetup.exe and choose Install / reinstall, or run ConnectionTraceSetupConsole.exe /install from an administrator console. The installers refuse an unsigned or untrusted driver catalog. Restart only if Windows requests it; no restart or capture starts automatically.
  3. Run ConnectionTraceStudio.exe as administrator and choose Start capture. Application paths are off by default; select Include application paths before starting only when you need that sensitive metadata. The application opens inactive. Generate ordinary network activity with your own applications to observe events. Stop or closing the app removes only its dynamic WFP filters and disables capture.
  4. To remove it, use Uninstall or ConnectionTraceSetupConsole.exe /uninstall.

One active sensor client is allowed. ConnectionTraceStudio.exe --preview shows synthetic documentation data without opening the driver or WFP engine. Building the installer source without an opaque driver payload produces a source-development executable that cannot install a driver.

For console output:

ConnectionTraceCLI.exe --capture 30
ConnectionTraceCLI.exe --capture 30 --include-paths

This performs a 30-second explicit local capture. Ctrl+C stops it. Redirect console output if needed; the application does not upload or automatically save anything. Administrator access is needed for the sensor and WFP session, not to edit or build the open-source application.

--capture-json 30 C:\Reports\new.json explicitly creates a structured report and a .ready marker after capture starts. Existing files are never overwritten. It records stage/port/PID metadata, opaque endpoint identifiers and path lengths, rather than exporting application paths. Opaque endpoint IDs are hexadecimal JSON strings so JavaScript preserves all 64 bits. --session-self-test C:\Reports\new.json checks a real installed sensor's Start/Stop cycles with paths off/on/off; it is separate from the offline build tests.

What is observed

Stage Meaning
Authorize / Reauthorize ALE outbound connection authorization, including separately marked policy reauthorization
Established / authorized TCP established notification, or non-TCP traffic authorization; not proof of an application protocol handshake
Endpoint closed Socket/endpoint lifetime notification; may include endpoints with no observed outbound start

Both IPv4 and IPv6 layers are registered. IPv4-mapped dual-stack sockets can appear at the IPv6 layer. PID, endpoint identifier, protocol and addresses have availability flags. Optional paths are bounded to 127 UTF-16 code units with a truncation flag. Endpoint identifiers are pseudonymized separately for each capture; they are temporary correlation identifiers, not pointers or permanent machine or process identities. PID reuse, UDP multiple peers, missing events and reauthorization mean a row is not automatically a distinct successful TCP connection. Real port values are exported only for TCP/UDP. ALE's ICMP type/code aliases are not misrepresented as transport ports. The correlator marks sequence gaps and ambiguous lifecycle reuse as incomplete; it does not infer missing events.

Timestamps use the kernel performance counter. Intervals between observed stages are WFP stage intervals, not end-to-end latency, packet RTT, DNS timing or a guaranteed account of why another firewall permitted or blocked a connection. Higher-priority filters can prevent an inspection callback. Capture starts after Start; existing connections can lack initial events. The kernel ring is bounded to 2,048 events and the UI shows the latest 500 rows. Drop counters expose overload; this is not a complete packet capture or an EDR/security enforcement product.

The driver never waits for a user-mode decision, reads packet contents, decrypts TLS, modifies traffic or grants caller-supplied code access to the kernel. It does not replace Windows Firewall. A 20 ms user-mode polling interval controls display/consumer updates; it does not delay or pend a connection. The SDK checks that its dynamic WFP provider still exists at most once per second; if BFE loses the session, capture reports an error instead of silently staying active.

Minimal C++ integration

Compile SDK/ConnectionTrace.cpp with your application and include its header. Link setupapi, fwpuclnt, ws2_32 and rpcrt4. All operations are single-thread owned; use one Session on one thread.

ConnectionTrace::Session capture;
capture.Start();
for (const auto& event : capture.Read()) {
    std::wcout << event.ProcessId << L" -> "
               << ConnectionTrace::Address(event, true) << L'\n';
}
// Scope exit stops capture and removes this session's dynamic WFP objects.

Start(true) opts in to application paths; Start() omits them at the driver. Read() is nonblocking and returns at most 64 decoded, validated event records. Call it repeatedly in your event loop; see Examples/capture.cpp. Status() exposes the counter frequency, produced/dropped counts and ring depth. Correlator is a bounded best-effort endpoint helper, with missing-start and eviction information; it must not be treated as a lossless activity log.

Build and validation

Demo/evaluation driver source is available; see driver/README.md for build instructions and separate evaluation-source terms. Those terms apply to Titan-authored driver code. Third-party source licenses and existing application/SDK licenses remain applicable. Full/commercial implementation and private signing or activation material are excluded.

Visual Studio 2022 Desktop C++ tools, CMake 3.20+, Windows SDK, x64:

.\Build.ps1
.\Build.ps1 -Asan
# Optional: build one-file installers with an opaque signed package.
.\Build.ps1 -DriverPackageDirectory C:\Signed\ConnectionTrace

Outputs: obj/Build/Release. Tests validate malformed protocol data, bounded correlation under stress and package trust rejection without installing a driver, creating WFP filters or capturing live traffic. See validation status. Evaluation driver source is documented in driver/README.md. Full/commercial implementation and signing/submission assets are excluded.

Licensing and integration

Application, two-file SDK, examples and installer source: MIT. The separate driver binary is provided for evaluation under its included binary terms; this preview has no technical trial timer or activation system. For production redistribution, OEM integration or support, add titancsa on Discord.

Use only on systems you own or are authorized to administer. Address, process and application metadata can be sensitive even without packet contents. The project is intended for lawful diagnostics and development. You are responsible for your use; software is provided as described in its license, subject to applicable law.

Technical references: Microsoft WFP callout considerations, dynamic WFP object lifetime, ALE endpoint lifetime. Built-in per-app permit/block policies can be configured from user mode without a new kernel driver; this sensor focuses on its bounded metadata integration interface.

Paquets et installation

Les sources, licences, guides API et exemples sont regroupes dans le depot SDK dedie. Choisis le paquet a installer puis execute sa commande dans son dossier.

Registre Paquet Installation / utilisation
vcpkg connection-trace-studio vcpkg install connection-trace-studio:x64-windows
Conan connection-trace-studio conan install --requires=connection-trace-studio/0.1.0 -r titancsa --build=missing -s compiler.cppstd=17
NuGet Connection-Trace-Studio.Native Install-Package Connection-Trace-Studio.Native -Version 0.1.0
NuGet ConnectionTraceStudio.SDK dotnet add package ConnectionTraceStudio.SDK --version 1.0.0
PyPI connection-trace-studio Commande prevue apres publication : python -m pip install connection-trace-studio==1.0.0
Conda connection-trace-studio conda install --override-channels -c https://raw.githubusercontent.com/TitanCSA/sdk-packages/089bc73095aa8eda89bacbe10d0b9e58394b0207/conda-channel -c conda-forge connection-trace-studio (canal TitanCSA)
crates.io connection-trace-studio cargo add connection-trace-studio@1.0.0
npm connection-trace-studio Commande prevue apres publication : npm install connection-trace-studio@1.0.0
Maven Central io.github.titancsa:connection-trace-studio io.github.titancsa:connection-trace-studio:1.0.0 (pom.xml / Gradle)
JitPack com.github.titanfyre:Connection-Trace-Studio com.github.titanfyre:Connection-Trace-Studio:java-sdk-v1.0.0 (avec le depot JitPack)
Go Modules github.com/titanfyre/Connection-Trace-Studio/Connection-Trace-Studio-Go-modules go get github.com/titanfyre/Connection-Trace-Studio/Connection-Trace-Studio-Go-modules@v1.0.0
pkg.go.dev github.com/titanfyre/Connection-Trace-Studio/Connection-Trace-Studio-Go-modules Documentation : https://pkg.go.dev/github.com/titanfyre/Connection-Trace-Studio/Connection-Trace-Studio-Go-modules@v1.0.0
PowerShell Gallery ConnectionTraceStudio Install-Module ConnectionTraceStudio -RequiredVersion 1.0.0 -Scope CurrentUser
pub.dev connection_trace_studio Commande prevue apres publication : dart pub add connection_trace_studio:1.0.0
RubyGems connection-trace-studio gem install connection-trace-studio -v 1.0.0
Packagist titancsa/connection-trace-studio composer require titancsa/connection-trace-studio:1.0.0

Pour vcpkg et Conan, configure d abord le registre TitanCSA avec le guide complet. Le guide explique aussi Maven/Gradle, les prerequis et le chargement des DLL. Les pilotes/applications du produit sont installes separement. Les commandes marquees prevues ne sont pas encore disponibles.

Les anciens imports Go et versions JitPack gardent leurs tags. Pour les anciennes archives SDK, utilise les liens de remplacement.

Commercial integration and support

Important

Full version and commercial licensing

Discord username: titancsa

Open Discord, choose Friends > Add Friend, enter titancsa, then send a direct message. Mention Connection Trace Studio and ask about the full / production version, commercial use or OEM redistribution.

Include your intended use and deployment size to discuss pricing, availability and the appropriate licensing / access instructions.