GitHub - aleff-github/onion-routing-anatomy: Onion Routing Anatomy - A free, open-source technical book exploring the Tor protocol byte by byte, with 20 reproducible laboratories on a private Tor network. Italian original, multilingual editions, GPL-3.0-or-later.
Pangram verdict · v3.3
We believe that this text is a mix of AI and human-written content.
AI likelihood · overall
AIArticle text · 1,550 words · 21 segments analyzed
Anatomia di Tor — The Tor Protocol, Byte by Byte English · Italiano · README in italiano Book · Laboratories · Documentation · Contribute English A free, open-source technical book about the Tor protocol, written in Italian: how Tor works from the bytes two relays exchange up to design choices, real attacks and open problems — with twenty laboratories that rebuild and test each mechanism on a private Tor network.
Origin, method, and an invitation to contribute.
This book builds on study documents I produced over several years, beginning with my bachelor's thesis. Under my editorial direction, AI tools made substantial contributions to expanding and organizing that material into the present technical narrative, as well as drafting figures, exercises, code, and laboratories. Despite technical checks, the book has not undergone independent expert review; mistakes may remain. Readers are invited to report them and submit corrections. I provide the work free of charge through the project's official channels under the GPL-3.0-or-later: "diffusione dei saperi senza fondare poteri" — spreading knowledge without establishing power. The license allows reuse and redistribution, including commercial redistribution, on its terms. See AI disclosure for the precise roles and limitations. This is an open project: readers can report errors, improve explanations and contribute technical corrections or translations. → Help improve this book 31 chapters · 20 reproducible laboratories · 176 exercises with solutions · 39 figures Download Italian original — first edition Format File Read on screen · A4 PDF · 298 pages Open A4 PDF E-reader · EPUB 3 Open EPUB Print a personal copy · 7×10 in PDF · 342 pages Open print PDF Cover View cover The Italian edition is free to read, download and share under the conditions of the GPL-3.0-or-later.
Official release: v1.0.0-it (seven files, SHA-256 checksums).
Zenodo (Italian edition): DOI 10.5281/zenodo.24207180.
Download the translated editions (version 1.0.0) Language PDF A4 PDF 7×10 EPUB 3 Cover Zenodo English PDF A4 PDF 7×10 EPUB Cover DOI Español PDF A4 PDF 7×10 EPUB Cover DOI Русский PDF A4 PDF 7×10 EPUB Cover DOI 简体中文 PDF A4 PDF 7×10 EPUB Cover DOI These AI-generated translations are published for free access but have not undergone independent linguistic review by native speakers. Errors of meaning, terminology or formatting may remain. The Italian original is the authoritative reference.
Report a translation issue.
GitHub Releases for the translations: English · Español · Русский · 简体中文. The existing v1.0.0-it release contains only the Italian edition. What the book contains Part I — History and foundations: anonymity and metadata, mix networks and remailers, from the NRL's onion routing to the Tor Project, Tor's threat model. Part II — The protocol at a low level: cryptography for Tor, network architecture, channels and the link protocol, cells, circuit creation (CREATE_FAST, ntor, ntor-v3), layered relay encryption and CGO, streams, SENDME and congestion control, the directory system, path selection and guards, onion services v3, DoS defences, censorship, bridges and pluggable transports. Part III — Tor in practice: torrc, the control port and Stem, a private Tor network, traffic analysis with Wireshark, onion services, relays and bridges, Tor Browser, Tails and Whonix, Tor Metrics and OONI, legal and ethical aspects in Italy and the EU. Part IV — Attacks and defences: traffic correlation, fingerprinting and Sybil attacks, real cases, operational mistakes — with an analytical, defensive approach. Part V — Research and future: academic research on Tor, Arti (Tor in Rust), open problems and proposals. 31 chapters, 4 appendices, 176 graded exercises with solutions, 39 original figures. Reference versions: tor 0.4.9.13, Arti 2.6.0. These are fixed reference versions for study and laboratory reproducibility, not the versions recommended for use on the public Tor network. For real deployments, install releases that include current security updates. Inside the book These are actual pages from the Italian A4 PDF, not promotional mockups. The page numbers refer to the PDF file, not the printed pagination. Cells and wire format · PDF page 63 Telescopic circuit construction · PDF page 78 Onion service rendezvous · PDF page 131 Private Tor network · PDF page 170 Open the complete A4 PDF · Provenance and SHA-256 Laboratories and reproducibility Twenty laboratories build torlab, a small educational Tor client in Python, and run it against a private Tor network (tor and Chutney built from source in Docker, every listener on 127.0.0.1). On 28 October 2026 the Italian laboratories were rerun live: 53/53 checks, plus 14/14 for the obfs4 bridge laboratory (validation summaries). make -C labs/it test # offline tests (Python ≥ 3.11, pip install -r requirements.txt) make -C labs/it immagine # Docker image with tor and Chutney make -C labs/it avvia # start the private network make verifica-lab # rerun every laboratory and check its results Experiments run only on the private network, never against public relays or real users.
Guides: labs/it/wiki/.
Building the book needs only Docker and make: make book-pdf, make book-epub, make book (details). Where it comes from The project began as study. While working on my bachelor's thesis, I started looking at Tor below the level at which it is usually described: not how to use it, but what actually travels between relays — cells, circuits, keys, and the algorithms that hold them together. My interest did not end with the degree. In the following years I kept studying the material in more depth, reorganising and extending it. From a thesis to a book Over time the goal changed. It was no longer enough for me to understand Tor: the aim became a technical work able to explain it concretely, down to the protocol, the cells, the circuits and the algorithms, with every statement tied to the specifications and the source code. Describing a mechanism, however, does not show that it works as described. The laboratories come from that need: a private Tor network running on a single computer, where each step in the text can be reproduced, measured and checked. Why the book is free I decided to give priority to the free circulation of knowledge: the whole project — the book, its LaTeX sources, the code and the laboratories — is freely available, so that anyone can study it, reproduce it and improve it. The book is free of charge through the project's official channels; what you may do with it is set by its licence, the GNU GPL v3 or later, which also lets anyone redistribute it, modified or not, under its conditions.
Languages Language Edition Availability Italiano Original, version 1.0.0 PDF, EPUB and print PDF · GitHub release English AI-generated translation, version 1.0.0 PDF and EPUB · independent language review not completed Español AI-generated translation, version 1.0.0 PDF and EPUB · independent language review not completed Русский AI-generated translation, version 1.0.0 PDF and EPUB · independent language review not completed 简体中文 AI-generated translation, version 1.0.0 PDF and EPUB · independent language review not completed All five editions are freely accessible.
The Italian text takes precedence if a translation differs; help review a translation. Use of artificial intelligence The project, its research origin and its editorial decisions are mine. The current text, figures, exercises, code and laboratories were drafted with an AI coding assistant (Claude Code) under my direction, and should be regarded as AI-generated under human direction rather than merely AI-assisted; the translations were generated with AI tools. I review and maintain the work myself, and the laboratories were also verified by real runs and automated tests. No independent review has taken place: no external experts, no legal review of the chapter on law, no native-speaker review of the translations. Full details, sources and limits: AI_DISCLOSURE.md. Help improve this book Report a typo or a wording problem Report a translation problem · Join the translation review Propose a technical correction Report a laboratory problem Suggest an improvement or new content Contribute code or text with a pull request Accepted contributions are credited in CONTRIBUTORS.md and in the changelog. Security problems: SECURITY.md. Please follow the code of conduct. Licence Copyright © 2026 Alessandro Greco. Text, figures, cover, LaTeX sources, code and documentation are released under the GNU General Public License v3.0 or later (LICENSE). Third-party material: NOTICE.md.
Independence This is an independent work.
It is not endorsed or sponsored by, or affiliated with, the Tor Project. “Tor” and the Tor logo are trademarks of The Tor Project, Inc.; the book does not use the logo.
Italiano Un libro tecnico libero e gratuito sul protocollo Tor, scritto in italiano: come funziona Tor dai byte che due relay si scambiano fino alle scelte di progetto, agli attacchi reali e ai problemi ancora aperti, con venti laboratori che ricostruiscono e provano ogni meccanismo su una rete Tor privata.
Origine, metodo e invito a contribuire.
Il libro nasce da documenti e appunti di studio che ho prodotto nel corso degli anni, a partire dalla mia tesi triennale.
Sotto la mia direzione, strumenti di intelligenza artificiale hanno contribuito in modo sostanziale ad argomentare, organizzare e redigere questi contenuti come opera tecnica, oltre a produrre figure, esercizi, codice e laboratori.
Nonostante i controlli tecnici, non c'è stata una revisione indipendente di esperti: possono quindi esserci errori, da segnalare e correggere insieme ai lettori.
Distribuisco gratuitamente il libro attraverso i canali ufficiali del progetto, sotto GPL-3.0-or-later, per la «diffusione dei saperi senza fondare poteri».
La licenza disciplina il riuso e la redistribuzione, anche commerciale.