[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ASG6695GD1EBBT8Y53N32Z":3,"skill-same:01M7ASG6695GD1EBBT8Y53N32Z":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7ASG6695GD1EBBT8Y53N32Z","tor-onion-services-and-hardening",null,"Use when working with v3 onion services — the 56-character address format, blinded descriptor keys, introduction and rendezvous points, client authorization, single-onion mode — or when hardening one with vanguards, proof-of-work DoS defense, Onionbalance and Onionspray, or advertising it via Onion-Location. Covers §8–§9. Companion to the other Tor and onion-network skills.","the-vibey-project\u002Fvibey","the-vibey-project","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F329298758?v=4","01M7AJHGZ9722CTJ4JNQZVRH0Q","the vibey project","01M7AJHGZVMG2K7TGXQ6XFHVG3",5,"MIT","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Ftor-and-onion-networks\u002Fskills\u002Ftor-onion-services-and-hardening\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: tor-onion-services-and-hardening\ndescription: \"Use when working with v3 onion services — the 56-character address format, blinded descriptor keys, introduction and rendezvous points, client authorization, single-onion mode — or when hardening one with vanguards, proof-of-work DoS defense, Onionbalance and Onionspray, or advertising it via Onion-Location. Covers §8–§9. Companion to the other Tor and onion-network skills.\"\n---\n\n# Onion Services v3: How They Work, and How to Keep Them Standing\n\n> **Part 3 of 8** of the *Tor and Onion Networks* reference (plugin `tor-and-onion-networks`),\n> covering §8–§9. Sibling skills:\n> `tor-protocol-circuits-and-cell-cryptography` (§1–§5),\n> `tor-network-consensus-guards-and-paths` (§6–§7),\n> `tor-censorship-circumvention-and-bridges` (§10),\n> `tor-attack-literature-and-threat-model` (§11),\n> `tor-ecosystem-alternatives-and-governance` (§12, §14–§16),\n> `tor-building-on-tor-software-patterns` (§13.1–§13.4, handbook §1),\n> `tor-running-relays-bridges-and-hardware` (§13.5, handbook §2–§6).\n> Section numbers are shared across the set; a reference written as §N → `skill` points into\n> that sibling skill.\n>\n> **Currency:** compiled 16 September 2026. The v3 protocol is stable. **Tooling status in\n> §9 moves fast** — the vanguards addon is unmaintained, PoW\u002FOnionbalance compatibility is a\n> live constraint, and the C tor → Arti transition changes the recommended stack. Verify\n> against \u003Chttps:\u002F\u002Fonionservices.torproject.org\u002F>.\n\n> **⚠️ Onion services invert the trust direction: the *server* becomes location-anonymous,\n> and the connection never leaves the network.**\n>\n> **⚠️ GOTCHA** boxes mark where the mental model people carry is wrong in ways that get\n> services deanonymized or knocked offline.\n>\n> **The three ideas that organize this document:**\n> 1. **⚠️ THE ADDRESS *IS* THE PUBLIC KEY** (§8.1). **A `.onion` is\n>    `base32(ed25519_pubkey ‖ checksum ‖ version)`. No CA, no DNS, no trust-on-first-use —\n>    the name authenticates the service by construction, which is why TLS is not needed for\n>    authentication *to* the service.**\n> 2. **⚠️ LONG-LIVED CIRCUITS ARE THE ATTACK SURFACE** (§9.1). **A service keeps intro and\n>    rendezvous circuits up for a long time, and an adversary who can force it to rebuild\n>    them repeatedly walks up the path toward its guard. Vanguards exist because the standard\n>    three-hop assumption is not enough when the server is the thing being hidden.**\n> 3. **⚠️ HARDENING FEATURES CONFLICT WITH EACH OTHER** (§9.2, §9.3). **PoW does not work\n>    with Onionbalance. The vanguards addon does not work with Conflux. There is no\n>    configuration that turns everything on — you pick per threat model.**\n\n---\n\n## §8. Onion services (v3) end to end\n\nOnion services flip the trust direction: the *server* becomes location-anonymous, and the\nconnection never leaves the network. (The client stays anonymous too — onion services are\nmutually anonymous.)\n\n### §8.1 The address is the key\n\nA v3 address is **56 base32 characters** = `base32(ED25519_PUBKEY ‖ CHECKSUM ‖ VERSION)` where\n`CHECKSUM = SHA3-256(\".onion checksum\" ‖ PUBKEY ‖ VERSION)[0:2]` and VERSION = 0x03.\n\nConsequences:\n\n- addresses are **self-authenticating** (no CA, no DNS);\n- **un-phishable by near-match** — 35 bytes of entropy means a vanity prefix is a GPU\n  birthday search (see `mkp224o`), and a full-address collision is infeasible;\n- **TLS is unnecessary for authentication to the service** — though HTTPS-over-onion\n  certificates exist; DigiCert has issued EV certs for `.onion` under CA\u002FBrowser Forum rules\n  since Facebook's 2015 deployment.\n\n### §8.2 Publishing a service\n\n1. **Generate keys.** The service's ed25519 master identity can be kept **offline**\n   (`tor --keygen`); day-to-day operation uses a medium-term signing key — compromise of the\n   running box doesn't permanently compromise the address.\n2. **Pick introduction points.** The service builds 3-hop circuits to (by default) 3 relays it\n   selects, which become its intro points; it hands each an intro-point auth key.\n3. **Compute blinded keys.** For each ~24h period, the descriptor-signing key is *blinded*\n   with a period-derived nonce, so neither HSDirs nor clients can link yesterday's descriptor\n   to today's without the master public key.\n4. **Upload descriptors** to the six HSDirs chosen by blinded-key position in the directory\n   ring (two replicas, three consecutive HSDirs each), where they sit with a ~3-hour lifetime;\n   **revision counters** are encrypted with an order-preserving construction so HSDirs can\n   pick the newest descriptor without learning service churn.\n\n### §8.3 Connecting (client side)\n\n1. Client derives today's blinded key from the `.onion` public key, fetches the descriptor\n   from the right HSDirs (3-hop circuits; the HSDir learns only that *someone* is fetching\n   *somewhere*, not whom).\n2. Client picks a random **rendezvous point** relay, connects (3 hops), and hands it a\n   one-time rendezvous cookie.\n3. Client encrypts (hs-ntor) an intro message to one intro point: rendezvous cookie + RP\n   identity.\n4. The service (optionally after **client authorization** checks — v3 uses per-client x25519\n   keys: `.auth_private` on the client, `authorized_clients\u002F` on the server) builds a 3-hop\n   circuit to the RP and completes the handshake.\n5. Result: a **6-hop** end-to-end circuit — client-guard…RP…service-guard — with both sides\n   anonymous to each other and both using their own pinned guards.\n\n`SingleOnionService` mode (server opens directly to the RP, 3 hops total) trades server\nanonymity for ~half the latency — popular for services that only need encryption and\nNAT-bypass, e.g., SecureDrop-style upload boxes behind hostile networks.\n\n### §8.4 ⚠️ GOTCHA: what changed from v2, and why it matters to builders\n\nv2 services (RSA-1024, SHA-1-derived 16-char names, descriptor replay weaknesses, HSDir\nenumeration via predictable indices — the *Trawling for Tor Hidden Services* attack,\nBiryukov\u002FPustogarov\u002FWeinmann 2013) were **removed from the network in October 2021**.\n\nAny tutorial, library, or product speaking v2 is **dead code**. If a guide mentions\n`HidServAuth`, 16-character addresses, or `rend-spec-v2`, it predates the cutoff and every\nsecurity claim in it should be re-checked from scratch.\n\n---\n\n## §9. Hardening onion services: vanguards, proof-of-work, load balancing\n\n### §9.1 Guard-discovery attacks and vanguards\n\nOnion services keep their intro-point and rendezvous circuits up for long periods. An\nadversary who can *force* a service to build many circuits (e.g., by knocking on its intro\npoints) can, over days-to-weeks, enumerate middle hops and eventually land as the service's\nguard — at which point guard-side traffic confirmation identifies the server's location. This\nis the attack family (Øverlier & Syverson 2006 onward) behind several real-world service\ndeanonymizations.\n\n**Vanguards** (proposal 292 → the standalone [vanguards\nspec](https:\u002F\u002Fspec.torproject.org\u002Fvanguards-spec\u002F)) fixes this by pinning *additional* fixed\nguard layers under the service:\n\n- **Vanguards-Lite** (default): one extra pinned layer (L2: 4 relays, lifetimes in days) —\n  cheap, big win.\n- **Full Vanguards**: L2 + L3 pinned layers with short L3 rotation (hours) and an extra hop —\n  for long-lived, high-value services.\n\n> **⚠️ GOTCHA — status as of Feb–Sept 2026:** the original C-tor Python addon is\n> **unmaintained** (no commits since Oct 2023), **incompatible with Conflux**, was pulled from\n> Debian Trixie, and is disabled in Whonix 18. **Native vanguards ship in Arti** (since 1.2.2,\n> default-on; security-refined by 1.2.5). For production services in 2026 this is a live\n> decision point: C tor 0.4.9 + PoW, or Arti (service support declared production-useable with\n> the disclaimer removed in Arti 1.8.0, Dec 2025) + vanguards. The spec intends Vanguards-Lite\n> as the universal default once Arti replaces C tor.\n\n### §9.2 Proof-of-work DoS defense (proposal 327; shipped tor 0.4.8, Aug 2023)\n\nIntro-point flooding was the dominant onion-service DoS vector. The PoW defense adds a\n*reactive, adaptive* puzzle (Equi-X proof + HashX verification):\n\n- Dormant in normal operation; under load the service raises \"suggested effort\" in the\n  descriptor\u002Fintro protocol.\n- Legit clients burn tens of milliseconds to seconds of CPU per intro attempt; a botnet must\n  multiply that cost by its request rate — cheap for humans, expensive at attack scale.\n- Configured via `HiddenServicePoWDefensesEnabled 1` (+ `QueueRate`\u002F`QueueBurst`), built with\n  `--enable-gpl` (Equi-X\u002FHashX licensing), monitored via MetricsPort `tor_hs_pow_*` metrics.\n\n> **⚠️ GOTCHA:** PoW is a **priority queue, not a wall**. Very large botnets still overwhelm;\n> mobile clients suffer at high difficulties; and — the constraint that bites real\n> deployments — **PoW is incompatible with Onionbalance** as of 2025–2026 documentation. PoW\n> also landed in Arti experimentally in 2026.\n\n### §9.3 Scaling: Onionbalance, Onionspray, EOTK\n\n- **[Onionbalance](https:\u002F\u002Fonionservices.torproject.org\u002Fapps\u002Fbase\u002Fonionbalance\u002F)** (v0.2.4,\n  Apr 2025; actively maintained, v2 code removed in 0.2.3): a master node aggregates intro\n  points from N backend tor instances (up to ~60 distinct intro points) into one published\n  descriptor — horizontal scaling and failover for one address. JSON **status socket** for\n  monitoring.\n- **[Onionspray](https:\u002F\u002Fonionservices.torproject.org\u002Fapps\u002Fweb\u002Fonionspray\u002F)**: the Tor\n  Project's modern answer to Alec Muffett's EOTK — config-driven generation of whole onion\n  sites (hardmap = direct backends; softmap = Onionbalance-mediated), including multi-server\n  topologies and publisher\u002Fbackend key isolation.\n- **EOTK** itself: historically important (BBC, NYT, Brave deployments), effectively\n  superseded by Onionspray for new builds.\n\n### §9.4 Discovery: how humans find onion sites\n\n- **`Onion-Location` HTTP header** (Tor Browser ≥ 9.5): serve\n  `Onion-Location: http:\u002F\u002F\u003Caddr>.onion$request_uri` over HTTPS from your clearnet site; Tor\n  users get a purple \".onion available\" pill \u002F optional always-redirect. Works in\n  nginx\u002FApache\u002FCaddy or as a meta tag.\n- **`Alt-Svc: ... ; ma=...` to the onion**: transparent — clients who *can* speak Tor reach\n  you via the onion automatically without any UI.\n- Research-stage: DNS-based discovery, \"Sauteed Onions\" (CT-log based), onion association\n  proposals.\n\n### §9.5 Deployment checklist for a private onion service\n\nEvery item here is argued elsewhere in §8–§9 and §13; this is the order to do them in.\n\n1. Run tor from the **Tor Project's own repository**, not the distro's (fresher).\n2. **v3 only** — v2 left the network in October 2021 (§8.4).\n3. **Generate the master identity key offline**; deploy only signing material, and set\n   `OfflineMasterKey`.\n4. **PoW** if DoS is a concern (§9.2). **Vanguards** for guard-discovery resistance (§9.1 —\n   Arti has them built in; the C tor Python addon is unmaintained and incompatible with\n   Conflux).\n5. **Client authorization** for private services (§8.3, §13.3 →\n   `tor-building-on-tor-software-patterns`).\n6. **MetricsPort** for monitoring.\n7. **Test descriptor publication from a second tor instance** before you hand the address to\n   anyone.\n8. Advertise via **Onion-Location** if you have a clearnet twin — and **never serve the\n   Onion-Location header from the onion itself** (§9.4).\n\n---\n\n## Where to go next\n\n- Copy-paste torrc, control-port and `Onion-Location` configuration: §13 →\n  `tor-building-on-tor-software-patterns`.\n- Why the guard layer under a service matters so much: §7.1 →\n  `tor-network-consensus-guards-and-paths`.\n- The deanonymization literature behind §9.1: §11.3 and §11.6 →\n  `tor-attack-literature-and-threat-model`.\n- Arti's onion-service support and the C tor → Arti decision: §12.1 →\n  `tor-ecosystem-alternatives-and-governance`.\n","# Onion Services v3: How They Work, and How to Keep Them Standing\n\n> **Part 3 of 8** of the *Tor and Onion Networks* reference (plugin `tor-and-onion-networks`),\n> covering §8–§9. Sibling skills:\n> `tor-protocol-circuits-and-cell-cryptography` (§1–§5),\n> `tor-network-consensus-guards-and-paths` (§6–§7),\n> `tor-censorship-circumvention-and-bridges` (§10),\n> `tor-attack-literature-and-threat-model` (§11),\n> `tor-ecosystem-alternatives-and-governance` (§12, §14–§16),\n> `tor-building-on-tor-software-patterns` (§13.1–§13.4, handbook §1),\n> `tor-running-relays-bridges-and-hardware` (§13.5, handbook §2–§6).\n> Section numbers are shared across the set; a reference written as §N → `skill` points into\n> that sibling skill.\n>\n> **Currency:** compiled 16 September 2026. The v3 protocol is stable. **Tooling status in\n> §9 moves fast** — the vanguards addon is unmaintained, PoW\u002FOnionbalance compatibility is a\n> live constraint, and the C tor → Arti transition changes the recommended stack. Verify\n> against \u003Chttps:\u002F\u002Fonionservices.torproject.org\u002F>.\n\n> **⚠️ Onion services invert the trust direction: the *server* becomes location-anonymous,\n> and the connection never leaves the network.**\n>\n> **⚠️ GOTCHA** boxes mark where the mental model people carry is wrong in ways that get\n> services deanonymized or knocked offline.\n>\n> **The three ideas that organize this document:**\n> 1. **⚠️ THE ADDRESS *IS* THE PUBLIC KEY** (§8.1). **A `.onion` is\n>    `base32(ed25519_pubkey ‖ checksum ‖ version)`. No CA, no DNS, no trust-on-first-use —\n>    the name authenticates the service by construction, which is why TLS is not needed for\n>    authentication *to* the service.**\n> 2. **⚠️ LONG-LIVED CIRCUITS ARE THE ATTACK SURFACE** (§9.1). **A service keeps intro and\n>    rendezvous circuits up for a long time, and an adversary who can force it to rebuild\n>    them repeatedly walks up the path toward its guard. Vanguards exist because the standard\n>    three-hop assumption is not enough when the server is the thing being hidden.**\n> 3. **⚠️ HARDENING FEATURES CONFLICT WITH EACH OTHER** (§9.2, §9.3). **PoW does not work\n>    with Onionbalance. The vanguards addon does not work with Conflux. There is no\n>    configuration that turns everything on — you pick per threat model.**\n\n---\n\n## §8. Onion services (v3) end to end\n\nOnion services flip the trust direction: the *server* becomes location-anonymous, and the\nconnection never leaves the network. (The client stays anonymous too — onion services are\nmutually anonymous.)\n\n### §8.1 The address is the key\n\nA v3 address is **56 base32 characters** = `base32(ED25519_PUBKEY ‖ CHECKSUM ‖ VERSION)` where\n`CHECKSUM = SHA3-256(\".onion checksum\" ‖ PUBKEY ‖ VERSION)[0:2]` and VERSION = 0x03.\n\nConsequences:\n\n- addresses are **self-authenticating** (no CA, no DNS);\n- **un-phishable by near-match** — 35 bytes of entropy means a vanity prefix is a GPU\n  birthday search (see `mkp224o`), and a full-address collision is infeasible;\n- **TLS is unnecessary for authentication to the service** — though HTTPS-over-onion\n  certificates exist; DigiCert has issued EV certs for `.onion` under CA\u002FBrowser Forum rules\n  since Facebook's 2015 deployment.\n\n### §8.2 Publishing a service\n\n1. **Generate keys.** The service's ed25519 master identity can be kept **offline**\n   (`tor --keygen`); day-to-day operation uses a medium-term signing key — compromise of the\n   running box doesn't permanently compromise the address.\n2. **Pick introduction points.** The service builds 3-hop circuits to (by default) 3 relays it\n   selects, which become its intro points; it hands each an intro-point auth key.\n3. **Compute blinded keys.** For each ~24h period, the descriptor-signing key is *blinded*\n   with a period-derived nonce, so neither HSDirs nor clients can link yesterday's descriptor\n   to today's without the master public key.\n4. **Upload descriptors** to the six HSDirs chosen by blinded-key position in the directory\n   ring (two replicas, three consecutive HSDirs each), where they sit with a ~3-hour lifetime;\n   **revision counters** are encrypted with an order-preserving construction so HSDirs can\n   pick the newest descriptor without learning service churn.\n\n### §8.3 Connecting (client side)\n\n1. Client derives today's blinded key from the `.onion` public key, fetches the descriptor\n   from the right HSDirs (3-hop circuits; the HSDir learns only that *someone* is fetching\n   *somewhere*, not whom).\n2. Client picks a random **rendezvous point** relay, connects (3 hops), and hands it a\n   one-time rendezvous cookie.\n3. Client encrypts (hs-ntor) an intro message to one intro point: rendezvous cookie + RP\n   identity.\n4. The service (optionally after **client authorization** checks — v3 uses per-client x25519\n   keys: `.auth_private` on the client, `authorized_clients\u002F` on the server) builds a 3-hop\n   circuit to the RP and completes the handshake.\n5. Result: a **6-hop** end-to-end circuit — client-guard…RP…service-guard — with both sides\n   anonymous to each other and both using their own pinned guards.\n\n`SingleOnionService` mode (server opens directly to the RP, 3 hops total) trades server\nanonymity for ~half the latency — popular for services that only need encryption and\nNAT-bypass, e.g., SecureDrop-style upload boxes behind hostile networks.\n\n### §8.4 ⚠️ GOTCHA: what changed from v2, and why it matters to builders\n\nv2 services (RSA-1024, SHA-1-derived 16-char names, descriptor replay weaknesses, HSDir\nenumeration via predictable indices — the *Trawling for Tor Hidden Services* attack,\nBiryukov\u002FPustogarov\u002FWeinmann 2013) were **removed from the network in October 2021**.\n\nAny tutorial, library, or product speaking v2 is **dead code**. If a guide mentions\n`HidServAuth`, 16-character addresses, or `rend-spec-v2`, it predates the cutoff and every\nsecurity claim in it should be re-checked from scratch.\n\n---\n\n## §9. Hardening onion services: vanguards, proof-of-work, load balancing\n\n### §9.1 Guard-discovery attacks and vanguards\n\nOnion services keep their intro-point and rendezvous circuits up for long periods. An\nadversary who can *force* a service to build many circuits (e.g., by knocking on its intro\npoints) can, over days-to-weeks, enumerate middle hops and eventually land as the service's\nguard — at which point guard-side traffic confirmation identifies the server's location. This\nis the attack family (Øverlier & Syverson 2006 onward) behind several real-world service\ndeanonymizations.\n\n**Vanguards** (proposal 292 → the standalone [vanguards\nspec](https:\u002F\u002Fspec.torproject.org\u002Fvanguards-spec\u002F)) fixes this by pinning *additional* fixed\nguard layers under the service:\n\n- **Vanguards-Lite** (default): one extra pinned layer (L2: 4 relays, lifetimes in days) —\n  cheap, big win.\n- **Full Vanguards**: L2 + L3 pinned layers with short L3 rotation (hours) and an extra hop —\n  for long-lived, high-value services.\n\n> **⚠️ GOTCHA — status as of Feb–Sept 2026:** the original C-tor Python addon is\n> **unmaintained** (no commits since Oct 2023), **incompatible with Conflux**, was pulled from\n> Debian Trixie, and is disabled in Whonix 18. **Native vanguards ship in Arti** (since 1.2.2,\n> default-on; security-refined by 1.2.5). For production services in 2026 this is a live\n> decision point: C tor 0.4.9 + PoW, or Arti (service support declared production-useable with\n> the disclaimer removed in Arti 1.8.0, Dec 2025) + vanguards. The spec intends Vanguards-Lite\n> as the universal default once Arti replaces C tor.\n\n### §9.2 Proof-of-work DoS defense (proposal 327; shipped tor 0.4.8, Aug 2023)\n\nIntro-point flooding was the dominant onion-service DoS vector. The PoW defense adds a\n*reactive, adaptive* puzzle (Equi-X proof + HashX verification):\n\n- Dormant in normal operation; under load the service raises \"suggested effort\" in the\n  descriptor\u002Fintro protocol.\n- Legit clients burn tens of milliseconds to seconds of CPU per intro attempt; a botnet must\n  multiply that cost by its request rate — cheap for humans, expensive at attack scale.\n- Configured via `HiddenServicePoWDefensesEnabled 1` (+ `QueueRate`\u002F`QueueBurst`), built with\n  `--enable-gpl` (Equi-X\u002FHashX licensing), monitored via MetricsPort `tor_hs_pow_*` metrics.\n\n> **⚠️ GOTCHA:** PoW is a **priority queue, not a wall**. Very large botnets still overwhelm;\n> mobile clients suffer at high difficulties; and — the constraint that bites real\n> deployments — **PoW is incompatible with Onionbalance** as of 2025–2026 documentation. PoW\n> also landed in Arti experimentally in 2026.\n\n### §9.3 Scaling: Onionbalance, Onionspray, EOTK\n\n- **[Onionbalance](https:\u002F\u002Fonionservices.torproject.org\u002Fapps\u002Fbase\u002Fonionbalance\u002F)** (v0.2.4,\n  Apr 2025; actively maintained, v2 code removed in 0.2.3): a master node aggregates intro\n  points from N backend tor instances (up to ~60 distinct intro points) into one published\n  descriptor — horizontal scaling and failover for one address. JSON **status socket** for\n  monitoring.\n- **[Onionspray](https:\u002F\u002Fonionservices.torproject.org\u002Fapps\u002Fweb\u002Fonionspray\u002F)**: the Tor\n  Project's modern answer to Alec Muffett's EOTK — config-driven generation of whole onion\n  sites (hardmap = direct backends; softmap = Onionbalance-mediated), including multi-server\n  topologies and publisher\u002Fbackend key isolation.\n- **EOTK** itself: historically important (BBC, NYT, Brave deployments), effectively\n  superseded by Onionspray for new builds.\n\n### §9.4 Discovery: how humans find onion sites\n\n- **`Onion-Location` HTTP header** (Tor Browser ≥ 9.5): serve\n  `Onion-Location: http:\u002F\u002F\u003Caddr>.onion$request_uri` over HTTPS from your clearnet site; Tor\n  users get a purple \".onion available\" pill \u002F optional always-redirect. Works in\n  nginx\u002FApache\u002FCaddy or as a meta tag.\n- **`Alt-Svc: ... ; ma=...` to the onion**: transparent — clients who *can* speak Tor reach\n  you via the onion automatically without any UI.\n- Research-stage: DNS-based discovery, \"Sauteed Onions\" (CT-log based), onion association\n  proposals.\n\n### §9.5 Deployment checklist for a private onion service\n\nEvery item here is argued elsewhere in §8–§9 and §13; this is the order to do them in.\n\n1. Run tor from the **Tor Project's own repository**, not the distro's (fresher).\n2. **v3 only** — v2 left the network in October 2021 (§8.4).\n3. **Generate the master identity key offline**; deploy only signing material, and set\n   `OfflineMasterKey`.\n4. **PoW** if DoS is a concern (§9.2). **Vanguards** for guard-discovery resistance (§9.1 —\n   Arti has them built in; the C tor Python addon is unmaintained and incompatible with\n   Conflux).\n5. **Client authorization** for private services (§8.3, §13.3 →\n   `tor-building-on-tor-software-patterns`).\n6. **MetricsPort** for monitoring.\n7. **Test descriptor publication from a second tor instance** before you hand the address to\n   anyone.\n8. Advertise via **Onion-Location** if you have a clearnet twin — and **never serve the\n   Onion-Location header from the onion itself** (§9.4).\n\n---\n\n## Where to go next\n\n- Copy-paste torrc, control-port and `Onion-Location` configuration: §13 →\n  `tor-building-on-tor-software-patterns`.\n- Why the guard layer under a service matters so much: §7.1 →\n  `tor-network-consensus-guards-and-paths`.\n- The deanonymization literature behind §9.1: §11.3 and §11.6 →\n  `tor-attack-literature-and-threat-model`.\n- Arti's onion-service support and the C tor → Arti decision: §12.1 →\n  `tor-ecosystem-alternatives-and-governance`.\n",{"name":5,"description":7},"develop","ae32736a1aabddabca5d2c96d665aa0ebc7d8700","src\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Ftor-and-onion-networks\u002Fskills\u002Ftor-onion-services-and-hardening",3,"https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey","https:\u002F\u002Fthe-vibey-project.github.io\u002Fvibey\u002F","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project","https:\u002F\u002Fvibewithadam.matthewsteinberger.com","freedom for software engineers","2026-11-15 05:47:42",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add the-vibey-project\u002Fvibey --skill tor-onion-services-and-hardening",{"tool":40,"command":41},"bunx","bunx skills add the-vibey-project\u002Fvibey --skill tor-onion-services-and-hardening",{"tool":43,"command":44},"pnpm","pnpm dlx skills add the-vibey-project\u002Fvibey --skill tor-onion-services-and-hardening","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Ftor-and-onion-networks\u002Fskills\u002Ftor-onion-services-and-hardening\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7AT1FQJAE1FQYAMDTF490Y4","white-paper-writing","Use when writing white papers, technical reports, policy documents, thought leadership pieces, or any long-form authoritative document. Triggers on requests to write, structure, outline, or review white papers, technical reports, position papers, policy briefs, or evidence-driven arguments. Also use for B2B content marketing strategy, technical documentation requiring authority, academic-style reports, or any document that must educate while persuading. Use when someone asks \"how should I structure this\" for a long-form document.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fwhite-paper-writing\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7AT16BJRJJKK2MASXRZS76G","prose-technical-mechanics","Use when editing or writing prose at a technical\u002Fmechanical level: choosing between Anglo-Saxon and Latinate diction, placing information in topic vs stress positions, writing periodic vs cumulative sentences, handling sentence rhythm, punctuation as logic, transitions, paragraph structure, or phonesthetics. Use when someone wants to understand WHY prose works or doesn't, not just surface-level style advice. Triggers on word choice, sentence structure, emphasis, rhythm, diction, or any deep writing mechanics question.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-technical-mechanics\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AT0W9HT0ZZ9Y287NW99MR3","prose-mechanics","Use when writing, editing, or analyzing prose style; when trying to avoid generic AI-sounding writing; when applying specific prose styles such as journalistic, academic, narrative, KJV biblical, Hemingway plain, Latinate\u002FJamesian, Orwellian, Augustan, Victorian, Early Modern (Bacon, Browne, Milton), or free indirect discourse; or when coaching someone on writing voice and mechanics. Triggers on any request to improve, analyze, or write in a specific prose style, to fix \"AI-sounding\" writing, to make prose more vivid or concrete, to vary sentence rhythm, or to understand how a particular writer achieves their effects.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-mechanics\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7AT0KR635JX66X2X6F3E2CP","narrative-structure","Use when structuring stories, pitches, presentations, white papers, or any persuasive narrative; analyzing the hero's journey in fiction or non-fiction; applying StoryBrand for business communication; designing narrative arcs for thought leadership; or understanding Vogler, Snyder, Propp, or Campbell frameworks. Triggers on any narrative structure, storytelling, pitch structure, StoryBrand, hero's journey, three-act structure, Freytag, Save the Cat, narrative arc, or \"how should I structure this story\u002Fpitch\u002Fpresentation\" request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fnarrative-structure\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AT0AKGW09NKKZDYBT8VRDE","legal-brief-writing","Use when writing legal briefs, motions, or any court filing; when analyzing judicial cognition and persuasion; when applying elite brief-writing techniques from Roberts, Clement, Kagan, Garner; or when structuring legal arguments for maximum persuasion. Also use for autistic\u002Fneurodivergent advocates who need to understand how their natural communication style maps to elite legal advocacy. Triggers on any legal writing, brief drafting, motion preparation, or legal argument structuring request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Flegal-brief-writing\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AT00VWPS4Q8B5VEMXX9NQT","journal-publishability-criteria","Use whenever a research paper, article or preprint is being written, revised, reviewed or published, and specifically before every publication of docs\u002Fpaper.md. Covers what legitimate journals actually gate on, in order of gating — the editor's desk screen (scope, novelty, package problems), what reviewers judge (methodological soundness, claims the evidence can carry, statistical and qualitative reporting), EQUATOR reporting guidelines, the ICMJE authorship criteria, COPE's view of text recycling, the near-universal generative-AI policy (no AI author, disclosure, author responsibility), TOP 2025 transparency standards, how to verify a journal is legitimate, submitting without an institution, and a pre-submission checklist. Triggers on requests to evaluate, review, prepare or submit a paper, to judge publishability, to write a declarations or data-availability section, to disclose AI use, or to check a journal.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fjournal-publishability-criteria\u002FSKILL.md",[],[]]