/tor-and-onion-networks:tor-onion-services-and-hardeningfrom tor-and-onion-networks
Explains v3 onion service architecture (56-char addresses, blinded keys, intro/rendezvous points) and hardening techniques including vanguards, PoW DoS defense, Onionbalance, Onionspray, and Onion-Location.
Ships in tor-and-onion-networks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part 3 of 8 of the Tor and Onion Networks reference (plugin
tor-and-onion-networks), covering §8–§9. Sibling skills:tor-protocol-circuits-and-cell-cryptography(§1–§5),tor-network-consensus-guards-and-paths(§6–§7),tor-censorship-circumvention-and-bridges(§10),tor-attack-literature-and-threat-model(§11),tor-ecosystem-alternatives-and-governance(§12, §14–§16),tor-building-on-tor-software-patterns(§13.1–§13.4, handbook §1),tor-running-relays-bridges-and-hardware(§13.5, handbook §2–§6). Section numbers are shared across the set; a reference written as §N →skillpoints into that sibling skill.Currency: compiled 16 September 2026. The v3 protocol is stable. Tooling status in §9 moves fast — the vanguards addon is unmaintained, PoW/Onionbalance compatibility is a live constraint, and the C tor → Arti transition changes the recommended stack. Verify against https://onionservices.torproject.org/.
⚠️ Onion services invert the trust direction: the server becomes location-anonymous, and the connection never leaves the network.
⚠️ GOTCHA boxes mark where the mental model people carry is wrong in ways that get services deanonymized or knocked offline.
The three ideas that organize this document:
- ⚠️ THE ADDRESS IS THE PUBLIC KEY (§8.1). A
.onionisbase32(ed25519_pubkey ‖ checksum ‖ version). No CA, no DNS, no trust-on-first-use — the name authenticates the service by construction, which is why TLS is not needed for authentication to the service.- ⚠️ LONG-LIVED CIRCUITS ARE THE ATTACK SURFACE (§9.1). A service keeps intro and rendezvous circuits up for a long time, and an adversary who can force it to rebuild them repeatedly walks up the path toward its guard. Vanguards exist because the standard three-hop assumption is not enough when the server is the thing being hidden.
- ⚠️ HARDENING FEATURES CONFLICT WITH EACH OTHER (§9.2, §9.3). PoW does not work with Onionbalance. The vanguards addon does not work with Conflux. There is no configuration that turns everything on — you pick per threat model.
Onion services flip the trust direction: the server becomes location-anonymous, and the connection never leaves the network. (The client stays anonymous too — onion services are mutually anonymous.)
A v3 address is 56 base32 characters = base32(ED25519_PUBKEY ‖ CHECKSUM ‖ VERSION) where
CHECKSUM = SHA3-256(".onion checksum" ‖ PUBKEY ‖ VERSION)[0:2] and VERSION = 0x03.
Consequences:
mkp224o), and a full-address collision is infeasible;.onion under CA/Browser Forum rules
since Facebook's 2015 deployment.tor --keygen); day-to-day operation uses a medium-term signing key — compromise of the
running box doesn't permanently compromise the address..onion public key, fetches the descriptor
from the right HSDirs (3-hop circuits; the HSDir learns only that someone is fetching
somewhere, not whom)..auth_private on the client, authorized_clients/ on the server) builds a 3-hop
circuit to the RP and completes the handshake.SingleOnionService mode (server opens directly to the RP, 3 hops total) trades server
anonymity for ~half the latency — popular for services that only need encryption and
NAT-bypass, e.g., SecureDrop-style upload boxes behind hostile networks.
v2 services (RSA-1024, SHA-1-derived 16-char names, descriptor replay weaknesses, HSDir enumeration via predictable indices — the Trawling for Tor Hidden Services attack, Biryukov/Pustogarov/Weinmann 2013) were removed from the network in October 2021.
Any tutorial, library, or product speaking v2 is dead code. If a guide mentions
HidServAuth, 16-character addresses, or rend-spec-v2, it predates the cutoff and every
security claim in it should be re-checked from scratch.
Onion services keep their intro-point and rendezvous circuits up for long periods. An adversary who can force a service to build many circuits (e.g., by knocking on its intro points) can, over days-to-weeks, enumerate middle hops and eventually land as the service's guard — at which point guard-side traffic confirmation identifies the server's location. This is the attack family (Øverlier & Syverson 2006 onward) behind several real-world service deanonymizations.
Vanguards (proposal 292 → the standalone vanguards spec) fixes this by pinning additional fixed guard layers under the service:
⚠️ GOTCHA — status as of Feb–Sept 2026: the original C-tor Python addon is unmaintained (no commits since Oct 2023), incompatible with Conflux, was pulled from Debian Trixie, and is disabled in Whonix 18. Native vanguards ship in Arti (since 1.2.2, default-on; security-refined by 1.2.5). For production services in 2026 this is a live decision point: C tor 0.4.9 + PoW, or Arti (service support declared production-useable with the disclaimer removed in Arti 1.8.0, Dec 2025) + vanguards. The spec intends Vanguards-Lite as the universal default once Arti replaces C tor.
Intro-point flooding was the dominant onion-service DoS vector. The PoW defense adds a reactive, adaptive puzzle (Equi-X proof + HashX verification):
HiddenServicePoWDefensesEnabled 1 (+ QueueRate/QueueBurst), built with
--enable-gpl (Equi-X/HashX licensing), monitored via MetricsPort tor_hs_pow_* metrics.⚠️ GOTCHA: PoW is a priority queue, not a wall. Very large botnets still overwhelm; mobile clients suffer at high difficulties; and — the constraint that bites real deployments — PoW is incompatible with Onionbalance as of 2025–2026 documentation. PoW also landed in Arti experimentally in 2026.
Onion-Location HTTP header (Tor Browser ≥ 9.5): serve
Onion-Location: http://<addr>.onion$request_uri over HTTPS from your clearnet site; Tor
users get a purple ".onion available" pill / optional always-redirect. Works in
nginx/Apache/Caddy or as a meta tag.Alt-Svc: ... ; ma=... to the onion: transparent — clients who can speak Tor reach
you via the onion automatically without any UI.Every item here is argued elsewhere in §8–§9 and §13; this is the order to do them in.
OfflineMasterKey.tor-building-on-tor-software-patterns).Onion-Location configuration: §13 →
tor-building-on-tor-software-patterns.tor-network-consensus-guards-and-paths.tor-attack-literature-and-threat-model.tor-ecosystem-alternatives-and-governance.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub the-vibey-project/vibey --plugin tor-and-onion-networks8 skills in this plugin
/tor-attack-literature-and-threat-modelUse when assessing what actually threatens Tor users, or when checking a deanonymization claim against the literature — end-to-end confirmation, website fingerprinting and why no defense ships by default, guard discovery, Sybil and malicious-relay campaigns (KAX17, the 2020 exit wave), exit content attacks, HSDir harvesting, DoS, and client-side compromise. Covers §11. Companion to the other Tor and onion-network skills./tor-building-on-tor-software-patternsUse when writing code that talks to Tor — SOCKS with socks5h and stream isolation, the control port, ephemeral onion services via ADD_ONION or stem, long-lived onion services in torrc, client authorization v3, Onion-Location and Alt-Svc headers, torsocks and its limits, embedding Arti, testing against a private chutney network, and building your own private or custom onion-routing network. Covers §13.1–§13.4, §13.6 and handbook §1. Companion to the other Tor and onion-network skills.Other plugins' skills for the same job