arXiv:2610.34004cs.NIOct 2026

Manuscript Offprint

arXiv:2610.34004

Garlic in a Box: I2P Network Emulator

Siddique Abubakr Muntaka, Faiza Hussein, Boutros Farah, Anthony Kashi, Jacques Bou Abdo, Jacques Demerjian

Siddique Abubakr Muntaka*, Faiza Hussein†, Boutros Farah‡, Anthony Kashi‡, Jacques Bou Abdo*, Jacques Demerjian‡§

*School of IT, University of Cincinnati, OH, USA †Dept. of Computer Science, Garden City University College, Ghana

‡LaRRIS, Faculty of Sciences, Lebanese University, Lebanon §Faculty of Arts and Sciences, USEK, Lebanon

{muntaksr@mail.uc.edu, bouabdjs@ucmail.uc.edu}

Abstract—The Invisible Internet Project (I2P) is a peer-to-peer anonymity network whose routing and peer-selection mechanics underlie a growing family of state-sponsored covert relay architectures. Studying these mechanics demands a controlled, reproducible environment. We present GARLIC-IN-A-BOX, an installable emulator that deploys a fully isolated network of unmodified I2P Java routers on a single host or cluster of hosts. Each router runs in its own Linux network namespace. A filesystem bootstrap removes the dependency on signed reseed servers, and synthetic geographic diversity activates the same location-aware peer-selection code paths present on the live network. A fifty-router deployment across five geographic locations stabilises in about twenty-five minutes and uses roughly 21 GB of memory. To demonstrate the platform's value, we model I2P peer selection as a two-stage process and conduct a reputation attack. Across five independent trials, the attack promotes the adversary into the victim's eligible selection set with perfect consistency, and the adversary is chosen for 1.38×1.38\times more tunnels than matched controls. The platform and its measurement pipeline are released to support reproducible I2P security research and hands-on cyber-defence training.

Index Terms—I2P, anonymous overlay, network emulator, peer selection, reputation attack, cybersecurity training, national security.

1. Introduction

The Invisible Internet Project (I2P) is a peer-to-peer anonymity network in which no router is merely a client [1]. Each one relays for others, and each one chooses the peers that make up its own tunnels from a reputation database it maintains locally. Those choices decide who can observe a flow, who can correlate it, and how much anonymity the network ultimately provides. They are also the point where the network is most open to manipulation, since an adversary able to influence those choices can raise its own standing in a victim's selection process.

This has become more than a theoretical concern. Operational Relay Box (ORB) networks operated by actors such as APT28, Volt Typhoon, and SPACEHOP have begun to reuse the peer-selection and relay-management techniques of anonymity systems, I2P prominent among them, spreading across compromised infrastructure on a scale no volunteer network approaches [2]–[5]. A Cybersecurity and Infrastructure Security Agency (CISA) advisory in April 2026 flagged these covert ecosystems as a strategic national security threat [6]. Whether the goal is to disrupt such traffic or to train the operators who must respond to it, the first requirement is the same: a clear understanding of how these networks decide where traffic goes.

That understanding is difficult to obtain. The live I2P network cannot be experimented on without raising ethical and reproducibility concerns, and a handful of manually assembled routers cannot capture the network-level behavior that a realistic deployment produces. Neither option gives an educator a safe place to teach these attacks in the first place.

We present GARLIC-IN-A-BOX, an installable emulator that closes this gap. It runs unmodified I2P Java routers, each isolated in a Linux network namespace, and provides a control interface, a scenario engine, and a measurement pipeline. The platform answers two needs at once. It gives researchers a controlled instrument for observing router behavior and collecting protocol data at scale, from peer selection and tunnel construction to any interaction the unmodified router exposes. It also gives defenders a safe range on which to rehearse against the protocol mechanics that covert relay networks now exploit.

In support of these goals, this paper contributes the following.

  1. A packaged, reproducible I2P emulator (Section 3) that runs unmodified routers in isolated namespaces and bootstraps without a signed reseed server.

  2. A two-stage probabilistic model of I2P peer selection (Section 5.1), distinguishing the selection stage, where a peer becomes eligible, from the delivery stage, where it must actually relay traffic.

  3. A profiles-as-measurement method (Section 5.2) that reads the victim's own on-disk peer state to quantify attack effects on an unmodified router.

  4. A five-trial empirical study (Section 5.3) of a reputation attack, with a deterministic result on the selection stage and a precise account of the delivery stage.

  5. A structured training capability (Section 6) that supports red-team and blue-team exercises on anonymous overlay threats, including scenarios relevant to ORB-style covert relay operations.