<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by SHADOW on Medium]]></title>
        <description><![CDATA[Stories by SHADOW on Medium]]></description>
        <link>https://medium.com/@Sh4d0w2k5?source=rss-5b20363e5b65------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9QpYPkqPkfvIvCtPCZ5EbQ.jpeg</url>
            <title>Stories by SHADOW on Medium</title>
            <link>https://medium.com/@Sh4d0w2k5?source=rss-5b20363e5b65------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 12:02:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Sh4d0w2k5/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[One of the Safest Ways to Access Tor: VPN-Before-Tor on Tails]]></title>
            <link>https://medium.com/@Sh4d0w2k5/one-of-the-safest-ways-to-access-tor-vpn-before-tor-on-tails-b5ca09cf1a79?source=rss-5b20363e5b65------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5ca09cf1a79</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[SHADOW]]></dc:creator>
            <pubDate>Sat, 11 Jul 2026 17:52:20 GMT</pubDate>
            <atom:updated>2026-07-11T17:52:20.576Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xC4D5SneKZfrpjDsNmclBQ.png" /></figure><p>I promised this one a while back, right after the Tor internals post. Said the next one would be about actually accessing Tor safely: bypassing ISP blocks, locking down the setup properly. Took me longer than I wanted, but here we go.</p><p>If you haven’t read that one yet and want the “how does Tor actually work under the hood” explanation first, <a href="https://medium.com/@Sh4d0w2k5/how-tor-actually-works-the-internals-nobody-explains-properly-a53069661bc7">check it out here</a>. It’ll make the rest of this post click a lot faster, since we’re building directly on top of that.</p><p>Quick disclaimer before anything else: <strong>Tails officially says it doesn’t support VPNs.</strong> Their own FAQ says it straight up, currently, Tails does not work with VPNs, full stop. And their devs have a real argument for why: strapping a VPN in front of Tor doesn’t automatically make you <em>more</em> anonymous, and in some ways it just adds a party who didn’t need to be in the picture.</p><p>I’m not here to argue with that. This post isn’t “VPN-before-Tor makes you more anonymous than stock Tails.” It’s narrower than that: <strong>this is for when your ISP itself is the problem</strong>, when it’s throttling Tor, flagging it, or just blocking it outright. That’s a different threat than what Tails’ warning is about, and for that specific threat, this setup genuinely works. I’ll show you exactly how well, with a kill switch test at the end that proves it.</p><h3>Wait, why would my ISP even care that I’m using Tor?</h3><p>A few real reasons this actually happens:</p><ul><li>Some ISPs (and some countries, some workplaces, some campus networks) actively block connections to known Tor entry relays. The list of Tor guard IPs is public, so this is trivial for them to do.</li><li>Even where it’s not blocked outright, some networks throttle it. Tor gets noticeably slower not because Tor itself is slow, but because your traffic’s getting deprioritized once it’s flagged.</li><li>And even if nothing gets blocked, plenty of people just don’t want their ISP’s logs showing “connected to Tor” at all, because depending on where you live, that alone can put you on a list you didn’t ask to be on.</li></ul><p>None of these are about the <em>content</em> of what you’re doing on Tor. They’re about the fact that you’re touching Tor at all. That’s the exact thing this setup solves.</p><h3>The plan, in one line</h3><p>Real IP → VPN tunnel → Tor → Internet.</p><p>Your ISP only ever sees you talking to a VPN server. Nothing about Tor shows up in their logs, because from their point of view, there’s no Tor traffic to see. It’s already wrapped inside the VPN tunnel before it ever leaves your machine’s outbound rules for Tor. The VPN provider sees you connecting to a Tor entry node, but not what’s inside. Tor’s own encryption is already wrapping everything by the time it hits the tunnel.</p><p>Alright, let’s build it.</p><h4>Step 0: Get Tails booted and set up</h4><p>If you’ve never touched Tails before, quick version. Grab the image from <a href="https://tails.net/install/download/index.en.html">tails.net</a>, and flash it to a USB using something like Rufus (Windows) or Balena Etcher (any OS). Balena’s dead simple: pick the Tails image, pick your USB, hit flash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*WXVgM7jZJ9eZHqymsKgHvA.png" /></figure><p>If your host machine is Windows, disable BitLocker and Secure Boot before you restart, or the USB straight up won’t boot. Plug the USB in, restart, and mash whatever key your machine uses for the boot menu (F12 on most Dells, varies by manufacturer). Pick the USB, and Tails should load.</p><p>First thing on the welcome screen: <strong>set an administrator password.</strong> This matters a lot here, without it, you can’t run any of the sudo commands this whole setup depends on.</p><h4>Step 1: Turn on Persistent Storage</h4><p>Here’s the thing about Tails by default: it forgets everything. Unplug it or restart, and it’s a totally clean slate again. Normally that’s the whole point (nothing left behind), but for this setup we need a few things to actually survive a restart: the OpenVPN package, your .ovpn config files, your VPN login, and the firewall edit we&#39;re about to make.</p><p>Go to <strong>Applications → Tails → Configure Persistent Storage</strong>, and turn on at least:</p><ul><li>APT Packages (so OpenVPN survives a reboot instead of needing a reinstall every time)</li><li>Personal Data (for your .ovpn files and any notes)</li><li>Dotfiles, if you want configs to carry over too</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qewL9-rbuK-DmexkUoCU3A.jpeg" /></figure><p>One thing worth knowing: only what’s actually <em>inside</em> Persistent Storage survives. Everything else on the system, including your firewall edit later unless you’re careful about where things live, resets on every reboot. More on that pain point near the end.</p><h3>The normal way: just using Tor, no VPN at all</h3><p>Before we go anywhere near the ISP-bypass stuff, worth pointing out: for most people, this is genuinely all you need. Boot the USB, connect to your network, and Tails auto-connects to Tor on its own. That’s it. No config, no terminal, nothing to break. Every bit of traffic on the system already routes through Tor by default, that’s the entire premise of Tails as an OS.</p><p>If you’re just after “don’t let random sites and trackers know who I am,” stop right here. This is the whole thing. Close Tails when you’re done, and everything resets to a clean slate on next boot anyway.</p><p>The catch, and the only reason the rest of this post exists, is that this default setup makes no attempt to <em>hide the fact that you’re using Tor</em> from whoever’s watching your network. Your ISP can see the connection go out to a known Tor entry relay, plain as day, even though they can’t see what you’re doing once you’re in. For most people that’s a non-issue. For some, it’s exactly the problem.</p><h3>So who actually needs to go further than this?</h3><p>If any of this sounds like you, the VPN layer below is worth the extra setup:</p><ul><li>Your ISP or network actively blocks or throttles connections to Tor relays</li><li>You’re on a connection where “this device is talking to Tor” showing up in a log is itself a risk, regardless of what you’re doing on it</li><li>You just don’t want that fact sitting in anyone’s logs, full stop</li></ul><p>If none of that applies, seriously, just use Tails normally and skip everything below. But if it does, here’s the setup that actually solves it.</p><h4>Step 2: Install OpenVPN</h4><p>Open a terminal:</p><pre>sudo apt update<br>sudo apt install openvpn -y</pre><p>It’ll probably ask if you want this to reinstall automatically on every future boot, say yes. That’s exactly what Persistent Storage’s APT Packages toggle is for; without it, you’d be doing this install every single session.</p><h4>Step 3: Get a Proton account (without handing over your identity)</h4><p>Do this bit <strong>inside Tor Browser</strong>, you’re anonymous already at this point since you haven’t touched the VPN yet, so it’s the safest moment to sign up.</p><p>Head to <a href="https://account.proton.me/mail/signup?plan=free">account.proton.me/mail/signup?plan=free</a> and create a free account. It won’t ask for any personal info, you can just create the account by entering a new email address and a password. That account doubles as your Proton VPN login too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mlB2ivfhh_nIIufvHhqQCQ.png" /></figure><h4>Step 4: Find the VPN dashboard and grab the OpenVPN config (TCP, not UDP)</h4><p>Here’s a small gotcha: signing up through that link drops you into your Proton <strong>Mail</strong> inbox, not the VPN dashboard. You need to switch over to the VPN side yourself, either through the app switcher in the top corner, or by opening the VPN dashboard directly in a new tab.</p><p>Once you’re on the VPN side, head to the OpenVPN config section, and download a config file. Any of the <strong>free servers</strong> listed will work fine for this.</p><p><strong>Pick TCP, not UDP.</strong> UDP is way easier for a hostile network to fingerprint and block outright, a lot of ISPs and firewalls just drop unrecognized UDP streams. TCP on port 443 blends in as regular HTTPS traffic, which is exactly the kind of thing that gets through networks that are actively trying to block Tor or VPN traffic. Since the entire point of this setup is getting past a hostile network, UDP kind of defeats the purpose.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fhd4A1XVkyYt-qy_BL6z7A.png" /></figure><p>Grab your OpenVPN username and password from the credentials page too, and save both the config file and the credentials into Persistent Storage, you’ll need them every time you connect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gyq0rtRa0t3PMTVJ8xXbFw.png" /></figure><p><strong>One security note now that you’re past the signup step:</strong> if you had to bump Tor Browser’s Security Level down to Standard to get any of these pages working, set it back to <strong>Safest</strong> once you’ve got everything downloaded. That’s the setting that disables JavaScript. Tor Browser ships with JS enabled by default for compatibility, but JS is one of the bigger fingerprinting and exploit surfaces in a browser. For anything actually sensitive from here on, running with JS off (via the shield icon next to the URL bar → Settings → Safest) is worth the occasional broken-website tradeoff. Only flip it back to Standard temporarily, on trusted sites, when you genuinely need to.</p><h4>Step 5: Read the .ovpn file to grab the server details</h4><p>Open the config file in a text editor and look for a line like:</p><pre>remote 146.70.xxx.xxx 443 tcp</pre><p>That’s your VPN server’s IP, port, and protocol, you’ll need all three for the next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LE01P0_26eIhh6cqfkURTg.jpeg" /></figure><h4>Step 6: The firewall surgery</h4><p>This is the part that actually makes the whole thing work, not just “route traffic through the VPN,” but <em>force</em> Tor to only ever talk over the VPN tunnel and refuse to work otherwise. That’s the difference between “usually goes through the VPN” and “physically cannot leak,” and it comes down to two small edits in Tails’ firewall config (ferm.conf).</p><p>Tails locks down outbound traffic tight by default, nothing gets out unless there’s an explicit rule allowing it. We’re adding two rules. I’ve marked both with a comment so you can spot exactly what you added if you ever reopen the file:</p><p><strong>Edit 1: let OpenVPN itself reach the VPN server</strong></p><pre>sudo nano /etc/ferm/ferm.conf</pre><p>Add this near the top of the OUTPUT chain, using the IP/port/protocol you pulled from your .ovpn file:</p><pre>#Local resources<br>daddr 146.70.xxx.xxx proto tcp dport 443 { mod owner uid-owner root ACCEPT; }</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eHxhmkCxqsyT8B23QX4Tzg.jpeg" /></figure><p>What this actually does: OpenVPN runs as root, and by default, root has no special permission to reach anywhere Tails hasn&#39;t explicitly allowed. This line carves out one narrow exception, root can talk to this exact IP, on this exact port, over TCP, and nothing else. That&#39;s the only door that lets your VPN connection get established in the first place.</p><p><strong>Edit 2: force Tor to only use the VPN tunnel</strong></p><p>Further down, there’s already a block that looks like this:</p><pre>#Tor is allowed to do anything it wants to<br>outerface tun0 mod owner uid-owner debian-tor {<br>    proto tcp syn mod state state (NEW) ACCEPT;<br>    proto udp dport domain ACCEPT;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pTmpeu683zULjpU1AJlotQ.jpeg" /></figure><p>Here’s the important part, and it’s the whole reason this setup is actually a kill switch and not just a preference: this is the <strong>only rule in the entire firewall that lets the debian-tor user send anything out at all.</strong> tun0 is the interface OpenVPN creates once it connects, it doesn&#39;t exist before that. So before the VPN is up, there&#39;s no tun0 for this rule to match, no rule allows Tor&#39;s traffic out, and Tails&#39; default-deny policy just blocks it. Tor can&#39;t send a single packet until the tunnel exists.</p><p>That’s not a routing preference that Tor could technically ignore, it’s the firewall physically refusing to let Tor out any other way.</p><p><strong>To save and exit:</strong> Ctrl+O, Enter, then Ctrl+X.</p><h4>Step 7: Restart the firewall and bring up the VPN</h4><p>Check the syntax before you trust it, a typo here can silently fail instead of erroring loudly:</p><pre>sudo ferm -n /etc/ferm/ferm.conf</pre><p>If that’s clean, restart:</p><pre>sudo /etc/init.d/ferm restart</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vRZ45LvDi3jLpQGYXUZO4A.jpeg" /></figure><p>Now connect to the VPN:</p><pre>sudo openvpn yourconfig.ovpn</pre><p>It’ll ask for the username and password you saved earlier. Once you see “Initialization Sequence Completed,” you’re tunneled. <strong>Keep this terminal tab open and running,</strong> closing it kills the VPN connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JTwVHBENG-bR_w8_BpWKug.jpeg" /></figure><p>Open a second terminal tab and check:</p><pre>ip addr</pre><p>Look for tun0 in the list with an IP assigned to it. That confirms the tunnel&#39;s actually up.</p><h4>Step 8: Bring Tor back online</h4><p>Still in that second tab (leave the VPN tab running in the background), bring Tor up:</p><pre>sudo systemctl restart tor</pre><p>If that doesn’t work on your version, run systemctl status tor first to see the actual service name Tails is using, then restart that instead.</p><p>Give it a minute to bootstrap, then check:</p><p>👉 <a href="https://check.torproject.org/">check.torproject.org</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0q59cvBkqxrTU3FQH_0EAw.jpeg" /></figure><p>If it says you’re using Tor, you’re in. Your ISP, at this exact moment, sees nothing but a VPN connection. No Tor handshake, no known relay IPs in their logs, nothing to flag.</p><p><strong>So what does the actual path look like at this point?</strong> Roughly like this:</p><pre>Tor Browser<br>    |  (wrapped in Tor&#39;s own onion encryption)<br>    v<br>Tor daemon (debian-tor)<br>    |  (that already-encrypted traffic gets wrapped AGAIN, this time in the VPN&#39;s own encryption)<br>    v<br>tun0 (the VPN tunnel)<br>    |<br>    v<br>VPN server (Proton exit)<br>    |  (VPN encryption peels off here, Tor&#39;s onion layers are still intact underneath)<br>    v<br>Tor entry guard → Tor middle relay → Tor exit relay<br>    |<br>    v<br>The website you&#39;re actually visiting</pre><p>The segment between your browser and the VPN server is the double-protected part, your ISP sees only VPN-encrypted traffic there, with Tor’s own encryption still sitting underneath it. In practice, that means your ISP only ever sees you connecting to the VPN server, it has no visibility into the Tor entry node at all, since that hop only happens after the VPN server, well outside your ISP’s view. Past the VPN server, it’s normal Tor from that point onward, peeled one hop at a time exactly like it always is.</p><h3>The actual proof: killing the VPN mid-session</h3><p>This is the part that actually convinces you it’s not just routing traffic through the VPN as a preference, it’s <em>enforced.</em> With Tor already working through the tunnel, go back to the terminal running OpenVPN and hit Ctrl+C to kill it.</p><p>Now go back to Tor Browser and try to reload anything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZVkbt6d3ALJfTfqf-esHcg.jpeg" /></figure><p>Nothing loads. Nothing will load. Because remember Edit 2, Tor’s only allowed path out was through tun0, and tun0 doesn&#39;t exist anymore. The firewall isn&#39;t confused or half-working, it&#39;s doing exactly what we told it to: if the VPN&#39;s down, Tor doesn&#39;t get a fallback path onto the raw connection, it just goes silent. That&#39;s the kill switch, and that screenshot is the proof.</p><p>Reconnect the VPN, and Tor picks back up right where it left off.</p><h3>What this actually buys you (and what it doesn’t)</h3><p>Let’s be straight about the trade-off, because it’s easy to oversell this:</p><ul><li><strong>Your ISP sees zero evidence of Tor.</strong> Not “Tor but encrypted,” actually nothing, just a plain VPN connection. That’s the entire value proposition here.</li><li><strong>The VPN provider knows your real IP and that you’re connecting to a Tor entry node</strong>, but they never see your actual traffic, since Tor’s own encryption already wraps everything before it reaches them. What they know is timing and the fact you’re a Tor user, not content.</li><li><strong>Tor’s own guard rotation is completely untouched by any of this.</strong> Tor still picks its 2 to 3 guards from the full relay pool on its own schedule, the VPN sitting in front doesn’t interact with that mechanism at all.</li><li>So the real question is: which party would you rather hold the “this IP uses Tor” fact? Your ISP, who often has legal reach and retention obligations over you specifically? Or a VPN provider with no jurisdiction-based leverage over you at all? For most people dealing with a Tor-hostile network, that’s an easy call.</li></ul><p>This is why the Tails team’s caution and this setup aren’t actually in conflict, they’re answering different questions. Their FAQ is about general anonymity theory (“more hops isn’t automatically better”). This post is about a specific, narrower problem: getting past a network that’s actively hostile to Tor in the first place. If your threat model is “I need my ISP to not know I even touch Tor,” this setup earns its complexity.</p><h3>Troubleshooting grab bag</h3><p>A few things that tripped me up, if you hit them too:</p><ul><li><strong>Proton signup being weird about verification:</strong> try flipping Tor Browser’s Security Level to Standard temporarily on Proton’s page specifically if it won’t load, or use their .onion mirror if you&#39;re on a network that&#39;s actively hostile to clearnet Tor exit traffic.</li><li><strong>Ferm restart looking successful but rules not applying:</strong> always double check with sudo iptables -L -n -v | grep -i tor after restarting, to confirm your added lines actually loaded into the kernel and it wasn&#39;t a silent no-op from a typo.</li><li><strong>The ferm edit disappearing after a reboot:</strong> yeah, this one’s annoying. Unless the /etc/ferm/ferm.conf file itself is somewhere covered by your Persistent Storage config, you&#39;ll need to redo this edit every fresh session. Worth turning into a saved script in Persistent Storage that you can just re-run instead of retyping.</li></ul><p>That’s the full setup, tested end to end, kill switch and all. If anything here’s off or I got a step wrong on your version of Tails, drop a comment and I’ll get it corrected.</p><p>Next one’s already brewing, stay tuned.</p><p>Happy Reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5ca09cf1a79" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Tor Actually Works, The Internals Nobody Explains Properly]]></title>
            <link>https://medium.com/@Sh4d0w2k5/how-tor-actually-works-the-internals-nobody-explains-properly-a53069661bc7?source=rss-5b20363e5b65------2</link>
            <guid isPermaLink="false">https://medium.com/p/a53069661bc7</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[SHADOW]]></dc:creator>
            <pubDate>Sat, 04 Jul 2026 10:54:25 GMT</pubDate>
            <atom:updated>2026-07-04T10:54:41.147Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*tZJ2r4nIhdhvWrRUmYPJbQ.jpeg" /></figure><h3>Table of Contents</h3><ol><li>Before we start, what you should already know</li><li>What is Tor, and what is the dark web, clearing the confusion first</li><li>What is Tor and why does it exist</li><li>The core idea, onion routing</li><li>The 3-hop circuit, Entry, Middle, Exit</li><li>How your Tor Browser connects to the Tor network, Directory Authorities and the Consensus</li><li>How a .onion address is actually built, V2 and V3</li><li>How a hidden service sets itself up, the full process</li><li>How a client actually connects to a .onion site, the full flow</li><li>How the INTRODUCE1 message is actually constructed, the first secure communication</li><li>How the circuit is actually built, ntor handshake and forward secrecy</li><li>How the Rendezvous Point actually works, the two-socket model</li><li>Known attack surfaces</li><li>Closing</li></ol><p>So once I thought of using Tor just to visit the dark web, out of plain curiosity. But after using it a couple times, way more questions started popping up in my head than answers. How is this even different from the normal web? Are we actually tracked here or not? Why can’t I just open a .onion link in Chrome, why do I specifically need the Tor Browser for this? What does the Tor Browser even do differently from a normal browser anyway? How does my traffic even reach these sites without anyone knowing it’s me?</p><p>That curiosity is what pulled me in. I started going through blogs, writeups, YouTube videos, chatting with AI to fill in the gaps, and piecing things together from wherever I could. And the more I read, the more I noticed something, most explanations stop at “your traffic goes through 3 nodes and gets encrypted in layers.” Cool, but that’s like explaining a car by saying “it has wheels and it moves.”</p><p>So I decided to go a little deeper and actually understand how the whole thing works, get a proper overview of what’s really happening under the hood. This blog is the result of that.</p><p>Fair warning, this is long. It’s meant to be read slowly, maybe over a coffee, not skimmed in two minutes. But by the end, you’ll have a solid idea of how Tor actually works, not everything there is to know about it, but enough that you won’t need to go looking for another explanation after this.</p><h3>Before we start, what you should already know</h3><p>You don’t need a security background to follow this, but a little bit of two things will make everything click faster: basic networking (what an IP address is, what a client and a server are, roughly what a “packet” means) and a little bit of cryptography (the idea that a public key and private key are a pair, and that a hash function takes input and spits out a fixed size fingerprint of it). If none of that rings a bell, don’t worry, I’ll explain things as we go. But if you do know this stuff, you’ll fly through this faster.</p><h3>What is Tor, and what is the dark web, clearing the confusion first</h3><p>Before going any deeper, let’s clear up something a lot of people mix up. Tor and the dark web are not the same thing.</p><p><strong>Tor</strong> is the network and the technology. It’s the system of relays and encryption that lets your traffic travel anonymously. <strong>Tor Browser</strong> is just the app you use to access that network. It’s basically Firefox with Tor wired into it and a bunch of privacy settings locked down by default. That’s also why you can’t just open a .onion link in Chrome or any normal browser. A normal browser has no idea what the Tor network even is, it only knows how to talk to the regular internet using normal DNS and routing. Tor Browser knows how to route your traffic through the Tor network specifically, which is an entirely different routing system.</p><p>The <strong>dark web</strong> is just a destination you can reach using Tor. It refers to websites ending in .onion that only exist inside the Tor network and cannot be reached through a normal browser at all. So Tor is the road, the dark web is one possible place that road leads to. Most people who use Tor every day are not even visiting the dark web, they’re using Tor just to browse the regular internet anonymously.</p><p>Now a quick word on the bigger confusion too. The <strong>surface web</strong> is anything Google can index and show you in search results, news sites, YouTube, blogs. The <strong>deep web</strong> is everything not indexed but still on the regular internet, your email inbox, your bank dashboard, anything behind a login wall. It’s “deep” because search engines can’t crawl behind a login, not because it’s secretive. The deep web is actually massively bigger than the surface web. The <strong>dark web</strong> is the small slice that needs special software like Tor to access at all, because it’s not even running on the regular internet addressing system.</p><h3>What is Tor and why does it exist</h3><p>Tor stands for The Onion Router. It was originally built by the U.S. Naval Research Laboratory in the mid-1990s to protect government communications. It was later open-sourced and handed over to the nonprofit Tor Project, and today it’s used by a much wider range of people than its origins suggest.</p><p>Journalists use it to talk to sources without exposing them. Whistleblowers use it to leak information without revealing who they are. People living under heavy censorship use it to access blocked websites and speak freely. Regular privacy-conscious users use it just to stop their ISP and advertisers from building a profile on them. And yes, some people use it for illegal stuff too, but that’s true of literally every privacy tool ever made, including encrypted messaging apps and VPNs.</p><p>To give you a sense of the scale of what we’re talking about here, the Tor network currently runs on roughly 8,000 to 9,000 active relays as of 2026, with around 1,500 to 2,000 of those being exit relays, and total aggregate bandwidth around 800 Gbit/s. On a typical day, somewhere between 2.0 to 2.5 million people connect directly to the network, and around 800,000 unique .onion addresses are visible on the network at any given time. Interestingly, most of that traffic isn’t even going to .onion sites. Research shows only about 3 to 7% of Tor traffic actually stays inside the network on hidden services. The rest exits out to the regular internet. So most people are using Tor just to browse normal websites anonymously, not specifically for the dark web.</p><p>This is a network built and kept alive almost entirely by volunteers running relays out of their own bandwidth, with no single company owning or controlling it.</p><h3>The core idea, onion routing</h3><p>Here’s the foundational concept everything else builds on. Tor doesn’t just encrypt your traffic once and send it off. It wraps your data in multiple layers of encryption, like an onion, where each layer can only be peeled off by one specific node along the path.</p><p>Picture sending a letter, but you put it inside three separate locked boxes, nested inside each other. Each box has a different lock, and a different person along the delivery route holds the key to exactly one of those locks. The first person can only open the outermost box. Inside they find another locked box addressed to the next person, with no idea what’s inside it. They pass it on. The next person opens their box, finds another locked box, passes that on too. Only the last person, the one closest to the actual destination, opens the final box and sees what’s really inside.</p><p>That’s onion routing. No single person in that chain ever sees both who sent the letter and what’s actually inside it.</p><p>In Tor’s implementation, when you send a request, your Tor Browser (client) encrypts your data three times, once for each node in your path, using a key it has already negotiated with each of those nodes ahead of time. The outermost layer can only be decrypted by the first node, the next layer only by the second node, and the innermost layer only by the third.</p><p>Here’s that structure visually, the actual packet, the layers, and what each node sees when it peels its own layer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rmt5qfniWBPV7A2LM0dbbg.png" /></figure><p>What this buys you is simple but powerful. No single node along the path ever has the full picture. The first node knows who you are but doesn’t know your final destination. The last node knows the destination but has no idea who you are. Nobody in between has either piece.</p><h3>The 3-hop circuit, Entry, Middle, Exit</h3><p>Now let’s connect this to something you’d actually do. Say you open Tor Browser and type in a website. What actually happens between you hitting enter and the page loading?</p><p>Your traffic doesn’t go straight to the website. It travels through exactly three relays first. This path of three relays is called a circuit.</p><p>The <strong>Entry Guard</strong> is the first relay your traffic touches. It knows your real IP address because you’re connecting to it directly from your device. But it has no idea where your traffic is ultimately headed, that information is still wrapped inside the inner encryption layers it cannot read.</p><p>The <strong>Middle Relay</strong> sits in between. It knows the IP of the Entry Guard before it and the Exit Node after it, but it cannot see your real IP, and it cannot see the final destination either. It’s essentially blind to both ends of the connection.</p><p>The <strong>Exit Node</strong> is the last relay. It decrypts the final layer and sends your actual request out to the destination website on the regular internet. It knows where the traffic is going and can read the content if the site is not using HTTPS, but it has no idea who originally sent it because all it sees is traffic coming from the Middle Relay.</p><p>Here’s the full picture of what each node knows and cannot know:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qpApGsHrx6qYLEmaA93BBQ.png" /></figure><p>You might already have a doubt forming here, okay the layers exist, but how exactly does the encryption between each node actually happen? How does your Tor Browser (client) even establish those keys with the Entry, Middle, and Exit nodes without anyone in between being able to intercept them? That’s a really good question and we will look at it in detail a bit later, because understanding that properly needs a few more things to be in place first. Keep that question in mind and we’ll come back to it.</p><p>This 3-hop design is not random. Fewer hops would mean weaker anonymity, easier for someone watching both ends to correlate sender and receiver. More hops would add unnecessary delay without meaningfully better protection. Three is Tor’s deliberately chosen sweet spot.</p><p>Now think about what just happened here. You opened Tor Browser, typed a site, and in the background it built this exact 3-hop path within seconds. But how does it even know which relays exist out there? How does it decide which three to pick? That’s what we’re getting into next.</p><h3>How your Tor Browser connects to the Tor network, Directory Authorities and the Consensus</h3><p>So we just said Tor builds a 3-hop circuit before reaching any site. But how does this circuit even get built? Where does your Tor Browser (client) get the list of relays to choose from?</p><p>Think about it this way. You’ve just installed Tor Browser and opened it for the first time. Right now your Tor Browser (client) doesn’t know a single relay exists. It has no idea who’s out there. Before it can build any circuit at all, it first needs to find out what the Tor network even looks like right now.</p><p>This is where <strong>Directory Authorities</strong> come in.</p><p>Directory Authorities are a small set of trusted servers, around 9 to 10 of them, run by trusted people and organizations within the Tor Project. Their IP addresses are hardcoded directly into the Tor Browser software itself. The moment you install Tor Browser, it already knows exactly where to find these Directory Authorities. No discovery process, no searching, they’re already baked in from day one.</p><p>Now what do these Directory Authorities actually contain? Every relay in the Tor network regularly checks in with the Directory Authorities and reports information about itself: its IP address, its public key, how much bandwidth it can handle, how long it has been running stably online, and other properties. The Directory Authorities collect all of this from every relay and then, roughly once every hour, they all vote together and agree on a single document called the <strong>Consensus</strong>.</p><p>Think of the Consensus document as the master map of the entire Tor network at that exact moment. It lists every known relay, its IP address, its capabilities, and special flags assigned to it based on its behavior. For example, a relay that has been consistently online and stable gets flagged as a <strong>Guard</strong> relay, meaning it’s considered reliable enough to be someone’s Entry node. A relay with enough bandwidth and stability gets flagged as <strong>Exit</strong>, meaning it’s allowed to send traffic out to the regular internet. These flags are important because your Tor Browser (client) uses them when picking which relay to assign to which role in your circuit.</p><p>So what does your Tor Browser (client) actually do with all of this?</p><p>The moment Tor Browser starts up, right after you open it, it contacts one of those hardcoded Directory Authority IPs and downloads the latest Consensus document. Once it has that document, it now has the complete picture of every available relay on the network. It doesn’t need to ask anyone in real time anymore. From that single downloaded document, it can now pick an Entry Guard, a Middle Relay, and an Exit Node, and build your 3-hop circuit entirely on its own within a few seconds.</p><p>That’s the bootstrapping process, and it happens every time you open Tor Browser before you’ve even typed a single URL.</p><p>This is also why Directory Authorities are such a critical and sensitive piece of the whole system. If a majority of them were ever compromised or forced to publish a fake Consensus with malicious relays, it could seriously undermine the network’s anonymity guarantees. That’s part of why their operators are deliberately spread across different individuals and different countries rather than being centralized in one place or under one organization’s control.</p><h3>How a .onion address is actually built, V2 and V3</h3><p>So far we’ve talked about Tor as a network, how circuits work, and how your Tor Browser (client) finds out which relays even exist. Now let’s get into what makes .onion addresses different from normal website addresses and what’s actually hidden inside them.</p><p>First, a quick word on two versions, V2 and V3. V2 is the old system, now completely deprecated and disabled. V3 is the current system and the one that matters. I’ll mention V2 briefly just so you understand why V3 was needed, then we’ll go deep on V3.</p><h4>V2, the old way (deprecated)</h4><p>In V2, a hidden service generated an RSA 1024-bit key pair. The onion address was then computed like this:</p><pre>onion_address = Base32( SHA1(PublicKey) ) + &quot;.onion&quot;</pre><p>This produced a 16-character address like duskgytldkxiuqc6.onion. The problem is SHA1 is cryptographically weak, RSA 1024-bit is considered breakable with modern hardware, and 16 characters gives very little collision resistance. V2 was fully deprecated and disabled across the network by 2021.</p><h4>V3, the current system</h4><p>V3 fixed everything. The hidden service generates an <strong>ED25519 key pair</strong> instead. ED25519 is a modern elliptic curve algorithm that produces 32-byte (256-bit) keys and is considered significantly stronger.</p><p>The keys are stored in two files on the server running the hidden service:</p><pre>/var/lib/tor/hidden_service/<br>├── hostname                  ← contains the final .onion address<br>├── hs_ed25519_secret_key     ← private key, 32 bytes<br>└── hs_ed25519_public_key     ← public key, 32 bytes</pre><p>Now here is the actual process of deriving the .onion address from that public key.</p><p><strong>Step 1: compute the checksum</strong></p><pre>checksum = SHA3-256( &quot;.onion checksum&quot; + public_key + version_byte )</pre><p>Take the first 2 bytes of this SHA3–256 output. Those 2 bytes are your checksum. The string “.onion checksum” is a fixed prefix baked into the spec, it’s there to make this hash operation domain-specific so it can’t be confused with any other hash in the system.</p><p><strong>Step 2: set the version byte</strong></p><p>For V3, the version byte is always 0x03. That single byte tells any Tor client reading this address &quot;this is a V3 address, treat it accordingly.&quot;</p><p><strong>Step 3: concatenate all three parts</strong></p><pre>raw = public_key (32 bytes) + checksum (2 bytes) + version_byte (1 byte)<br>    = 35 bytes total</pre><p><strong>Step 4: Base32 encode</strong></p><pre>35 bytes × 8 bits = 280 bits<br>280 bits ÷ 5 bits per Base32 character = 56 characters</pre><p>That’s where the 56-character V3 address comes from. Not an arbitrary length, it follows directly from the math.</p><pre>onion_address = Base32( raw_35_bytes ) + &quot;.onion&quot;</pre><p>Example of a real V3 address:</p><pre>facebookwkhpilnemxj7asaniu7vnjjbiltxjqhye3mhbshg7kx5tfyd.onion</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j35z6TVksAi8UrYZiKjPGA.png" /></figure><p>Here’s the important thing to understand about this: the address itself <strong>is</strong> the public key. There’s no central registry, no DNS lookup, no certificate authority vouching for anything. When your Tor Browser (client) reads a .onion address, it literally decodes those 56 characters back into 35 bytes, pulls out the 32-byte public key, recomputes the checksum from that key, and checks it matches. If it does, the address is valid. If it doesn’t, something’s wrong. The cryptography is self-contained in the address itself, that’s the elegance of V3.</p><h3>How a hidden service sets itself up, the full process</h3><p>This is where things get genuinely interesting. Before a client can ever visit a .onion site, the hidden service itself has to do quite a bit of work to announce its existence to the network, without ever revealing its actual IP address. Let’s walk through this step by step.</p><p>Think of it like this. On the normal internet, if you run a website, you register a domain with DNS and DNS tells the world your server’s IP address. Anyone who types your domain gets your IP and connects to you directly. But on Tor, revealing the server’s IP defeats the entire purpose. So Tor had to solve a different problem, how do you let people find you and contact you, without ever telling anyone where you actually are?</p><p>The answer is a clever combination of intro points, a descriptor, and a hash ring of HSDirs. Let’s go through each one.</p><h4>Step 1: Generate ED25519 keys and derive the .onion address</h4><p>The hidden service generates its ED25519 key pair (as explained in the previous section) and computes its .onion address. This address is now its permanent identity on the network.</p><h4>Step 2: Choose 3 intro points and build a circuit to each</h4><p>The hidden service now randomly selects 3 relays from the Tor network to act as its <strong>Introduction Points</strong>. These are just regular Tor relays that have agreed to play this role.</p><p>But here’s the critical detail, the hidden service doesn’t connect to these intro points directly. If it did, the intro point would immediately know the hidden service’s real IP address. That would break everything.</p><p>Instead, the hidden service builds a full 3-hop Tor circuit to each intro point:</p><pre>Hidden Service → Entry Relay → Middle Relay → Intro Point</pre><p>Now the intro point only ever sees “traffic arriving from the Middle Relay.” It has no idea where the hidden service actually is. These three circuits are kept open and alive persistently, constantly waiting.</p><p>What does an intro point actually know? Just this: “Someone built a Tor circuit to me. I’ll wait here. If a client ever asks to reach this service through me, I’ll forward that request down the circuit.” That’s literally it. The intro point doesn’t know the hidden service’s IP, doesn’t know the client’s IP, and cannot see any of the actual content being communicated.</p><h4>Step 3: Build the descriptor</h4><p>Now the hidden service needs to let potential clients know that these intro points exist and how to use them. It does this by creating something called a <strong>descriptor</strong>.</p><p>Think of the descriptor like a contact card. It doesn’t contain the server’s IP, it contains the information needed to make anonymous contact. A simplified view of what’s inside:</p><pre>Descriptor<br>----------------------------<br>Service Public Key<br>Intro Point 1 (IP + keys)<br>Intro Point 2 (IP + keys)<br>Intro Point 3 (IP + keys)<br>Encryption Keys<br>Signature (signed with hidden service private key)</pre><p>The signature is important. Without it, an attacker could create a fake descriptor pointing to malicious intro points, and clients would connect to the attacker instead of the real service. Since the descriptor is signed with the hidden service’s private key, any client can verify it using the public key already embedded in the .onion address. Fake descriptors fail this verification immediately.</p><h4>Step 4: Compute the blinded key pair (hidden service side)</h4><p>This part is a little bit of math, but bear with me because it’s actually very clever once you see it. Before going into this, one important note: what follows is a simplified toy example to help you understand the concept. The actual Tor v3 ED25519 blinding algorithm is more complex under the hood, the real keys and factors are huge numbers (256-bit scalars), not simple integers like 5 or 3. But the core idea is preserved exactly. If you already know about elliptic curve cryptography, you’ll understand how this maps to the real implementation.</p><p>Let’s say the hidden service’s key pair is:</p><pre>Private Key (SK) = 5<br>Public Key  (PK) = 7</pre><p>The server stores both. The client only ever knows the Public Key = 7 (extracted from the .onion address).</p><p>Now both sides know the current time period. Say today is:</p><pre>Current Time Period = 125</pre><p>This time period changes every 1440 minutes, exactly 24 hours.</p><p><strong>Computing the blinding factor</strong></p><p>Both the hidden service and the client independently run the Tor v3 ED25519 Blinding Algorithm using the same inputs:</p><pre>Public Key = 7<br>    +<br>Current Time Period = 125<br>    +<br>Protocol Constants<br>(fixed values defined by the Tor spec, never change)<br>    +<br>(Optional Client Authorization Secret, empty for normal services)</pre><pre>▼<br>Tor v3 ED25519 Blinding Algorithm</pre><pre>▼<br>Blinding Factor = 3</pre><p>Both sides get the same Blinding Factor = 3 because they used the exact same inputs. The private key is not involved here, that’s why the client can compute the same blinding factor independently.</p><p><strong>Hidden service computes its blinded key pair</strong></p><pre>Blinded Private Key = Private Key × Blinding Factor = 5 × 3 = 15<br>Blinded Public Key  = Public Key  × Blinding Factor = 7 × 3 = 21</pre><p>These still form a valid matching key pair. The hidden service now uses the Blinded Private Key (15) to sign the descriptor it is about to upload.</p><h4>Step 5: Client computes the same blinded public key</h4><p>The client has no private key. It only has:</p><pre>Public Key = 7<br>Current Time Period = 125</pre><p>It runs the exact same blinding algorithm with the exact same inputs:</p><pre>Public Key = 7<br>    +<br>Current Time Period = 125<br>    +<br>Protocol Constants</pre><pre>▼<br>Tor v3 ED25519 Blinding Algorithm</pre><pre>▼<br>Blinding Factor = 3</pre><pre>▼<br>Blinded Public Key = 7 × 3 = 21</pre><p>The client now has Blinded Public Key = 21. Exactly the same as what the hidden service derived. Without ever exchanging anything. Without ever knowing the private key.</p><p>When the client later downloads the descriptor from an HSDir, it verifies the signature using this Blinded Public Key (21). If the signature checks out, the client knows the descriptor was genuinely created by the real hidden service and has not been tampered with.</p><p><strong>What each term means</strong></p><pre><strong>Term   </strong>                       | <strong>Example        </strong>| <strong>What it actually is</strong><br>------------------------------|----------------|-------------------------------------------------------------------------------------------------<br>Private Key (SK)              | 5              | Secret identity of the hidden service. Never leaves the server. Real length: 32 bytes (256 bits)<br>                              |                | <br>Public Key (PK)               | 7              | Public identity. Encoded inside the .onion address. Real length: 32 bytes (256 bits)<br>                              |                | <br>Current Time Period           | 125            | A protocol-defined time window. Changes every 1440 minutes (24 hours exactly)<br>                              |                |<br>Protocol Constants            | Fixed values   | Constants baked into the Tor spec. Same for every implementation. Ensure the algorithm behaves consistently<br>                              |                | <br>Optional Client Auth Secret   | Empty          | Only used if the service enables client authorization. Empty for normal .onion services<br>                              |                |<br>Blinding Factor               | 3              | Temporary scalar derived by the algorithm. Real length: approximately 256 bits, a huge number<br>                              |                | <br>Blinded Private Key           | 15 (= 5 x 3)   | Used by the hidden service to sign the descriptor. Real operation: elliptic curve scalar multiplication<br>                              |                |<br>Blinded Public Key            | 21 (= 7 x 3)   | Computed independently by both sides. Used to verify descriptor signature and for placement<br>                              |                | </pre><p>The real Blinding Factor is not 3, it’s a 256-bit scalar, a number so large it would take many lines just to write out. The multiplication is not normal arithmetic either, it’s elliptic curve scalar multiplication. But the core idea is exactly as shown: both sides independently run the same deterministic algorithm on the same inputs and arrive at the same blinded keys, without ever talking to each other about it. That’s the elegance of this design.</p><h4>Step 6: Compute the descriptor ID (hs_service_index)</h4><p>Now that both sides have the blinded public key, they need to figure out the exact position on the hash ring where the descriptor should be stored. This position is called the <strong>hs_service_index</strong>, which is what most tutorials loosely call the “descriptor ID.”</p><p>Here is the actual formula from the Tor v3 specification:</p><pre>hs_service_index = SHA3-256(<br>    &quot;store-at-idx&quot;    ||<br>    blinded_public_key ||<br>    replica_number     ||<br>    period_length      ||<br>    period_number<br>)</pre><p><strong>What each term means:</strong></p><pre><strong>Term    </strong>             | <strong>What it is  </strong>                                    | <strong>Purpose<br></strong>---------------------|-------------------------------------------------|------------------------------------------------------------<br>SHA3-256             | Cryptographic hash function                     | Produces a fixed 32-byte (256-bit) hash output used as the<br>                     |                                                 | position on the HSDir hash ring.<br>                     <br>&quot;store-at-idx&quot;       | Fixed protocol string (Domain Separator)        | Prevents this hash from being confused with hashes used<br>                     |                                                 | elsewhere in the Tor protocol.<br><br>blinded_public_key   | Temporary public key for the current period     | Represents the hidden service&#39;s identity for the current<br>                     |                                                 | time period.<br><br>replica_number       | Either 0 or 1                                   | Tor creates two descriptor replicas. Each replica gets a<br>                     |                                                 | different hs_service_index and is stored on different HSDirs.<br><br>period_length        | Protocol-defined descriptor period length       | Specifies how long a descriptor remains valid before a<br>                     | (currently 1 day)                               | new one is generated.<br><br>period_number        | Current descriptor time period                  | Ensures the hs_service_index changes every period so the<br>                     |                                                 | descriptor moves to different HSDirs over time.<br><br>||                   | Concatenation operator                          | Joins all input bytes together before they are hashed.<br><br>hs_service_index     | 32-byte SHA3-256 hash output                    | Deterministic value used to locate the responsible HSDirs<br>                     |                                                 | on the hash ring.</pre><p>Notice the replica_number in the formula. Tor creates <strong>two replicas</strong> of the descriptor, one with replica_number = 0 and one with replica_number = 1. Each replica gets a completely different hs_service_index, which means each one lands on a completely different set of HSDirs on the hash ring. This is for redundancy, if one set of HSDirs goes offline, the other replica is still findable.</p><p>Also worth knowing: the numeric values (replica_number, period_length, period_number) are encoded as 8-byte integers (INT_8) before being concatenated and hashed.</p><p>Both the hidden service and the client run this exact same formula with the exact same inputs and arrive at the same hs_service_index independently. That’s how the client knows exactly which HSDirs to contact to fetch the descriptor, without the hidden service ever telling it.</p><h4>Step 7: Find the right HSDirs using the hash ring</h4><p>Now the hidden service needs to figure out which relays to actually upload its descriptor to. But first, what even is an HSDir?</p><p><strong>HSDir</strong> stands for Hidden Service Directory. Think of HSDirs the way you’d think of DNS on the regular internet. On the normal web, DNS stores the IP address of every domain. On Tor, HSDirs store the descriptors of hidden services. Instead of “give me the IP for google.com,” it’s “give me the descriptor for this .onion address.” They’re essentially the phonebook of the Tor network’s hidden service layer.</p><p>Not every relay on the Tor network is an HSDir. Only a small subset qualifies. To get the <strong>HSDir flag</strong> in the Consensus document, a relay must have been running stably and continuously online for at least 25 hours. The Directory Authorities assign this flag during the consensus voting process. Out of 8,000 to 9,000 total relays on the network, only a fraction hold this flag at any given time.</p><p>Why not store descriptors on every relay? Because HSDirs need to be trustworthy and stable. If a relay goes offline constantly, it’s useless as a directory. The 25-hour uptime requirement filters out unreliable relays.</p><p>Now, with that clear, how does the hidden service know which specific HSDirs to upload to?</p><p>All HSDirs are sorted by their identity key fingerprint and arranged in a conceptual circle called a <strong>hash ring</strong>. The hs_service_index we computed in Step 6 is placed on this same ring as a position. The hidden service then walks clockwise from that position and picks the first 4 HSDirs it encounters. Those are the ones that will store the descriptor for that replica.</p><p>Remember from Step 6, Tor computes two different hs_service_index values, one for replica 0 and one for replica 1. Each one lands at a completely different position on the ring and picks a completely different set of 4 HSDirs. Let’s make this concrete:</p><pre>Replica 0:  hs_service_index = 10<br>Replica 1:  hs_service_index = 20</pre><pre>HSDirs on the ring (sorted by fingerprint):<br>2, 5, 8, 11, 12, 13, 14, 17, 19, 21, 22, 23, 24, 27, 30</pre><p><strong>Replica 0</strong>, position 10, walk clockwise, pick first 4 HSDirs:</p><pre>hs_service_index = 10</pre><pre>▼<br>HSDir 11  ✓<br>HSDir 12  ✓<br>HSDir 13  ✓<br>HSDir 14  ✓</pre><p><strong>Replica 1</strong>, position 20, walk clockwise, pick first 4 HSDirs:</p><pre>hs_service_index = 20</pre><pre>▼<br>HSDir 21  ✓<br>HSDir 22  ✓<br>HSDir 23  ✓<br>HSDir 24  ✓</pre><p>Important: 10 and 20 are just the computed index positions on the ring. They are not HSDirs themselves. The HSDirs are the actual relays whose fingerprints fall clockwise after those positions. The descriptor is uploaded to HSDir 11, 12, 13, 14 and HSDir 21, 22, 23, 24, 8 HSDirs total across both replicas (4 per replica, called hsdir_spread_store, default value 4).</p><p>Also worth being clear about, the numbers in this example (10, 20, 11, 12, 13…) are just a teaching simplification. In the real Tor network, none of these are small integers. The hs_service_index values are 32-byte SHA3–256 hashes, huge 256-bit numbers that look something like a3f8c2d1... in hex. The HSDir positions on the ring are also derived from their ED25519 identity key fingerprints, which are similarly large hash values. The ring contains hundreds of these large hash values sorted in order, and the clockwise walk happens across those real cryptographic values. The toy example with 10, 20, 11, 12 just makes the concept easy to follow, the actual mechanics are identical, just with much larger numbers.</p><p>When a client later wants to fetch the descriptor, it runs the exact same formula, arrives at the same hs_service_index values, walks the same hash ring, and picks randomly from among the first 3 HSDirs after the index (called hsdir_spread_fetch, default value 3). It only needs one honest HSDir to successfully get the descriptor. Both sides always arrive at the same HSDirs independently, no communication needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9SduXtkf7uAuDXD2mPA7qg.jpeg" /></figure><p>Why does the descriptor rotate every 24 hours? Because if your descriptor always landed on the same HSDirs, an attacker could just sit and watch those specific HSDirs forever, learning a lot about who is visiting your service and when. By rotating the blinded key every time period, the hs_service_index changes and the descriptor lands on a completely different set of HSDirs each day. Attackers cannot camp on one spot.</p><h4>The hidden service is now live</h4><p>At this point the hidden service has:</p><ul><li>Built 3 persistent circuits to 3 intro points</li><li>Created and signed a descriptor listing those intro points</li><li>Uploaded that descriptor to the correct HSDirs</li></ul><p>It sits and waits. Now any client that has the .onion address can find it.</p><h3>How a client actually connects to a .onion site: the full flow</h3><p>Alright, this is the section everything has been building toward. We’ve covered what Tor is, how circuits work, how Tor Browser connects to the network, how .onion addresses are derived, and how a hidden service sets itself up and announces itself to the network. Now let’s put it all together and walk through exactly what happens in the background when you type a .onion address into your Tor Browser and hit enter.</p><p>Every step below is something real happening while you’re just sitting there waiting for that page to load.</p><p>One more thing before we start throughout this section you’ll see mentions of different key types. This trips a lot of people up because the hidden service actually uses multiple different key pairs, each doing a completely different job. Here’s a quick reference:</p><pre><strong>Key      </strong>                       |<strong> Type     </strong>                | <strong>Purpose</strong><br>--------------------------------|--------------------------|------------------------------------------------------------<br>ED25519 Identity Key Pair       | Signing key              | Permanent identity of the hidden service. Used to sign the<br>                                |                          | descriptor and verify its authenticity. Never used for<br>                                |                          | encryption or key exchange.<br><br>Blinded ED25519 Key Pair        | Temporary signing key    | Derived from the ED25519 identity key and the current<br>                                |                          | time period. Used only for descriptor signing and<br>                                |                          | descriptor placement during that time period.<br><br>Curve25519 ntor Onion Key Pair  | Key agreement key        | Long-term key pair used during the ntor handshake to<br>                                |                          | derive a shared secret. It does not encrypt data<br>                                |                          | directly. Encryption uses symmetric session keys<br>                                |                          | derived from this shared secret.<br><br>Ephemeral Curve25519 Keys       | Temporary key agreement  | Fresh key pair generated for each ntor handshake.<br>                                |                          | Provides Forward Secrecy by ensuring every connection<br>                                |                          | derives a unique shared secret.<br><br>Symmetric Session Keys          | Encryption keys          | Derived from the shared secret using HKDF. Used to<br>                                |                          | encrypt, decrypt, and authenticate the actual<br>                                |                          | application data exchanged between the client and<br>                                |                          | the hidden service.</pre><p>Keep this in mind as we go. Now let’s walk through the steps.</p><h4>Step 1: Tor Browser decodes the .onion address and extracts the public key</h4><p>You type a .onion address. The first thing your Tor Browser (client) does is decode those 56 characters. Remember from the previous part a V3 .onion address is not just a random string. It is Base32 encoded data that contains the hidden service’s ED25519 identity public key (32 bytes), a 2-byte checksum, and a 1-byte version number.</p><p>Your Tor Browser (client) decodes the address, pulls out the 32-byte ED25519 identity public key, and verifies the checksum. If it doesn’t match, the address is either typed wrong or corrupted and the whole thing stops right here.</p><p>If the checksum passes, the client now has the hidden service’s identity public key. This is the starting point for everything that follows.</p><h4>Step 2: Client calculates where the descriptor is stored completely on its own</h4><p>Now the client needs to find the descriptor of this hidden service. The descriptor, if you remember from the previous part, is the “contact card” the hidden service uploaded to the network it contains the intro point information the client needs to actually reach the service.</p><p>But here’s the interesting thing the client doesn’t ask anyone “hey where is the descriptor for this .onion?” It figures it out completely independently using the same math the hidden service used when it uploaded the descriptor.</p><p>The client takes the ED25519 identity public key it just extracted and runs the same Tor v3 ED25519 blinding algorithm the hidden service ran. It uses the same inputs the public key and the current time period (which both sides know from their own clocks). The output is the <strong>blinded public key</strong>, a temporary 32-byte key that changes every 24 hours.</p><p>From the blinded public key, the client then computes the <strong>hs_service_index </strong>the actual position on the HSDir hash ring where the descriptor was stored. The formula:</p><pre><strong>hs_service_index </strong>= SHA3-256(<br>    &quot;store-at-idx&quot;     ||<br>    blinded_public_key ||<br>    replica_number     ||<br>    period_length      ||<br>    period_number<br>)</pre><p>It runs this twice once with replica_number = 0 and once with replica_number = 1 giving two different positions on the ring. This is the same formula the hidden service ran when it uploaded the descriptor. So both sides always land on the same HSDirs without ever communicating about it. That’s the elegance of this design.</p><p>Now the client knows exactly which HSDirs are holding the descriptor right now.</p><h4>Step 3: Client builds a circuit to an HSDir and downloads the descriptor</h4><p>The client doesn’t contact an HSDir directly. If it did, the HSDir would know its real IP address. So instead it builds a 3-hop circuit first:</p><pre>Client → Entry Guard → Middle Relay → HSDir</pre><p>Through this circuit, the client asks the HSDir for the descriptor matching the hs_service_index it computed. The HSDir finds it and sends it back through the same circuit.</p><p>Once the descriptor arrives, the client verifies its signature using the blinded ED25519 public key. Remember the hidden service signed the descriptor with its blinded private key, and the client verifies it with the matching blinded public key. If the signature is valid, the client knows this descriptor genuinely came from the real hidden service and nobody tampered with it. If it fails, the client discards it and tries the other replica which is exactly why Tor creates two replicas. One can fail or be malicious and the other still works.</p><p>Inside the verified descriptor the client now finds:</p><ul><li>The list of intro points these are relay identities pointing to the intro points the hidden service is currently listening on. The actual IP addresses of these relays come from the Consensus document the client already has</li><li>The hidden service’s <strong>Curve25519 ntor onion key</strong> this is a completely different key from the ED25519 identity key. This one is used for the actual handshake coming up. ED25519 cannot encrypt anything, remember</li></ul><h4>Step 4: Client picks a Rendezvous Point and builds a circuit to it</h4><p>Before reaching out to any intro point, the client first needs to set up a meeting place. This is the <strong>Rendezvous Point (RP)</strong>.</p><p>Think of it like this when two people want to meet without revealing where they each live, they pick a neutral public place and both travel there independently. Nobody knows where the other person started from. The Rendezvous Point is exactly that neutral meeting place in Tor’s architecture.</p><p>The client picks a random relay from the Consensus to be the RP. It then builds a full 3-hop circuit to it:</p><pre>Client → Entry Guard → Middle Relay → Rendezvous Point</pre><p>The client also creates a random one-time <strong>cookie</strong> just a short random value. It sends this cookie to the RP along with a message saying “wait here, someone will come from the other side soon and will prove they’re the right party by presenting this same cookie.”</p><p>The RP doesn’t know who the client is. It doesn’t know who will be connecting from the other side. It just waits.</p><h4>Step 5: Client builds a circuit to an intro point and sends the INTRODUCE1 cell</h4><p>Now the client picks one of the intro points listed in the descriptor and builds another circuit to it:</p><pre>Client → Entry Guard → Middle Relay → Intro Point</pre><p>Through this circuit, the client sends a special message called an <strong>INTRODUCE1 cell</strong>. To construct this cell, the client uses the hidden service’s <strong>Curve25519 ntor onion key</strong> from the descriptor to perform an ntor key agreement not the ED25519 key, which only does signing. The client generates a fresh ephemeral Curve25519 key pair, performs a Diffie-Hellman operation with the hidden service’s ntor onion public key, and runs the result through HKDF to derive symmetric session keys. Those session keys then encrypt the sensitive rendezvous information inside the cell. Only the hidden service can complete the same key agreement using its ntor onion private key and arrive at the same symmetric keys so only the hidden service can decrypt what’s inside.</p><p>What’s packed inside the <strong>INTRODUCE1</strong> cell:</p><pre><strong>INTRODUCE1 cell structure:</strong><br>┌─────────────────────────────────────────────┐<br>│ Client Ephemeral Curve25519 Public Key      │  ← sent in plaintext so HS can do key agreement<br>├─────────────────────────────────────────────┤<br>│ Encrypted with symmetric keys from HKDF:    │<br>│  - Identity of the chosen Rendezvous Point  │<br>│  - The one-time cookie                      │<br>│  - Protocol metadata                        │<br>└─────────────────────────────────────────────┘</pre><p>The client’s ephemeral public key must stay in plaintext the hidden service needs it to independently compute the same shared secret and derive the same symmetric keys to decrypt the rest. The intro point receives this cell but cannot derive the shared secret (it doesn’t hold the ntor onion private key) so it cannot read any of the encrypted portion. It just blindly forwards the entire cell down the pre-built persistent circuit the hidden service established when it published its descriptor. The intro point is just a courier delivering a locked box it has no key to open.</p><p>We will look at exactly how the INTRODUCE1 message is constructed and how the secure key exchange works step by step in the next section.</p><h4>Step 6: Hidden service receives and decrypts the INTRODUCE1 cell</h4><p>The INTRODUCE1 cell travels through the intro point and arrives at the hidden service via its pre-built circuit. The hidden service reads the client’s ephemeral Curve25519 public key (which was sent in plaintext) and uses its own <strong>ntor onion private key</strong> to complete the same Diffie-Hellman key agreement the client performed. It runs the result through HKDF and arrives at the exact same symmetric session keys. Using those keys, it decrypts the protected portion and recovers:</p><ul><li>The identity of the Rendezvous Point the client chose</li><li>The one-time cookie</li><li>Protocol metadata</li></ul><p>Now the hidden service knows exactly where to go to meet the client.</p><h4>Step 7: Hidden service builds its own circuit to the Rendezvous Point</h4><p>The hidden service builds its own fresh 3-hop circuit to the same RP:</p><pre>Hidden Service → Entry Guard → Middle Relay → Rendezvous Point</pre><p>It sends a <strong>REND1 cell</strong> to the RP containing the one-time cookie. The RP compares this cookie with the one the client sent earlier. They match so the RP now knows both circuits belong to the same session and joins them together.</p><h4>Step 8: Rendezvous Point joins both circuits, connection goes live</h4><p>The RP now has two separate circuits connected to it:</p><pre>Client → Entry → Middle → RP<br>                          RP → Middle → Entry → Hidden Service</pre><p>It maps these two circuits together using internal circuit IDs and starts relaying encrypted cells from one to the other. The total path is now:</p><pre>Client → Entry → Middle → RP → Middle → Entry → Hidden Service</pre><p>6 hops total. 3 hops on the client side, 3 hops on the hidden service side, the RP sitting in the middle. Neither side ever learns the other’s real IP address.</p><h4>Step 9: End-to-end encryption between client and hidden service</h4><p>Now, the last piece. There are actually three separate layers of cryptography all working at the same time during this connection:</p><pre><strong>Layer 1 — TLS (between every neighboring pair of nodes)</strong><br><br>Client ←TLS→ Entry Guard ←TLS→ Middle Relay ←TLS→ Rendezvous Point<br>                 ↑                                            ↓<br>                 │                                            │<br>Hidden Service ←TLS→ Entry Guard ←TLS→ Middle Relay ←TLS──────┘<br><br>Every direct TCP connection between two neighboring Tor nodes is<br>protected by TLS, just like the TLS layer used by HTTPS.<br><br>Purpose:<br>• Protects traffic while it is travelling between two adjacent nodes.<br>• Prevents eavesdropping or modification of packets on the network.<br>• Every pair of neighboring nodes has its own independent TLS connection.<br><br><br><strong>Layer 2 — ntor Circuit Encryption (between a Tor endpoint and each relay)<br></strong><br>Client-side circuit:<br><br>Client ↔ Entry Guard        → Shared Session Key A<br>Client ↔ Middle Relay       → Shared Session Key B<br>Client ↔ Rendezvous Point   → Shared Session Key C<br><br>Hidden service-side circuit:<br><br>Hidden Service ↔ Entry Guard      → Shared Session Key D<br>Hidden Service ↔ Middle Relay     → Shared Session Key E<br>Hidden Service ↔ Rendezvous Point → Shared Session Key F<br><br>Each shared session key is established using a separate ntor<br>(Curve25519 Diffie-Hellman) handshake.<br><br>Purpose:<br>• Creates onion-encryption layers for each hop.<br>• Every relay only knows the session key shared with itself.<br>• No relay knows the keys of any other relay.<br>• These keys are completely independent of one another.<br><br><br><strong>Layer 3 — Onion Service ntor (End-to-End Encryption)</strong><br><br>The client already knows the hidden service&#39;s long-term<br>Curve25519 ntor Onion Public Key from the descriptor.<br><br>The client generates a fresh ephemeral Curve25519 key pair and<br>includes its ephemeral public key inside the INTRODUCE1 message.<br><br>Client has:<br><br>    Client Ephemeral Private Key<br>    Client Ephemeral Public Key<br><br>Hidden Service has:<br><br>    Long-term Curve25519 ntor Onion Private Key<br>    Long-term Curve25519 ntor Onion Public Key<br><br>Both independently perform the ntor (ECDH) key agreement.<br><br>Client computes:<br><br>    Shared Secret =<br>    Client Ephemeral Private Key<br>            ×<br>    Hidden Service ntor Onion Public Key<br><br>Hidden Service computes:<br><br>    Shared Secret =<br>    Hidden Service ntor Onion Private Key<br>            ×<br>    Client Ephemeral Public Key<br><br>Because of the Diffie-Hellman property, both sides arrive at<br>exactly the same shared secret without ever transmitting it.<br><br>The shared secret is then passed through HKDF:<br><br>    Shared Secret<br>           │<br>           ▼<br>          HKDF<br>           │<br>           ▼<br>Symmetric Session Keys<br>+<br>Integrity Keys<br><br>Purpose:<br>• Establishes a secure end-to-end encrypted channel between the<br>  client and the hidden service.<br>• These keys are independent of all relay keys created in Layer 2.<br>• No relay—including the Rendezvous Point—can derive or access<br>  these session keys.<br>• Application data is first protected using these end-to-end<br>  session keys, and the resulting encrypted data is then carried<br>  inside Tor relay cells, which are themselves protected hop-by-hop<br>  using the Layer 2 ntor circuit encryption.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mshG_wmZl9Zf9sBFtU_CuA.png" /></figure><h3>How the INTRODUCE1 message is actually constructed the first secure communication</h3><p>In Step 5 above we said the client sends an INTRODUCE1 cell and that only the hidden service can read it. But we didn’t go into how that actually works. Let’s fix that now because this is genuinely interesting and most explanations skip over it completely.</p><p>The challenge here is that the client and the hidden service have <strong>never communicated before</strong>. They share no secret, no session key, nothing. So how does the client send a message that only the hidden service can read?</p><p>The answer is the ntor key agreement. Here’s the full process step by step:</p><h4><strong>Step 1: Client already has the ntor onion public key from the descriptor</strong></h4><p>From the descriptor it downloaded, the client has the hidden service’s Curve25519 ntor onion public key. The hidden service keeps the matching private key secret. These are completely separate from the ED25519 identity keys their only job is key agreement.</p><h4><strong>Step 2: Client generates a fresh ephemeral Curve25519 key pair</strong></h4><p>For this introduction only, the client generates a brand new temporary Curve25519 key pair:</p><pre>Client Ephemeral Private Key  (discarded after session)<br>Client Ephemeral Public Key   (sent inside the INTRODUCE1 cell)</pre><p>Fresh keys every time. This is what gives forward secrecy.</p><h4><strong>Step 3: Client computes the shared secret</strong></h4><p>The client performs a Diffie-Hellman operation:</p><pre>Shared Secret = Client Ephemeral Private Key × HS ntor Onion Public Key</pre><p>This shared secret exists only on the client’s side right now.</p><h4><strong>Step 4: HKDF derives symmetric session keys from the shared secret</strong></h4><p>The shared secret is never used directly. It goes through HKDF:</p><pre>Shared Secret</pre><pre>    ▼<br>   HKDF</pre><pre>    ▼<br>Symmetric Encryption Key<br>Integrity Key<br>Other session keys</pre><p>Now the client has symmetric keys to protect the introduction data.</p><h4><strong>Step 5: Client encrypts the rendezvous information with those symmetric keys</strong></h4><p>Using the derived symmetric encryption key, the client encrypts:</p><pre>- Identity of the chosen Rendezvous Point<br>- The one-time cookie<br>- Protocol metadata</pre><p>Notice: the Client Ephemeral Public Key itself is NOT encrypted. It stays in plaintext because the hidden service needs to see it to compute the same shared secret.</p><h4><strong>Step 6: The INTRODUCE1 message is assembled</strong></h4><pre><strong>INTRODUCE1 message:</strong><br>┌──────────────────────────────────────────────────-┐<br>│ Client Ephemeral Curve25519 Public Key (plaintext)│<br>├──────────────────────────────────────────────────-┤<br>│ Encrypted with symmetric keys from HKDF:          │<br>│  - Rendezvous Point Identity                      │<br>│  - Rendezvous Cookie                              │<br>│  - Protocol Metadata                              │<br>└──────────────────────────────────────────────────-┘</pre><p>The intro point forwards this sealed message to the hidden service and cannot read any of the encrypted portion.</p><h4><strong>Step 7: Hidden service independently derives the same shared secret</strong></h4><p>The hidden service receives the INTRODUCE1 message and reads the Client Ephemeral Public Key from the plaintext portion. It then does:</p><pre>Shared Secret = HS ntor Onion Private Key × Client Ephemeral Public Key</pre><p>Because of how Diffie-Hellman works:</p><pre>Client Private × HS Public  =  HS Private × Client Public</pre><p>Both sides independently arrive at the exact same shared secret without ever transmitting it. The hidden service then runs the same HKDF computation and gets the same symmetric session keys. It uses those keys to decrypt the rendezvous information and learns exactly where the client is waiting.</p><p>This is why the intro point cannot read the message even though it physically handles it. it doesn’t hold the ntor onion private key, so it can never derive the shared secret or the symmetric keys.</p><h3>How the circuit is actually built ntor handshake and forward secrecy</h3><p>Earlier in this blog, right after the 3-hop circuit section, we said there was a question to come back to how does the Tor Browser (client) actually establish those encryption keys with each node? Now that you’ve seen the full connection flow, this will make complete sense.</p><h4>Why Tor doesn’t use static public keys for encryption</h4><p>Suppose Tor encrypted all circuit traffic directly with a Guard node’s long-term public key. Simple enough. But here’s the problem — what if someone records all that encrypted traffic today and then years later steals the Guard node’s private key? They could go back and decrypt every conversation you ever had through that Guard. This is called <strong>no forward secrecy</strong> and it’s a serious problem.</p><p>Tor solves this with <strong>ephemeral key exchange</strong>. Instead of using any node’s long-term key for encryption, your Tor Browser (client) and each node perform a Diffie-Hellman exchange using fresh temporary keys to arrive at a shared secret, and then use that shared secret to derive symmetric session keys (via HKDF). When the circuit is torn down, those temporary keys are deleted forever. Even if the node’s long-term private key is stolen later, there’s nothing to decrypt.</p><p>Tor calls this the <strong>ntor handshake</strong>.</p><h4>How the circuit is built hop by hop</h4><p><strong>Hop 1: Client to Guard:</strong></p><p>The client generates a fresh ephemeral Curve25519 key pair just for this session. It sends its ephemeral public key to the Guard. The Guard uses its ntor key material to complete the handshake. Both arrive at the same shared secret:</p><pre>Shared Secret A from ntor handshake between client and Guard<br>Shared Secret A → HKDF → Key A (symmetric key for this hop)</pre><p>If the Guard’s long-term private key is stolen later, Key A cannot be derived from it. Forward secrecy achieved.</p><p><strong>Hop 2: Extending to Middle:</strong></p><p>The client cannot contact Middle directly that would reveal its real IP to Middle. So it sends an EXTEND cell to the Guard, encrypted with Key A, saying “connect to this Middle relay and forward this handshake data.” Guard does so and the client performs an ntor handshake with Middle through the Guard:</p><pre>Shared Secret B from ntor handshake between client and Middle<br>Shared Secret B → HKDF → Key B</pre><p>Guard does not know Key B.</p><p><strong>Hop 3: Extending to Exit:</strong></p><p>Same process, through both Guard and Middle:</p><pre>Shared Secret C from ntor handshake between client and Exit<br>Shared Secret C → HKDF → Key C</pre><p>Neither Guard nor Middle knows Key C.</p><p>Now the client has three keys Key A for Guard, Key B for Middle, Key C for Exit. When sending data, it encrypts with Key C first (innermost), then Key B, then Key A (outermost). Each relay peels exactly one layer. Nobody except the client holds all three keys simultaneously. When the circuit closes, all ephemeral keys are gone permanently.</p><h3>How the Rendezvous Point actually works. the two-socket model</h3><p>A lot of people assume the 6-hop path is one big continuous circuit passing through 6 relays in a line. That’s a common misconception. It’s actually two completely separate circuits that happen to meet at the same relay.</p><p>Think of the Rendezvous Point like a relay station with two separate sockets:</p><pre>Socket A - connected to the client&#39;s 3-hop circuit<br>Socket B - connected to the hidden service&#39;s 3-hop circuit</pre><p>These two circuits end at the RP. They don’t merge. What the RP does is very simple it copies encrypted cells from one socket to the other.</p><p>The RP tracks the mapping using <strong>circuit IDs</strong>. When the client built its circuit to the RP, the RP assigned it circuit ID 0x111. When the hidden service connected and sent the REND1 cell with the matching cookie, the RP assigned it 0x222. The RP was then instructed:</p><pre>Circuit 0x111 ↔ Circuit 0x222</pre><p>Every encrypted cell arriving on 0x111 gets copied onto 0x222 and forwarded to the hidden service side, and vice versa. No IP lookup. No decryption. Just:</p><pre>Encrypted cell arrives on 0x111</pre><pre>       ▼<br>RP looks up: 0x111 maps to 0x222</pre><pre>       ▼<br>Copies cell onto 0x222</pre><pre>       ▼<br>Cell travels onward to hidden service</pre><p>The RP can’t see the conversation content because the onion service session keys from Layer 3 are keys the RP has never seen and will never know. It’s just forwarding sealed envelopes.</p><h3>Known attack surfaces</h3><p>Tor is not perfect. It provides very strong anonymity in most threat models, but there are well-documented attack scenarios that researchers have identified. If you’re reading this from a security perspective, these are important to know.</p><h4>Traffic correlation attacks</h4><p>This is the most fundamental and hardest to defend against. If an adversary can observe both the Entry Guard on your side and the Exit Node (or hidden service) on the other end, they can watch the timing and volume of packets going in and compare them to packets coming out. Even without breaking any encryption, this correlation can link you to your destination.</p><p>Tor’s design assumes no single entity can see both ends simultaneously. Against a global passive adversary who can monitor large portions of internet traffic, this assumption breaks down. This is called the <strong>global adversary problem</strong> and it’s considered Tor’s most fundamental limitation.</p><h4>Guard discovery attacks</h4><p>Your Entry Guard knows your real IP. If an attacker figures out which relay is your Guard, they’ve learned something significant. Researchers have shown that by running enough malicious relays and watching circuit timing, attackers can probabilistically identify a user’s Guard. The <strong>Vanguards</strong> addon was created specifically to defend against this.</p><h4>Malicious HSDir enumeration</h4><p>Any relay with the HSDir flag can store descriptors. Descriptors are signed but not encrypted an HSDir operator can read them. However, descriptors don’t reveal the hidden service’s real IP. What a malicious HSDir operator can learn is metadata which services upload descriptors to them, when they come online and go offline, how often they rotate. Over time this is useful for mapping the hidden service ecosystem. This is called <strong>HSDir enumeration</strong>.</p><h4>Exit node MITM on clearnet traffic</h4><p>When you use Tor to browse a regular website, your traffic exits through an Exit node in plaintext if the site doesn’t use HTTPS. The Exit node operator can read and modify that traffic. This is why HTTPS matters even on Tor, and why .onion sites are actually safer in this specific way there is no Exit node for .onion traffic, so this attack doesn’t apply.</p><h3>Closing</h3><p>If you’ve made it this far, honestly, respect 🫡. This is not light reading.</p><p>You now know more about how Tor works internally than the vast majority of people who use it every day. You understand why .onion addresses are exactly 56 characters, what the blinded public key is and why it rotates every 24 hours, how the client and hidden service independently land on the same HSDirs without ever talking to each other, why the Rendezvous Point can’t see your traffic even though it sits in the middle of the path, and what three simultaneous layers of cryptography are doing while you wait for a .onion page to load.</p><p>I’ll be honest this topic is genuinely difficult to explain in a single blog post. There’s so much happening at every layer that covering all of it simply in one place is hard. I tried my best to keep it accurate without making it impossible to read. If you found some parts difficult, that’s normal. Try reading it again the second read almost always hits differently once the overall picture is in your head.</p><p>And if anything here is technically wrong, off, or imprecise drop it in the comments. I genuinely mean that. I’d rather fix it than leave something incorrect here. This is a complex topic and there’s always something more to learn.</p><p>One more thing the next blog I’m writing is about the safest way to actually access Tor, covering how to bypass ISP blocking and set up the most secure configuration possible. If that sounds interesting, stay tuned.</p><p>Happy reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a53069661bc7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VPN Internals: How VPN and IPsec Actually Work Under the Hood]]></title>
            <link>https://medium.com/@Sh4d0w2k5/vpn-internals-how-vpn-and-ipsec-actually-work-under-the-hood-f00a46619820?source=rss-5b20363e5b65------2</link>
            <guid isPermaLink="false">https://medium.com/p/f00a46619820</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[computer-networking]]></category>
            <category><![CDATA[vpn]]></category>
            <dc:creator><![CDATA[SHADOW]]></dc:creator>
            <pubDate>Sat, 04 Jul 2026 07:57:20 GMT</pubDate>
            <atom:updated>2026-07-04T07:57:20.937Z</atom:updated>
            <content:encoded><![CDATA[<p>If you ask most people what a VPN does, you’ll get the same answer every time: “it changes your IP address.” That’s true, but it’s like saying a car works by “moving forward.” It tells you what happens, not how it happens.</p><p>The IP change you see is just a side effect of something way more interesting going on underneath. Your traffic gets wrapped inside a secure tunnel, encrypted, authenticated, and then sent off. The new IP address you see is basically just what’s written on the outside of that tunnel.</p><p>To really get how that tunnel gets built, we need to go one layer deeper into a protocol suite called <strong>IPsec</strong>. It’s the foundation that a lot of VPNs, especially enterprise VPNs and mobile VPN clients, are built on top of.</p><p>Let’s break it down properly, piece by piece.</p><h3>IPsec, the Foundation</h3><p><strong>IPsec (Internet Protocol Security)</strong> is basically a suite of protocols that adds authentication, integrity, confidentiality (encryption), and anti-replay protection to IP packets as they travel across a network like the internet.</p><p>Here’s the distinction most people miss: HTTPS protects traffic for one application, like your browser talking to a website. IPsec works at the network layer, so it protects almost any IP-based traffic passing through it. Web browsing, email, file sharing, VoIP calls, database connections, all of it, without the individual application even needing to know encryption is happening.</p><p>Where you’ll actually find IPsec being used:</p><ul><li>VPNs (remote access and mobile VPN clients)</li><li>Site-to-site VPNs (connecting two office networks over the internet)</li><li>Cloud connectivity (linking on-prem infrastructure to cloud providers securely)</li><li>IoT devices</li></ul><h4>The architecture, at a glance</h4><p>IPsec isn’t one single protocol. It’s a small set of pieces working together, and it looks like this:</p><pre>                    Architecture<br>                         |<br>            ---------------------------<br>            |                         |<br>           AH                        ESP<br>            |                         |<br>            |               -----------------<br>            |               |               |<br>     Authentication   Authentication    Encryption<br>       Algorithm          Algorithm      Algorithm</pre><p>Two things sit at the core here: <strong>AH (Authentication Header)</strong> and <strong>ESP (Encapsulating Security Payload)</strong>. These are the two protocols that actually do the real work, and they’re the heart of IPsec.</p><p>AH only cares about one thing, so it only leans on an <strong>Authentication Algorithm</strong> (like HMAC-SHA) to do its job.</p><p>ESP does more, so it uses both an <strong>Authentication Algorithm</strong> and an <strong>Encryption Algorithm</strong> (like AES) underneath it.</p><p>Keep that difference in mind, it’s going to matter a lot once we get into AH and ESP properly. First though, there’s a bigger question we need to answer, because it changes how any IPsec protocol behaves: how much of the packet does IPsec actually protect?</p><h3>Transport Mode vs Tunnel Mode</h3><p>Before we dig into AH and ESP, we need to answer one question first, because it decides how any IPsec protocol actually behaves: <strong>should IPsec protect only the data inside the packet, or the entire original packet, header included?</strong></p><p>This choice is called the “mode,” and IPsec gives you two options to pick from.</p><h4>Transport Mode</h4><p>In transport mode, only the payload (the actual transport-layer data sitting inside the IP packet) gets protected. The original IP header stays exactly as it is, fully visible.</p><pre>Before:<br>+-----------+---------+<br>| IP Header | Payload |<br>+-----------+---------+</pre><pre>After (Transport Mode):<br>+-----------+----------------+-----------+<br>| IP Header | IPsec Header   | Payload   |<br>+-----------+----------------+-----------+<br>                              (encrypted, if ESP)</pre><p>Since the original IP header stays untouched, anyone watching the traffic can still see who’s talking to whom (source and destination IP). They just can’t read what’s actually being said, if ESP is being used.</p><h4>Tunnel Mode</h4><p>In tunnel mode, IPsec protects the entire original IP packet, header included, and then wraps a brand new outer IP header around the whole thing.</p><pre>Before:<br>+-----------+---------+<br>| IP Header | Payload |<br>+-----------+---------+</pre><pre>After (Tunnel Mode):<br>+---------------+--------------+-----------+---------+<br>| New IP Header | IPsec Header | IP Header | Payload |<br>+---------------+--------------+-----------+---------+<br>                                (this whole part is encrypted, if ESP)</pre><p>This is the important one. <strong>Tunnel mode is what almost every VPN uses.</strong> The new outer IP header carries the source and destination of the actual tunnel endpoints, like your device and the VPN server, while the original IP header, the one with your real IP address, is now completely hidden inside the encrypted part.</p><p>Keep this diagram in your head, we’re coming back to it later. It’s basically the real answer to “how does a VPN hide my IP.”</p><h3>Authentication Header (AH)</h3><p>AH is one of the two core IPsec protocols, and its job is pretty narrow but still important: it proves the packet actually came from who it says it did, and proves nobody messed with it on the way.</p><p>What AH does:</p><ul><li>Data integrity (the packet wasn’t modified in transit)</li><li>Origin authentication (it really came from the sender it claims to be from)</li><li>Anti-replay protection (an old, previously-sent packet can’t get captured and resent later to trick the receiver)</li></ul><p>What AH does <strong>not</strong> do: encryption. AH never touches the confidentiality of the data. So anyone capturing the traffic can still read the contents, they just can’t fake it or tamper with it without getting caught.</p><p>Because of that limitation, AH on its own barely gets used in real-world VPNs today. Think of it as the supporting cast member, ESP is where the real action is (more on that right below).</p><h4>AH packet structure</h4><pre>0            8            16                          31<br>+------------+------------+----------------------------+<br>| Next Header| Payload Len|         Reserved           |<br>+------------+------------+----------------------------+<br>|          Security Parameter Index (SPI)              |<br>+------------------------------------------------------+<br>|               Sequence Number                        |<br>+------------------------------------------------------+<br>|           Authentication Data (variable length)      |<br>+------------------------------------------------------+</pre><p>Quick breakdown of each field:</p><ul><li><strong>Next Header</strong>: tells the receiver which protocol comes right after the AH header (for example, 6 for TCP, 17 for UDP)</li><li><strong>Payload Length</strong>: the length of the AH header itself, not the whole packet</li><li><strong>Reserved</strong>: currently unused, set to 0, kept aside for future versions of IPsec</li><li><strong>SPI (Security Parameter Index)</strong>: a unique identifier that tells the receiver which Security Association to use to process this packet (we’ll cover SAs a bit further down)</li><li><strong>Sequence Number</strong>: a number that increases with every packet sent, used to detect and block replay attacks</li><li><strong>Authentication Data</strong>: contains the Integrity Check Value (ICV), which is basically a cryptographic fingerprint of the packet, generated using a keyed authentication algorithm like HMAC-SHA256 or HMAC-SHA384</li></ul><h4>How AH gets applied to a packet</h4><pre>Before AH:<br>IPv4: | IP Header | TCP | Data |<br>IPv6: | IP Header | Extension Header | TCP | Data |</pre><pre>After AH (Transport Mode):<br>IPv4: | IP Header | AH | TCP | Data |<br>IPv6: | IP Header | Extension Header | AH | TCP | Data |<br>After AH (Tunnel Mode):<br>IPv4: | New IP Header | AH | IP Header | TCP | Data |<br>IPv6: | New IP Header | Ext Header | AH | IP Header | Ext Header | TCP | Data |</pre><p>That’s AH in a nutshell. Good for proving authenticity, useless for privacy. Now let’s get to the protocol that actually matters for VPNs.</p><h3>Encapsulating Security Payload (ESP)</h3><p>ESP is the second core IPsec protocol, and honestly the more important one. If AH is basically saying “prove it’s really me and nobody touched this,” ESP is saying “prove it’s really me, nobody touched this, AND nobody else can even read it.”</p><p>What ESP provides:</p><ul><li>Confidentiality (encryption)</li><li>Data integrity</li><li>Data origin authentication</li><li>Anti-replay protection</li></ul><p>This is why ESP is the one doing the heavy lifting in real VPN deployments. It encrypts the actual packet data so nobody snooping on the connection can read it, and it can also verify the packet wasn’t modified and really came from a legitimate sender.</p><p>Quick way to remember the difference:</p><ul><li><strong>AH</strong> → authentication + integrity only</li><li><strong>ESP</strong> → encryption + authentication + integrity + anti-replay</li></ul><h4>ESP packet structure</h4><pre>+-----------------------------------------------------------+<br>|         Security Parameter Index (SPI)                    |<br>+-----------------------------------------------------------+<br>|              Sequence Number (SN)                         |<br>+-----------------------------------------------------------+<br>|                                                           |<br>|              Payload Data (variable length)               |<br>|                                                           |<br>+-----------------------------------------------------------+<br>|          Padding (0-255 bytes)                            |<br>+------------------------+----------------------------------+<br>|      Pad Length        |        Next Header               |<br>+------------------------+----------------------------------+<br>|      Authentication Data (optional)                       |<br>+-----------------------------------------------------------+</pre><p>Field by field:</p><ul><li><strong>SPI and Sequence Number</strong>: same purpose as in AH, SPI identifies the Security Association, Sequence Number stops replay attacks</li><li><strong>Payload Data</strong>: the actual data ESP is protecting. In transport mode this is the TCP header plus application data. In tunnel mode this is the <em>entire</em> original IP packet</li><li><strong>Padding</strong>: extra bytes added because block cipher algorithms like AES process data in fixed-size chunks, so the payload sometimes needs padding to line up correctly</li><li><strong>Pad Length</strong>: tells the receiver how much padding was added, so it can be stripped off after decryption</li><li><strong>Next Header</strong>: same idea as in AH, tells the receiver what protocol follows</li><li><strong>Authentication Data</strong>: optional field containing the integrity check value, produced using HMAC, essentially doing the same authentication job AH does, bundled in as an option</li></ul><h4>ESP in Transport Mode</h4><pre>                        &lt;---- encrypted part ------&gt;<br>IPv4: | IP Header | ESP | TCP | Data | ESP Trailer | ESP Auth |<br>IPv6: | IP Header | Ext Header | ESP | TCP | Data | ESP Trailer | ESP Auth |<br>                                     &lt;---- encrypted part ------&gt;</pre><p>The ESP Auth field is optional. If you add it, you also get authentication on top of the encryption.</p><h4>ESP in Tunnel Mode</h4><pre>                            &lt;----------- encrypted part -----------&gt;          <br>IPv4: | New IP Header | ESP | IP Header | TCP | Data | ESP Trailer | ESP Auth |<br>IPv6: | New IP Header | Ext Header | ESP | IP Header | Ext Header | TCP | Data | ESP Trailer | ESP Auth |<br>                                         &lt;------------------ encrypted part -----------------&gt;</pre><p>This right here, <strong>ESP in tunnel mode</strong>, is basically the exact mechanism almost every VPN relies on. Notice what’s sitting inside the encrypted part: the entire original IP packet, including the original IP header with your real IP address. Nobody outside the tunnel can see it. All they can see is the new outer IP header, which just shows your device talking to the VPN server.</p><p>That’s it, that’s the whole trick behind “VPN changes your IP.” It’s not some separate IP-swapping feature, it’s just a natural result of ESP tunnel mode wrapping everything up.</p><h3>Security Associations and Key Management</h3><p>You’ve probably noticed AH and ESP both keep mentioning an SPI that points to something called a Security Association. Let’s unpack that.</p><h4>What is a Security Association (SA)</h4><p>An <strong>SA</strong> is basically a one-way logical agreement between two IPsec devices that defines exactly how traffic between them gets protected. It’s a set of security parameters that tells IPsec how to handle traffic flowing from one device to another.</p><p>Since it’s one-way, a normal two-way IPsec connection actually needs two SAs, one for each direction.</p><p>An SA stores all the parameters needed to protect a packet:</p><pre>Parameter                      | Purpose<br>------------------------------------------------------------------<br>SPI (Security Parameter Index) | Identifies which SA this is                      |<br>Destination IP                 | Who the SA is for<br>AH or ESP                      | Which IPsec protocol to use<br>Encryption Algorithm           | AES, 3DES, etc<br>Authentication Algorithm       | HMAC-SHA256, etc<br>Tunnel or Transport Mode       | How packets are encapsulated<br>Lifetime                       | When the SA expires and needs new keys<br>Sequence Number                | Prevents replay attacks (0 to 2^32 - 1)</pre><h4>IKE: how the keys actually get there</h4><p>Manually setting up matching keys and parameters on both ends every single time would be a nightmare, and pretty risky if a key ever needed rotating. That’s where <strong>IKE (Internet Key Exchange)</strong> steps in. IKE automatically negotiates and manages the keys and SA parameters between both devices, so the encryption stays fresh and both sides stay in sync without anyone touching a config file.</p><p>This is also why you’ll often see IPsec VPNs called “IKEv2/IPsec.” IKEv2 is just the modern key exchange protocol paired with IPsec doing the actual data protection.</p><h3>Putting It Together, How a VPN Actually Works</h3><p>Now we have every piece we need. Let’s walk through what actually happens, start to finish, when your VPN is turned on and you visit a website.</p><ol><li>Your device and the VPN server first run IKE to negotiate and agree on encryption algorithms, and establish the SA (or SAs) that will govern this connection.</li><li>Your app (say, a browser) generates a normal packet with your real IP address as the source.</li><li>Your OS routes that packet to the VPN interface instead of sending it directly out.</li><li>ESP, running in tunnel mode, takes that entire original packet (your real IP header included) and encrypts it.</li><li>A brand new outer IP header gets added on top, this one shows your device’s IP as the source and the VPN server’s IP as the destination.</li><li>This new, wrapped, encrypted packet travels across the internet like any normal packet. Anyone watching the network can only see your device talking to the VPN server, nothing else.</li><li>It arrives at the VPN server, which strips off the outer header, decrypts the ESP payload, and recovers your original packet.</li><li>The VPN server forwards that original packet onward to its real destination, using its own IP as the source address.</li><li>Responses come back to the VPN server, get wrapped up in ESP tunnel mode again, and sent back to you the same way.</li></ol><p>So when a website sees a request coming in, it sees the VPN server’s IP, not yours. Not because the VPN is doing some clever IP-swap trick, but because that’s just what tunnel mode encapsulation naturally produces as a byproduct of protecting your entire original packet.</p><p>The privacy and the IP masking are two outputs of the exact same mechanism, they’re not two separate features bolted together.</p><h3>Beyond IPsec, OpenVPN and WireGuard</h3><p>IPsec isn’t the only architecture VPNs use. Two other major ones are worth knowing, especially since you’ll run into all three in real deployments.</p><p><strong>OpenVPN</strong> runs mostly in userspace and creates a virtual network interface (TUN/TAP) on your device. Instead of IKE, it reuses TLS (the same protocol HTTPS relies on) to handle authentication and key negotiation, then wraps your IP packets inside UDP or TCP.</p><p><strong>WireGuard</strong> takes the opposite approach: minimal and opinionated. It usually runs as a kernel module on Linux for speed, uses the Noise Protocol Framework for its handshake instead of TLS, and relies on static public/private key pairs per peer, similar to SSH keys, rather than a certificate-based system.</p><pre>                     | IPsec/IKEv2      | OpenVPN         | WireGuard<br>------------------------------------------------------------------------------<br>Layer                | Kernel (native)  | Userspace       | Kernel (native on Linux)<br>Handshake            | IKE              | TLS             | Noise<br>Speed                | Fast             | Slower          | Fastest<br>Config flexibility   | Complex          | Very flexible   | Minimal by design<br>Codebase size        | Large            | Large           | Very small</pre><p>Different tools, same underlying goal: build a secure tunnel and encapsulate your traffic inside it.</p><h3>Wrap-up</h3><p>“VPN changes your IP” isn’t wrong, it’s just incomplete. The real story is that your traffic gets wrapped inside an encrypted tunnel, most commonly ESP in tunnel mode when IPsec is involved. Your entire original packet, real IP address and all, gets hidden inside that encryption, and a new outer header takes its place for the trip across the internet.</p><p>The IP change you notice is just the visible tip of a much bigger security mechanism working underneath: authentication, integrity checking, replay protection, and encryption, all working together through protocols like AH, ESP, and key exchange via IKE.</p><p>So next time someone tells you “a VPN just hides your IP,” you’ll actually know what’s happening under the hood.</p><p>Happy Reading</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f00a46619820" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[So I Tried Quantum-Proofing a TLS Handshake (And It Was Easier Than I Thought)]]></title>
            <link>https://medium.com/@Sh4d0w2k5/so-i-tried-quantum-proofing-a-tls-handshake-and-it-was-easier-than-i-thought-55af3032ae7d?source=rss-5b20363e5b65------2</link>
            <guid isPermaLink="false">https://medium.com/p/55af3032ae7d</guid>
            <category><![CDATA[quantum-cryptography]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[SHADOW]]></dc:creator>
            <pubDate>Tue, 30 Jun 2026 12:07:04 GMT</pubDate>
            <atom:updated>2026-06-30T12:07:04.656Z</atom:updated>
            <content:encoded><![CDATA[<p>Quantum computers that can actually break encryption don’t exist yet. But here’s the uncomfortable part: the data you encrypt today might still get cracked open later. Attackers can record your encrypted traffic right now, sit on it for years, and decrypt it the moment a powerful enough quantum computer shows up. It’s called harvest-now-decrypt-later, and it’s not science fiction, it’s already happening to anyone whose data needs to stay confidential for more than a few years.</p><p>This started as a project for the Unisys Student Innovation Program, where my team and I built and presented it through two evaluation rounds. We didn’t make it past round two, but the work itself turned out to be genuinely interesting, so I wanted to write it up properly anyway.</p><h3>The problem with “it’s secure today”</h3><p>Almost every secure connection on the internet right now, your bank, your email, your messaging apps, relies on ECDHE for the key exchange. It’s based on elliptic curve math that’s genuinely hard to crack with a normal computer. The catch is that a sufficiently large quantum computer running Shor’s Algorithm can break that exact kind of math efficiently. Not “maybe someday, probably never,” but a known, well understood mathematical weakness that quantum computers are specifically good at exploiting.</p><p>Which means anything encrypted with ECDHE today, financial records, medical data, government communications, is basically sitting in a queue waiting to be opened once the hardware catches up. That’s the whole harvest-now-decrypt-later problem. The attacker doesn’t need a quantum computer today. They just need patience.</p><h3>So what if we just used two algorithms instead of one</h3><p>Post-quantum algorithms like Kyber already exist and are NIST standardized, so why not just switch to Kyber and call it done? Because Kyber is still relatively new. Decades of cryptanalysis have been thrown at ECDHE and it’s held up. Kyber hasn’t had nearly that much scrutiny yet. Betting everything on a newer algorithm feels just as risky as betting everything on a doomed one.</p><p>The fix is almost embarrassingly simple: use both. Run ECDHE and Kyber768 side by side, combine their outputs into one final key. Now an attacker has to break both algorithms at the same time to get anywhere. If quantum computers eventually crack ECDHE, Kyber768 is still standing guard. If some future flaw turns up in Kyber, ECDHE is still doing its job. No single point of failure.</p><h3>How the handshake actually works</h3><p>The whole thing runs over plain TCP sockets with a binary message format I wrote myself, loosely following the same ClientHello and ServerHello pattern TLS 1.3 uses, just extended to carry the Kyber key material alongside the ECDHE keys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*8Q4t0ZYnT2NW1QHash_ltQ.png" /></figure><p>The flow is pretty simple once you see it laid out. The client sends a ClientHello with its ECDHE public key and a random value. The server replies with one message that bundles its ECDHE public key, its Kyber768 public key, and its own random value together. The client uses all of that to derive the ECDHE secret and encapsulate a Kyber secret, then sends back just the Kyber ciphertext. The server decapsulates it, and at that point both sides are holding the exact same combined secret without ever having transmitted it.</p><p>That combined secret then goes through HKDF to produce the actual session key, which gets used with AES-256-GCM for everything after the handshake.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jOQdJiZyEDQAgy4p_HCt1A.png" /></figure><h3>The part that actually took effort</h3><p>The naive version of this protocol needed three full round trips. Client sends ECDHE key, server sends ECDHE key back, server separately sends the Kyber key, client separately sends the Kyber ciphertext back, then random values get exchanged on top of all that. Every one of those is a full trip across the network, and on a real connection that adds up fast.</p><p>The fix was bundling. Instead of sending the ECDHE key, the Kyber key, and the random value as three separate messages, the server just sends all three together in a single ServerHello. Same thing on the client’s reply. That single change took the handshake from three round trips down to one and a half, basically as close to plain ECDHE as you can realistically get while still adding full post-quantum protection.</p><h3>Does it actually cost much in practice</h3><p>I tested this for real, not just on localhost, at least for the timing. Server in AWS Mumbai, client in AWS Singapore, real internet in between. The CPU, memory, and bandwidth numbers below were measured locally.</p><p>Plain ECDHE averaged 62.6 milliseconds per handshake. The hybrid version averaged 93.2 milliseconds. That extra 30 milliseconds isn’t expensive cryptography, Kyber768’s actual math runs in well under a millisecond, it’s purely the cost of that extra half round trip needed to ship the larger Kyber key material across the network.</p><p>On the resource side, across 10,000 sequential handshakes, plain ECDHE took 8.885 seconds total to run with 5.694 seconds of that spent actively on the CPU. The hybrid version took 10.873 seconds total with 7.808 seconds of CPU time, so about two extra seconds of CPU work spread across all ten thousand handshakes combined. Memory overhead barely moved, 2.14 MB for ECDHE versus 2.25 MB for the hybrid version. Bandwidth is where the difference is most visible, each hybrid handshake sends roughly 3.63 KB compared to ECDHE’s 0.62 KB, but that’s a one time cost during connection setup. Once the handshake is done, both versions use the exact same AES-256-GCM key for actual data transfer, so nothing about your regular traffic speed changes at all.</p><h3>Is half a round trip a fair trade</h3><p>Compare a roughly 30 millisecond delay and a few extra kilobytes against what you’re actually defending against, somebody recording your encrypted traffic today and reading it freely in a decade once quantum hardware matures. For anything that needs to stay confidential long term, that trade isn’t even close.</p><p>This isn’t a theoretical exercise either. NIST finalized Kyber as an official post-quantum standard in August 2024 under FIPS 203, with Kyber768 specifically corresponding to NIST Security Level 3. Major players like Google and Cloudflare have already run hybrid post-quantum experiments in production traffic. The direction the entire industry is heading is exactly this, classical plus post-quantum, not one or the other.</p><h3>Wrapping up</h3><p>Building this taught me that quantum-resistant security isn’t some far off, expensive infrastructure overhaul. It’s a protocol design problem you can actually solve today, on existing hardware, with a manageable performance cost, if you’re willing to think carefully about message bundling and round trip counts instead of just bolting algorithms together.</p><p>This project didn’t make it past the second round of the Unisys Student Innovation Program, but I think the engineering held up well regardless, and that’s worth sharing even if the scoreboard says otherwise.</p><p>Full code, architecture diagrams, and the complete benchmark results are up on GitHub if you want to dig into the details or try it yourself.</p><p><a href="https://github.com/ShAd0W-byte/hybrid-tls-key-exchange">https://github.com/ShAd0W-byte/hybrid-tls-key-exchange</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55af3032ae7d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Found a Live AES Encryption Key in an Error Message — Responsible Disclosure]]></title>
            <link>https://medium.com/@Sh4d0w2k5/i-found-a-live-aes-encryption-key-in-an-error-message-responsible-disclosure-be8c00f04b3a?source=rss-5b20363e5b65------2</link>
            <guid isPermaLink="false">https://medium.com/p/be8c00f04b3a</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[SHADOW]]></dc:creator>
            <pubDate>Fri, 26 Jun 2026 10:47:20 GMT</pubDate>
            <atom:updated>2026-06-26T10:47:20.732Z</atom:updated>
            <content:encoded><![CDATA[<p>This is my writeup on <strong>YourDost</strong> a mental wellness platform used by thousands of people across corporates and universities in India. I was testing their application under their responsible disclosure program and what I found wasn’t just one bug. It was three. And the main one handed me a live AES encryption key sitting right there in a 500 error response. In plain text. From a public registration endpoint.</p><p>Let me walk you through it.</p><h3>What is YourDost?</h3><p>YourDost is an online mental health and emotional wellness platform. People use it to talk to counsellors, therapists, and wellness coaches. It’s used by employees across hundreds of companies and students across universities.</p><p>The reason I’m mentioning this is because the data on this platform is <strong>sensitive by nature</strong> emotional health records, personal conversations, user identities. So when a platform like this leaks its database structure and encryption keys through a public endpoint, the stakes are higher than your average target.</p><p>They have a responsible disclosure program at yourdost.com/responsibleDisclosurePolicy. I followed it properly. Only tested with accounts I created. No real user data accessed.</p><h3>How I Found It</h3><p>I was already on YourDost testing other things. I had just reported an open redirect vulnerability (more on that at the end). After getting a feel for the application, I started looking at the registration flow more carefully.</p><p>The signup page had a standard form username, password, email. When you fill it in and hit signup, the frontend validates your input before sending it. One of those validations was a username length check the browser shows a message like <em>“username must be less than 30 characters”</em> if you go over.</p><p>That’s a client-side check. And client-side checks are just suggestions.</p><p>So I opened Burp Suite, intercepted the signup request, and asked myself <em>what happens if I just ignore that check and send a username longer than the database column can handle?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pnCBsM3HgMyqwgvbwH9k9w.png" /></figure><p>I modified the username field in the intercepted POST request to a string over 255 characters and forwarded it to the server.</p><p>The server did not handle it gracefully.</p><h3>The Vulnerable Endpoint</h3><pre>POST /zion/v2/users/register<br>Host: yourdost.com<br>Content-Type: application/json</pre><p>Request body I sent:</p><pre>{<br>  &quot;username&quot;: &quot;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&quot;,<br>  &quot;password&quot;: &quot;Admin@123&quot;,<br>  &quot;email&quot;: &quot;lazycracker123567@gmail.com&quot;,<br>  &quot;avatar&quot;: &quot;avatar7&quot;<br>}</pre><h3>What Came Back — The 500 Error</h3><p>Instead of a clean validation error, the server returned <strong>HTTP 500 Internal Server Error</strong> with this in the response body:</p><pre>{<br>  &quot;timestamp&quot;: 1761332100973,<br>  &quot;status&quot;: 500,<br>  &quot;error&quot;: &quot;Internal Server Error&quot;,<br>  &quot;message&quot;: &quot;PreparedStatementCallback; SQL [ INSERT INTO `dost_v1`.`users`( `avatar`, `email`, `blocked`, `registration_date`, `photo_link`, `full_name`, `username`, `login_number` ) VALUES ( ?, AES_ENCRYPT(?,&#39;xxxxxxxxxxxx&#39;), false, NOW( ), ?, concat(?,&#39; &#39;,?),?,? ) ]; Data truncation: Data too long for column &#39;username&#39; at row 1; nested exception is com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column &#39;username&#39; at row 1&quot;,<br>  &quot;path&quot;: &quot;/zion/v2/users/register&quot;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OhcSXEdIMn4kyS3MhGRIzA.jpeg" /></figure><p>Let that sink in for a second.</p><h3>What Was Exposed</h3><p>That one error message leaked <strong>a lot</strong>:</p><p><strong>1. The exact INSERT statement</strong></p><pre>INSERT INTO `dost_v1`.`users`(<br>  `avatar`, `email`, `blocked`, `registration_date`,<br>  `photo_link`, `full_name`, `username`, `login_number`<br>)<br>VALUES (<br>  ?, AES_ENCRYPT(?,&#39;xxxxxxxxxxxx&#39;), false, NOW( ), ?, concat(?,&#39; &#39;,?),?,?<br>)</pre><p>This tells an attacker the exact table name (dost_v1.users), every column name in the users table, and the exact structure of how data gets inserted.</p><p><strong>2. A hardcoded AES encryption key</strong></p><pre>AES_ENCRYPT(?,&#39;xxxxxxxxxxxx&#39;)</pre><p>The email field is encrypted using AES which is good practice. But the encryption key is <strong>hardcoded directly in the SQL query</strong> and just got printed to the client in plain text.</p><p>If someone already had access to the database (through SQL injection or a misconfiguration elsewhere), this key would let them decrypt every email address stored in that table.</p><p><strong>3. The database driver and exception class</strong></p><pre>com.mysql.cj.jdbc.exceptions.MysqlDataTruncation<br>PreparedStatementCallback</pre><p>This confirms the backend is Java-based (Spring/JDBC), using MySQL, and the JDBC driver version. That’s useful for fingerprinting and crafting more targeted attacks.</p><h3>Why Did This Happen?</h3><p>Three things went wrong together:</p><p><strong>First</strong> the username length validation only existed on the frontend. The backend trusted that the client would enforce it. It didn’t add its own length check before attempting the database write.</p><p><strong>Second </strong>when the database threw a DataTruncation exception (column too small for the value), the backend had no proper error handling. Instead of catching that exception and returning a clean 400 response, it passed the raw exception including the full SQL statement directly to the client.</p><p><strong>Third </strong>the AES key was hardcoded inside the SQL query itself instead of being stored in a secrets manager or environment variable. So the moment that query appeared in any log or error message, the key was exposed.</p><p>The backend was essentially doing this:</p><pre>try {<br>    db.execute(INSERT query with hardcoded AES key)<br>} catch (Exception e) {<br>    return e.getMessage() // sent raw to the client<br>}</pre><p>That’s the entire chain. Three bad decisions, one devastating error message.</p><h3>The Impact</h3><p>This isn’t just an “interesting information leak.” Here’s what an attacker could do with this:</p><ul><li><strong>Schema mapping</strong> with the exact table and column names, an attacker can craft much more precise SQL injection payloads. No need to blindly guess table names anymore.</li><li><strong>Email decryption </strong>if an attacker ever gets read access to the database (even partial), the exposed AES key decrypts every email address stored in dost_v1.users. On a mental health platform, those email addresses connected to counselling sessions is sensitive information.</li><li><strong>Backend fingerprinting </strong>knowing it’s Java + Spring + MySQL + specific JDBC driver version helps an attacker look for known CVEs specific to that stack.</li></ul><h3>Responsible Disclosure and Response</h3><p>I submitted the report to the YourDost security team following their responsible disclosure program. I included the full Burp Suite capture, the raw request and response, and a proof-of-concept video.</p><p>They acknowledged the issue, investigated it, and eventually added me to their <strong>Hall of Fame</strong> at yourdost.com/responsibleDisclosurePolicylisted as researcher #13.</p><h3>Extra Findings The Open Redirects</h3><p>While I was testing YourDost, I also found two open redirect vulnerabilities. These aren’t the main story of this blog but they’re worth documenting because they show how one testing session can uncover multiple issues across the same application.</p><h3>Open Redirect #1 /auth/sign-in?next=</h3><p>The sign-in endpoint accepted a next parameter that controlled where the user was redirected after login. There was no validation on this parameter you could point it at any external URL.</p><pre>https://yourdost.com/auth/sign-in?next=https://yourdost-login.netlify.app/login</pre><p>For this I built a <strong>clone of the YourDost login page</strong> and hosted it on Netlify. The fake page looked identical to the real one. When a logged-in user clicked the above link, they were immediately redirected to my phishing page no warning, no interstitial, no confirmation. The browser showed my page but the URL was an external domain.</p><p>The dangerous part: even if a user had closed their browser previously, as long as they hadn’t explicitly logged out, their session cookie was still valid. So the redirect happened automatically the moment they clicked the link. No login required.</p><p>This converts a trusted yourdost.com link into a direct phishing delivery mechanism.</p><h3>Open Redirect #2 /auth/mobile-login?next=</h3><p>Same issue, different endpoint. The mobile login flow had the same next parameter vulnerability:</p><pre>https://yourdost.com/auth/mobile-login?serviceId=1&amp;next=https://yourdost-login.netlify.app/</pre><p>Same behavior immediate redirect to external domain for authenticated sessions, no interstitial.</p><p>I reported this as a follow-up since it was a separate endpoint with the same root cause. Both were acknowledged.</p><p><strong>The fix for both</strong> is straightforward only allow relative paths or a strict whitelist of internal domains in the next parameter. Any absolute external URL should either be blocked or shown behind an interstitial warning page.</p><h3>What I Learned From This</h3><p><strong>Bypass client-side validation. Always.</strong> The frontend said “username must be less than 30 characters.” The backend assumed that was enough. It wasn’t. Any time you see a client-side restriction, your first instinct should be to bypass it and see what the server does without it.</p><p><strong>Error messages are a goldmine.</strong> The best bugs sometimes aren’t in what the application does normally they’re in how it fails. Sending unexpected input and watching what breaks is one of the most underrated testing techniques.</p><p><strong>One finding leads to another.</strong> I found the open redirect first, which got me familiar with the application. That familiarity is what made me look deeper at the registration flow and find the database disclosure. Never leave a target after one finding stay, dig, and look at adjacent functionality.</p><p>If you’re testing and the app gives you a weird error on unexpected input don’t ignore it. Read it carefully. Sometimes the server is basically handing you its internals on a plate.</p><p>Happy Hacking.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be8c00f04b3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Locked a User Out of Their Own Account — My First Bug Bounty Finding]]></title>
            <link>https://medium.com/@Sh4d0w2k5/how-i-locked-a-user-out-of-their-own-account-my-first-bug-bounty-finding-0c8fd3176845?source=rss-5b20363e5b65------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c8fd3176845</guid>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[SHADOW]]></dc:creator>
            <pubDate>Fri, 26 Jun 2026 08:29:02 GMT</pubDate>
            <atom:updated>2026-06-26T08:29:02.611Z</atom:updated>
            <content:encoded><![CDATA[<p>So this is my first ever bug bounty writeup. And honestly, I didn’t expect my first real finding to be this interesting. It’s not an XSS, not an SQL injection it’s a pure business logic flaw. The kind that doesn’t show up in any scanner, doesn’t throw any errors, and yet completely destroys a legitimate user’s account. No noise. No warnings. Just locked out, forever.</p><p>Let me walk you through exactly how I found it and how it works.</p><h3>Where It All Started</h3><p>The target was <strong>BrightLight Books </strong>a bookstore that operates both online and through physical stores. What makes their platform interesting is they have a credit system built into user accounts you can sell your old books to them and earn store credits, which get stored in your account and can later be used to buy books from their site. So user accounts here aren’t just login credentials, they hold actual monetary value. They had a responsible disclosure program published on their site, so I decided to test it properly.</p><p>My approach was simple. After some basic recon, I went straight to what I always find most interesting <strong>authentication flows</strong>. Sign up, log in, forgot password, account edit. These are the places where developers make assumptions, and assumptions are where bugs live.</p><p>I created an account, poked around the login and signup pages for a while. Nothing obvious. Then I logged in and noticed something inside the account dashboard, there was a <strong>“Personal Info” page</strong> where you could update your email address and phone number after logging in.</p><p>That caught my attention immediately.</p><blockquote>“Can I just… change my email to someone else’s email? And what happens if I do?”</blockquote><p>That one question is what led to this entire finding.</p><h3>What I Found: The Bug</h3><p>The application had <strong>no uniqueness validation on email and phone number</strong> neither during registration nor during profile update. Meaning two completely different accounts could exist in the database with the exact same email and phone number.</p><p>That alone is bad. But what made it worse was how the login worked.</p><p>When you try to log in with an email, the backend fetches the <strong>first matching record</strong> from the database. Something like:</p><pre>SELECT * FROM users WHERE email = ? LIMIT 1</pre><p>That LIMIT 1 is the killer. Whoever got their record inserted <strong>first</strong> in the database wins. The victim&#39;s account inserted after the attacker&#39;s never gets touched during login. The attacker&#39;s record always comes first.</p><p>Put these two things together and you get a very clean account takeover + permanent lockout.</p><h3>How the Attack Works: Step by Step</h3><p>Here’s the exact flow. Read this carefully because the <strong>order matters</strong>.</p><h3>Step 1: Attacker Creates Their Account First</h3><p>The attacker registers on the site with their own email and phone number.</p><pre>Email:  attacker2005@gmail.com<br>Phone:  (407) 900-1000<br>Pass:   attacker</pre><p>At this point in the database, the attacker’s row is entry #1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r5cKowOvOc5XWbaJbf7gTQ.png" /></figure><h3>Step 2: Victim Creates Their Account</h3><p>Now the victim registers with their own completely different credentials.</p><pre>Email:  victim2005@gmail.com<br>Phone:  (407) 900-2000<br>Pass:   victim</pre><p>The victim’s row is now entry #2 in the database. Everything looks normal so far.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ps1YcPHMzGXDRPGMEqYoqA.png" /></figure><h3>Step 3: Attacker Updates Their Profile to Victim’s Details</h3><p>This is the move. The attacker logs into their own account and goes to the <strong>Personal Info / Account Edit page</strong>.</p><p>They change their email from attacker2005@gmail.com to victim2005@gmail.com and phone from (407) 900-1000 to (407) 900-2000.</p><p>The application has <strong>no verification step</strong>. No “confirm your new email” link. No “we’ll send a code to your old number.” Nothing. It just updates the record directly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F4iiMbXtL2ZUli5TbXg_DQ.png" /></figure><p>Now the database looks like this:</p><pre>Row                  Email                    Phone            Password<br>---------------------------------------------------------------------------<br>Entry #1 (Attacker)  victim2005@gmail.com     (407) 900-2000   attacker<br>Entry #2 (Victim)    victim2005@gmail.com     (407) 900-2000   victim</pre><p>Two rows. Same email. Same phone. The attacker’s row is still first.</p><h3>Step 4: Victim Tries to Log In. Fails.</h3><p>The victim tries to log in with their email and their own password.</p><pre>Email: victim2005@gmail.com<br>Pass:  victim</pre><p>The backend does SELECT * WHERE email = ? LIMIT 1. It finds <strong>entry #1 the attacker&#39;s updated row</strong>. It checks the password against the <strong>attacker&#39;s password</strong>. It doesn&#39;t match. Login fails.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gJkvkUvMQaUAVSm1BVMjow.png" /></figure><p>The victim is now locked out of their own account. With their own email. And they have no idea why.</p><h3>Step 5: Attacker Logs In Successfully Using Victim’s Email</h3><p>Now the attacker tries to log in with the victim’s email but the <strong>attacker’s password</strong>.</p><pre>Email: victim2005@gmail.com<br>Pass:  attacker</pre><p>The backend finds entry #1 again. Checks password. Matches. Login succeeds. The attacker is now authenticated under the victim’s identifier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3hOIY9wDkecaQR1t0oZgHQ.png" /></figure><h3>Step 6: Even Account Recovery Doesn’t Save the Victim</h3><p>You’d think okay, victim can just hit “Forgot Password” and reset it, right?</p><p>Nope.</p><p>When the victim tries to use the account recovery page and enters their email and phone, the system detects <strong>multiple accounts associated with those identifiers</strong> and throws an error:</p><blockquote>“How many of you can there be? It looks like our systems have more than one account associated with your phone number and/or email address. Please contact a team member to resolve this issue before continuing.”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q8fWK18B6sl8WtZdZck71w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f5NfQBDnskrN4-JPhoX5ZA.png" /></figure><p>The victim is completely stuck. They can’t log in. They can’t reset their password. Their only option is to contact customer support which opens up a whole social engineering surface too.</p><p>Even if the victim somehow managed to reset their password, the reset email goes to victim2005@gmail.combut since the backend resolves to <strong>entry #1 (attacker&#39;s row)</strong>, the reset actually resets the <strong>attacker&#39;s password</strong>, not the victim&#39;s. The victim&#39;s account is permanently disconnected from their own email address.</p><h3>Bonus: Email Enumeration on the Login Page</h3><p>While testing, I also noticed the login page leaks whether an email is registered or not.</p><p>Enter a <strong>registered email</strong> with wrong password → <em>“The presented password is invalid.”</em></p><p>Enter a <strong>non-existent email</strong> with any password → different response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qktDnMW4cBGBzcJFWGWqPw.png" /></figure><p>This is a secondary issue but it makes the attack even easier an attacker can first confirm whether a target email exists before running the collision attack.</p><h3>Why Did This Happen? The Backend Root Cause</h3><p>This is what I think was happening under the hood.</p><p>The database had <strong>no UNIQUE constraint</strong> on the email and phone columns. So when the attacker updated their profile to the victim’s email, the database happily accepted it no conflict, no rejection.</p><p>The authentication query was something like:</p><pre>SELECT * FROM users WHERE email = ? LIMIT 1</pre><p>That LIMIT 1 means — give me the first row you find. Databases return rows in insertion order by default unless you specify otherwise. So the attacker&#39;s row, being older, always wins.</p><p>The account recovery system was a bit smarter it detected duplicate entries and blocked self-service. But ironically that just made things worse for the victim, because now they couldn’t even recover on their own.</p><p>The fix is actually straightforward:</p><ul><li>Add UNIQUE index on email and phone columns</li><li>Reject updates that would create a conflict (return a 409 error)</li><li>Require verification when changing email or phone (send a code to the old address/number first)</li><li>Fix the auth query to handle ambiguity rather than silently resolving to the first row</li><li>Return a generic “Invalid credentials” message to prevent email enumeration</li></ul><h3>The Report and Company Response</h3><p>I submitted a detailed vulnerability report to the BrightLight Books security team on September 4, 2025, following their responsible disclosure program. I included all the screenshots, the reproduction steps, the technical explanation, and a proof-of-concept video.</p><p>Their response was interesting. They said they were already aware that users could change their email and phone number after login without verification but they hadn’t realized this could lead to a full account lockout and permanent account loss for another user. The fact that LIMIT 1 in their auth query was silently resolving collisions in the attacker&#39;s favor wasn&#39;t something on their radar.</p><p>This is the thing about business logic bugs they’re often made up of multiple individually-small decisions that combine into something serious. No verification on email update fine, mild issue. LIMIT 1 on auth query fine, seems harmless. No UNIQUE constraint fine, just sloppy. But put all three together and you get permanent account takeover with zero technical sophistication required.</p><h3>What I Learned From This</h3><p>This was my first ever bug bounty finding and a few things really stuck with me.</p><p><strong>Don’t skip the “inside the app” testing.</strong> Most people focus heavily on login, signup, and forgot password. I almost did too. The interesting thing was hiding inside the authenticated section the profile edit page. Once you’re logged in, it’s easy to assume the dangerous stuff is over. It’s not.</p><p><strong>Business logic bugs are invisible to scanners.</strong> No tool would have caught this. It required actually thinking about what the system was doing, what assumptions it was making, and what happens when those assumptions break. That kind of thinking is a skill you build by testing, not by running automated tools.</p><p><strong>The order of operations matters.</strong> This bug only works if the attacker creates their account first. If the victim registers first, the attack fails because the victim’s row would be entry #1. That ordering dependency is exactly the kind of thing that makes business logic bugs easy to miss you have to think like an attacker who is deliberately setting up a scenario, not just stumbling into bugs.</p><p>If you’re doing bug bounty and you’re only testing the unauthenticated flows, you’re leaving a lot on the table. Go deeper. Test everything that happens after login too.</p><h3>Final Thoughts</h3><p><em>Security doesn’t always break from fancy exploits. Sometimes three small lazy decisions just need to meet each other at the wrong time.</em></p><p><em>Happy Hacking.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c8fd3176845" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>