<?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 Goblin Eater on Medium]]></title>
        <description><![CDATA[Stories by Goblin Eater on Medium]]></description>
        <link>https://medium.com/@goblineater?source=rss-cdb61da3defa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lNSbAfUwz5lL0UPtztRSSw.gif</url>
            <title>Stories by Goblin Eater on Medium</title>
            <link>https://medium.com/@goblineater?source=rss-cdb61da3defa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:31:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@goblineater/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[The Supporting Cast: The Protocols That Make Everything Else Work]]></title>
            <link>https://medium.com/@goblineater/the-supporting-cast-the-protocols-that-make-everything-else-work-c399db0374ec?source=rss-cdb61da3defa------2</link>
            <guid isPermaLink="false">https://medium.com/p/c399db0374ec</guid>
            <dc:creator><![CDATA[Goblin Eater]]></dc:creator>
            <pubDate>Tue, 10 Nov 2026 00:00:57 GMT</pubDate>
            <atom:updated>2026-11-11T03:16:52.570Z</atom:updated>
            <content:encoded><![CDATA[<p>The top traders get all the glory, yet many other traders combine to make the market work. HTTP is the busy market everyone can see, the open doors and the shouted transactions. But a market does not run on its own. Before a traveller can reach the merchant at the eightieth door, someone has to tell him which street that door is on. Letters have to move between traders, and even cities. There has to be a roll of who holds which office, and a way to ship crates of goods from one warehouse to the next. These are the supporting cast: the plainer, older services that do the unglamorous work the visible protocols depend on. Every one of them was built when the kingdom was small, when a question deserved an answer, and the only people asking were known and trusted neighbors. None of them was built for a modern kingdom’s size, full of strangers, and it shows.</p><p>What follows are five of those services. They differ in what they do, but they share one trait, and it is the trait this whole series keeps uncovering: each was designed in an era when only trusted parties could ask, and the services wanted to be helpful to anyone who asked. Authentication was missing not by oversight but because the environment made it seem unnecessary. Read them as one argument made five times.</p><h3>DNS — The Kingdom’s Register</h3><p>No traveller or trader can memorize where everyone lives. When they need an address for any reason, he goes to the local record keeper, the church. If the local parish does not hold the record, it asks the diocese, and the diocese asks the central see, until the question reaches whichever parish actually keeps that record. The answer travels back down the chain, and the local church writes it in its own book for a while so the next person who asks can be answered on the spot. The whole arrangement rests on one belief nobody questions: that the registers are honest, and that the church relaying an answer is the real church.</p><p>This is the Domain Name System, designed in the early 1980s to replace a single shared hosts file with a distributed, hierarchical directory that could scale with the network. A name is resolved by walking a chain: the client asks a resolver, the resolver asks a root server, then the responsible top-level-domain server, then the authoritative server that actually holds the record. The resolver caches the answer so the next lookup is fast. DNS runs mostly over UDP on port 53, falling back to TCP for large responses and zone transfers. The design assumption is the church assumption exactly: that resolvers and authoritative servers are trustworthy, and that a reply which looks like the answer to a query genuinely came from the server that was asked.</p><p>Every major DNS attack is that assumption turned against itself. <strong>Cache poisoning</strong> slips a forged record into a resolver’s cache while it is waiting for a legitimate answer, so that everyone who asks for the same information is quietly sent to the wrong place; Dan Kaminsky’s 2008 work showed how practical this was and forced an industry-wide scramble to add query randomization.</p><p><strong>DNS amplification</strong> abuses the fact that a tiny query can trigger a large answer: when a small request is sent to an open resolver with the victim’s address forged as the source, the resolver floods the victim, which is a backbone technique for denial-of-service.</p><p><strong>DNS tunneling</strong> hides data inside subdomain queries, smuggling information out of a network through a service that almost no firewall blocks. The defense, DNSSEC, cryptographically signs records so a forged answer can be detected. It has existed for years, and the gap between signing a zone and actually validating the signature is where its protection leaks away. By Q3 2026, figures from Cloudflare Radar showed roughly 9.9 percent of queries reach domains that have DNSSEC signing enabled. Still, only about 0.57 percent are validated end to end, because many resolvers and large content providers do not enforce full validation. Signing is the lock; validation is turning the key, and most of the internet has installed the lock without turning it. Adoption is also uneven by zone: the root and some country-code domains such as .nl are signed at high rates, while the mainstream generic domains lag, with .com in the low single digits. The practical result is that the large majority of DNS resolution is still effectively unprotected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ul_FKzjkm7HNcN62" /></figure><p><a href="https://ubritsa.com/tools/dns-resolution">Click this link to see a live version of the four DNS attacks</a></p><h3>SMTP — The Courier Who Never Checks the Seal</h3><p>A letter from one city to another does not fly straight. It passes from relay house to relay house, each courier accepting it and handing it onward toward its destination. No courier along the way ever checks the name written as the sender. Why would he? The letter is already in his hands, and his job is to move it, not to interrogate it. If the seal says it comes from the Duke, it comes from the Duke.</p><p>This is SMTP, designed in the early 1980s for store-and-forward message delivery across a trusted academic network. The original protocol had no authentication of the sender whatsoever. Any server could announce mail from any domain, and the receiving server would accept it, because on the network it was built for, there was no reason to lie. An open relay, a server that forwards mail for any sender to any recipient, is simply this design taken literally, and it became the backbone of spam and phishing. The retrofits came later: SPF declares which servers may send for a domain, DKIM signs messages so tampering and forgery can be detected, and DMARC ties the two together with a policy. All three are widely deployed and inconsistently enforced. And the plumbing still bites: SMTP smuggling, disclosed by Timo Longin at SEC Consult in December 2023, exploits servers disagreeing about where one message ends and the next begins, letting an attacker inject forged messages that pass the authentication checks. The key insight stands on its own: email spoofing is not a hack. It is the protocol working exactly as designed, and every anti-spoofing measure is a later layer bolted on top of a system that assumed the sender was who they claimed to be.</p><h3>LDAP — The Clerk at the Registry</h3><p>The kingdom keeps a master roll of who holds which office, who reports to whom, and who carries which keys. A clerk sits at the registry and answers questions against the roll. Ask him cleanly and he answers cleanly. But he is only as careful as he thinks he should be. Some clerks answer anyone who walks up, without asking who is inquiring. And a cleverly phrased question can make him read out more than he should.</p><p>This is LDAP, the protocol for querying and modifying directory services, most familiarly Active Directory. Its weaknesses are the registry’s weaknesses. LDAP injection is the same class of flaw as SQL injection: unvalidated input is folded into a directory query, and a crafted input changes what the query returns or does. A null bind is the clerk who answers unnamed inquirers: some servers permit anonymous queries that disclose directory information to anyone who connects. And because plain LDAP is unencrypted, credentials and answers can be read off the wire unless LDAPS, LDAP over TLS, is enforced, which it is not always. The directory is one of the most sensitive assets on an enterprise network, which is exactly why these three unglamorous facts matter.</p><h3>FTP — Shipping in the Open</h3><p>Crates move between warehouses in open carts, and the manifest is pasted on the side of the cart for easy verification. Anyone standing in the yard can see everything: what is in the crate, who it is for, and the word that unlocks it. Some warehouses even keep a public shelf that any passerby may take from, on purpose.</p><p>This is FTP, one of the oldest application protocols, dating to the early 1970s. It transfers both credentials and data in cleartext, so anyone on the path can read the login and the contents. Its two-channel design, a control connection and a separate data connection, is the source of the active-versus-passive-mode distinction that has confused firewall administrators for decades: passive mode exists because active mode asks the server to open a connection back to the client, which firewalls rightly block. Anonymous FTP is the public shelf, intentional unauthenticated access, useful and also an information-disclosure risk when it exposes more than intended. FTP persists on legacy systems, in industrial environments, and on misconfigured servers. The replacements, FTPS (FTP wrapped in TLS) and SFTP (file transfer over SSH), both add the encryption and authentication FTP never had.</p><h3>TFTP — No Questions Asked</h3><p>Simpler still is the open supply closet inside the castle walls: no lock, no attendant, no log of who takes what. Anyone who needs a tool opens it and takes one, and anyone can leave one. It works, and works safely, only because it sits inside the walls, where the garrison are the only ones who can reach it. The closet was never meant to be the thing keeping anyone out. The walls were.</p><p>This is TFTP, a deliberately minimal file-transfer protocol over UDP with no authentication of any kind. The “trivial” in the name is honest: no security mechanism was ever part of the design, because it was built for a closed, controlled context. It is still actively used where that context holds, loading firmware images onto routers and switches, serving boot images for PXE network boot, and provisioning devices in industrial control systems. The danger is purely one of placement. TFTP exposed to an untrusted network is a meaningful finding on any assessment, not because the protocol failed, but because it was never carrying any protection to begin with and was simply put somewhere it was never meant to be.</p><h3>The Common Thread</h3><p>The supporting cast shares a single flaw, and it is not incompetence. The church answered because a question is made to be answered. The courier carried the letter because carrying letters was the job. The clerk read from the roll, the warehouse shipped the crate, the recruit collected his tools. Every one of these services was built to be helpful, quickly and without suspicion, in a kingdom small enough that only trusted people were ever in the room.</p><p>The kingdom is not small anymore, and the room is full of strangers. DNS, SMTP, LDAP, FTP, and TFTP are the infrastructure that the visible web rests on, and all five were designed in an era when the network itself was the trust boundary. Authentication, encryption, and verification are in every case a later addition, deployed unevenly, bolted onto services that assumed they would never need them. This is the same lesson the series has drawn at every layer, and it lands hardest here, in the plumbing, precisely because these are the protocols nobody thinks about until one of them is turned against the systems that cannot run without it.</p><p><em>Originally published at </em><a href="https://ubritsa.com/posts/the-supporting-cast-the-protocols-that-make-everything-else-work/"><em>https://ubritsa.com</em></a><em> on November 10, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c399db0374ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Finger Protocol: Reconnaissance Before Reconnaissance Was a Word]]></title>
            <link>https://medium.com/@goblineater/the-finger-protocol-reconnaissance-before-reconnaissance-was-a-word-653c79f77a09?source=rss-cdb61da3defa------2</link>
            <guid isPermaLink="false">https://medium.com/p/653c79f77a09</guid>
            <category><![CDATA[finger]]></category>
            <category><![CDATA[trust]]></category>
            <category><![CDATA[protocol]]></category>
            <category><![CDATA[surveillance]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Goblin Eater]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 00:00:29 GMT</pubDate>
            <atom:updated>2026-10-16T22:02:28.511Z</atom:updated>
            <content:encoded><![CDATA[<p>In the earlier posts, we looked at how communities grew into towns and kingdoms, opening their gates to trade while trying to keep out spies, thieves, and those seeking to seize power. The gatehouse guard became our way of thinking about who a network lets in.</p><p>But some information was available without passing through the gate at all.</p><p>Imagine a notice board outside the walls. Residents could leave messages saying where they were, when they expected to return, or who could help in their absence. Anyone passing could read it. For someone trying to reach a friend or arrange a delivery, that was useful.</p><p>Now imagine finding the same sort of notice board on an early computer network. That is a useful way to understand Finger.</p><h3>A notice board for the network</h3><p>The Name/Finger protocol was documented in RFC 742 in December 1977. It provided an interface to programs that reported on a computer’s current users or a particular person. The examples included names, terminal locations, idle times, and messages left by users. <a href="https://www.rfc-editor.org/rfc/rfc742.html">RFC 742</a></p><p>With a typical command-line client, finger @host asks a remote system for its list of logged-in users. finger user@host asks about a particular user, whether or not they are currently logged in. Depending on the server, the response might include a full name, login or logout times, email status, or a personal message known as a &quot;plan.&quot; <a href="https://www.rfc-editor.org/rfc/rfc742.html">RFC 742</a></p><p>For researchers using shared computers, this was practical information. You could check whether someone was around before trying to contact them, or read a message explaining when they would be back.</p><p>Finger has no built-in authentication exchange. A publicly accessible server could therefore give the same information to a colleague and to a stranger. Administrators could restrict access or limit responses, but those protections required deliberate choices. The later specification, RFC 1288, explicitly warned about sensitive disclosures and recommended controls, including the ability to refuse requests for user lists. <a href="https://www.rfc-editor.org/rfc/rfc1288.html">RFC 1288</a></p><p>In our walled city, the guard might control who entered, but the notice board could still tell a stranger something about the people inside. Someone arranging a delivery and someone planning a theft could read the same message and find it useful for different reasons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7pZj7tUXULLllSjQ" /></figure><h3>The Morris worm</h3><p>Finger also became associated with a different security problem: a fault in the program answering requests.</p><p>On November 2, 1988, the Morris worm began spreading across the internet. Its routes into other machines included a buffer overflow in fingerd, the program that answered Finger requests. It also exploited sendmail&#39;s debug functionality, trusted-host access through rsh, and passwords it had cracked and could reuse through rexec. Those last two mechanisms were different: one relied on trust between hosts; the other required valid credentials. <a href="https://web.mit.edu/user/e/i/eichin/www/virus/strategies.html">Eichin and Rochlis&#39;s analysis</a></p><p>The Finger attack targeted 4.3BSD systems running on VAX computers. The daemon read incoming requests without properly checking their length. A specially crafted request could overflow a buffer and redirect execution to code supplied by the worm. <a href="https://web.mit.edu/user/e/i/eichin/www/virus/strategies.html">Technical account of the attack</a></p><p>The often-repeated estimate is that roughly 6,000 machines were infected, out of an internet of about 60,000 hosts. That figure should be treated as an estimate rather than a precise count; contemporary investigators themselves questioned how confidently it was reported. <a href="https://www.cs.columbia.edu/~gskc/security/rochlis89microscope.pdf">Rochlis and Eichin’s contemporary account</a></p><p>The distinction matters. The worm did not need to study someone’s login history before exploiting the Finger daemon. It attacked the code handling the request.</p><p>The notice board analogy only takes us so far here. Reading the board to learn about residents is one problem. Exploiting a fault in the machinery that supplies its answers is another.</p><p>A safely implemented Finger server could still disclose sensitive information. Equally, a service that disclosed nothing useful could still contain a buffer overflow. Restricting access might reduce exposure to either problem, but fixing one would not automatically fix the other.</p><h3>What an ordinary response could reveal</h3><p>Set the worm aside and consider what an ordinary Finger response might tell someone.</p><p>A username gives an attacker a valid account name to investigate. A full name may connect that account to a person and their role. Login times, idle periods, and personal messages can provide clues about working habits or availability.</p><p>Those clues have limits. An idle terminal does not mean its owner has left the building. Unread email does not establish that an account is abandoned or unmonitored. But information does not have to be conclusive to be useful. Several small observations can help someone decide what to try next.</p><p>An attacker could use an exposed Finger service to:</p><ul><li><strong>Identify accounts:</strong> collect the usernames returned by a user-list request. This reveals the accounts shown in the response, not necessarily every account on the machine.</li><li><strong>Build context:</strong> query individual users and compare the information returned over time.</li><li><strong>Choose an approach:</strong> combine those details with other sources to guide password attacks, impersonation, or further investigation.</li></ul><p>None of this requires exploiting a programming error. The server may be doing exactly what its administrator intended.</p><p>Think again about the notice outside the walls. A message saying that a merchant will be away until Monday helps a customer decide when to return. It might also help a thief decide when to visit. The message is accurate in both cases; its usefulness depends on who is reading it and what they intend to do.</p><p>That is the information-disclosure problem at the heart of Finger. Information shared for one purpose can support another, and the person requesting it does not have to explain their intentions.</p><h3>The lesson that outlasts the protocol</h3><p>Finding Finger during a security assessment should prompt some practical questions. Who can reach it? What does it reveal? Does anyone still need it? Was publishing that information a conscious decision?</p><p>Its presence alone does not prove that a system has been neglected. The significance depends on its configuration, its audience, and the information it exposes.</p><p>The same questions apply to newer services. A staff directory, presence indicator, or account lookup can be useful while also giving away more than its owners realise. Whether that disclosure is acceptable depends on who can access it and what they can learn.</p><p>Finger belongs in this series because it makes that tradeoff easy to see. Its ordinary function was to help people find one another. Making that information available also made it available to people with less helpful intentions.</p><p>The gatehouse guard controls who enters, but security also depends on what can be learned from outside the walls. Finger shows how a service can help an attacker without granting access or malfunctioning. Sometimes, answering an ordinary question reveals more than it should.</p><p><em>Originally published at </em><a href="https://ubritsa.com/posts/the-finger-protocol-reconnaissance-before-reconnaissance-was-a-word/"><em>https://ubritsa.com</em></a><em> on October 16, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=653c79f77a09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Telnet, UUCP, Gopher: The Cleartext Era and Why It Never Fully Ended]]></title>
            <link>https://medium.com/@goblineater/telnet-uucp-gopher-the-cleartext-era-and-why-it-never-fully-ended-74db94386385?source=rss-cdb61da3defa------2</link>
            <guid isPermaLink="false">https://medium.com/p/74db94386385</guid>
            <dc:creator><![CDATA[Goblin Eater]]></dc:creator>
            <pubDate>Wed, 09 Sep 2026 00:00:07 GMT</pubDate>
            <atom:updated>2026-09-10T03:58:16.627Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine a small town where nobody locks their doors. Not because the locks don’t exist, but because nobody in living memory has needed one. That’s not a metaphor for carelessness. It’s a description of a community that has never included a thief.</p><p>That was the early internet. ARPANET connected a small number of academic and government institutions who mostly knew each other, mostly trusted each other, and had no realistic expectation of an adversary showing up uninvited. Encryption existed, but it was computationally expensive and, for a long stretch, export-controlled. Building a cleartext protocol in 1978 wasn’t a mistake. It was a reasonable design choice for the network that actually existed at the time. The assumption of a trusted network was correct in 1983. It is catastrophic in 2026. This section is about three protocols that were built for that trusted network, and about why “the cleartext era” never fully ended, it just moved into the corners of infrastructure nobody looks at closely.</p><h3>Telnet — Not Dead</h3><p>Telnet was designed in 1969 and formalized in RFC 854 in 1983: remote terminal access, nothing else. You connect to a remote host, you get a shell, and every keystroke, every character of output, every credential you type, travels across the wire in plaintext. There is no encryption layer to strip because there was never an encryption layer to begin with.</p><p>SSH replaced Telnet in 1995, more than three decades ago, and the replacement is still not complete. Telnet is still running today in places where nobody has had a reason to touch the configuration in years: network equipment (routers, switches, managed power distribution units), industrial control systems, embedded devices, and, uncomfortably often, medical equipment. Finding an open Telnet port during a pentest in 2026 is not a historical curiosity. It’s still a meaningful finding, and it usually means credentials are sitting in plaintext for anyone running a packet capture on the same segment.</p><h3>Gopher — Almost Extinct</h3><p>Gopher, from 1991, is the road not taken. It’s a hierarchical, menu-based system for retrieving information, and it predates HTTP by a couple of years. For a brief window, Gopher and the early web were competing for the same job: organizing and retrieving documents across a network. HTTP won, largely because the web’s hypertext model, links embedded directly in content rather than a rigid menu tree, scaled better as the amount of information on the network grew.</p><p>Gopher isn’t entirely gone. A small number of servers still run, mostly as a hobbyist or preservationist attack surface rather than a live target, and some Linux distributions have shipped Gopher clients long after anyone was using them for real work. Its main value to a practitioner is as a design study: a look at what the web almost became, and at how quickly a workable protocol can become obsolete once something better arrives.</p><h3>UUCP — Unix to Unix Copy</h3><p>Before there was an internet to refuse to die on, there was a network built out of nightly phone calls.</p><p>UUCP, Unix-to-Unix Copy, shipped with Version 7 Unix in 1978 (worth double-checking that exact release date before this goes out). Its job was to transfer files, and later mail and news, between Unix systems that weren’t persistently connected. Two machines would dial each other on a schedule, usually overnight when phone rates were cheap, exchange whatever was queued, and hang up. That’s a store-and-forward model, not a live session protocol, and it carries a core assumption that’s easy to miss: “connected” is an event, not a state. UUCP was built for a network that was up for a few minutes a night, not a network that was always on.</p><p>UUCP’s most significant role in history wasn’t any single machine; it was the network those machines formed together: UUCPNET. Through the late 1970s and 1980s, before TCP/IP infrastructure reached most of the world, UUCP-based links gave sites in parts of Europe, Asia, and Africa their first practical path into digital connectivity. EUnet is a commonly cited example of this. Addressing on UUCPNET used bang paths, a route written out as a literal sequence of hops, something like mcvax!ukc!site!user. Every hop had to be known and specified by hand. There was no abstraction layer resolving a destination for you. The path was the routing table.</p><p>UUCP’s descendants are more instructive than UUCP itself. Usenet, founded in 1979, used UUCP as its original transport for distributing newsgroup posts between sites. When Usenet later moved onto internet-connected hosts, NNTP replaced UUCP as the transport layer, but the store-and-forward, multi-hop propagation model UUCP established is still visible in how NNTP servers exchange articles today. Unix mail followed the same arc: bang-path addressing over UUCP links, before SMTP existed. Once you see a mail address as a literal route through named machines, SMTP’s domain-based addressing, with routing handled invisibly by mail exchangers, reads as a deliberate abstraction away from UUCP’s manual path model, not an unrelated invention.</p><p>UUCP is not a live attack surface the way Telnet still is. Genuinely current use is narrow: legacy Unix shops running old integration scripts, and some air-gapped transfer scenarios where a store-and-forward model still fits the job.</p><h3>What Comes Next</h3><p>There’s a fourth protocol from this era that deserves its own treatment rather than a paragraph here: Finger, RFC 742 from 1977, designed to answer a simple question: who’s logged in right now, and how it ended up as one of the propagation vectors for the Morris Worm in 1988. That’s next week’s post.</p><p>The throughline across Telnet, Gopher, and UUCP is the same one that will run through the rest of this series: none of these protocols failed because of a coding mistake. They did exactly what they were designed to do, for a network that assumed everyone on it belonged there. The cleartext era didn’t end when better protocols arrived. It just receded into the parts of the network nobody audits, waiting for someone to run a scan.</p><p><em>Originally published at </em><a href="https://ubritsa.com/posts/telnet-uucp-gopher-the-cleartext-era-and-why-it-never-fully-ended/"><em>https://ubritsa.com</em></a><em> on September 9, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74db94386385" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Layers 5 and 6: The Contested Terrain Between Transport and Application]]></title>
            <link>https://medium.com/@goblineater/layers-5-and-6-the-contested-terrain-between-transport-and-application-15580c12ba0f?source=rss-cdb61da3defa------2</link>
            <guid isPermaLink="false">https://medium.com/p/15580c12ba0f</guid>
            <dc:creator><![CDATA[Goblin Eater]]></dc:creator>
            <pubDate>Mon, 24 Aug 2026 00:00:16 GMT</pubDate>
            <atom:updated>2026-08-25T03:08:27.623Z</atom:updated>
            <content:encoded><![CDATA[<p>The kingdom’s roads do not concern us this week. We are not concerned with the portcullis guard, the distance between gate and gate, or the checkpoint captain squinting at addresses on a passing cart. All of that machinery exists to get a sealed letter from one place to another. This week the letter has already arrived, and it is on the desk of the person who receives it. The question is no longer how it traveled. The question is whether it can be trusted, and whether anyone read it, or altered it, along the way.</p><p>A sealed letter carries two kinds of protection, and practitioners who blur them make mistakes. The first is the seal itself, a form of non-repudiation: a mark pressed into wax by a signet ring, proving the letter came from whoever holds that ring and that nobody broke it open in transit. The second is the script the letter is written in, its encryption: whether it is plain court hand, legible to anyone who picks it up, or a private cipher only the recipient can read. One protects authenticity. The other, at best, protects secrecy. They are not the same guarantee, and this week is largely the story of what happens when people, and protocols, confuse them.</p><h3>Honest Framing First</h3><p>Before going further, L5 and L6 need a caveat the earlier layers didn’t. Layers 5 and 6, Session and Presentation, are the most contested territory in the OSI model. Ask ten experienced practitioners where TLS lives, and you will not get ten identical answers. Some place it squarely at L6, since it performs presentation-layer work: encryption and format negotiation before the payload reaches an application. Others treat it as inseparable from the application that invokes it, since in practice a browser or mail client calls a TLS library directly, with no clean layer boundary in the code. Both positions are defensible. Neither is wrong.</p><p>This is not a failure of the OSI model. It is a demonstration of what the model actually is: a reference framework for reasoning about network communication, not a wiring diagram that maps cleanly onto every real implementation. That distinction was the whole point of Week 1. L5 and L6 are where it is most visible, because in modern practice, session management and presentation formatting are usually absorbed into the application layer rather than implemented as distinct network services. Naming these layers still matters, because the concepts they describe (L5 functions such as session establishment, L6 functions such as encoding and encryption) are real and load-bearing. TLS does both kinds of work in one protocol, which is exactly why it resists a single clean layer assignment.</p><h3>L5: Who Is Actually Talking</h3><p>Session-layer concerns answer a specific question: once two hosts can exchange packets, how do they establish and maintain an ongoing conversation, and how do they know they are still talking to the same party they started with?</p><p>NetBIOS, and its modern successor NetBIOS over TCP/IP (NBT), handles this in Windows environments: name resolution and session establishment for file sharing and other local services. RPC (Remote Procedure Call) manages sessions for remote function calls and underpins a large share of Windows domain operations, including much of what Active Directory does under the hood. SMB (Server Message Block) layers session setup and authentication negotiation on top of that substrate, which is why SMB shows up repeatedly in both legitimate file sharing and in the attack techniques below.</p><p>The session layer’s implicit assumption, inherited from an era of trusted local networks, is that once a session is established, the party on the other end continues to be who they claimed to be at the start. That assumption is exactly what session-layer attacks exploit.</p><h3>L6: What the Letter Says, and Whether Anyone Can Read It</h3><p>Presentation-layer concerns are about format, not delivery. Two functions matter most here, and conflating them is the single most common conceptual error at this layer.</p><p><strong>Encoding</strong> is a public, reversible, keyless transformation. Base64 is the obvious example: a standard, documented method for representing binary data as text. Anyone who knows the standard, which is to say anyone, can decode it. Encoding is the cipher clerk transliterating a letter into a different alphabet using a published conversion table available to friend and adversary alike. It provides zero confidentiality. This is precisely why Base64-encoded HTTP Basic Authentication credentials look obscured to an untrained eye and are functionally as exposed as plaintext to anyone who recognizes the format.</p><p><strong>Encryption</strong> is the other function living at this layer, and TLS/SSL is the dominant example, wherever you ultimately decide it belongs on the org chart of the OSI model. Encryption is a genuinely secret transformation, reversible only by someone holding the correct key. This is the cipher clerk sealing the letter’s contents with a private cipher the recipient alone can decode, a fundamentally different guarantee than merely rewriting it into a different alphabet.</p><p>The seal itself, the proof of who sent the letter and that it was not tampered with, is a third function bundled into TLS alongside encryption: certificate-based authentication. This is where the trust model gets interesting, and where it has failed in instructive ways.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I_zD8JACcdtF08kd" /></figure><p><a href="https://ubritsa.com/tools/tls-handshake.html">Click here to open the TLS Visualizer</a></p><h3>Design Assumptions That Failed</h3><p>Early SSL made a design choice that reads, in hindsight, as a genuine architectural mistake rather than an implementation bug: the negotiation phase, where client and server agree on protocol version and cipher suite, happened in cleartext, unauthenticated, before the secure channel existed. The assumption was that negotiation itself did not need protecting, only the payload that followed.</p><p>That assumption produced a family of downgrade attacks. An attacker sitting in the middle of the connection could interfere with the negotiation, repeatedly forcing failed connection attempts until the client fell back to an older, weaker protocol. POODLE (2014) forced a fallback to SSL 3.0 and then exploited a padding oracle in that protocol’s handling of CBC-mode block ciphers to recover encrypted content. BEAST (2011) exploited a related CBC weakness in TLS 1.0. DROWN (2016) was subtler still: it used a server’s continued support for the obsolete SSLv2 protocol and export-grade ciphers to attack connections made using an otherwise secure, modern TLS version, sometimes against a <em>different</em> server entirely, provided that server shared the same RSA key. A forgotten legacy mail server, still answering on SSLv2 with a certificate borrowed from the main web server, could undermine both. CRIME (2012) took a different angle, exploiting TLS/SSL compression itself to leak encrypted session cookies, which is why compression at this layer is now handled with considerably more caution.</p><p>TLS 1.3, formalized in RFC 8446 in August 2018, closes the specific door these attacks depended on: it mandates forward secrecy, strips out the legacy cipher suites and handshake features that made the downgrade dance possible, and reduces the handshake to a single round trip. The fix was architectural. The negotiation itself finally received the protection its early designers assumed it did not need.</p><p>The seal, meanwhile, has its own failure mode, and it is not a protocol flaw at all. A recipient does not personally verify a sender’s identity. They recognize a signet impression and trust that only the rightful holder of that ring could have made it, because they trust the signetmaker who vouches for that ring. This is the certificate authority trust model, and it fails exactly the way you would expect a trust chain to fail: at the point where the signetmaker itself is compromised.</p><p>In March 2011, attackers compromised registration authority partners of the certificate authority Comodo and fraudulently issued nine certificates for domains including Google, Microsoft, and Yahoo. Comodo survived; the breach was contained to a single RA partner. Months later, in July 2011, a much deeper compromise hit the Dutch certificate authority DigiNotar, eventually resulting in over 500 fraudulent certificates, including one for google.com used to intercept Gmail traffic for an estimated 300,000 users in Iran. DigiNotar did not survive. Browsers revoked trust in all of its certificates, the Dutch government seized control, and the company was bankrupt within weeks. Forensic investigators found evidence suggesting the same attacker was behind both incidents, though attribution claims of this kind carry inherent uncertainty and should be read as a strong suspicion rather than settled fact. The lesson worth keeping is about blast radius: Comodo’s compromise was scoped to one partner and one authority survived it; DigiNotar’s was total and the authority did not.</p><h3>Weaponizing the Session</h3><p>If the seal and the cipher are where L6 fails, the session layer fails at the handshake itself, and the vector is authentication relay rather than cryptography.</p><p>NTLM relay attacks capture an authentication challenge exchanged over NetBIOS or RPC and relay it to a different service, effectively borrowing someone else’s proof of identity mid-handshake rather than forging it outright. SMB relay attacks follow the same logic against SMB’s own authentication negotiation. Neither attack breaks any cryptography. Both exploit the assumption that a session, once authenticated, can be trusted for its duration without re-verifying who is actually on the other end.</p><p>The starkest example of session-layer trust breaking down entirely is EternalBlue, a family of critical vulnerabilities in Microsoft’s SMBv1 implementation (CVE-2017–0143 through CVE-2017–0148), developed by the NSA and leaked publicly by the Shadow Brokers group in April 2017. Microsoft had patched the underlying flaw a month earlier, in the March 14, 2017 MS17–010 bulletin, which is worth sitting with: the fix existed before either outbreak that followed. WannaCry began spreading May 12, 2017, hitting more than 300,000 organizations across 150 countries within days. NotPetya followed weeks later in June 2017, using the same exploit but behaving as a destructive wiper rather than genuine ransomware, later attributed by multiple governments to Russian military actors. These were not cryptographic failures. They were remote code execution against a session-layer protocol that trusted a crafted packet more than it should have.</p><h3>What Defense Looks Like Here</h3><p>Enforce TLS 1.3 where you can, and audit for lingering SSLv2/SSLv3 support anywhere in your infrastructure, including systems that share certificates with ones you consider modern. Monitor certificate transparency logs; the DigiNotar and Comodo incidents were both the kind of thing CT logs exist to catch faster. Disable SMBv1 outright unless a specific legacy dependency requires it, and if it does, isolate that dependency. Treat NTLM relay as a standing risk in any Windows domain environment, not a theoretical one, and prefer Kerberos with proper channel binding where the environment allows it.</p><p>None of this is exotic. It is the same thesis the series keeps returning to: these protocols were designed for an environment where the party on the other end of the seal, or the session, could reasonably be assumed to be who they claimed. That assumption was reasonable once. It has not been reasonable for a long time, and the gap between the trust these protocols were built on and the trust the internet can actually offer is not a bug anyone is going to patch away.</p><p><em>Originally published at </em><a href="https://ubritsa.com/posts/layers-5-and-6-the-contested-terrain-between-transport-and-application/"><em>https://ubritsa.com</em></a><em> on August 24, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15580c12ba0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TCP and UDP: The Best of Frenemies.]]></title>
            <link>https://medium.com/@goblineater/tcp-and-udp-the-best-of-frenemies-28cbb33abfd3?source=rss-cdb61da3defa------2</link>
            <guid isPermaLink="false">https://medium.com/p/28cbb33abfd3</guid>
            <dc:creator><![CDATA[Goblin Eater]]></dc:creator>
            <pubDate>Sun, 09 Aug 2026 00:00:45 GMT</pubDate>
            <atom:updated>2026-08-24T15:27:15.345Z</atom:updated>
            <content:encoded><![CDATA[<h3>Floods, Amplification, and What Firewalls Actually Do<a href="https://ubritsa.com/posts/tcp-and-udp-the-best-of-frenemies/#floods-amplification-and-what-firewalls-actually-do">#</a></h3><p>Last week’s post closed with a thesis worth restating: TCP’s flags tell the truth about what a packet claims to be. They say nothing about whether the claim is legitimate. Let’s wander back to our medieval landscape to frame this discussion.</p><p>In the kingdom’s early days, the gap between a message’s claim and its legitimacy rarely mattered. There was one castle (host), one gate (network connection), and a guard (TCP/IP Stack) who knew most travelers by sight and could respond to their requests. When a visitor requested to enter, the guard reserved a room for him on the spot, not because he’d earned it, but because there was little reason to withhold it. Bad faith was rare and was not seen as an operational risk.</p><p>As the kingdom grew, more castles (hosts) were built. Major roads connected them rather than country lanes. And the travelers on those roads stopped being mostly familiar faces. A visitor’s well-delivered request at the gate no longer guaranteed he meant well, especially when that visitor was arriving from beyond the kingdom’s borders. Trust was eroding. The King’s answer to this problem was the one every growing kingdom eventually reaches for: a checkpoint (firewall), planted at the kingdom’s edge, where the outside road entered and branched toward whichever castle a traveler claimed to be bound for. This checkpoint was manned by a captain whose only job was deciding what was allowed to cross the border.</p><p>This week is about two occurrences that happen once trust gets weaponized. The first at the castle gate itself, and secondly at a public records institution outside the kingdom’s borders. And we’ll see what the checkpoint captain can and can’t do about either one.</p><h3>Crowds and Floods</h3><p>At the castle gate, a crowd of impostors can exhaust the guard’s (TCP/IP stack) capacity to reserve rooms. Each proposal, on its own, is perfectly well-formed, so the checkpoint captain lets all of them through. It’s only once they reach the guard that the cost becomes real.</p><p>The other occurrence happens further down the road. An entirely different institution gets abused differently. The church visitors never pass through the checkpoint at all, since it was never destined for the castle to begin with. It simply answers requests from anyone without knowing who’s really asking, and that lack of verification is what gets exploited.</p><p>Both failures trace back to the same root as last week’s: a well-formed message and a legitimate one are not the same thing, and the protocols we’re discussing were never built to tell the difference on their own.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eNXBRD3n9cQT3Qfy" /></figure><p><a href="https://ubritsa.com/tools/floods-visualizer.html">Click here to see the Floods Visualizer in action, and step through the scenarios discussed here</a>.</p><h3>The Castle Guard: SYN Floods</h3><p>Three roles live inside every castle, and this section is about just one of them. The highest-ranking inhabitant, the <strong>Duke</strong> (the OS), holds ultimate authority and sets policy, but doesn’t personally handle any single exchange. The <strong>castle’s own application</strong>, the specific office or merchant who is sought for trading with, only enters the picture once the castle guard hands over a confirmed, open connection. The <strong>castle guard</strong> (the TCP/IP stack, acting on the Duke’s authority) handles the mechanics of the handshake itself: receiving proposals, reserving rooms, sending confirmations. This section is entirely about the castle guard (The TCP/IP stack). He’s the one whose resources are exhausted by a flood of mal-intentioned messengers.</p><h3>The reservation: built for a trusting road</h3><p>When a messenger arrives at a castle proposing a trade (the SYN), the castle guard doesn’t wait to see whether the relationship actually goes anywhere before committing something to it. He reserves a room for that proposal on the spot: a slot, held open, representing the half-open state of a connection that has started but not finished. The room stands ready and empty, promised to that messenger alone, until one of two things happens. Either the messenger returns bearing confirmation (the ACK) and claims it, or a waiting period lapses and the reservation is released back into the pool.</p><p>This is ordinary, correct behavior, and it made sense for the entrance the castle guard was built to watch. RFC 793 describes exactly this: a connection enters a half-open state after the second message (SYN-ACK) of the exchange is returned to the supposed sender, and the receiving system commits resources to it before the third message (ACK) ever arrives. Reserving the room immediately, on nothing but a proposal, is a courtesy extended to a messenger assumed to be acting in good faith. The flaw appears when someone deliberately exploits the gap between “reserved” and “confirmed”. This was a possibility the original design never had reason to plan for.</p><p>A flood works by making proposals faster than reservations can be claimed or expire. Every room in the castle guard’s fixed set of holding slots gets reserved by messengers who were never real. At that point, the castle guard has nowhere left to put a legitimate proposal when one actually arrives. The castle isn’t short on staff. It’s out of rooms. Legitimate messengers are turned away.</p><p>Making this exhaustion attack work reliably usually means forging the return address on each proposal. The castle guard’s own confirmation (the equivalent of a SYN-ACK) gets sent to whatever address the messenger claimed, which is often a real address belonging to someone who never asked for it, or simply unreachable. Either way, no one receives it, and no ACK is coming back. The room stays reserved until the timeout. Not because the attacker is fast, but because the reservation was never going to be claimed in the first place.</p><blockquote><em>💡 </em><strong><em>A note on scale</em></strong><em>: a single burst of forged proposals only holds the castle guard’s rooms until the timeout period passes, at which point they’re released. Sustained flooding, comprised of proposals arriving continuously faster than the timeout can clear them, is what keeps the resource genuinely exhausted. This is also why distributed floods, spread across many source addresses, are harder to filter than a flood from one obvious origin.</em></blockquote><h3>The evolution: SYN cookies</h3><p>The trusting castle guard couldn’t survive with such a flood of visitors, and the fix wasn’t to make him faster or give him a bigger waiting room. It was to change what “reasonable courtesy” means. A castle guard trained in the old era immediately extends trust for a well-formed proposal, whether legitimate or not. A castle guard trained for an era of eroded trust withholds commitment until trust is actually earned, and does it without losing the responsiveness that made the old system work.</p><p>In practice, that means the castle guard stops writing anything down (reserving space) at the proposal stage.</p><p>With SYN cookies, the castle guard reserves nothing upon receiving a proposal. Instead, he performs a calculation on the spot: he folds the messenger’s claimed identity, the terms of the exchange, and a value only he knows into a single number and sends it back as his own confirmation. With no room held, no ledger entry made, nothing committed anywhere. If the messenger is real and returns with the final confirmation, that returning messenger carries the number back to him (by the normal mechanics of the handshake, the acknowledgment reflects the value the castle guard sent). He re-derives everything he needs from the number itself, at that moment, and only then does the room get created, built fresh from what the re-verified number encodes. The handshake was completed.</p><p>If the messenger was forged and never returns, the castle guard hasn’t lost anything, because nothing was ever set aside for the claim. The cost of receiving a forged initial proposal drops to zero.</p><blockquote><em>💡 </em><strong>A caveat worth stating plainly</strong>__: SYN cookies work by not storing state, which means some information normally carried in the handshake (certain optional terms negotiated at connection setup) can’t be preserved the same way, since there’s no ledger entry to hold them until the number comes back. Most modern implementations work around this, but it’s a real trade-off in the mechanism, not a detail to gloss over. The exact set of affected options varies by OS and TCP stack, and is worth checking against current documentation for whichever environment you’re actually running.</blockquote><h3>The Church: UDP Amplification</h3><p>The castle guard (TCP/IP stack) only ever deals with messengers trying to reach a <em>specific</em> Dukedom. They are parties with a stake in getting a proposal through. The church is a different kind of institution entirely, and that difference is the point, not a flaw in how it was built.</p><p>The church answers public information requests from anyone, without checking who’s really asking. That was never a security failure; it was the job, and it made sense for the visitors it was built to serve. Public record-keeping was meant to be publicly available on request, to local and stranger alike, with no proposal, no confirmation, no relationship established first, just a function carried out dutifully by those entrusted with the role. There is no handshake here to abuse. The entire attack rests on one dishonestly posed question and one disproportionately large answer, made possible by an assumption of good faith; the church had no reason to question when the practice began.</p><h3>The Parish Register</h3><p>The parish clerk holds the public register of records, including names, lineage, land, standing, and responds to a single request with the full entry on file. Someone rides up, speaks a name, and receives a stack of parchment in return: baptism, marriage, holdings, whatever’s recorded under that name. One short question, a disproportionately large answer.</p><p>This maps to DNS: a small query, which is often a request for every record type on file for a name, can return a response many times larger than the question that triggered it.</p><h3>The Bell Tower</h3><p>Similarly, churches were, and still are, the keepers of time. Church bells, historically, were a village’s shared timekeeping infrastructure, with hours rung out loud for all to hear. The sexton kept a record of recent ringing: who’d rung for what, and when. A traveler could ask not just the hour, but for that recent history, and the sexton, like the parish clerk, would answer generously and in full.</p><p>This maps to NTP and specifically to the historic monlist command, a request asking a time server to list its recent clients, answered with a log disproportionately larger than the request.</p><h3>The forged return address</h3><p>In both cases, the mechanism is the same: a messenger approaches the window and asks a question, but falsely claims to be relaying it on behalf of another village, giving that village’s address as where the answer should go. Neither the parish clerk nor the sexton has any way to verify the request. The office was built to answer questions, not audit askers. The full answer lands on a village that never asked anything, in a volume far larger than the question that triggered it. And that disproportion, aimed by an attacker at a target of their choosing, is the entire weapon.</p><h3>The evolution: the sexton stops answering everything</h3><p>The church couldn’t simply close its doors. The parish register and the hour still needed to be announced. What changed was the willingness to answer <em>every</em> question with the <em>full</em> record, to <em>anyone</em>, on demand. monlist, the sexton&#39;s detailed recent-activity log, has since been disabled or deprecated in modern NTP implementations specifically because of this abuse. The office didn&#39;t stop serving the visitors; it stopped being generous by default to strangers who gave it no reason to be. That&#39;s the same shift as the castle guard&#39;s, arrived at independently, in a different building, for a different reason. A &quot;designed behavior, then patched&quot; moment consistent with a pattern this whole series keeps returning to.</p><h3>The Evolving Checkpoint Captain: Stateless vs. Stateful</h3><p>Neither of the failures above was something the original checkpoint captains (stateless firewalls) could stop outright. The flood’s proposals were each too ordinary to refuse, and the church’s forged request never crossed his post to begin with. But both leave something behind that <em>does</em> cross it: a lone confirmation with no proposal behind it, or a reply with no question behind it. What he can do about either one depends entirely on what kind of checkpoint captain he is.</p><p>He’s never a party to what crosses his post; he doesn’t propose, confirm, or complete anything himself. He only ever does one of two things: let it pass, or turn it away. That’s exactly why he needs a record of his own rather than letting everything through to the castle guards. Whatever the guard is doing with reservations and rooms happens entirely out of the checkpoint captain’s sight.</p><h3>A checkpoint built for a smaller road</h3><p>The earliest version of the checkpoint was rule-based and didn’t need a ledger at all. When the road mostly carried neighbors, a checkpoint captain who checked only that papers were properly formed and the messenger was permitted to travel was doing his whole job. There was no reason to suspect that well-formed papers might be lying about the exchange they belonged to, because forging that claim wasn’t yet a common trick on a road everyone respected. The rulebook-only checkpoint captain is not a strawman; he’s the original, and for the road he was built for, he was sufficient.</p><p>The ledger is the newer layer, added once the road grew busy enough that well-formed papers stopped being proof of anything. Keeping one costs the checkpoint captain something the rulebook never did: memory, and constant inspection of traffic that used to be waved through on sight. That cost is worth being honest about before we get to why it’s worth paying.</p><h3>The rulebook</h3><p>The checkpoint captain’s rulebook covers two things, checked without needing any history:</p><ul><li><strong>Structural correctness</strong>: are the papers a messenger or carriage presents properly formed? Correct seals, correct fields, nothing malformed or invalid.</li><li><strong>Directional permission</strong>: is this kind of messenger or carriage allowed to approach this particular castle, from this direction, in the first place? A castle that’s never advertised trade, or a direction the King’s policy forbids outright, can be refused on rulebook grounds alone, before any question of history is reached.</li></ul><p>Both checks are performed fresh, every time, using nothing but what’s in front of the checkpoint captain at that moment.</p><h3>The ledger</h3><p>The checkpoint captain builds his ledger by stopping each messenger and carriage and inspecting their papers for specific details: who it’s from, who it’s bound for, what stage of the exchange it claims to represent. This ledger is entirely his own, independent of whatever the castle guard is doing with his own reservations and rooms: two separate records of the same events, kept by two different parties for two different reasons.</p><h3>Where this catches both of this week’s attacks</h3><ul><li>A lone confirmation-message arriving with no proposal ever logged ahead of it, structurally correct, nothing wrong with it on inspection, is exactly what a rulebook-only checkpoint captain waves through. This is where an ACK without a prior SYN and SYN-ACK gets blocked: a ledger-checking checkpoint captain rejects it on sight, because no proposal crossing the checkpoint ever matched it.</li><li>A forged answer arriving from the church at a castle that never sent the original question is the same shape at a different layer: a well-formed message with no corresponding record. The checkpoint captain’s ledger, built from what actually crossed the road, has no entry for a question this castle asked. No entry, no passage.</li></ul><p><strong>The thesis, stated once, plainly</strong>: correctly filled-in papers only prove the papers were made correctly. They say nothing about whether the exchange behind them ever really began. Only a ledger, a record of what was actually observed happening, can answer that question, and only a checkpoint captain (stateful firewall) who keeps one can ask it at all.</p><h3>Defender Takeaways</h3><p>Three institutions, three separate histories, one shared pattern: each was built on a reasonable presumption of good faith, and each had to add a layer of enforced trust once the road stopped being trustworthy by default. None of what follows replaces the original design; it sits on top of it.</p><ul><li><strong>SYN cookies and rate limiting at the network edge</strong> address the castle guard’s exhaustion directly: removing the reservation, or slowing the rate at which proposals can arrive.</li><li><strong>Ingress filtering (BCP38)</strong> stops address spoofing at its actual point of leverage: the network the forged traffic originates from, not the network receiving it. A network operator can verify that outbound packets carry a source address it actually assigned; the destination never can, because it has no independent way to know what a legitimate source address should look like. This is worth being direct about: the party capable of stopping the forgery is never the party being harmed by it. BCP38 is a Best Current Practice, not a universally enforced requirement, and adoption is inconsistent across networks.</li><li><strong>Auditing your own exposure</strong>, open DNS resolvers, NTP servers with legacy commands like monlist still enabled, exposed Memcached instances, closes off the &quot;generous church&quot; role before someone else&#39;s forged question turns your infrastructure into a weapon aimed at a third party.</li><li><strong>The ledger has a cost, too.</strong> Maintaining a connection table consumes memory and processing on the checkpoint captain’s own post, and a flood aimed at exhausting <em>that</em> table, rather than any single castle guard’s rooms, is a real attack vector against stateful inspection. The stateful approach doesn’t eliminate exposure; it trades one kind for another.</li></ul><p>Next week moves into contested terrain: the layers where even practitioners disagree on what belongs where, and where TLS’s own design history shows the same lesson recurring one layer up: negotiation that isn’t itself protected is negotiation an attacker can tamper with before the protection ever begins.</p><p><em>Originally published at </em><a href="https://ubritsa.com/posts/tcp-and-udp-the-best-of-frenemies/"><em>https://ubritsa.com</em></a><em> on August 9, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28cbb33abfd3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TCP: Raising the Wrong Flags]]></title>
            <link>https://medium.com/@goblineater/tcp-raising-the-wrong-flags-3fda7b232a46?source=rss-cdb61da3defa------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fda7b232a46</guid>
            <category><![CDATA[nmap]]></category>
            <category><![CDATA[tcp-flag]]></category>
            <category><![CDATA[layer-4]]></category>
            <category><![CDATA[port-scanning]]></category>
            <category><![CDATA[rfc793]]></category>
            <dc:creator><![CDATA[Goblin Eater]]></dc:creator>
            <pubDate>Sun, 02 Aug 2026 00:00:33 GMT</pubDate>
            <atom:updated>2026-08-02T21:26:08.792Z</atom:updated>
            <content:encoded><![CDATA[<h3>The City, the Duke, and the Portcullis</h3><p>Picture a walled city. A Duke — the operating system — presides over it, though he governs less than it sounds like he might. Behind the city walls, tradespeople work their own shops: a baker, a blacksmith, an armourer, a stableman. Each is a service running on the host, reachable through its own door — a port. Visitors arrive from other cities looking to trade, and each has to pass the portcullis first, where a guard decides who gets through and who doesn’t.</p><p>There are, in truth, up to 65,535 possible doors in this city — not four. Most sit permanently vacant; nobody has ever set up shop behind them and likely never will. But among the ones that matter, some doors are fixed by long-standing custom: the baker is always behind door 25, in this city and every other city in the realm — you never have to ask which door, only whether he’s in today. Others aren’t reserved for anyone in particular; whichever trade happens to be operating that day claims a door, opens it, and works from it for as long as they’re in business.</p><p>The city itself has its own name and address on the map (it’s IP address), separate from all of this — that’s how a visitor from another city knows where to travel in the first place. The door number only matters once he’s already arrived; it has nothing to do with which city he found it in.</p><p>The visitor’s home city is fixed, same as anyone’s — what changes each time he sets out is the errand itself. Before he leaves, he writes up a shopping list for this one trip: which tradesman, which item, and a reference chit so that whatever the tradesman sends back can find its way to the right errand once it arrives home — especially useful on a day when more than one household member is out running separate errands at once. The chit is good for this trip only; the next errand gets a new one. But his home address never moves, no matter how many chits he’s carried over the years or how many different trades he’s visited with them.</p><p>When a visitor arrives at the gate, he asks the guard for a specific worker. If that trade is currently open, the guard waves him through, and he walks to that worker’s shop himself. If no one’s operating that trade today, the guard turns him away at the portcullis — immediately, uniformly, regardless of how the request was phrased — because that decision belongs to the guard alone, on the Duke’s authority.</p><p>But getting past the portcullis doesn’t really give a visitor anything. Each worker still runs their shop under their own rules, with no further reference back to the Duke or his guard. Ask the blacksmith for a sword correctly, and he’ll make one. Ask for bread, or mumble, or say nothing — he simply doesn’t engage with a request outside his trade. That’s not the portcullis’s decision anymore; the guard already stepped out of it the moment he waved the visitor through.</p><p>The Duke is the operating system — sovereign over this one city, answering to no higher authority for how his own gate and his own tradespeople conduct their daily business. The guard is the OS’s TCP/IP stack, answering one question and one question only — is anything currently bound to this port — on the Duke’s authority, before any application ever sees the request. Each worker is a service or process, and once traffic reaches one, the Duke’s own administration is entirely out of the exchange; everything from there is that service’s own protocol, enforced on its own terms.</p><p>It’s the same split you’d recognize from an old fort’s gate versus its garrison trades, a gated community’s checkpoint versus its residents, or a campus guard shack versus the departments inside — one layer decides who’s let into the city at all, a separate layer decides what happens once you’re standing at a specific worker’s door.</p><p>With the city established, the next question is what a <em>legitimate</em> visit actually looks like — because every scanning technique in this post is really just a variation on getting that answer wrong on purpose.</p><h3>The Correct Exchange</h3><p>Every legitimate visit to a trade follows one fixed sequence, and it’s worth naming precisely, since every scan type in this post is defined by how it deviates from it.</p><p>A connection request — SYN — carries the initiator’s starting sequence number. If the trader is open and listening, the reply is a combined acknowledgment-and-counter-request — SYN-ACK. A final acknowledgment — ACK — completes the connection. Three messages, fixed order, no variation, for every legitimate TCP connection your network will ever carry.</p><p>This holds regardless of which trade is involved. Port 80 (HTTP), port 22 (SSH), port 21 (FTP), port 443 (HTTPS) — every one of them, if it’s using TCP as its transport, goes through SYN → SYN-ACK → ACK identically before either application ever sees a byte of real data. The handshake is generic infrastructure, uniform across every worker; what happens after it is application-specific. <em>(This is a TCP-specific behavior — UDP has no handshake at all, which becomes relevant next week.)</em></p><p>RFC 793 is the standing orders behind this — not just for the correct sequence, but for every flag combination that could arrive at the portcullis, including combinations no legitimate client would ever send. Every scan type below is an attempt to provoke a reaction from those standing orders without ever completing the exchange they were written for.</p><p><a href="https://github.com/GoblinEater/tcp-flag-scanner">link_preview</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AOPdUV6ptIKVcW-B.png" /></figure><p><a href="https://ubritsa.com/tools/tcp-flag-scanner.html">Click here to open the TCP Flag Visualizer</a></p><p>A SYN scan barely deviates from legitimate traffic, which is exactly why it’s the default in most scanning tools. The visitor gives the guard the real opening move — the correct first word of the handshake. If the trade is open, the worker sends back the expected SYN-ACK. But the visitor never completes the exchange — no final ACK, no actual transaction. He got his answer and walked away.</p><p>Think of it like the difference between a completed sale and a customer contact record. A finished transaction gets a receipt — an undeniable record, kept by policy. A SYN that never gets ACK’d is more like someone who walked up, asked about a trade, and left before buying anything. Some shops log every inquiry in detail; plenty don’t, because it’s overhead that only pays off if someone’s specifically watching for reconnaissance rather than sales. Whether a SYN scan appears in your records depends entirely on what your logging is configured to capture — not on anything universal about the technique itself.</p><p>If a SYN scan tests the guard’s patience with a real, if abandoned, request, the next three test something else entirely: what happens when the request isn’t real at all.</p><h3>NULL, FIN, and Xmas Scans</h3><p><strong>NULL scan.</strong> The visitor reaches the portcullis and names a trade — but says nothing else. No greeting, no explanation, nothing that resembles any stage of a real transaction. The guard has a destination to act on but no recognizable request to respond to, so he answers according to whether that trade is currently staffed. If it is, he ignores the visitor outright — there’s no reason to trouble a working tradesperson over something this malformed. If the trade is closed for the day, he still turns the visitor away with the same flat rejection he’d give anyone — RST — because an unstaffed trade gets an answer regardless of how the knock was phrased.</p><p><strong>FIN scan.</strong> The visitor names a trade, then announces “I’m finished with this trader” to a guard who never admitted him for any trade to begin with. There’s no transaction on record to conclude — an open trade’s guard understands there’s nothing to close out and doesn’t bother answering; a closed trade’s guard turns him away with the same flat rejection he’d give anyone.</p><p><strong>Xmas scan.</strong> The visitor names a trade, then arrives shouting, in effect, “this is the end of what I’m saying — now hurry up and fulfill my request, before anyone else’s.” A demand to finish, rush, and prioritize a conversation that never opened. An open trade’s guard recognizes this as gibberish dressed up as urgency and doesn’t dignify it with a response; a closed trade’s guard, again, answers exactly as he always does for an unstaffed post.</p><p>The pattern across all three: silence means the trade is staffed, a flat rejection means it isn’t — and that holds true regardless of which of the three malformed knocks you use. All of this happens at the portcullis, before any worker is ever aware a visitor arrived.</p><h3>Where this breaks down in the real kingdom</h3><p>This works as a scanning technique because it’s exploiting a real, documented quirk in RFC 793, the original TCP specification. The RFC states that any segment not containing SYN, RST, or ACK bits should result in a returned RST if the port is closed, and no response at all if the port is open. That’s not a bug someone stumbled onto — it’s a corner case the specification itself defines, one that almost no legitimate traffic would ever trigger.</p><p>But it’s worth being direct about a real limitation here: not every operating system follows this part of the RFC to the letter. Several systems — notably Microsoft Windows, many Cisco devices, and IBM OS/400 — send a RST in response to these probes regardless of whether the port is actually open or closed. On those systems, every port comes back “closed,” and the technique tells you nothing useful. In practice, that makes NULL, FIN, and Xmas scans reliable against Unix and Linux targets and effectively useless against a Windows host — worth knowing before you rely on them in the field.</p><p>None of these three can tell an open port from a closed one on their own merits — they’re all reading the same quirk. The next technique asks a completely different question.</p><p>The visitor doesn’t approach the portcullis asking whether a trade is open. He walks up presenting what looks like the third step of a formal introduction already underway — as if the greeting had already begun, as if the guard had already extended his own half of it, and this were simply the visitor’s closing word that seals the introduction and clears him to proceed. No such introduction ever happened.</p><p>The guard’s response to this is uniform and tells you nothing about the workers at all: whether the trade behind that door is staffed or empty, he answers the same way either time — a flat rejection, RST — because as far as his own records show, no introduction with this visitor was ever begun to be completed. An ACK scan literally cannot distinguish an open trade from a closed one; both produce the identical response from the city itself.</p><p>So why send it at all? Because the question it’s actually built to answer isn’t “is anyone working this trade” — it’s whether there’s a stateful firewall sitting between the visitor and the portcullis: a device that actually tracks which conversations are real and in progress, rather than just checking whether an individual packet looks plausible on its own.</p><p>If there’s no such device in the path — or only a stateless one, which evaluates each packet in isolation without any memory of prior traffic — the fake closing word sails through untouched, reaches the guard, and you get your RST back. That tells you the port is <em>unfiltered</em>: nothing stateful is standing in the way. If a stateful firewall is in the path, it checks its own connection table, finds no session this ACK could possibly belong to, and drops the packet before it ever reaches the city. Silence, in this one case only, doesn’t mean “occupied.” It means <em>filtered</em> — something is tracking real conversations and just caught you inventing one.</p><p>Say this plainly: an ACK scan cannot tell you open from closed, full stop — that’s not what it’s for. NULL, FIN, and Xmas are all trying to answer the same question (is a given trade staffed) through different malformed requests. An ACK scan is answering a completely different question — is there a stateful firewall in this path — and it’s the direct setup for next week’s post, where stateful versus stateless inspection is the whole subject.</p><p>That question — is anything watching the road, and does it remember — is bigger than any one city’s gate.</p><h3>The Roads Between Cities</h3><p>Every scan discussed so far has assumed a visitor traveling in from elsewhere, arriving at a single city’s portcullis, and a Duke’s own guard deciding what happens at that one gate. But no Duke governs the road itself — only what happens once a traveler reaches his particular city. The road connecting every city in the realm is the King’s domain, not any single Duke’s, and it’s why a checkpoint can exist out there at all — one that no city’s guard controls, or even knows exists.</p><p>Whether that checkpoint keeps a manifest of real, ongoing travel between cities, or just eyeballs each traveler in isolation and waves through anything that looks plausible, is the difference between a scan that gets caught and logged before it ever reaches a city gate, and one that walks straight through undetected. That distinction — a checkpoint with memory versus one without — is the entire subject of the next post.</p><p>But before the road, it’s worth pausing at the gate one more time — because everything a scan reveals, a defender can see too, if they know where to look.</p><h3>What Defenders Actually See</h3><p>Every technique in this post leaves a trace somewhere, if you know where to look.</p><p>A SYN scan against your network shows up as a burst of half-open connections — TCP handshakes that got a SYN-ACK back but never received the final ACK to complete them. On the host itself, tools like netstat will show connections sitting in a SYN_RECV state that never resolve. One or two of these is nothing; a rapid sequence across a wide range of ports on the same host, from the same source, in a short window, is a scan in progress - not a coincidence.</p><p>NULL, FIN, and Xmas scans are, in a sense, easier to catch than they are to execute successfully. Legitimate TCP traffic simply does not produce these flag combinations under normal operation — no real client ever opens a conversation by announcing it’s already over, or by setting three unrelated flags simultaneously. Any properly configured intrusion detection system can flag these on sight, because there’s no legitimate baseline traffic to distinguish them from. The technique’s stealth comes entirely from evading simple, SYN-focused filters — it offers no stealth at all against a system actually watching for anomalous flag combinations.</p><p>An ACK scan’s signature is more subtle, and this is where the stateful/stateless distinction earns its keep as a defensive tool, not just an attacker’s reconnaissance target. A stateless device — a basic access control list, evaluating each packet on its own merits — has no way to know this ACK doesn’t belong to a real conversation, and lets it through. A stateful firewall keeps a live table of every connection it’s actually seen begin, and an ACK that doesn’t match an entry in that table gets dropped without a second thought. This is precisely why stateful inspection is the baseline expectation for any modern network edge: it doesn’t just block more traffic, it recognizes traffic that’s lying about its own history.</p><ul><li>Half-open connections in netstat, especially in volume, are a signal worth alerting on - not just a curiosity.</li><li>Any NULL, FIN, or Xmas flag combination in production traffic is inherently anomalous; there’s no legitimate case for it, which makes detection a matter of watching for the pattern at all, not distinguishing good from bad.</li><li>An ACK arriving with no prior SYN in your connection history is exactly what stateful inspection exists to catch — it’s a meaningful gap between an ACL and a firewall that actually tracks sessions, not just a marketing distinction between product tiers.</li><li>Port scanning is a snapshot of a single moment. A port closed today may be assigned to a service tomorrow — treat scan results as current state, not a permanent map, and re-scan on a cadence that matches how often your environment actually changes.</li></ul><h3>No Protocols Were Harmed In The Making Of This Post</h3><p>Every technique in this post is legal, by the letter of RFC 793. A SYN scan is a real connection request, abandoned before completion. NULL, FIN, and Xmas are flag combinations the specification had to define a response for, precisely because nothing legitimate would ever produce them. An ACK scan is a closing word to an introduction that never opened.</p><p>That’s the same lesson this series keeps returning to at every layer: the guard at the portcullis isn’t broken when a scan gets past him — he’s doing exactly what his orders say to do. The orders themselves have edges nobody expected a stranger to test. Knowing where those edges are is the difference between reading a scan result and understanding what it actually cost you to produce.</p><p>The road between cities is where the next post picks up — because a guard following his orders perfectly is still only ever answering for his own gate.</p><p><em>Originally published at </em><a href="https://ubritsa.com/posts/tcp-raising-the-wrong-flags/"><em>https://ubritsa.com</em></a><em> on August 2, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fda7b232a46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TCP: Raising the Wrong Flags]]></title>
            <link>https://medium.com/@goblineater/tcp-raising-the-wrong-flags-992ddf00c289?source=rss-cdb61da3defa------2</link>
            <guid isPermaLink="false">https://medium.com/p/992ddf00c289</guid>
            <dc:creator><![CDATA[Goblin Eater]]></dc:creator>
            <pubDate>Sun, 02 Aug 2026 00:00:01 GMT</pubDate>
            <atom:updated>2026-08-25T03:06:41.902Z</atom:updated>
            <content:encoded><![CDATA[<h3>The City, the Duke, and the Portcullis</h3><p>Picture a walled city. A Duke — the operating system — presides over it, though he governs less than it sounds like he might. Behind the city walls, tradespeople work their own shops: a baker, a blacksmith, an armourer, a stableman. Each is a service running on the host, reachable through its own door — a port. Visitors arrive from other cities looking to trade, and each has to pass the portcullis first, where a guard decides who gets through and who doesn’t.</p><p>There are, in truth, up to 65,535 possible doors in this city — not four. Most sit permanently vacant; nobody has ever set up shop behind them and likely never will. But among the ones that matter, some doors are fixed by long-standing custom: the baker is always behind door 25, in this city and every other city in the realm — you never have to ask which door, only whether he’s in today. Others aren’t reserved for anyone in particular; whichever trade happens to be operating that day claims a door, opens it, and works from it for as long as they’re in business.</p><p>The city itself has its own name and address on the map (it’s IP address), separate from all of this — that’s how a visitor from another city knows where to travel in the first place. The door number only matters once he’s already arrived; it has nothing to do with which city he found it in.</p><p>The visitor’s home city is fixed, same as anyone’s — what changes each time he sets out is the errand itself. Before he leaves, he writes up a shopping list for this one trip: which tradesman, which item, and a reference chit so that whatever the tradesman sends back can find its way to the right errand once it arrives home — especially useful on a day when more than one household member is out running separate errands at once. The chit is good for this trip only; the next errand gets a new one. But his home address never moves, no matter how many chits he’s carried over the years or how many different trades he’s visited with them.</p><p>When a visitor arrives at the gate, he asks the guard for a specific worker. If that trade is currently open, the guard waves him through, and he walks to that worker’s shop himself. If no one’s operating that trade today, the guard turns him away at the portcullis — immediately, uniformly, regardless of how the request was phrased — because that decision belongs to the guard alone, on the Duke’s authority.</p><p>But getting past the portcullis doesn’t really give a visitor anything. Each worker still runs their shop under their own rules, with no further reference back to the Duke or his guard. Ask the blacksmith for a sword correctly, and he’ll make one. Ask for bread, or mumble, or say nothing — he simply doesn’t engage with a request outside his trade. That’s not the portcullis’s decision anymore; the guard already stepped out of it the moment he waved the visitor through.</p><p>The Duke is the operating system — sovereign over this one city, answering to no higher authority for how his own gate and his own tradespeople conduct their daily business. The guard is the OS’s TCP/IP stack, answering one question and one question only — is anything currently bound to this port — on the Duke’s authority, before any application ever sees the request. Each worker is a service or process, and once traffic reaches one, the Duke’s own administration is entirely out of the exchange; everything from there is that service’s own protocol, enforced on its own terms.</p><p>It’s the same split you’d recognize from an old fort’s gate versus its garrison trades, a gated community’s checkpoint versus its residents, or a campus guard shack versus the departments inside — one layer decides who’s let into the city at all, a separate layer decides what happens once you’re standing at a specific worker’s door.</p><p>With the city established, the next question is what a <em>legitimate</em> visit actually looks like — because every scanning technique in this post is really just a variation on getting that answer wrong on purpose.</p><h3>The Correct Exchange</h3><p>Every legitimate visit to a trade follows one fixed sequence, and it’s worth naming precisely, since every scan type in this post is defined by how it deviates from it.</p><p>A connection request — SYN — carries the initiator’s starting sequence number. If the trader is open and listening, the reply is a combined acknowledgment-and-counter-request — SYN-ACK. A final acknowledgment — ACK — completes the connection. Three messages, fixed order, no variation, for every legitimate TCP connection your network will ever carry.</p><p>This holds regardless of which trade is involved. Port 80 (HTTP), port 22 (SSH), port 21 (FTP), port 443 (HTTPS) — every one of them, if it’s using TCP as its transport, goes through SYN → SYN-ACK → ACK identically before either application ever sees a byte of real data. The handshake is generic infrastructure, uniform across every worker; what happens after it is application-specific. <em>(This is a TCP-specific behavior — UDP has no handshake at all, which becomes relevant next week.)</em></p><p>RFC 793 is the standing orders behind this — not just for the correct sequence, but for every flag combination that could arrive at the portcullis, including combinations no legitimate client would ever send. Every scan type below is an attempt to provoke a reaction from those standing orders without ever completing the exchange they were written for.</p><p><a href="https://github.com/GoblinEater/tcp-flag-scanner">link_preview</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*crW5L7UEaocxUNOu.png" /></figure><p>A SYN scan barely deviates from legitimate traffic, which is exactly why it’s the default in most scanning tools. The visitor gives the guard the real opening move — the correct first word of the handshake. If the trade is open, the worker sends back the expected SYN-ACK. But the visitor never completes the exchange — no final ACK, no actual transaction. He got his answer and walked away.</p><p>Think of it like the difference between a completed sale and a customer contact record. A finished transaction gets a receipt — an undeniable record, kept by policy. A SYN that never gets ACK’d is more like someone who walked up, asked about a trade, and left before buying anything. Some shops log every inquiry in detail; plenty don’t, because it’s overhead that only pays off if someone’s specifically watching for reconnaissance rather than sales. Whether a SYN scan appears in your records depends entirely on what your logging is configured to capture — not on anything universal about the technique itself.</p><p>If a SYN scan tests the guard’s patience with a real, if abandoned, request, the next three test something else entirely: what happens when the request isn’t real at all.</p><h3>NULL, FIN, and Xmas Scans<a href="https://ubritsa.com/posts/tcp-raising-the-wrong-flags/#null-fin-and-xmas-scans">#</a></h3><p><strong>NULL scan.</strong> The visitor reaches the portcullis and names a trade — but says nothing else. No greeting, no explanation, nothing that resembles any stage of a real transaction. The guard has a destination to act on but no recognizable request to respond to, so he answers according to whether that trade is currently staffed. If it is, he ignores the visitor outright — there’s no reason to trouble a working tradesperson over something this malformed. If the trade is closed for the day, he still turns the visitor away with the same flat rejection he’d give anyone — RST — because an unstaffed trade gets an answer regardless of how the knock was phrased.</p><p><strong>FIN scan.</strong> The visitor names a trade, then announces “I’m finished with this trader” to a guard who never admitted him for any trade to begin with. There’s no transaction on record to conclude — an open trade’s guard understands there’s nothing to close out and doesn’t bother answering; a closed trade’s guard turns him away with the same flat rejection he’d give anyone.</p><p><strong>Xmas scan.</strong> The visitor names a trade, then arrives shouting, in effect, “this is the end of what I’m saying — now hurry up and fulfill my request, before anyone else’s.” A demand to finish, rush, and prioritize a conversation that never opened. An open trade’s guard recognizes this as gibberish dressed up as urgency and doesn’t dignify it with a response; a closed trade’s guard, again, answers exactly as he always does for an unstaffed post.</p><p>The pattern across all three: silence means the trade is staffed, a flat rejection means it isn’t — and that holds true regardless of which of the three malformed knocks you use. All of this happens at the portcullis, before any worker is ever aware a visitor arrived.</p><h3>Where this breaks down in the real kingdom<a href="https://ubritsa.com/posts/tcp-raising-the-wrong-flags/#where-this-breaks-down-in-the-real-kingdom">#</a></h3><p>This works as a scanning technique because it’s exploiting a real, documented quirk in RFC 793, the original TCP specification. The RFC states that any segment not containing SYN, RST, or ACK bits should result in a returned RST if the port is closed, and no response at all if the port is open. That’s not a bug someone stumbled onto — it’s a corner case the specification itself defines, one that almost no legitimate traffic would ever trigger.</p><p>But it’s worth being direct about a real limitation here: not every operating system follows this part of the RFC to the letter. Several systems — notably Microsoft Windows, many Cisco devices, and IBM OS/400 — send a RST in response to these probes regardless of whether the port is actually open or closed. On those systems, every port comes back “closed,” and the technique tells you nothing useful. In practice, that makes NULL, FIN, and Xmas scans reliable against Unix and Linux targets and effectively useless against a Windows host — worth knowing before you rely on them in the field.</p><p>None of these three can tell an open port from a closed one on their own merits — they’re all reading the same quirk. The next technique asks a completely different question.</p><p>The visitor doesn’t approach the portcullis asking whether a trade is open. He walks up presenting what looks like the third step of a formal introduction already underway — as if the greeting had already begun, as if the guard had already extended his own half of it, and this were simply the visitor’s closing word that seals the introduction and clears him to proceed. No such introduction ever happened.</p><p>The guard’s response to this is uniform and tells you nothing about the workers at all: whether the trade behind that door is staffed or empty, he answers the same way either time — a flat rejection, RST — because as far as his own records show, no introduction with this visitor was ever begun to be completed. An ACK scan literally cannot distinguish an open trade from a closed one; both produce the identical response from the city itself.</p><p>So why send it at all? Because the question it’s actually built to answer isn’t “is anyone working this trade” — it’s whether there’s a stateful firewall sitting between the visitor and the portcullis: a device that actually tracks which conversations are real and in progress, rather than just checking whether an individual packet looks plausible on its own.</p><p>If there’s no such device in the path — or only a stateless one, which evaluates each packet in isolation without any memory of prior traffic — the fake closing word sails through untouched, reaches the guard, and you get your RST back. That tells you the port is <em>unfiltered</em>: nothing stateful is standing in the way. If a stateful firewall is in the path, it checks its own connection table, finds no session this ACK could possibly belong to, and drops the packet before it ever reaches the city. Silence, in this one case only, doesn’t mean “occupied.” It means <em>filtered</em> — something is tracking real conversations and just caught you inventing one.</p><p>Say this plainly: an ACK scan cannot tell you open from closed, full stop — that’s not what it’s for. NULL, FIN, and Xmas are all trying to answer the same question (is a given trade staffed) through different malformed requests. An ACK scan is answering a completely different question — is there a stateful firewall in this path — and it’s the direct setup for next week’s post, where stateful versus stateless inspection is the whole subject.</p><p>That question — is anything watching the road, and does it remember — is bigger than any one city’s gate.</p><h3>The Roads Between Cities<a href="https://ubritsa.com/posts/tcp-raising-the-wrong-flags/#the-roads-between-cities">#</a></h3><p>Every scan discussed so far has assumed a visitor traveling in from elsewhere, arriving at a single city’s portcullis, and a Duke’s own guard deciding what happens at that one gate. But no Duke governs the road itself — only what happens once a traveler reaches his particular city. The road connecting every city in the realm is the King’s domain, not any single Duke’s, and it’s why a checkpoint can exist out there at all — one that no city’s guard controls, or even knows exists.</p><p>Whether that checkpoint keeps a manifest of real, ongoing travel between cities, or just eyeballs each traveler in isolation and waves through anything that looks plausible, is the difference between a scan that gets caught and logged before it ever reaches a city gate, and one that walks straight through undetected. That distinction — a checkpoint with memory versus one without — is the entire subject of the next post.</p><p>But before the road, it’s worth pausing at the gate one more time — because everything a scan reveals, a defender can see too, if they know where to look.</p><h3>What Defenders Actually See<a href="https://ubritsa.com/posts/tcp-raising-the-wrong-flags/#what-defenders-actually-see">#</a></h3><p>Every technique in this post leaves a trace somewhere, if you know where to look.</p><p>A SYN scan against your network shows up as a burst of half-open connections — TCP handshakes that got a SYN-ACK back but never received the final ACK to complete them. On the host itself, tools like netstat will show connections sitting in a SYN_RECV state that never resolve. One or two of these is nothing; a rapid sequence across a wide range of ports on the same host, from the same source, in a short window, is a scan in progress - not a coincidence.</p><p>NULL, FIN, and Xmas scans are, in a sense, easier to catch than they are to execute successfully. Legitimate TCP traffic simply does not produce these flag combinations under normal operation — no real client ever opens a conversation by announcing it’s already over, or by setting three unrelated flags simultaneously. Any properly configured intrusion detection system can flag these on sight, because there’s no legitimate baseline traffic to distinguish them from. The technique’s stealth comes entirely from evading simple, SYN-focused filters — it offers no stealth at all against a system actually watching for anomalous flag combinations.</p><p>An ACK scan’s signature is more subtle, and this is where the stateful/stateless distinction earns its keep as a defensive tool, not just an attacker’s reconnaissance target. A stateless device — a basic access control list, evaluating each packet on its own merits — has no way to know this ACK doesn’t belong to a real conversation, and lets it through. A stateful firewall keeps a live table of every connection it’s actually seen begin, and an ACK that doesn’t match an entry in that table gets dropped without a second thought. This is precisely why stateful inspection is the baseline expectation for any modern network edge: it doesn’t just block more traffic, it recognizes traffic that’s lying about its own history.</p><ul><li>Half-open connections in netstat, especially in volume, are a signal worth alerting on - not just a curiosity.</li><li>Any NULL, FIN, or Xmas flag combination in production traffic is inherently anomalous; there’s no legitimate case for it, which makes detection a matter of watching for the pattern at all, not distinguishing good from bad.</li><li>An ACK arriving with no prior SYN in your connection history is exactly what stateful inspection exists to catch — it’s a meaningful gap between an ACL and a firewall that actually tracks sessions, not just a marketing distinction between product tiers.</li><li>Port scanning is a snapshot of a single moment. A port closed today may be assigned to a service tomorrow — treat scan results as current state, not a permanent map, and re-scan on a cadence that matches how often your environment actually changes.</li></ul><h3>No Protocols Were Harmed In The Making Of This Post<a href="https://ubritsa.com/posts/tcp-raising-the-wrong-flags/#no-protocols-were-harmed-in-the-making-of-this-post">#</a></h3><p>Every technique in this post is legal, by the letter of RFC 793. A SYN scan is a real connection request, abandoned before completion. NULL, FIN, and Xmas are flag combinations the specification had to define a response for, precisely because nothing legitimate would ever produce them. An ACK scan is a closing word to an introduction that never opened.</p><p>That’s the same lesson this series keeps returning to at every layer: the guard at the portcullis isn’t broken when a scan gets past him — he’s doing exactly what his orders say to do. The orders themselves have edges nobody expected a stranger to test. Knowing where those edges are is the difference between reading a scan result and understanding what it actually cost you to produce.</p><p>The road between cities is where the next post picks up — because a guard following his orders perfectly is still only ever answering for his own gate.</p><p><em>Originally published at </em><a href="https://ubritsa.com/posts/tcp-raising-the-wrong-flags/"><em>https://ubritsa.com</em></a><em> on August 2, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=992ddf00c289" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Guild, the Road, and the Strays: How IP Won the Protocol Wars — and What Got Left Behind]]></title>
            <link>https://medium.com/@goblineater/the-guild-the-road-and-the-strays-how-ip-won-the-protocol-wars-and-what-got-left-behind-97155790769f?source=rss-cdb61da3defa------2</link>
            <guid isPermaLink="false">https://medium.com/p/97155790769f</guid>
            <dc:creator><![CDATA[Goblin Eater]]></dc:creator>
            <pubDate>Thu, 23 Jul 2026 00:00:19 GMT</pubDate>
            <atom:updated>2026-07-27T02:49:13.292Z</atom:updated>
            <content:encoded><![CDATA[<p>In medieval Europe, if you wanted to make shoes, you joined the cobblers’ guild. Not because the guild made better shoes than you could make alone — though it might have. You joined because the guild <em>controlled</em> the knowledge of shoemaking, the supply of leather, the right to sell in the market square. The guild wasn’t just a craft association. It was an economic enclosure — you couldn’t compete with what you couldn’t learn.</p><p>Every major vendor in the pre-IP networking era built a guild.</p><p>Novell built one. Digital Equipment Corporation built one. Apple built one. Each was technically accomplished, and each tried to speak the language of its buyer — technical elegance for the engineers, intuitive simplicity for the artists and designers, bulletproof reliability for the legal departments and medical practices. Where the fit was right, it was remarkable — a technology and a constituency that seemed made for each other, and a stronghold formed. Where a vendor could set the standard, define the requirement, or own the certification, they could hold that ground almost indefinitely. But where the environment was more open, more contested, the cheaper and more adaptable solution had a habit of winning. Not because it was better. Because it was accessible.</p><h3>THE PRE-IP LANDSCAPE</h3><p>By the late 1970s and into the 1980s, enterprise networking was a fragmented proprietary landscape. The major players each had their own complete protocol stacks — their own answers to addressing, routing, error correction, and session management. These stacks were not designed to interoperate. Interoperability was not a goal. It was, in fact, a threat to the business model.</p><p>The fragmentation had a structural cause. Technology purchasing in most organizations was departmental — the engineering team bought what engineers needed, the finance department bought what accountants needed, the creative studio bought what designers needed. Nobody was looking across the whole organization. The result was predictable: islands. A Novell network in one wing, a DECnet installation in another, an AppleTalk cluster in the design room down the hall. Each working perfectly within its own walls. None of them able to talk to each other.</p><p>The response was equally predictable. Organizations began centralizing technology purchasing — creating the infrastructure and eventually the organizational roles whose entire mandate was to look at the whole map, not just the nearest desk. The CIO didn’t emerge from nowhere. It emerged from the friction of incompatible islands that departmental purchasing had quietly built over a decade.</p><p>Routing traffic between those environments still required expensive translation gateways — brittle, complex, and vendor-supplied. But now there was at least someone whose job it was to care about that problem.</p><h3>IPX/SPX — NOVELL’S GUILD</h3><p>Novell’s NetWare dominated enterprise file and print sharing through the 1980s and into the early 1990s. Its protocol stack — IPX at Layer 3, SPX at Layer 4 — was purpose-built for that job, and it did it well.</p><p>IPX derived network addresses partly from the MAC address of the network interface — an elegant shortcut that worked beautifully in a homogeneous LAN. No separate addressing infrastructure required. Plug in, get an address, start communicating.</p><p>SPX provided connection-oriented reliability at Layer 4, analogous to TCP — but tuned for the reliable LAN links that Novell assumed would always be present. It didn’t need TCP’s overhead because it assumed the network wasn’t hostile or unreliable. For the environment it was applied to, that assumption was reasonable.</p><p>The ceiling arrived the moment you needed to leave that environment. IPX/SPX worked beautifully in isolation — fast, reliable, and easy to manage within a single department’s network. But success carried the seeds of the problem. Other departments wanted access. Other teams wanted to share. The moment the island had to connect to another island, the foundations shifted. The service discovery mechanism that made a small Novell network sing became a broadcast burden on a large one. The addressing scheme that needed no infrastructure on a LAN needed expensive translation everywhere else. Each individual card was well made. The structure couldn’t hold its own weight.</p><p>The vendor boundary made it worse. Every heterogeneous connection — every point where Novell met DEC, or Novell met AppleTalk — required configuration and translation that grew in complexity with each crossing. The guild’s addressing scheme, so elegant inside the walls, became a liability the moment it met someone else’s village.</p><p>IPX is effectively dead in modern enterprise networks. But it is not extinct. Industrial control systems, legacy manufacturing environments, and some enterprise pockets that never fully migrated still run it. From a security standpoint: if you see IPX traffic on a modern network, it is almost certainly an anomaly. Nothing legitimate generates it without a very specific operational reason. That makes it interesting.</p><h3>DECNET — THE MOST SOPHISTICATED GUILD</h3><p>Digital Equipment Corporation’s DECnet was, by many accounts, technically superior to its contemporaries. It was a full network architecture — DECnet Phase IV supported routing, session management, and a coherent addressing model that was genuinely well-engineered.</p><p>It also did something remarkable that reveals the depth of the guild mentality: DECnet Phase IV derived the MAC address of your network interface algorithmically from your DECnet node address. It overwrote the hardware MAC. Intentionally. By design.</p><p>Think about what that tells you. DEC’s network architects were so committed to their addressing model that they assumed ownership of the hardware address layer. The NIC’s burned-in address was irrelevant — DECnet’s address was what mattered. Within a homogeneous DEC environment, this was coherent. Outside it, it was a sovereignty claim that the rest of the networking world was not going to honor.</p><p>The technique itself didn’t die with DECnet. MAC address modification remains entirely possible on modern hardware and operating systems. The difference is context. DECnet had an architectural reason — the overwrite served the addressing model. Today the legitimate cases are narrow and specific: operating system privacy features randomizing addresses to defeat tracking, hypervisors assigning synthetic addresses to virtual interfaces, occasional provisioning requirements from service providers. Outside those cases, a manually overwritten MAC address on a modern network is a question looking for an answer. The hardware address layer exists precisely to provide a stable, verifiable identity at Layer 2. Deliberately replacing it, without an operational reason that explains itself, is the kind of anomaly that warrants investigation.</p><p>DECnet is rare in the wild today. Legacy government installations, some manufacturing environments, a handful of academic sites that never fully modernized. Its presence on a network audit is a significant finding — not because DECnet itself is dangerous, but because anything running DECnet is infrastructure old enough and isolated enough that its security posture deserves scrutiny.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i_wOKg5QA16q5gKWQonA6w.png" /></figure><p><a href="https://ubritsa.com/tools/protocol-wars.html">Click to step through the Protocol Wars visualizer</a>.</p><h3>APPLETALK — THE ELEGANT GUILD</h3><p>AppleTalk is the most sympathetic of the three, and in some ways the most instructive — not because of what it was, but because of what it was trying to do.</p><p>Apple engineers in the early 1980s built something genuinely ahead of its time. Automatic address assignment without any central server — devices negotiated their own addresses on startup, a problem most protocols wouldn’t seriously tackle for another decade. Zero-configuration networking before the term existed. DECnet had touched the same instinct from a different angle — derive the address algorithmically from the node identity, remove the human from the process. AppleTalk took it further: remove the administrator entirely. Plug in, get an address, start communicating. The network figured itself out.</p><p>Zone-based naming gave human-readable organization to network resources. You didn’t browse by address — you browsed by zone, by name, by the logical geography of the network as people actually understood it. The function is directly recognizable today. DNS and domain hierarchies do the same thing at global scale — hierarchical, human-readable, navigable by name rather than number. AppleTalk zones were flat and local; the internet’s naming system is hierarchical and global. The problem they were solving was identical.</p><p>Printer sharing via LaserWriter and AppleTalk made networked printing accessible to non-technical users in a way nothing else managed at the time. In creative studios and publishing houses, it was transformative. You didn’t configure anything. You opened the Chooser, you saw the printer, you printed. That experience — browse, select, use — is what every network resource interaction aspires to now.</p><p>UPnP carried the zero-configuration device discovery idea forward — this time built on IP rather than alongside it. Within a home network’s private address space, it works as intended: printers, consoles, smart devices, and routers find and announce themselves without any manual configuration. But it kept the village’s trust assumptions — designed for a closed, friendly local network. Expose it beyond that boundary, and those assumptions meet the hostile internet with predictable results.</p><p>AppleTalk was never trying to cross the globe — it was solving the room, and it solved it well. The proof of that is UPnP. When the global protocol had won, and the world had moved to IP, someone still had to solve the same local problem AppleTalk had solved decades earlier. The need didn’t go away because the protocol did.</p><p>The home network made that need urgent in a new way. Nobody managing a home network has an IT department. No helpdesk, no network engineer, no one to assign addresses or configure services. The winners in that space were always going to be the ones who made the technology invisible — who let the network figure itself out while the person just used it. AppleTalk understood that instinct first. UPnP carried it forward. Every smart home platform competing for your living room today is still fighting the same battle AppleTalk identified in 1984 — make it easy, or lose.</p><p>That’s not a footnote to AppleTalk’s story. It’s the validation of it.</p><p>AppleTalk itself is genuinely extinct as an operational protocol. Its direct descendant is Bonjour — Apple’s modern zero-configuration networking implementation, built on open standards, designed to work within IP rather than alongside it. The ideas survived. The enclosure didn’t.</p><h3>THE ROAD BUILDERS</h3><p>While the guilds were perfecting their crafts behind their walls, a different kind of project was underway.</p><p>The ARPANET engineers — Vint Cerf, Bob Kahn, and the broader community that emerged from DARPA-funded research — were not asking how to move data efficiently between known machines on a known network. They were asking a fundamentally different question: how do you move data between any two machines, anywhere, across infrastructure you don’t own, at a scale you can’t predict, to destinations that don’t exist yet?</p><p>That question has a different shape than the one the guild engineers were answering. It requires you to make different assumptions — or rather, to make fewer assumptions, and to treat the ones you do make as potential failure points rather than reliable foundations.</p><p>The design choices that followed from that question:</p><p><strong>Best-effort delivery</strong> — don’t guarantee what you can’t control. Push reliability to the endpoints, where you can actually enforce it. Keep the network core simple and dumb.</p><p><strong>Hardware agnosticism</strong> — don’t assume what the physical layer looks like. Run on whatever is cheapest and most available, because you can’t control what infrastructure will exist at the edges of a global network.</p><p><strong>Heterogeneous routing</strong> — don’t assume you own the whole path. Assume the packet will pass through infrastructure built by people you’ve never met, running software you didn’t write, on hardware you’ve never seen. And don’t assume that infrastructure is reliable or fast. ARPANET ran on telephone lines — lossy, variable, unpredictable. Link quality and available bandwidth were unknowns at every hop. The design response was to push responsibility for completeness and integrity to the endpoints. If something arrived damaged or didn’t arrive at all, the sender and receiver would determine that — not the network.</p><p><strong>Endpoint responsibility</strong> — the network moves packets, the endpoints care about what’s in them. That boundary was driven by computational reality as much as architectural philosophy. Early network devices had limited processing capacity. Every operation performed on a packet in transit cost something. Keeping intermediate devices out of the business of reading or correcting traffic they were only supposed to forward wasn’t a principled stance — it was an engineering necessity. The privacy and security implications came much later, as a consequence of people discovering what could be done when that principle was violated.</p><p>These design choices were pragmatic responses to known engineering constraints. The overhead of end-to-end error handling was a reasonable price to pay at the endpoints — present when links failed, invisible when they didn’t. What it removed was the alternative: per-hop error correction and flow control baked into every intermediate device, the model X.25 had followed. X.25 made sense on unreliable analog telephone infrastructure, where every link needed to account for its own failures. As links improved, that per-hop complexity became dead weight — computation spent solving a problem the link no longer had. IP shed that weight deliberately. The network core stayed lean, light, and fast. The endpoints carried what they needed to carry. The result was a protocol that got faster as infrastructure improved, rather than one that stayed complicated long after the complication was necessary.</p><h3>THE UNIVERSAL INTERPRETER</h3><p>By the early 1980s, IT value was well recognized, but the sprouting of various network types was causing friction. The fragmented landscape across organizations told the same story everywhere — Novell in the finance wing, DECnet in the engineering department, AppleTalk in the design studio. Each network functioned well within its own walls. None of them were able to speak to the others. Ripping them out wasn’t an option. The investment was too large, the disruption too significant, and each network was still doing exactly what it had been bought to do. What organizations needed wasn’t a replacement for what they had. They needed something that could stand between incompatible networks and make each one intelligible to the other. They needed an interpreter.</p><p>The interpreter wasn’t born in a government laboratory or a corporate R&amp;D center. They built it at home. They ran it in the offices where two incompatible networks lived. And among its practical applications was checking whether the cats had been fed.</p><p>Sandy Lerner and Len Bosack were working at Stanford in the early 1980s — Sandy in the Graduate School of Business, Len in the Computer Science department. Two brilliant people, two incompatible networks, and a problem that sounds almost embarrassingly mundane for something that would eventually reshape the global economy: they couldn’t send each other email. The CS network and the Business School network spoke different protocols. They couldn’t see each other. The guild walls ran right through the middle of a university campus.</p><p>So they built a device that could stand at the boundary between two incompatible networks, read what arrived on one side, and forward it in a language the other side understood. Those first routers were proxy devices — they didn’t just sit between two networks, they participated in both. To each connected network, the router presented itself as a native node, speaking the local protocol fluently enough to be accepted as a legitimate participant. Neither network knew it was talking to something that also spoke a completely different language on its other interface. The interpreter didn’t just translate — it held dual citizenship.</p><p>Company legend — the kind that survives decades of retelling because it rings true — has it that they called the device the Golden Gateway, a nod to the bridge that defines the city they were working in. And Cisco? The fragment left over when San Francisco ran out of room on the nameplate.</p><p>The guild, in this case Stanford’s administration, tried to keep the interpreter. The interpreter’s builders walked away and built a company instead.</p><p>The interpreter solved the immediate problem. But it didn’t solve the underlying one. The proprietary networks kept aging. The engineers who could navigate multiple protocol stacks simultaneously — fluent in IPX here, DECnet there, AppleTalk in the design room — were specialists, and specialists are expensive. Organizations were paying premium rates just to maintain the complexity that departmental purchasing had quietly built. The multi-protocol engineer could do several things, but none of them perfectly, and all of them at a cost that kept rising.</p><p>The economic argument for standardization was building quietly beneath the technical one. One protocol. One skill set. One infrastructure to maintain. The guilds recognized it too — they began working toward common standards, reaching for true interoperability. But the ground had already shifted beneath them. And IP was the only candidate that could answer the scale questions being asked — not just connecting two networks, but connecting any network, anywhere, to any other. Slowly, without a decisive moment anyone could point to, the isolated guilds found they couldn’t compete with that. IP became the way. Not by conquest. By inevitability.</p><p>Most guilds dissolved into it. But not all of them. Some retreated into environments where IP’s profile simply didn’t fit — industrial control systems with deterministic timing requirements, specialist applications certified against specific operating system versions that couldn’t be touched, custom hardware running software that hadn’t been updated in a decade because updating it meant recertifying everything. In those places the migration calculus never resolved in IP’s favor. The systems worked. The risk of change was real. The guild didn’t die there — it became a province. And provinces, as we’ll see, have a way of outlasting the empires that forgot about them.</p><h3>HOLDOUTS AND STRAYS</h3><p>As strong as the march of IP has been, the winds of change didn’t reach everywhere. The guilds that retreated into provinces didn’t disappear — they persisted. Isolated, self-sufficient, running on infrastructure that the wider world had stopped maintaining or even remembering. The guild customs stayed local. The guild languages kept being spoken. And the wider network, now entirely focused on IP, stopped looking.</p><p>This is the security practitioner’s concern with legacy protocols. They didn’t die cleanly. They retreated.</p><p>IPX retreated into industrial control systems, where the Novell network was installed in the 1990s, worked reliably, and nobody wanted to touch it. DECnet retreated into government infrastructure and specialized manufacturing, where the cost and risk of migration never justified the effort. AppleTalk zones persisted in university print rooms and creative production houses well into the 2000s.</p><p>These systems share a critical characteristic: they are largely invisible to modern security tooling. IDS and IPS signature sets are built for the protocols that dominate modern traffic. IPX, DECnet, and AppleTalk don’t appear in those signature sets because nobody expects to see them — which is precisely why an attacker who knows they’re present can use them as lateral movement cover.</p><p>If you’re doing a network audit and you see IPX traffic, you are looking at something old enough and isolated enough that its security posture has almost certainly not kept pace with the threat landscape. That’s worth investigating on its own terms, entirely separate from whatever the traffic contains.</p><p>The guild never fully dissolved. It just moved to provinces and enclaves — small enough to be forgotten, isolated enough to be misunderstood, and invisible enough to be dangerous. They are defensive blind spots hiding in plain sight.</p><p>The guild masters were not wrong. They were precise — masterfully precise — about the problem directly in front of them. A Novell LAN in 1988 was a well-engineered thing. A DECnet installation was technically sophisticated by any measure. An AppleTalk network was genuinely easier to use than anything else available at the time.</p><p>What they couldn’t see — or chose not to see — was that the world was about to need something different. Not better shoemaking. A different way of traveling entirely, for a road that hadn’t been built yet.</p><p>Sandy Lerner and Len Bosack knew what roads needed to do. They built the first device that could use it — not because they were building the internet, but because they needed to send each other email.</p><p>IP’s designers built the road first and trusted that the destination would become clear once people started traveling.</p><p>They were right. And the guilds, for all their craft, never recovered from being right about the wrong question. Yet vestiges of their skills live on.</p><p><em>Next: Part 2 of Protocols That Refused to Die — Telnet, UUCP, Gopher, and the cleartext era. The protocols that assumed the network was friendly, and what happens when that assumption meets the modern internet.</em></p><p><em>Originally published at </em><a href="https://ubritsa.com/posts/the-guild-the-road-and-the-strays-how-ip-won-the-protocol-wars-and-what-got-left-behind/"><em>https://ubritsa.com</em></a><em> on July 23, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97155790769f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Patching the Layer 2 gap: Ethernet, RARP, Wi-Fi, VLANs, and the protocols that lost.]]></title>
            <link>https://medium.com/@goblineater/patching-the-layer-2-gap-ethernet-rarp-wi-fi-vlans-and-the-protocols-that-lost-ed6b838312bc?source=rss-cdb61da3defa------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed6b838312bc</guid>
            <dc:creator><![CDATA[Goblin Eater]]></dc:creator>
            <pubDate>Sat, 11 Jul 2026 00:00:56 GMT</pubDate>
            <atom:updated>2026-07-13T03:27:06.147Z</atom:updated>
            <content:encoded><![CDATA[<p>They say that if you don’t learn from history, then you are destined to repeat it. This week I have a companion post to <em>The Switch, the Spring, and the Spy.</em> This is a tour through layer 2 history and a look at how history has shaped today.</p><p>In that post, we covered ARP, the trust model, and the Gateway Mechanism. This post will cover how Ethernet was conceived and how competitive technologies offered more robust mechanisms for data transfer but lost. I also want to look at how the technology was adjusted and augmented by new protocols that overcame the limitations once Ethernet was pushed to and past its limits.</p><h3>Ethernet and CSMA/CD</h3><p>The ideas behind Ethernet were initially conceived in 1973. It was used in a single lab environment where it was unimaginable to have more than 255 devices connected. It used just 8-bit addressing.</p><p>Then, in 1980, it morphed more than evolved into a 48-bit addressing scheme and added the additional 2-byte EtherType space. It also settled on a 10 Mbps transmit rate. The new 2-byte EtherType field gave the frame a way to signal which upper-layer protocol the payload belonged to. This important addition recognizes that devices may be running multiple protocol stacks, and to hand off the data to the correct one, it needed some sign. Two bytes did the job.</p><p>A big part of the technology was the carry-through of CSMA-CD. Carrier Sense Multiple Access-with Collision Detect. As all machines were connected by a coaxial cable, the one wire could only be used by one machine at a time. Just like in a busy meeting room, how do the machines know which voice to listen to if more than one is speaking? CSMA-CD solved that by allowing only one device to talk. First, it listens to the wire; if it’s quiet, it can talk. All stations on the wire see this transmission, and both hold off transmitting and see if it is for them.</p><p>“But what happens if two stations start talking at the same time?” I hear you say. Just like in a meeting room, they both pause (well, not all people do, but you know what I mean), and someone will start again and gets the wire. This “listen-then-transmit-then-back-off” function is one of the things that helped Ethernet win the technology wars. In today’s world, even though we don’t use coaxial cable much at all, the same CSMA-CD function is still specified on the slower (10Mbps/100Mbps) interfaces. It was actually removed from the 10Gbps specification.</p><p>So, in the week two material, Ethernet with CSMA-CD is the wire-level protocol that is used.</p><p>I should also mention that the collision avoidance mechanism is probabilistic; collisions CAN still happen, but the probability is low. This allowed ANY station with data to send to have access to the wire to send it. This is the key function that separated it from Token Ring technology.</p><p>Before we get to Token Ring, let’s have a look at the predecessor to DHCP. That was RARP — Reverse Address Resolution Protocol.</p><p>As the name suggests, it is the REVERSE of ARP. ARP was used when a station had the destination’s IP address and needed to find its MAC address to form the Ethernet packet. RARP came into play when a host knows its own MAC address, but not its own IP Address. It would send RARP and expect a response from a service on the network giving it an IP address. What it DIDN’T do, that created the need for services such as BOOTP and eventually DHCP, was provide gateway addresses, subnet masks, and DNS server information. RARP was built for a self-contained IP subnet environment, was not routable as a Layer 2 broadcast, and created the need for a RARP service on each subnet.</p><p>You may at this point think that the underlying technologies in data transmission is now switched — but you’d be wrong. A similar operation can still be found in very popular situations today. Wireless Networking is built on CSMA-CA principles, where a radio that’s transmitting cannot detect a collision, so it employs a random back-off timer, often with RTS/CTS handshaking, and an ACK signal at the end. Wifi faced the exact collision issue as coaxial cable, but needed a fix that accommodated the half-duplex operation.</p><h3>802.11 — Wi-Fi as an L2 extension</h3><p>Wireless is still Layer 2 — it uses the same MAC addressing, same addressing scheme as Ethernet. But the medium, air (or frequencies in the air), is shared and unbounded in a way wired Ethernet isn’t.</p><p>With ethernet, and let’s go back to ethernet hubs that transmitted all traffic across all ports, anyone wanting to join the network needed to have a port (hub interface) to connect into. Without a physical connection, you didn’t participate. Wireless is different. You already have access to the radio signal by being in range. Sure, you need a WiFi interface that is turned on, but after that, you can see the WiFi signal.</p><p>In this situation, an attacker (hacker, nefarious person, whatever name you prefer) can set up another wireless access point using THE SAME NETWORK NAME, connect a traffic capture/sniffer device on the back side, allow access through the Access Point, and capture data and credentials all day long. This setup is called the Evil Twin. You THINK you’re getting to the internet through the public wifi hotspot, but you’re actually going through a listening device. This is one of the clearest examples of a broken trust boundary and can be a real sting if you are not using a VPN or newer Wifi technology that provides more protection (still not perfect, but more protection).</p><p>This operation of WiFi and the Evil Twin is the same issue that presumed trust has delivered across many players in the OSI stack. You see a service that purports to be legitimate, and have no way to verify it. This is what happens with ARP poisoning and the Gateway Mechanic (I’m your gateway to the internet, send it all to me). It’s at the same layer in the OSI stack too.</p><h3>VLANs — logical subdivision of the L2 domain</h3><p>One very cool development that happened to Layer 2 came as a result of needing to accommodate moving workers to a different location within the same building without having to re-cable to maintain their membership of a specific Layer 2 network domain.</p><p>Virtual Local Area Networks (VLANs) added a tag to Ethernet frames sent by a device that declared its membership of a specific VLAN ID. These 802.1Q tags would indicate to switches which ports they should be propagated to.</p><p>When frames needed to travel between floors, the switch would send it along a port designated as a trunk port. A Trunk port would be set up to carry ANY VLAN frame to another switch for onward delivery. In this way, each VLAN would be distributed to all the locations in a building where members of the VLAN were connected.</p><p>Implementing VLANS then meant the definition of VLANs along with their IDs, and the creation of trunks to carry each VLAN’s traffic to the distribution switches were required.</p><p><a href="https://ubritsa.com/tools/vlan-trunk-visualizer.html">Here is a VLAN Visualizer that you can use to visualize how ports and trunks are used to separate traffic.</a></p><h3>The protocols that lost — Token Ring, FDDI, Frame Relay</h3><p>I mentioned earlier that Ethernet “won” the technology battle, and touched on Token Ring. There were other contenders for the crown back in time, and they need to be talked about. They brought answers to some of Ethernet’s limitations, but did so at a cost that many saw as beyond their value.</p><p>Token Ring, as the name suggests, was built on a ring topology, where a token (the Transmit Token) was passed around. Each station would get it in turn, and if it was unused, they could attach data to it. A timer, called Token Hold Time, was there to allow the station to send multiple frames if required. This helped with throughput challenges.</p><p>A station could also employ Early Token Release. Sending Early Token Release was done immediately after sending its data around the ring, and before it had received its original data back around the ring, allowing it to remove that data. This capability was done to increase the throughput of Token Ring and avoid “dead time” where only a few stations needed to send.</p><p>The use of the transmit token made the whole “Ethernet collision” problem null and void. It COULDN’T collide. No backoffs. Just deterministic transmission.</p><p>If a station were to fail, it could be bypassed by a beaconing process that identified the failure, and the relays in the interface would effectively disconnect the host. However, if a cable was cut, or disconnected, then the ring has no way to recover.</p><p>The Ethernet vs Token Ring wars were real. Ethernet eventually won out as it was cheaper to deploy and own, and it proved to be more adaptable. Token Ring had a much greater performance under load, but its closed environment with IBM charging high royalties for NICs, MAU hardware, and cabling restrained its popularity.</p><p>Another technology that came forward at the time, and is still found in some industrial environments today, is FDDI (Fibre Distributed Data Interface). FDDI (also pronounced Fidi) ran at 100Mbps and used the token ring style of operation. It wasn’t identical, as with FDDI it used a Timed token Protocol that guaranteed stations a minimum bandwidth for synchronous, time-sensitive applications. Using a fibre-optic, dual, counter-rotating ring topology, FDDI was a strong fit for campus-wide installations. The speed, along with the fact that the fibre plant afforded greater immunity to electromagnetic interference and longer distances between stations, was a huge advantage over Token Ring and, at the time, Ethernet. The dual counter-rotating rings provided a resilience that neither Ethernet nor Token Ring possessed. In normal operation, the second (backup) ring was not used. If a cable failure occurred, the ring would automatically fold at the stations on either side and continue to operate.</p><h3>Designed Behaviors that Became Weaponized</h3><p><strong>MAC spoofing</strong></p><p>MAC spoofing, as troublesome an ability as it is today, was designed with real advantages in mind. ISPs use MAC addresses of CPE equipment to provision services. If that CPE device fails and is replaced, the MAC also changes. To simplify the connectivity and service access issues, such devices can be configured to use the previous MAC address to maintain the service access they enjoyed before the change.</p><p>Similarly, NICs were often at fault and required changing. The ability to “update” the NIC MAC address greatly eased the process. Instead of reconfiguring the application to operate with a new MAC address, the new NIC would be configured to use the previous MAC.</p><p>Other applications of changing the MAC address exist, for situations such as VM Networking and iOS and Android MAC randomization for privacy. These abilities are echoed by the old DECnet protocol of the 1980’s. DECnet would derive its MAC addresses partly from the physical NIC and from the Network Address it was assigned. This intentional algorithmic address overwriting of the MAC was a design choice built into the protocol, not a hack.</p><p>This much is to say, as hopefully you are already getting the sense of, MAC address security doesn’t deliver on the promise of the intent, or the title. If MAC addresses can be so easily changed, how much trust can be given to the mechanism?</p><p>Another technique that attackers can use is VLAN Hopping.</p><p>As discussed previously, a VLAN-tagged Ethernet frame tells the switch along which VLAN topology to send the frame. Imagine then, an Ethernet frame with a SECOND VLAN TAG inside the first. What does this then do? The switch port that receives the frame must be configured in the Default VLAN (typically VLAN 1). The switch receives the frame, which it sees belongs to VLAN 1, strips the outer VLAN frame, and forwards it to all appropriate VLAN 1 ports — trunks or interfaces. The second VLAN tag (let’s say VLAN10) travels along the trunks and reaches all nodes on the VLAN. The sender has now jumped from VLAN1 to VLAN 10.</p><p>Another attack that can be executed across VLANS is for the attacker to emulate a trunk port and look for a port in “dynamic auto” or “dynamic desirable” state. This would allow the attacker to become a member of all VLANS, as he is now on a trunk port.</p><h3>Layered Addressing</h3><p>I wanted to come back and touch on the addressing topic across multiple layers of the OSI stack at the same time. Using the metaphor of the mail system, which I have seen applied partially and poorly, I want to show how different parts of the overall Ethernet frame indicate where a packet needs to go, and hopefully where it comes from.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bOlA-ZW6qGSKjkzl.png" /></figure><p>If I were to send a letter to someone else, regardless of distance, I would need to address the envelope in the same way. Name, number (including apartment if relevant), street address, town name, zip code, and state (also analogous to European addresses with post-codes and region/state/department/county names), and country.</p><p>When dropped off at the mail carrier pickup location, the first be looked at will be one of the larger areas of coverage — which main location is this? The country is used as the first differentiator. If the country is different, the fastest path to that country is identified, and the package is routed there. If the destination is in the same country, the state is interrogated. If different, the fastest route there is identified. If the same, the zip code (post-code) is checked. The same process is used: if different from current location, forward; if the same, what’s the next smallest part of the address scheme.</p><p>It is the same for ethernet/IP/Port/session IDs. The sending station sends its frame to the mail system. The sender of a frame that has to traverse the world doesn’t even know that the address isn’t local. It’s basically the local drop-off. And the drop-off is the “mail system”. The post office is the intelligence that determines where it goes next. A local delivery van, as it is to a neighbor (Ethernet address), or to a larger sorting office as the destination is out of the zip-code coverage.</p><p>Each layer’s address information can be seen to be a different part of the mandatory addressing scheme that is used in separate parts by separate functions to route it to the destination.</p><p>But the address on the envelope doesn’t actually finish the job once it reaches the right house. If more than one person lives there, the postal service still doesn’t know who inside is supposed to open it — that’s what the name on the envelope is really doing, and it’s the same job a port number does once a frame has found its way to the correct machine. Some of the people in that house have a fixed, permanent role — whoever’s assigned to answer mail addressed a certain way is always in the same room, always doing the same job, day after day, the way port 80 always belongs to whoever’s serving web pages. Other names on an envelope are much more temporary — a visitor given a desk just long enough to finish one particular exchange, then gone. That’s the ephemeral port a client uses: not a fixture of the house, just a way to make sure the reply comes back to the right person and not to whoever else happens to be home.</p><p>Getting the letter to the right person in the right room still isn’t the end of it, either, because that person might be in the middle of several separate ongoing conversations with you at once, and somebody has to keep them straight. This is where reference numbers come in, and they’re not all the same kind of thing. A loan application number or a passport case number exists only because that one case exists — once it’s resolved, the number’s done its job and gets retired. An account number is different: it doesn’t belong to a single conversation at all; it belongs to you, and it goes on every letter you ever send that institution for as long as the relationship lasts. One’s a temporary session, the other’s a permanent identity. Penpals don’t bother with either, because two people who know each other don’t need a number to remember what they were talking about — but a mail system has no memory and no intuition, so wherever a computer stands in for the correspondent, that number has to be written down, every single time, or the thread falls apart. None of this works, of course, unless the envelope also says who it’s from. Every letter carries a return address as well as a destination, built out of the same pieces — name, street, town, code, country — just pointed the other direction, and it has to survive the whole trip unchanged right alongside the destination address, or there’d be no way to write back.</p><p>Laid out this way, the pattern across every layer is the same: a different piece of the address gets read by a different party at a different point in the journey. The country, state, and postal code get acted on progressively as the letter physically moves, one sorting decision at a time. The name on the envelope only matters once the letter has already arrived at the right building. And the reference number inside doesn’t help get the letter anywhere at all — it only means something once the right person has it in their hands and opens it.</p><p><em>Originally published at </em><a href="https://ubritsa.com/posts/patching-the-layer-2-gap-ethernet-rarp-wi-fi-vlans-and-the-protocols-that-lost/"><em>https://ubritsa.com</em></a><em> on July 11, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed6b838312bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Subnetting Is a Measurement, Not a Guess]]></title>
            <link>https://medium.com/@goblineater/subnetting-is-a-measurement-not-a-guess-59b2c648c856?source=rss-cdb61da3defa------2</link>
            <guid isPermaLink="false">https://medium.com/p/59b2c648c856</guid>
            <category><![CDATA[subnetting]]></category>
            <category><![CDATA[ipv6]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[ipv4]]></category>
            <dc:creator><![CDATA[Goblin Eater]]></dc:creator>
            <pubDate>Fri, 03 Jul 2026 00:00:22 GMT</pubDate>
            <atom:updated>2026-07-15T03:19:47.744Z</atom:updated>
            <content:encoded><![CDATA[<p>Most subnetting tutorials hand you a mask and march you through the arithmetic. That teaches the <em>mechanics</em> but hides the thing people actually get stuck on — which isn’t the math at all. It’s a category error about what kind of question subnetting actually is.</p><p>Here is the reframe this whole piece rests on:</p><ul><li>An address block has <strong>no</strong> <strong>subnetting</strong> <strong>until you give it one.</strong> 172.16.0.0/16 is not secretly eight /19s waiting to be uncovered. Before you commit a mask, the question <em>&quot;what are its subnets?&quot;</em> has no determinate answer.</li><li>In subnetting terms, the block is <strong>under-determined, not undecidable.</strong> It’s like a loaf of bread. Whole, one unit. It needs exactly one more constraint to resolve to a subnet scheme — and that constraint does not live in the address math. It doesn’t live in how big the loaf or the slices are.</li><li>The constraint comes from <strong>outside the address space: the network’s requirements.</strong> How many segments? How many sandwiches to make. How many hosts in the largest one? Those are the measurement. Bring them, and the block snaps into one determinate layout.</li><li>The classic hang-up is <strong>treating an underdetermined problem as an intractable one</strong> — staring harder at the range of possible subnet masks, when the resolution was never going to come from the possibles. It comes from asking what the network needs.</li></ul><p>Keep that in mind and the arithmetic stops being intimidating, because you’re no longer searching a space — you’re applying a requirement. Everything below is a tool for applying it cleanly.</p><h3>“But doesn’t the address already have a mask?”</h3><p>If you learned that 172.16.0.0 is &quot;a Class B, so its mask is /16,&quot; you&#39;ve met the counter-objection to everything above - and it&#39;s worth resolving, because a default is not a determination.</p><ul><li><strong>That</strong> <strong>is the</strong> <strong><em>natural mask</em></strong> (also called the default or classful mask) — a leftover from <strong>classful</strong> addressing, the original scheme where an address’s first octet implied its boundary: Class A → /8, Class B → /16, Class C → /24.</li><li><strong>In subnetting, the natural mask is a starting position, not a determination.</strong> The natural mask is where you begin if you don’t have, or decline to state, a requirement of how many subnets and how many hosts you need in them. The subnet/host boundary is parked at the leftmost point of the natural host portion, zero subnet bits. It is from here that subnet bits are borrowed, with each one doubling the number of subnetworks, and halving the number of hosts possible in each one. When a requirement asks for 2 subnets, you know you can just borrow 1 bit. If you need 4, you borrow 2 bits. A natural mask describes the absence of a choice, not the resolution of one.</li><li><strong>Modern addressing is</strong> <strong><em>classless</em></strong> <strong>(CIDR),</strong> where the prefix is mandatory and independent of the address. The prefix is the determinant of how many bits are in the network portion. Written without a prefix, 172.16.0.0 is genuinely undefined until someone attaches /16, /17, /19. The natural mask is a legacy ghost from a scheme we no longer route on, and should not be assumed based on any leading network numbers.</li><li><strong>The proof it isn’t binding: the private ranges you use daily set their own boundaries.</strong> 10.0.0.0/8 happens to match its natural /8, but 172.16.0.0&#39;s natural mask is /16 while its RFC 1918 allocation is /12, and 192.168.0.0&#39;s natural mask is /24 while its allocation is /16. Those shorter prefixes are <strong>supernets</strong>: a /12 aggregates 16 consecutive Class B networks, a /16 aggregates 256 consecutive Class C networks. The boundary was chosen by an <em>allocation requirement</em> - &quot;reserve this much private space&quot; - not inherited from the address&#39;s class. That&#39;s requirements fixing the mask, one level up.</li><li><strong>The math is the same for public space.</strong> These examples are private because that’s where you’ll actually subnet by hand — labs, enterprise internals, cloud VPCs. But nothing in the mechanics depends on it: the seesaw, the block-size shortcut, and VLSM behave identically on public allocations. In general, public-space subnetting will be rarer for you to do, but it is not different.</li><li><strong>Still worth knowing for the exam.</strong> Classful addressing is operationally deprecated — or old fashioned — but EC-Council and most cert material still test class ranges and default masks as if current. It is, therefore, important to know the natural mask as <em>examinable</em>, not as <em>how production networks decide anything</em>.</li></ul><h3>The one tool this article uses</h3><p>Everything here is explorable in the Interactive Subnet Splitter. Slide to change the mask, click a block to subdivide it, click a highlighted parent to merge it back, and toggle between IPv4 and IPv6.</p><p>Follow this link to find the <a href="https://ubritsa.com/tools/subnet-splitter.html">Interactive Subnet Splitter</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4zfYhSCCfrTMI31wmhfY8g.png" /></figure><h3>The seesaw: one rule underneath every “how many subnets / how many hosts” question</h3><p>Once you have identified your starting prefix, you have a fixed budget of bits to divide between two jobs: naming subnets and naming hosts. Every bit you move from one side to the other does two things at once.</p><ul><li><strong>More subnet bits → more subnets, fewer hosts each.</strong> Borrowing one more bit <em>doubles</em> your subnet count and <em>halves</em> the hosts per subnet.</li><li><strong>Fewer subnet bits → fewer subnets, more hosts each.</strong> The trade runs both directions, always halving one side, and doubling the other.</li><li><strong>The two formulas that answer the equal-split case question:</strong></li><li>Subnets created = 2^(bits borrowed)</li><li>Usable hosts per subnet = 2^(remaining host bits) − 2 (subtract the network and broadcast addresses)</li><li><strong>These assume a single, constant subnet size.</strong> They answer “if I cut this block into equal pieces, how many and how big?” — and nothing more.</li><li><strong>You are not creating capacity, only partitioning it.</strong> A /16 always holds a /16&#39;s worth of addresses. The seesaw decides whether you get <em>more rooms</em> or <em>bigger rooms</em> - never both.</li></ul><blockquote><strong><em>Try it:</em></strong><em> In the tool, watch “Subnets created” and “Addresses / subnet” as you drag the slider. They move in exact opposition. That opposition </em>is<em> the seesaw.</em></blockquote><p><strong>Variable Length Subnet Masking (VLSM) breaks that assumption on purpose.</strong> With variable-length subnetting there is no single “bits borrowed” and no single “hosts per subnet” — each subnet is sized independently to its own requirement. The formulas still apply <em>per block</em>, but not to the scheme as a whole. There, the governing rule isn’t a formula, it’s a constraint: the sum of your subnet sizes must fit within the parent, and every boundary must land on a multiple of its own block size.</p><h3>The shortcut practitioners actually use</h3><p>You rarely work from binary in the field. There’s a faster mental move.</p><ul><li><strong>Block size = 256 − the interesting mask octet.</strong> A /26 is mask 255.255.255.192; 256 − 192 = 64, so subnets land every 64 in the last octet: .0, .64, .128, .192. If you look at the place values of the leftmost two bits which are 128 and 64, with their possible values of .0, .64, .128, .192 then you will see how the subnets are formed.</li><li><strong>The one thing worth memorizing</strong> is the powers of two up to 2^14 (2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384). Every subnet count, host count, and block-size shortcut is a lookup in that list. This is the real prerequisite skill hiding under &quot;subnetting.&quot;</li></ul><blockquote><strong><em>Try it:</em></strong><em> The tool’s “Step between subnets” readout shows this directly — e.g. </em><em>+32 in octet 3 for a </em><em>/19. That number is the shortcut, surfaced.</em></blockquote><h3>Two kinds of split: equal-length and VLSM</h3><p>This is the distinction most learners never have named for them, and it’s the one that matters most in real design.</p><ul><li><strong>Fixed-length subnetting</strong> cuts the parent into equal pieces — eight /19s, all the same size. Simple, and correct when your segments are all roughly the same size. It&#39;s the older, pre-CIDR habit.</li><li><strong>VLSM (Variable-Length Subnet Masking)</strong> cuts pieces of <em>different</em> sizes under one parent — a /17 beside a /20 beside a /24, each sized to a specific need. This is standard practice, not a workaround.</li><li><strong>The rule that keeps VLSM valid:</strong> every subnet boundary must fall on a multiple of its own block size, and no two subnets may claim overlapping addresses. A /18 (block size 64) may start only at 0, 64, 128, 192 - never at 96, 32, or anything else.</li><li><strong>Splitting is recursive, and it conserves.</strong> Cutting one block in half never touches its siblings — you’re only ever subdividing a block’s own inherited range. The total address count of the parent never changes; you’re just moving internal boundaries. And don’t forget that each subnet loses 2 extra addresses, 1 for Network address, and 1 for the broadcast address. (There is an exception: when you have a point to point link (/31 ) and /32 for a single host route.</li></ul><blockquote><strong><em>Try it:</em></strong><em> In the tool, click a single block to split just that one. Split some blocks deeper than others and you’ve hand-built a VLSM layout — unequal sizes under one parent. The readouts switch to a “size mix” tally and show how much address space each split costs you. You can view it in either Tree or Bar mode.</em></blockquote><h3>Biggest first — the habit that prevents a dead end</h3><ul><li><strong>Allocate your largest requirement first, then subdivide the remainder.</strong> Do it in the other order and you can strand yourself: plenty of total address space left, but no <em>contiguous, correctly-aligned</em> block big enough for the large requirement.</li><li><strong>This is an alignment problem, not a shortage problem.</strong> The addresses exist; they just don’t line up on the power-of-two boundary a large block needs. “Biggest first” guarantees the aligned space is still there when you need it.</li><li><strong>Which end you start from doesn’t matter.</strong> Low half or high half of the parent are mechanically identical. Documentation tends to put the big block low purely for readability — this is more of a convention, not requirement.</li></ul><h3>Two ways to see the same scheme</h3><p>A subnetting layout can be drawn more than one way, and the two views answer different questions. The Splitter offers both.</p><ul><li><strong>The bar view</strong> shows <em>relative size</em> — each subnet’s width is proportional to its address count. Good for “how big is this piece compared to that one.” But as splits get deep and uneven, it collapses into slivers and loses the structure.</li><li><strong>The tree view</strong> shows <em>lineage</em> — each split is one node branching into two halves, so the diagram literally is the subdivision history. Depth equals borrowed bits: a /19 sits three levels below a /16, which is <em>why</em> there are 2³ = 8 of them.</li><li><strong>VLSM is legible in the tree in a way it isn’t in the bar.</strong> Uneven splitting makes the tree lopsided — deep branches reach further down while untouched blocks stop higher up. That asymmetry is exactly the information a flat bar destroys.</li></ul><blockquote><strong><em>Try it:</em></strong><em> Build an uneven split, then toggle Bar ↔ Tree. Same underlying scheme, two renderings — which is the whole point. (If that “same object, different facet” feeling sounds familiar, it’s the same idea I’ll build the CyberDiamond tool around.)</em></blockquote><h3>IPv4 vs IPv6: same math, opposite motivation</h3><p>Here’s where “what’s the same and what’s different” pays off. The <em>binary mechanics</em> of halving a block are identical in both protocols. The <em>reason you’re doing it</em> is not.</p><ul><li><strong>IPv4 subnetting is an exercise in conservation.</strong> Addresses are scarce, so you ration every bit. VLSM, “biggest first,” and the block-size shortcut are all tools for not wasting a finite resource. The seesaw is a live constraint you optimize against.</li><li><strong>IPv6 subnetting is an exercise in cartography.</strong> The host side is conventionally frozen at — a single LAN segment — because Stateless Address Autoconfiguration (SLAAC) is built around a 64-bit interface identifier. One end of the seesaw is bolted down.</li><li><strong>So in IPv6 you don’t count hosts, you design hierarchy.</strong> A /64 holds roughly 2^64 addresses (~1.8 × 10^19); you will never fill one. Your subnet bits go toward <em>structure</em> - site, building, VLAN, security zone - not host capacity.</li><li><strong>The scarcity mindset is the trap moving from v4 to v6.</strong> “Subnet only what you need” is v4 survival instinct. In v6 it just makes your addressing plan harder to read for no benefit.</li></ul><blockquote><strong><em>Try it:</em></strong><em> Toggle the tool to IPv6. The slider stops at </em><em>/64 on purpose, and the notes explain why. You&#39;re sizing structure, not hosts.</em></blockquote><h3>The real lesson</h3><ul><li><strong>Subnetting is not a search problem.</strong> The answer isn’t hidden somewhere in the space of possible masks.</li><li><strong>It’s a measurement problem.</strong> The requirement — how many segments, how large — is what collapses an underdetermined block into one determinate scheme.</li><li><strong>Stop asking “how could I subnet this?”</strong> With no requirement attached, that question is correctly unanswerable. Ask “what does this network need?” and the mask follows.</li><li><strong>The address space never chooses for you.</strong> You choose, using a constraint you bring from outside it. That’s not a limitation of subnetting — it’s the entire job.</li></ul><p><em>Originally published at </em><a href="https://ubritsa.com/posts/subnetting-is-a-measurement-not-a-guess/"><em>https://ubritsa.com</em></a><em> on July 3, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59b2c648c856" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>