Windows Internals
The Windows facilities fragcap reads to attribute traffic without touching a target process.
Access control list
Also known as: ACL, discretionary access control list, DACL
A Windows object permission list identifies who may perform each operation.
Each permission entry names a security identifier and grants or denies operations such as reading a file, enumerating a directory or changing permissions. The discretionary list participates in access checks against a Windows access token; an object's owner and a user allowed to read its contents are separate facts.
Why it matters here
fragcap grants retained-bundle access to the exact intended user rather than relying on group ownership. Historical repair changes only confirmed permissions, preserving captured contents and recovery records.
See also: Security identifier, Windows access token
References:
- Microsoft Learn, Access Control Lists, the permission-list and access-check model.
Security identifier
Also known as: SID
A Windows identifier names an individual account or another security principal.
Windows uses these identifiers in access control lists and access tokens. An individual user identifier differs from the identifier of a group that user belongs to; matching a group or an object's owner does not by itself prove the individual user's ordinary read access.
Why it matters here
fragcap binds its retained-output recipient to one exact individual identifier. Elevation under different credentials requires explicit recipient authentication and an exact destination rather than guessing the desktop user.
See also: Access control list, Windows access token
References:
- Microsoft Learn, Security Identifiers, Windows principal identity and identifier lifetime.
Windows access token
Also known as: Access token, primary token, impersonation token, linked token
A Windows access token records the account, groups and privileges used to check an operation's permissions.
A process or impersonating thread uses its token for access checks against access control lists. Linked tokens can represent the same account's administrative and ordinary contexts. A restricted token can disable group grants while retaining the same individual security identifier; it does not become a different human account.
Why it matters here
fragcap verifies retained files through the intended ordinary context, independently of the elevated writer. Controlled tests identify restricted equivalents explicitly and do not present them as separate-user or elevated-desktop measurements.
See also: Security identifier, Access control list
References:
- Microsoft Learn, Access Tokens, token identity, groups and privilege ownership.
- Microsoft Learn, CreateRestrictedToken, restrictions and deny-only group semantics.
ETW
Also known as: Event Tracing for Windows
A Windows kernel facility that emits structured events from instrumented subsystems to registered consumers.
Providers publish events, consumers subscribe. The kernel process provider emits an event at the moment a process is created, carrying the creating process's identifier.
Why it matters here
ETW supplies fragcap's process tree at creation time, which is the only way to get it right. Reconstructing ancestry afterward does not work, because Windows records a parent identifier but does not maintain it and recycles the values. Consuming an ETW session requires elevation.
See also: Process tree, PID recycling
References:
- Microsoft Learn, Event Tracing for Windows. The provider and consumer model.
IP Helper
The Windows API family exposing network configuration and connection state, including the tables of open TCP and UDP endpoints and their owning processes.
Why it matters here
GetExtendedTcpTable and GetExtendedUdpTable are fragcap's
socket table source. Measurement matters here: the direct
call costs 1 to 3 milliseconds against roughly 1800 sockets, while the
object-model projection of the same data costs 1400 to 2000. An
implementation reaching for the convenient interface would wrongly conclude
that polling is unworkable.
See also: Socket table
Named pipe
Also known as: FIFO
A Windows inter-process communication channel identified by a path under
\\.\pipe\, carrying a byte or message stream between processes on one host
or across a network. The Unix equivalent, a named FIFO, plays the same role for
the extcap stream on non-Windows hosts.
Why it matters here
Named pipes are invisible to packet capture. Reconnaissance observed one focal title's platform service receiving a pipe path on its command line, which is direct evidence for the fallback in specification section 6.2: a handoff over a pipe is out of scope for a network capture tool, and the documentation says so rather than leaving users to discover it.
A named pipe is also the transport the extcap integration streams to: the analyzer creates the pipe and hands fragcap the path, and fragcap connects as a client and writes pcapng to it.
See also: Loopback, extcap, Streaming sink
extcap
The interface an analyzer (Wireshark and compatible tools) uses to enumerate, configure, and start an external program as a capture source, defined by four command-line invocations the analyzer makes: list interfaces, list link types, declare configurable options, and capture to a named pipe.
fragcap implements extcap so it appears in an analyzer's interface list and is configured through a native dialog the analyzer renders from fragcap's option declaration, with no graphical code in fragcap. The capture streams pcapng to the analyzer's FIFO, the same bytes a file capture produces, so an unmodified analyzer reads a process-attributed live capture.
Why it matters here
extcap is how fragcap reaches an analyst's existing tool without a plugin. The
configurable option names are the capture command's own flag names, so the
analyzer's dialog and the command line select capture identically. See
specification section 14.5.
See also: Link type, Named pipe, pcapng, Streaming sink