Home▸Articles▸Cybersecurity

IPFS Bitswap Privacy Leak: Want-List Metadata

Understanding how the IPFS Bitswap protocol's want-list metadata can expose peer requests in a swarm.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What is the IPFS Bitswap Protocol?

The InterPlanetary File System (IPFS) is a distributed file system that aims to create a single version of truth for all data in the world. The Bitswap protocol, part of IPFS, manages content exchange between peers by broadcasting want-lists, which are lists of files or parts of files that each peer wants to download.

These want-lists are essential for efficient file sharing but can also reveal information about a peer's interests and requests within the swarm. This metadata leak is particularly concerning in public networks where privacy might be at risk.

How Does Want-List Metadata Work?

When peers join an IPFS network, they broadcast their want-lists to other peers, indicating which content they are interested in. This allows the swarm to efficiently share files among nodes that have overlapping interests. However, this process can inadvertently expose metadata about a peer's requests and preferences.

The simulation demonstrates how these broadcasts work by showing connected peers, broadcasts, and leaks, allowing users to observe the extent of the metadata exposure in different network configurations.

live demo · related simulation● LIVE

Network Configurations and Privacy

By toggling between a public DHT swarm and a private swarm.key network, users can see how the use of encryption keys can mitigate the privacy leak. A private swarm.key network encrypts want-lists with a shared key, ensuring that only trusted peers can understand the metadata.

Additionally, adjusting the trusted-peer count and auto want-list request rate sliders helps illustrate how these settings impact the frequency and volume of broadcasts, thereby influencing the level of exposure.

Public-DHT-Publish Toggle

The public-DHT-publish toggle allows users to enable or disable the automatic publication of want-list metadata in a DHT network. This feature is crucial for understanding how enabling such features can compromise privacy and how disabling them can enhance security.

By comparing the privacy score before and after toggling this option, learners can grasp the importance of controlling metadata exposure in decentralized networks.

Frequently asked questions

What is a DHT network in IPFS?

A Distributed Hash Table (DHT) network in IPFS is a peer-to-peer distributed system that allows nodes to find and share files without relying on central servers, enabling efficient content discovery and distribution.

How does encryption help with privacy in IPFS Bitswap?

Encryption ensures that only trusted peers can understand the metadata of want-lists. By encrypting these lists with a shared key (swarm.key), it prevents unauthorized nodes from learning about other peers' requests and interests, thus enhancing privacy.

Why is it important to control auto want-list broadcasts?

Controlling the frequency of auto want-list broadcasts helps manage the metadata exposure. Frequent broadcasts can increase the risk of exposing a peer's interests and requests, while less frequent broadcasts reduce this risk but may also slow down content discovery.

Can I use both public DHT and private swarm.key networks simultaneously?

While you can configure your IPFS node to use both a public DHT network for efficient content discovery and a private swarm.key network for secure communication, this setup requires careful management of keys and permissions to ensure that metadata is only shared with trusted peers.

Try it live

Everything above runs in your browser — open IPFS Bitswap Privacy Leak: Want-List Metadata and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open IPFS Bitswap Privacy Leak: Want-List Metadata simulation

What did you find?

Add reproduction steps (optional)