Torrential Leaks: BitTorrent Metadata and the Attribution Gap

You joined a swarm. An endpoint appeared in a peer list. Put enough observations together and a pattern emerges. The difficult part is proving whose pattern it is.

The tracker answers with addresses. Nobody has to break the file encryption to read them. A participant looking for peers gets endpoints it can try to contact, and an observer can save the same response.

Then the spreadsheet starts acquiring ambitions. An address becomes a person. A peer-list entry becomes a completed download. Two matching interests become an identity. Each promotion needs evidence the preceding row did not contain.

De Jong, Cascavilla, and De Pascale's 2026 paper, Breadcrumbs in the Digital Forest, reports more than 60,000 unique IP addresses across 206 popular torrents. Their proof of concept combines tracker responses, torrent-index information, and IP enrichment to examine behavioral patterns. Those are the authors' collected observations. I have not reproduced their collection here.

The tracker has two different answers

A tracker announce can return peers. A scrape returns swarm statistics such as seed and leecher counts. Replacing /announce with /scrape does not turn the response into a list of people. HTTP tracker responses are bencoded, and compact IPv4 peers occupy the peers byte-string field. UDP announces have a different binary response header. The base protocol, compact format, and UDP specification define those boundaries.

A UDP tracker is not mandatory for every swarm. Clients can discover peers through other mechanisms. An announce also need not expose a home address: the observed source may be a VPN exit or another shared endpoint. Whether anyone retains that observation, and for how long, depends on the collector.

This Python 3.9+ block decodes an already extracted compact IPv4 peer field. It does not decode a complete HTTP response or a UDP packet, and it makes no network requests. The fixture uses a documentation address.

from ipaddress import IPv4Address
import struct

def decode_compact_ipv4(payload: bytes) -> list[tuple[str, int]]:
    if len(payload) % 6:
        raise ValueError('Compact IPv4 peer data must contain six-byte records')
    return [
        (str(IPv4Address(address)), port)
        for address, port in struct.iter_unpack('!4sH', payload)
    ]

fixture = IPv4Address('192.0.2.10').packed + struct.pack('!H', 6881)
assert decode_compact_ipv4(fixture) == [('192.0.2.10', 6881)]
assert decode_compact_ipv4(b'') == []
try:
    decode_compact_ipv4(fixture + b'\x00')
except ValueError:
    pass
else:
    raise AssertionError('Truncated record accepted')

The six-byte boundary matters. Treating the complete response body as peer records produces addresses from headers or bencoding. A string that looks like an IP in the output is not evidence that a peer supplied it.

The pattern has to be unique somewhere

One endpoint appears in swarms A and B. Another appears in A and B too. Counting two overlaps for both does not make either unique.

The next block groups endpoints by their exact observed swarm sets. It returns only multi-swarm patterns held by one endpoint in the supplied dataset. In the fixture, two addresses share A/B and one has A/C. Only the A/C endpoint survives the uniqueness check.

from collections import defaultdict

def unique_observed_patterns(
    swarm_records: dict[str, set[str]],
) -> dict[str, tuple[str, ...]]:
    by_endpoint = defaultdict(set)
    for swarm, endpoints in swarm_records.items():
        for endpoint in endpoints:
            by_endpoint[endpoint].add(swarm)
    by_pattern = defaultdict(list)
    for endpoint, swarms in by_endpoint.items():
        by_pattern[tuple(sorted(swarms))].append(endpoint)
    return {
        endpoints[0]: pattern
        for pattern, endpoints in by_pattern.items()
        if len(pattern) >= 2 and len(endpoints) == 1
    }

records = {
    'swarm-a': {'192.0.2.10', '192.0.2.20', '192.0.2.30'},
    'swarm-b': {'192.0.2.10', '192.0.2.20'},
    'swarm-c': {'192.0.2.30'},
}
assert unique_observed_patterns(records) == {
    '192.0.2.30': ('swarm-a', 'swarm-c')
}
assert unique_observed_patterns({}) == {}
assert unique_observed_patterns({'a': {'192.0.2.10'}}) == {}

Both blocks ran locally on October 25, 2026. Six fixture checks passed, including rejection of a truncated peer record and exclusion of the shared pattern. No tracker was contacted and no third-party peer information was collected.

The function does not infer identity, compare timing windows, or establish download completion. Its uniqueness result applies only to the input snapshot. An unobserved endpoint may share the pattern. A larger dataset or a different collection window can change the result.

The VPN row

A tracker reached through a VPN sees the VPN-facing endpoint. That changes the address available to an observer. It does not erase previously collected observations from another connection.

An organization label containing “cloud” or “hosting” does not establish that an address is a VPN. Shared exits, carrier-grade NAT, dynamic assignments, and several users behind one gateway complicate attribution. Save the enrichment source and observation time. Keep a provider classification separate from a claim about the subscriber or person.

Matching interests across a residential address and a VPN exit can suggest a hypothesis. The same popular torrent, a shared exit, or incomplete collection can also produce overlap. A link to one actor requires corroboration. Rotating addresses do not make correlation impossible, and a graph edge does not make correlation correct.

Keep the endpoint attached to the timestamp

For a privacy check, inspect the client's interface binding, routing, IPv6 behavior, and behavior when the intended tunnel drops. Test those properties using traffic and infrastructure you control. A tunnel icon does not establish which interface the client used. Separate activity contexts where the threat model calls for it, while recognizing that repeated timing and behavior may still connect them.

For an evidence record, retain the collection time, source, info hash, transport, endpoint, and acquisition method. A tracker-listed address, a successful peer handshake, and a verified content transfer support different statements. A subscriber record supplies another link, and still may not identify the person at the keyboard.

The torrent layer can supply useful observations. The cellular layer has different measurements and limits, discussed in Clutch. Combining the rows does not remove the gaps between them.

Correction, October 25, 2026: distinguished announces from scrapes, corrected the cited dataset to 206 torrents, and replaced broken response parsing and overlap counting with locally checked offline blocks. Removed guaranteed deanonymization, permanent-log, and VPN-identity claims. No new swarm collection was performed.

GhostInThePrompt.com // The peer list has an address. The name still needs evidence.