<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Security on TurboVision</title>
    <link>https://mobile.dev.turbovision.in6-addr.net/tags/security/</link>
    <description>Recent content in Security on TurboVision</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 27 Nov 2026 12:54:29 +0000</lastBuildDate>
    <atom:link href="https://mobile.dev.turbovision.in6-addr.net/tags/security/index.xml" rel="self" type="application/rss&#43;xml" />
    
    
    
    <item><title>ssh2shell</title>
      <link>https://mobile.dev.turbovision.in6-addr.net/articles/security/ssh2shell-controlmaster-considered-harmful/</link>
      <pubDate>Thu, 26 Nov 2026 00:00:00 +0000</pubDate>
      <lastBuildDate>Thu, 26 Nov 2026 00:00:00 +0000</lastBuildDate>
      <guid>https://mobile.dev.turbovision.in6-addr.net/articles/security/ssh2shell-controlmaster-considered-harmful/</guid>
      <description>&lt;p class=&#34;article-subtitle&#34;&gt;ControlMaster considered harmful&lt;/p&gt;&lt;p&gt;&lt;em&gt;How an innocent performance optimization turns an authenticated SSH connection into a reusable local security capability.&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&#34;it-starts-with-a-performance-problem&#34;&gt;It starts with a performance problem&lt;/h2&gt;
&lt;p&gt;Anyone who automates infrastructure over SSH eventually encounters the same problem: opening connections is expensive. Running a single remote command may take less time than establishing the connection required to execute it. Multiply that overhead by hundreds of commands, dozens of hosts, repeated file transfers or an entire deployment pipeline, and the temptation to optimize becomes obvious.&lt;/p&gt;
&lt;p&gt;Every new SSH connection normally requires a TCP connection, SSH protocol negotiation, cryptographic key exchange, server identity verification and user authentication. On a high-latency network, the round trips alone can be significant. Add a hardware-backed key or an interactive second factor and the cost is no longer merely computational. It becomes operational.&lt;/p&gt;
&lt;p&gt;OpenSSH offers a rather elegant solution: &lt;code&gt;ControlMaster&lt;/code&gt;. Authenticate once, keep the connection open and reuse it for subsequent invocations of &lt;code&gt;ssh&lt;/code&gt;, &lt;code&gt;scp&lt;/code&gt; or &lt;code&gt;sftp&lt;/code&gt; where supported.&lt;/p&gt;
&lt;p&gt;It works remarkably well. And that is precisely why it deserves closer scrutiny.&lt;/p&gt;
&lt;p&gt;To understand what we are optimizing away, we first need to look at what happens during authentication — and what remains after it has finished.&lt;/p&gt;
&lt;h2 id=&#34;a-key-is-more-than-a-way-to-log-in&#34;&gt;A key is more than a way to log in&lt;/h2&gt;
&lt;p&gt;Public-key authentication establishes that a client possesses the private key corresponding to a public key accepted by the server. The private key itself does not need to leave the client; it is used to produce a cryptographic signature.&lt;/p&gt;
&lt;p&gt;On a typical OpenSSH server, an administrator can authorize a public key through &lt;code&gt;authorized_keys&lt;/code&gt;. But an entry in this file can represent much more than permission to log in. It can also impose restrictions on what that authenticated connection may do.&lt;/p&gt;
&lt;p&gt;Consider a server with a dedicated automation account. Two independent jobs use the same Unix account, but they have different keys and different responsibilities. One collects status information; the other deploys software.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;restrict,command=&amp;#34;/usr/local/bin/read-status&amp;#34; ssh-ed25519 AAAA... status-key
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;restrict,command=&amp;#34;/usr/local/bin/deploy&amp;#34; ssh-ed25519 AAAA... deploy-key&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;The key material is abbreviated here. The significant part is the &lt;code&gt;command&lt;/code&gt; option: instead of allowing the client to select an arbitrary command, the server runs the designated command when a session requests execution. The &lt;code&gt;restrict&lt;/code&gt; option also disables several facilities, including forwarding and PTY allocation.&lt;/p&gt;
&lt;p&gt;Assuming the command implementations are themselves secure, this is a useful least-privilege design. The status job does not need deployment authority, even though both jobs operate through the same remote account.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/articles/security/ssh2shell-controlmaster-considered-harmful/ssh2shell-controlmaster-considered-harmful-separate-keys.svg&#34;&gt;&lt;img src=&#34;https://mobile.dev.turbovision.in6-addr.net/articles/security/ssh2shell-controlmaster-considered-harmful/ssh2shell-controlmaster-considered-harmful-separate-keys.png&#34; alt=&#34;Separate keys and forced commands&#34;&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;details class=&#34;mermaid-source&#34;&gt;
  &lt;summary class=&#34;mermaid-source-summary&#34;&gt;Diagram source (Mermaid)&lt;/summary&gt;
  &lt;pre&gt;&lt;code class=&#34;language-mermaid&#34;&gt;flowchart LR
    A[Status job] --&amp;amp;gt;|Status key| S[SSH authentication A]
    B[Deployment job] --&amp;amp;gt;|Deploy key| T[SSH authentication B]
    S --&amp;amp;gt; U[read-status]
    T --&amp;amp;gt; V[deploy]
    subgraph Server[Same remote Unix account]
        S
        T
        U
        V
    end&lt;/code&gt;&lt;/pre&gt;
&lt;/details&gt;
&lt;p&gt;The important distinction is that the authorization context is derived from the credential actually accepted during authentication. The username alone does not describe the authority of an SSH connection.&lt;/p&gt;
&lt;p&gt;So far, everything behaves as intended.&lt;/p&gt;
&lt;h2 id=&#34;the-optimization&#34;&gt;The optimization&lt;/h2&gt;
&lt;p&gt;Now imagine that these jobs become part of a larger automation system. They perform repeated SSH invocations against the same host, and the accumulated connection overhead becomes noticeable.&lt;/p&gt;
&lt;p&gt;The administrator adds a familiar configuration:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-sshconfig&#34; data-lang=&#34;sshconfig&#34;&gt;Host *
    ControlMaster auto
    ControlPath ~/.ssh/cm-%C
    ControlPersist 10m&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This deliberately broad configuration illustrates the problem; it is not a recommended default.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ControlMaster&lt;/code&gt; enables connection sharing. &lt;code&gt;ControlPath&lt;/code&gt; identifies the local control socket. &lt;code&gt;ControlPersist&lt;/code&gt; allows the master to survive the original client session; here, it can remain alive for ten minutes of inactivity.&lt;/p&gt;
&lt;p&gt;The first invocation establishes an ordinary SSH connection and creates a local Unix-domain control socket. Later invocations can contact the master through that socket. The master opens additional logical SSH channels over the existing network connection.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/articles/security/ssh2shell-controlmaster-considered-harmful/ssh2shell-controlmaster-considered-harmful-multiplexing.svg&#34;&gt;&lt;img src=&#34;https://mobile.dev.turbovision.in6-addr.net/articles/security/ssh2shell-controlmaster-considered-harmful/ssh2shell-controlmaster-considered-harmful-multiplexing.png&#34; alt=&#34;ControlMaster channel multiplexing&#34;&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;details class=&#34;mermaid-source&#34;&gt;
  &lt;summary class=&#34;mermaid-source-summary&#34;&gt;Diagram source (Mermaid)&lt;/summary&gt;
  &lt;pre&gt;&lt;code class=&#34;language-mermaid&#34;&gt;sequenceDiagram
    participant A as First SSH client / master
    participant S as SSH server
    participant B as Second SSH client
    participant C as Third SSH client
    A-&amp;amp;gt;&amp;amp;gt;S: TCP connection and SSH key exchange
    A-&amp;amp;gt;&amp;amp;gt;S: User authentication
    S--&amp;amp;gt;&amp;amp;gt;A: Authentication successful
    A-&amp;amp;gt;&amp;amp;gt;S: Open session channel 1
    B-&amp;amp;gt;&amp;amp;gt;A: Local control socket request
    A-&amp;amp;gt;&amp;amp;gt;S: Open session channel 2
    C-&amp;amp;gt;&amp;amp;gt;A: Local control socket request
    A-&amp;amp;gt;&amp;amp;gt;S: Open session channel 3
    Note over A,S: One authenticated SSH connection&lt;/code&gt;&lt;/pre&gt;
&lt;/details&gt;
&lt;p&gt;There is nothing inherently suspicious about this. SSH was designed to carry multiple channels over one authenticated connection. Multiplexing is not a workaround for the protocol; it uses the protocol as intended.&lt;/p&gt;
&lt;p&gt;But look carefully at the diagram. What happened to authentication for the second and third invocations?&lt;/p&gt;
&lt;p&gt;It disappeared.&lt;/p&gt;
&lt;p&gt;That is the source of the performance improvement. It is also the source of the security problem.&lt;/p&gt;
&lt;h2 id=&#34;when-a-different-key-makes-no-difference&#34;&gt;When a different key makes no difference&lt;/h2&gt;
&lt;p&gt;Return to our two automation jobs. Suppose the deployment job runs first and establishes a master connection using its deployment key. A little later, the status job invokes SSH with its own, deliberately restricted identity.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;ssh -i ~/.ssh/deploy-key automation@server.example.com
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;ssh -i ~/.ssh/status-key automation@server.example.com&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Assume the first invocation successfully authenticates with the deployment key, and the second resolves to the same available control socket. Under those conditions, the second invocation does not authenticate with the status key at all.&lt;/p&gt;
&lt;p&gt;It contacts the existing master. The server receives a new channel request on the connection that was authenticated with the deployment key. The deployment forced command remains applicable to that channel.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/articles/security/ssh2shell-controlmaster-considered-harmful/ssh2shell-controlmaster-considered-harmful-different-key.svg&#34;&gt;&lt;img src=&#34;https://mobile.dev.turbovision.in6-addr.net/articles/security/ssh2shell-controlmaster-considered-harmful/ssh2shell-controlmaster-considered-harmful-different-key.png&#34; alt=&#34;Reusing an existing master bypasses the second key&#34;&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;details class=&#34;mermaid-source&#34;&gt;
  &lt;summary class=&#34;mermaid-source-summary&#34;&gt;Diagram source (Mermaid)&lt;/summary&gt;
  &lt;pre&gt;&lt;code class=&#34;language-mermaid&#34;&gt;flowchart LR
    A[Deployment job] --&amp;amp;gt;|Deploy key authenticated| M[SSH master]
    B[Status job] --&amp;amp;gt;|Local socket: new session| M
    M ==&amp;amp;gt;|Existing deployment-authorized connection| S[sshd]
    S --&amp;amp;gt; D[deploy forced command]
    B -.-&amp;amp;gt;|Status key never presented| K[Status identity]&lt;/code&gt;&lt;/pre&gt;
&lt;/details&gt;
&lt;p&gt;Specifying a different &lt;code&gt;IdentityFile&lt;/code&gt;, using &lt;code&gt;-i&lt;/code&gt;, or enabling &lt;code&gt;IdentitiesOnly&lt;/code&gt; does not change this if the existing master is reused successfully. These settings influence authentication when authentication actually takes place.&lt;/p&gt;
&lt;p&gt;Reverse the order and the deployment job may instead receive the status job&amp;rsquo;s restricted execution environment. The outcome becomes dependent on which job happened to establish the connection first. In a concurrent automation environment, that may be a race rather than a deliberate decision.&lt;/p&gt;
&lt;p&gt;The server has not ignored either key&amp;rsquo;s restrictions. It has faithfully enforced the restrictions of the only key that was used to authenticate. The second key never entered the decision.&lt;/p&gt;
&lt;p&gt;This is not an unconditional privilege escalation: a restricted master remains restricted. But a less-privileged job can inherit a more-privileged master&amp;rsquo;s authority, or a privileged job can accidentally inherit a restricted one. In either direction, the intended separation between credentials has disappeared at the client.&lt;/p&gt;
&lt;h2 id=&#34;surely-ssh-certificates-solve-this&#34;&gt;Surely SSH certificates solve this?&lt;/h2&gt;
&lt;p&gt;At this point, an administrator might reasonably turn to SSH certificates. Instead of distributing long-lived public-key authorizations to every server, an organization can establish a trusted certificate authority and issue short-lived user certificates.&lt;/p&gt;
&lt;p&gt;Certificates can describe principals, validity intervals, critical options such as &lt;code&gt;force-command&lt;/code&gt; and &lt;code&gt;source-address&lt;/code&gt;, and extensions governing access to facilities such as port forwarding or PTYs. They provide a powerful mechanism for expressing narrowly scoped, temporary authorization.&lt;/p&gt;
&lt;p&gt;Imagine that our deployment job receives a certificate valid for five minutes. The status job receives another certificate, with a different forced command and a more restrictive permission set.&lt;/p&gt;
&lt;p&gt;The same problem returns. If the status job reuses the deployment master, its certificate is never offered to the server. Its principals, validity interval and restrictions do not participate in authorization. The original connection&amp;rsquo;s authentication-derived restrictions still apply.&lt;/p&gt;
&lt;p&gt;And there is another consequence: the five-minute validity of the deployment certificate does not impose a five-minute lifetime on an already authenticated SSH connection.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/articles/security/ssh2shell-controlmaster-considered-harmful/ssh2shell-controlmaster-considered-harmful-certificates.svg&#34;&gt;&lt;img src=&#34;https://mobile.dev.turbovision.in6-addr.net/articles/security/ssh2shell-controlmaster-considered-harmful/ssh2shell-controlmaster-considered-harmful-certificates.png&#34; alt=&#34;Multiplexed channels outlive a short-lived SSH certificate&#34;&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;details class=&#34;mermaid-source&#34;&gt;
  &lt;summary class=&#34;mermaid-source-summary&#34;&gt;Diagram source (Mermaid)&lt;/summary&gt;
  &lt;pre&gt;&lt;code class=&#34;language-mermaid&#34;&gt;sequenceDiagram
    participant C as Client / master
    participant S as SSH server
    participant J as Later local job
    C-&amp;amp;gt;&amp;amp;gt;S: Authenticate with short-lived certificate
    S--&amp;amp;gt;&amp;amp;gt;C: Accepted while certificate is valid
    Note over C,S: Authenticated connection remains open
    Note over C,S: Certificate expires
    J-&amp;amp;gt;&amp;amp;gt;C: Request another session via socket
    C-&amp;amp;gt;&amp;amp;gt;S: Open new channel
    S--&amp;amp;gt;&amp;amp;gt;C: Channel accepted if existing policy allows
    Note over C,S: No new certificate validation&lt;/code&gt;&lt;/pre&gt;
&lt;/details&gt;
&lt;p&gt;Certificate expiration controls when a credential may be accepted for authentication. It is not, by itself, a connection termination mechanism. Revoking a credential similarly prevents future authentication when the revocation is enforced; it does not automatically tear down existing connections.&lt;/p&gt;
&lt;p&gt;Short-lived certificates are still valuable. They reduce the opportunity to establish new connections with compromised credentials. But the lifetime of an authenticated connection is a separate security parameter, and it needs a separate policy.&lt;/p&gt;
&lt;h2 id=&#34;surely-mfa-solves-this&#34;&gt;Surely MFA solves this?&lt;/h2&gt;
&lt;p&gt;Consider an operator who uses a hardware security key and a second authentication factor to access production infrastructure. Private key material is protected, and authentication requires deliberate user interaction. The operator may even remove the hardware token immediately after logging in.&lt;/p&gt;
&lt;p&gt;The authentication has already happened.&lt;/p&gt;
&lt;p&gt;When another local application uses the control socket, there is no second public-key authentication and no additional MFA challenge. Nothing in ordinary SSH multiplexing asks the server to verify that the operator has approved this new invocation.&lt;/p&gt;
&lt;p&gt;MFA has not been defeated cryptographically. It has done its job. The authenticated connection is the result of that job, and the control socket provides access to the result.&lt;/p&gt;
&lt;p&gt;This distinction matters because protecting a credential and protecting an authenticated session are different problems. A system can be excellent at the former while being dangerously permissive about the latter.&lt;/p&gt;
&lt;h2 id=&#34;the-socket-becomes-the-credential-like-object&#34;&gt;The socket becomes the credential-like object&lt;/h2&gt;
&lt;p&gt;Until now, our examples have involved legitimate jobs accidentally sharing an authentication context. But the next question follows naturally: what prevents an application that is not legitimate from using the same socket?&lt;/p&gt;
&lt;p&gt;OpenSSH&amp;rsquo;s local multiplexing interface is protected by operating-system mechanisms. On Unix-like systems, filesystem access controls and local peer-identity checks are relevant safeguards. The master also needs to be protected against process manipulation, memory access and interference.&lt;/p&gt;
&lt;p&gt;These mechanisms are meaningful. An arbitrary unprivileged user does not automatically gain access to another user&amp;rsquo;s master merely by learning its socket path. But applications running under the same local identity are not necessarily isolated from one another by ordinary Unix discretionary access controls.&lt;/p&gt;
&lt;p&gt;If an untrusted process can reach the control interface and satisfy its local access checks, it may request additional remote sessions or other operations permitted by the existing connection. It does not need to possess the original private key, obtain a new certificate or complete a fresh MFA challenge. A forced command remains a forced command; a broadly authorized administrative connection remains broadly authorized.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/articles/security/ssh2shell-controlmaster-considered-harmful/ssh2shell-controlmaster-considered-harmful-socket-capability.svg&#34;&gt;&lt;img src=&#34;https://mobile.dev.turbovision.in6-addr.net/articles/security/ssh2shell-controlmaster-considered-harmful/ssh2shell-controlmaster-considered-harmful-socket-capability.png&#34; alt=&#34;Local control socket as a reusable capability&#34;&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;details class=&#34;mermaid-source&#34;&gt;
  &lt;summary class=&#34;mermaid-source-summary&#34;&gt;Diagram source (Mermaid)&lt;/summary&gt;
  &lt;pre&gt;&lt;code class=&#34;language-mermaid&#34;&gt;flowchart LR
    subgraph Client[Client operating system]
        A[Legitimate operator] --&amp;amp;gt; M[SSH master process]
        X[Compromised local application] --&amp;amp;gt; G{Local access controls}
        G --&amp;amp;gt;|Access permitted| U[Control socket]
        U --&amp;amp;gt; M
        G --&amp;amp;gt;|Access denied| N[Blocked]
    end
    M ==&amp;amp;gt;|Authenticated transport| S[Remote SSH server]
    S --&amp;amp;gt; P[Existing authorization context]&lt;/code&gt;&lt;/pre&gt;
&lt;/details&gt;
&lt;p&gt;From the server&amp;rsquo;s perspective, these channel requests arrive over an already trusted connection. SSH does not inherently communicate which local application initiated them or whether that application represents a fresh decision by the human operator.&lt;/p&gt;
&lt;p&gt;The control socket is therefore best understood as a local, credential-like capability. Not a private key, not a portable bearer token, but an interface to live authenticated authority. Its usefulness depends on the master remaining alive and on the caller satisfying local access controls.&lt;/p&gt;
&lt;h2 id=&#34;the-workstation-is-now-part-of-the-authorization-model&#34;&gt;The workstation is now part of the authorization model&lt;/h2&gt;
&lt;p&gt;Suppose the operator&amp;rsquo;s workstation is also used for email, web browsing, development and everyday office work. An advertising component on a website exploits a browser vulnerability. A malicious dependency executes during a build. An extension or desktop application is compromised.&lt;/p&gt;
&lt;p&gt;A browser exploit alone does not necessarily provide access to an SSH socket. The browser sandbox, operating-system isolation and privileges of the compromised process determine what is reachable. But if the compromise reaches a context that can use the control interface, the attacker can inherit the remote authority of the master.&lt;/p&gt;
&lt;p&gt;The operator may have a hardware-protected private key, short-lived certificates and strong MFA. None of these mechanisms independently blocks reuse of the already authenticated connection.&lt;/p&gt;
&lt;p&gt;This is not a Linux-versus-Windows argument. The relevant question is what isolation the actual SSH client environment provides. Native Win32-OpenSSH has historically lacked ControlMaster support, so this particular Unix-socket scenario should not be attributed to every Windows SSH installation. A Linux client running under WSL, inside a virtual machine or in another environment supporting multiplexing requires an assessment of that environment&amp;rsquo;s actual boundaries and host integration.&lt;/p&gt;
&lt;p&gt;An administrator cannot simply assume that every process running in a workstation session is equally trustworthy. Yet an accessible multiplexing socket can make that assumption part of the remote infrastructure&amp;rsquo;s effective security model.&lt;/p&gt;
&lt;h2 id=&#34;ci-pipelines-different-jobs-one-local-identity&#34;&gt;CI pipelines: different jobs, one local identity&lt;/h2&gt;
&lt;p&gt;A shared CI runner makes this problem particularly visible. Independent jobs may run under the same service account, share a home directory, inherit the same SSH configuration or reuse a persistent worker. Each job may receive its own credentials from a secrets manager, creating the impression of strong separation.&lt;/p&gt;
&lt;p&gt;But what happens when a privileged deployment job leaves a master running and a different job can access its socket?&lt;/p&gt;
&lt;p&gt;The second job does not need to recover the deployment secret. The authentication result is already present on the worker. If the local identity, socket visibility and master access checks allow reuse, the job may inherit the deployment connection&amp;rsquo;s authority.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/articles/security/ssh2shell-controlmaster-considered-harmful/ssh2shell-controlmaster-considered-harmful-ci-worker.svg&#34;&gt;&lt;img src=&#34;https://mobile.dev.turbovision.in6-addr.net/articles/security/ssh2shell-controlmaster-considered-harmful/ssh2shell-controlmaster-considered-harmful-ci-worker.png&#34; alt=&#34;Shared CI worker control socket reuse&#34;&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;details class=&#34;mermaid-source&#34;&gt;
  &lt;summary class=&#34;mermaid-source-summary&#34;&gt;Diagram source (Mermaid)&lt;/summary&gt;
  &lt;pre&gt;&lt;code class=&#34;language-mermaid&#34;&gt;flowchart TD
    A[Trusted deployment job] --&amp;amp;gt;|Privileged authentication| M[Persistent SSH master]
    B[Less-trusted CI job] --&amp;amp;gt;|Same UID and reachable socket| U[Shared control socket]
    U --&amp;amp;gt; M
    M ==&amp;amp;gt;|Existing authorized connection| P[Production server]
    subgraph Runner[Shared CI worker]
        A
        B
        U
        M
    end&lt;/code&gt;&lt;/pre&gt;
&lt;/details&gt;
&lt;p&gt;Containerization can provide a real boundary here, but only to the extent that it actually isolates the relevant resources. A container with no access to the socket or master process cannot simply reuse the connection because it happens to run a similarly named user. User namespaces, mounts, process isolation and host security policy all matter.&lt;/p&gt;
&lt;p&gt;Conversely, a shared socket directory, an unnecessarily exposed host filesystem or a container escape that grants sufficient host access can undermine that separation. A container escape is already a serious incident; a surviving privileged SSH master can expand its impact from the runner into remote infrastructure.&lt;/p&gt;
&lt;p&gt;Deleting the job&amp;rsquo;s private key or allowing its certificate to expire at the end of a pipeline does not necessarily clean up a surviving master process. Credential cleanup and connection cleanup are different operations.&lt;/p&gt;
&lt;h2 id=&#34;the-feature-selects-for-a-particular-kind-of-user&#34;&gt;The feature selects for a particular kind of user&lt;/h2&gt;
&lt;p&gt;There is an uncomfortable asymmetry in who is likely to encounter this problem.&lt;/p&gt;
&lt;p&gt;An occasional SSH user may never enable multiplexing. OpenSSH does not enable &lt;code&gt;ControlMaster&lt;/code&gt; by default, and someone connecting to a single machine occasionally has little reason to change that.&lt;/p&gt;
&lt;p&gt;The users with a stronger incentive are experienced operators: infrastructure engineers, system administrators and automation developers. They understand that connection establishment costs time. They maintain scripts, orchestration systems and pipelines. They may work across substantial environments, using multiple identities, delegated credentials and production access.&lt;/p&gt;
&lt;p&gt;These are precisely the situations where preserving authorization boundaries matters most.&lt;/p&gt;
&lt;p&gt;This is a risk profile, not a statistical claim about who actually enables the feature. The point is structural: the operational incentives for multiplexing can coincide with broad remote authority, complex trust relationships and a large potential blast radius.&lt;/p&gt;
&lt;p&gt;A performance optimization adopted by technically experienced users can quietly undermine the very least-privilege design those users have put in place.&lt;/p&gt;
&lt;h2 id=&#34;making-the-optimization-explicit&#34;&gt;Making the optimization explicit&lt;/h2&gt;
&lt;p&gt;There are circumstances in which multiplexing is a reasonable trade-off. A dedicated, isolated automation worker performing many operations within one well-defined authorization context is a different proposition from a general-purpose workstation sharing a global socket namespace.&lt;/p&gt;
&lt;p&gt;The first rule is to separate masters by authorization context, not merely by network destination. OpenSSH&amp;rsquo;s &lt;code&gt;%C&lt;/code&gt; token identifies connection parameters; it does not encode the selected private key, certificate restrictions or MFA policy. Separate aliases with distinct control paths can prevent accidental sharing:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-sshconfig&#34; data-lang=&#34;sshconfig&#34;&gt;Host production-status
    HostName server.example.com
    User automation
    IdentityFile ~/.ssh/status-key
    IdentitiesOnly yes
    ControlMaster auto
    ControlPath ~/.ssh/control/status-%C
    ControlPersist 30s

Host production-deploy
    HostName server.example.com
    User automation
    IdentityFile ~/.ssh/deploy-key
    IdentitiesOnly yes
    ControlMaster no
    ControlPath none&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The control directory should be private to the intended local identity, for example mode &lt;code&gt;0700&lt;/code&gt; on a Unix-like system. Distinct paths prevent accidental cross-identity reuse; they do not isolate mutually untrusted applications running under the same UID. Nor does a fixed alias distinguish successive certificates with changed authority. Such changes require a fresh connection or a genuinely separate master lifecycle.&lt;/p&gt;
&lt;p&gt;For operations that must authenticate independently, explicitly disable socket reuse with &lt;code&gt;ControlPath none&lt;/code&gt;. Setting &lt;code&gt;ControlMaster no&lt;/code&gt; alone is not sufficient: a client may still use an existing master through a configured control path.&lt;/p&gt;
&lt;p&gt;When persistence is justified, limit its duration and terminate the master explicitly when its work is complete. OpenSSH provides &lt;code&gt;ssh -O exit &amp;lt;host-alias&amp;gt;&lt;/code&gt; for that purpose; terminating the master also interrupts its active multiplexed sessions. A &lt;code&gt;ControlPersist&lt;/code&gt; duration is an idle timeout, not an absolute lifetime, so it cannot enforce a hard authorization deadline by itself.&lt;/p&gt;
&lt;p&gt;For shared runners, isolate jobs through distinct local identities or appropriately isolated execution environments. For privileged administrative access, consider dedicated workstations or stronger application isolation. Server-side forced commands, forwarding restrictions and session limits remain valuable. &lt;code&gt;MaxSessions 1&lt;/code&gt; can prevent multiple simultaneous session channels, but it does not prevent sequential reuse and is not a per-invocation authentication policy. Server-side idle and channel timeouts can reduce exposure, but a hard access deadline requires connection lifecycle enforcement rather than merely credential expiration.&lt;/p&gt;
&lt;p&gt;These measures address different risks. Socket naming prevents accidental credential mixing. OS isolation prevents unauthorized local reuse. Connection termination limits the lifetime of the delegated authority. None substitutes for the others.&lt;/p&gt;
&lt;h2 id=&#34;the-safe-is-still-open&#34;&gt;The safe is still open&lt;/h2&gt;
&lt;p&gt;Imagine a gold safe protected by a sophisticated lock. Opening it requires a physical key, a PIN and perhaps a second person&amp;rsquo;s approval. The key is carefully protected, the PIN is never stored and permission to open the safe expires after a few minutes.&lt;/p&gt;
&lt;p&gt;The administrator opens the safe, removes the key and walks away — leaving the door open so that the next operation will be faster.&lt;/p&gt;
&lt;p&gt;The analogy is not perfect: an SSH master still enforces its original authorization restrictions, and the control socket has local access checks. But the essential distinction holds. Protecting the key that opens the safe is not the same as protecting the contents once it is open.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ControlMaster&lt;/code&gt; deliberately preserves the result of authentication. &lt;code&gt;ControlPersist&lt;/code&gt; can preserve it even after the operator believes the original session is finished. Together, they can leave live remote authority accessible to other local processes without another authentication ceremony.&lt;/p&gt;
&lt;p&gt;The criticism of OpenSSH is not that multiplexing violates the SSH protocol, nor that it should never have been implemented. It is that the feature is presented primarily as a connection-sharing optimization, while its security consequences are less obvious than its performance benefits. A configuration can look like a harmless caching decision while silently changing which credentials are consulted and which local processes can exercise remote authority.&lt;/p&gt;
&lt;p&gt;A clearer security contract would make this explicit: the connection cache is not merely caching connectivity. It is preserving authenticated authority. Reusing a connection means reusing the authorization context that came with it, even when a later invocation appears to select a different identity.&lt;/p&gt;
&lt;p&gt;The responsibility ultimately lies with the administrator who chooses to enable it. The assumption that the local client is secure must be treated as a security requirement, not as an unexamined convenience. The socket and master process must be protected for as long as the connection remains authenticated.&lt;/p&gt;
&lt;p&gt;If that guarantee cannot be made, the time saved by avoiding authentication may be the wrong thing to optimize.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;technical-references&#34;&gt;Technical references&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://man.openbsd.org/ssh_config&#34;&gt;OpenSSH ssh_config(5)&lt;/a&gt;
 — &lt;code&gt;ControlMaster&lt;/code&gt;, &lt;code&gt;ControlPath&lt;/code&gt;, &lt;code&gt;ControlPersist&lt;/code&gt;, &lt;code&gt;IdentityFile&lt;/code&gt;, token expansion and connection sharing.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://man.openbsd.org/ssh&#34;&gt;OpenSSH ssh(1)&lt;/a&gt;
 — multiplexing control commands and command-line options.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://man.openbsd.org/sshd&#34;&gt;OpenSSH sshd(8)&lt;/a&gt;
 — authorized key options, forced commands and restrictions.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://man.openbsd.org/ssh-keygen&#34;&gt;OpenSSH ssh-keygen(1)&lt;/a&gt;
 — certificate validity, principals, critical options and extensions.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://man.openbsd.org/sshd_config&#34;&gt;OpenSSH sshd_config(5)&lt;/a&gt;
 — authentication methods, &lt;code&gt;MaxSessions&lt;/code&gt;, channel and connection timeouts.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://www.rfc-editor.org/rfc/rfc4252&#34;&gt;RFC 4252 — SSH Authentication Protocol&lt;/a&gt;
 — authentication protocol architecture.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://www.rfc-editor.org/rfc/rfc4254&#34;&gt;RFC 4254 — SSH Connection Protocol&lt;/a&gt;
 — channel multiplexing over authenticated transport.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/openssh/openssh-portable/blob/master/mux.c&#34;&gt;OpenSSH multiplexing implementation&lt;/a&gt;
 — local control protocol and peer-identity checks.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/PowerShell/Win32-OpenSSH/wiki/Project-Scope&#34;&gt;Win32-OpenSSH project scope&lt;/a&gt;
 — platform-specific limitations, including client multiplexing.&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    
    <item><title>Consequential, Not Just Useful</title>
      <link>https://mobile.dev.turbovision.in6-addr.net/articles/ai-language-protocols/mcps-useful-was-never-the-real-threshold-consequential-was/</link>
      <pubDate>Mon, 20 Apr 2026 00:00:00 +0000</pubDate>
      <lastBuildDate>Mon, 20 Apr 2026 00:00:00 +0000</lastBuildDate>
      <guid>https://mobile.dev.turbovision.in6-addr.net/articles/ai-language-protocols/mcps-useful-was-never-the-real-threshold-consequential-was/</guid>
      <description>&lt;p class=&#34;article-subtitle&#34;&gt;When MCP connects models to permissions, words become actions&lt;/p&gt;&lt;p&gt;For a while, the industry kept talking as if tool access merely made models more &amp;ldquo;useful&amp;rdquo;. That description is too soft by half, because the real shift is harsher: once a model can perceive and act through an environment, its outputs stop being merely interesting and start becoming &amp;ldquo;consequential&amp;rdquo;.&lt;/p&gt;
&lt;h2 id=&#34;tldr&#34;&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;&lt;a href=&#34;https://modelcontextprotocol.io/specification/latest&#34;&gt;Model Context Protocol (MCP)&lt;/a&gt;
 does not just make language models more capable in some vague product sense. It moves them closer to &amp;ldquo;consequence&amp;rdquo; by connecting model output to trusted systems, permissions, tools, and environments where words can become actions.&lt;/p&gt;
&lt;h2 id=&#34;the-question&#34;&gt;The Question&lt;/h2&gt;
&lt;p&gt;You may ask: if MCP is just a protocol for tools and context, why treat it as such a serious threshold? Why not simply say it makes models more &amp;ldquo;useful&amp;rdquo; and leave it at that?&lt;/p&gt;
&lt;h2 id=&#34;the-long-answer&#34;&gt;The Long Answer&lt;/h2&gt;
&lt;p&gt;Because &lt;code&gt;&amp;quot;useful&amp;quot;&lt;/code&gt; is marketing language. &lt;code&gt;&amp;quot;consequential&amp;quot;&lt;/code&gt; is the serious word.&lt;/p&gt;
&lt;p&gt;An LLM on its own is still mostly trapped inside text. Yes, text matters. Text persuades, misleads, reassures, coordinates, manipulates, flatters, and occasionally clarifies. But absent tool access, the model remains largely confined to symbolic output that a human still has to read, interpret, and turn into action.&lt;/p&gt;
&lt;p&gt;The moment &lt;a href=&#34;https://modelcontextprotocol.io/docs/learn&#34;&gt;MCP&lt;/a&gt;
 enters the picture, that changes. Not magically. Not philosophically. Operationally.&lt;/p&gt;
&lt;p&gt;Now the model can observe through tools. It can pull in state it was not explicitly handed in the original prompt. It can request actions in systems it does not itself implement. It can inspect, decide, act, observe the effect, and act again. In other words, it stops being merely interpretive and starts becoming infrastructural.&lt;/p&gt;
&lt;p&gt;That is the real shift. Not more eloquence. Not slightly better automation. Consequence.&lt;/p&gt;
&lt;h3 id=&#34;text-was-never-the-final-problem&#34;&gt;Text Was Never the Final Problem&lt;/h3&gt;
&lt;p&gt;People still talk about model output as though the main issue were what the model says. That framing is becoming stale.&lt;/p&gt;
&lt;p&gt;If a model writes a strange paragraph, that may be annoying. If the same model can trigger a shell action, drive a browser session, modify a repository, hit an API with real credentials, or traverse a filesystem through an &lt;a href=&#34;https://modelcontextprotocol.io/specification/latest/basic&#34;&gt;MCP server&lt;/a&gt;
, then the relevant question is no longer merely &amp;ldquo;what did it say?&amp;rdquo; The real question becomes: what did the environment allow those words to become?&lt;/p&gt;
&lt;p&gt;That sounds obvious once stated plainly, but a great deal of current AI rhetoric still behaves as though the old text-only framing were enough.&lt;/p&gt;
&lt;p&gt;It is not enough.&lt;/p&gt;
&lt;p&gt;A model that suggests deleting a file and a model that can actually cause that deletion are not the same kind of system. A model that proposes an escalation email and a model that can send it are not the same kind of system. A model that hallucinates a bad shell command and a model whose output gets routed into execution are not separated by a minor implementation detail. They are separated by consequence.&lt;/p&gt;
&lt;p&gt;That is why I do not like the soft phrase &amp;ldquo;tool augmentation&amp;rdquo; as the whole story. It sounds innocent, like giving a worker a slightly better screwdriver. In many cases what is really happening is that we are connecting a probabilistic decision process to a live environment and then acting surprised that the environment starts to matter more than the prose.&lt;/p&gt;
&lt;h3 id=&#34;mcp-connects-the-model-to-situated-power&#34;&gt;MCP Connects the Model to Situated Power&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&#34;https://modelcontextprotocol.io/specification/latest&#34;&gt;Model Context Protocol&lt;/a&gt;
 is often described in tidy, neutral terms: servers expose tools, resources, prompts, and related capabilities; hosts and clients connect them; the model gets context and action surfaces it would not otherwise have. All of that is true.&lt;/p&gt;
&lt;p&gt;It is also too clean.&lt;/p&gt;
&lt;p&gt;What MCP really does, in practice, is connect model judgment to situated power.&lt;/p&gt;
&lt;p&gt;That power is not abstract. It lives wherever the tool lives:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;in a filesystem the tool can read or write&lt;/li&gt;
&lt;li&gt;in a browser session the tool can drive&lt;/li&gt;
&lt;li&gt;in a shell the tool can execute through&lt;/li&gt;
&lt;li&gt;in an API surface the tool can authenticate to&lt;/li&gt;
&lt;li&gt;in an organization whose workflows are increasingly willing to trust the result&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That is why I think the comforting sentence &amp;ldquo;the model only has access to approved tools&amp;rdquo; often means much less than people want it to mean. If the approved tools are broad enough, then saying &amp;ldquo;only approved tools&amp;rdquo; is like saying a process is safe because it only has access to approved machinery, while the approved machinery includes the loading dock, the admin terminal, and the master keys.&lt;/p&gt;
&lt;p&gt;Formally reassuring. Operationally laughable.&lt;/p&gt;
&lt;p&gt;And that is before we get to the uglier part: once tools can observe and act in loops, the system is no longer a simple one-shot responder. It is in a perception-action cycle:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;inspect environment state&lt;/li&gt;
&lt;li&gt;compress that state into a model-readable form&lt;/li&gt;
&lt;li&gt;decide on an action&lt;/li&gt;
&lt;li&gt;execute via tool&lt;/li&gt;
&lt;li&gt;inspect consequences&lt;/li&gt;
&lt;li&gt;act again&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That loop is where &amp;ldquo;just a language model&amp;rdquo; stops being an honest description.&lt;/p&gt;
&lt;h3 id=&#34;typed-interfaces-do-not-guarantee-bounded-consequences&#34;&gt;Typed Interfaces Do Not Guarantee Bounded Consequences&lt;/h3&gt;
&lt;p&gt;This is where people start trying to calm themselves down with schemas.&lt;/p&gt;
&lt;p&gt;They say: yes, but the MCP tool has a defined interface. Yes, but the arguments are typed. Yes, but the model can only call the tool in approved ways.&lt;/p&gt;
&lt;p&gt;Fine. Sometimes that matters. But typed invocation is not the same thing as bounded consequence.&lt;/p&gt;
&lt;p&gt;That distinction is one of the big buried truths in this whole discussion.&lt;/p&gt;
&lt;p&gt;A narrow, typed tool that does one highly constrained thing under externally enforced limits can be meaningfully bounded. That is real. I would not deny it.&lt;/p&gt;
&lt;p&gt;But most interesting, high-leverage tool surfaces are not like that. They are rich enough to matter precisely because they leave room for discretion:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a shell surface that can trigger many valid but open-ended actions&lt;/li&gt;
&lt;li&gt;a browser surface that can navigate changing state, click, submit, search, loop, and adapt&lt;/li&gt;
&lt;li&gt;a repository or filesystem surface where many technically valid edits are still strategically wrong&lt;/li&gt;
&lt;li&gt;a broad API surface with enough credentials to make mistakes expensive&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In those cases, the tool schema may constrain the &lt;em&gt;shape&lt;/em&gt; of the invocation while doing very little to constrain the &lt;em&gt;meaningful space of effects&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;This is the trick people keep playing on themselves. They mistake typed interface for real containment.&lt;/p&gt;
&lt;p&gt;It is not the same thing.&lt;/p&gt;
&lt;p&gt;The residual risk is not merely &amp;ldquo;the model might call the wrong method.&amp;rdquo; The nastier risk is that it makes a sequence of perfectly valid calls under a flawed interpretation of the task, and the environment obediently translates that flawed interpretation into real change.&lt;/p&gt;
&lt;p&gt;That is a much uglier failure mode than a malformed output string.&lt;/p&gt;
&lt;p&gt;And if that still sounds abstract, the failure sketches are not hard to imagine:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;give the model MCP access to your filesystem and one bad interpretation later it removes essential OS files; local machine unusable, oops&lt;/li&gt;
&lt;li&gt;give it MCP access to your PostgreSQL and a &amp;ldquo;cleanup&amp;rdquo; step becomes a table drop; data gone, oops&lt;/li&gt;
&lt;li&gt;give it MCP access to your Jira queue and it does not just read the backlog, it closes tickets and strips descriptions because some rule somewhere made &amp;ldquo;resolve noise&amp;rdquo; sound like a sensible goal; oops&lt;/li&gt;
&lt;li&gt;give it MCP access to your GitHub project and it does not merely inspect pull requests, it force-pushes the wrong branch state and empties the repository; oops&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I am intentionally presenting those as plausible scenarios, not as a sourced catalogue of named incidents. The point does not depend on theatrical storytelling. The point is simpler and uglier: the MCP can do whatever the token, permission set, and host environment allow it to do.&lt;/p&gt;
&lt;p&gt;That does not require dramatic machine agency. It does not even require a particularly clever model. A typo in a skill file, a bad rule, a sloppy prompt, a wrong assumption in a workflow, or a brittle bit of context can be enough. Once the path from output to action is short, stupidity scales just as nicely as intelligence does.&lt;/p&gt;
&lt;h3 id=&#34;the-boundary-did-not-disappear-it-moved&#34;&gt;The Boundary Did Not Disappear. It Moved&lt;/h3&gt;
&lt;p&gt;To be fair, MCP does not abolish boundaries by definition. It relocates them.&lt;/p&gt;
&lt;p&gt;The old comforting fantasy was that safety lived mostly at the model boundary: constrain the model, filter the output, police the prompt, maybe wrap the text in a few guardrails, and hope that was enough.&lt;/p&gt;
&lt;p&gt;With MCP, the effective boundary moves outward:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;to the tool surface&lt;/li&gt;
&lt;li&gt;to the permission model&lt;/li&gt;
&lt;li&gt;to the host environment&lt;/li&gt;
&lt;li&gt;to the surrounding runtime constraints&lt;/li&gt;
&lt;li&gt;to whatever external systems can still refuse, log, sandbox, rate-limit, or block consequences&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That is a major architectural shift.&lt;/p&gt;
&lt;p&gt;And this is where I get more suspicious than a lot of current product writing does. People often talk as though external boundaries are automatically comforting. They are not automatically comforting. They are only as good as their actual ability to resist broad, adaptive, probabilistic use by a system that can observe, retry, reframe, and route around friction.&lt;/p&gt;
&lt;p&gt;If the only real safety story is &amp;ldquo;the environment will catch it,&amp;rdquo; then the environment had better be much more trustworthy than most real environments are.&lt;/p&gt;
&lt;p&gt;I do not know any serious engineer who should be relaxed by hand-wavy references to containment.&lt;/p&gt;
&lt;h3 id=&#34;containment-talk-is-often-too-cheerful&#34;&gt;Containment Talk Is Often Too Cheerful&lt;/h3&gt;
&lt;p&gt;This is the point where the tone of the discussion usually goes soft and reassuring, and I think that softness is misplaced.&lt;/p&gt;
&lt;p&gt;If you are dealing with a very narrow tool, tight external constraints, minimal side effects, isolated credentials, explicit confirmation boundaries, and no broad environmental leverage, then yes, boundedness may be meaningful. Good. Keep it.&lt;/p&gt;
&lt;p&gt;But in many practically interesting MCP setups, the residual constraints are too weak, too external, or too porous to count as meaningful containment in the comforting sense that people quietly want.&lt;/p&gt;
&lt;p&gt;That is the line I would draw.&lt;/p&gt;
&lt;p&gt;Not:
&amp;ldquo;all containment is impossible.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;I cannot prove that, and I will not fake certainty where I do not have it.&lt;/p&gt;
&lt;p&gt;But I will say this:&lt;/p&gt;
&lt;p&gt;once a model can observe, adapt, and act through broad tools in a rich environment, confidence in clean containment should fall sharply.&lt;/p&gt;
&lt;p&gt;That is not drama. That is a sober posture.&lt;/p&gt;
&lt;p&gt;An ugly little scene makes the point better than theory does. Imagine a company proudly announcing that its internal assistant is &amp;ldquo;safely integrated&amp;rdquo; with file operations, browser automation, deployment metadata, ticketing tools, and internal knowledge systems. For two weeks everyone calls this productivity. Then one odd interpretation slips through, a valid sequence of tool calls touches the wrong systems in the wrong order, and now there is an incident review full of phrases like:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;ldquo;the tool call was technically valid&amp;rdquo;&lt;/li&gt;
&lt;li&gt;&amp;ldquo;the model appeared to follow the requested workflow&amp;rdquo;&lt;/li&gt;
&lt;li&gt;&amp;ldquo;the side effect was not anticipated&amp;rdquo;&lt;/li&gt;
&lt;li&gt;&amp;ldquo;the environment did not block the action as expected&amp;rdquo;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That is not science fiction. That is the shape of a very ordinary modern failure.&lt;/p&gt;
&lt;h3 id=&#34;the-real-threshold-was-never-utility&#34;&gt;The Real Threshold Was Never Utility&lt;/h3&gt;
&lt;p&gt;This is why I keep returning to the same word.&lt;/p&gt;
&lt;p&gt;&amp;ldquo;Useful&amp;rdquo; was never the real threshold.
&amp;ldquo;Consequential&amp;rdquo; was.&lt;/p&gt;
&lt;p&gt;A model can be &amp;ldquo;useful&amp;rdquo; without mattering very much. A search helper is useful. A summarizer is useful. A draft generator is useful. Those systems may still be annoying, biased, sloppy, or overhyped, but their effects remain relatively buffered by human review and interpretation.&lt;/p&gt;
&lt;p&gt;A model becomes &amp;ldquo;consequential&amp;rdquo; when the path from output to effect shortens.&lt;/p&gt;
&lt;p&gt;That can happen because:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;humans begin trusting the output by default&lt;/li&gt;
&lt;li&gt;tools begin translating output into action&lt;/li&gt;
&lt;li&gt;environments become legible enough for iterative manipulation&lt;/li&gt;
&lt;li&gt;organizational workflows stop treating the model as advisory and start treating it as procedural&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And once that happens, the language around &amp;ldquo;utility&amp;rdquo; becomes too polite. The system is no longer just helping. It is participating in consequence.&lt;/p&gt;
&lt;p&gt;That does not mean every MCP setup is reckless. It does mean the burden of proof should sit with the people claiming safety, not with the people expressing suspicion.&lt;/p&gt;
&lt;p&gt;If the tool semantics are broad, the environment is rich, and the model retains discretionary judgment over how to sequence valid actions, then the default posture should not be comfort. It should be scrutiny.&lt;/p&gt;
&lt;h3 id=&#34;what-this-changes&#34;&gt;What This Changes&lt;/h3&gt;
&lt;p&gt;Once you see MCP through the lens of consequence, several things become clearer.&lt;/p&gt;
&lt;p&gt;First, the real agent is not just the model. It is:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;model + protocol + tool surface + permissions + environment + feedback loop&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Second, &amp;ldquo;alignment&amp;rdquo; at the text level is no longer enough as a meaningful description. A model can appear compliant in language while still steering a valid sequence of actions toward the wrong practical outcome.&lt;/p&gt;
&lt;p&gt;Third, governance has to shift outward. It is no longer enough to ask whether the model says the right things. You have to ask what the surrounding system permits those sayings to become.&lt;/p&gt;
&lt;p&gt;Fourth, a lot of the current product language is too soothing. It keeps using words like assistant, tool use, augmentation, and workflow help, because those words leave consequence safely blurry. The blur is convenient. It is also the problem.&lt;/p&gt;
&lt;h3 id=&#34;this-is-not-a-rant-against-consequence&#34;&gt;This Is Not a Rant Against Consequence&lt;/h3&gt;
&lt;p&gt;At this point, the essay could be misread as a long argument for fear, paralysis, or retreat back into harmless toys. That is not the point.&lt;/p&gt;
&lt;p&gt;This is not an anti-MCP argument. It is an anti-naivety argument.&lt;/p&gt;
&lt;p&gt;The point is not to reject consequence. The point is to become worthy of it.&lt;/p&gt;
&lt;p&gt;If &lt;a href=&#34;https://modelcontextprotocol.io/specification/latest&#34;&gt;MCP&lt;/a&gt;
 really is one of the thresholds where model output starts turning into environmental effect, then the answer is not denial and it is not marketing. The answer is stewardship. Better boundaries. Narrower permissions. Clearer language. Smaller blast radii. Real auditability. Reversibility where possible. Suspicion toward vague assurances. Less safety theater. More adult engineering.&lt;/p&gt;
&lt;p&gt;That is the constructive spin, if one insists on calling it a spin. The critique exists because these systems matter. If they were merely toys, none of this would deserve such forceful language. The harsher the consequence, the less patience one should have for sloppy metaphors, soft promises, and fake containment stories.&lt;/p&gt;
&lt;p&gt;So no, the argument is not that models must never act. The argument is that systems with consequence should be designed as if consequence were real, because it is.&lt;/p&gt;
&lt;h2 id=&#34;summary&#34;&gt;Summary&lt;/h2&gt;
&lt;p&gt;&lt;a href=&#34;https://modelcontextprotocol.io/specification/latest&#34;&gt;MCP&lt;/a&gt;
 does not merely make models more &amp;ldquo;useful&amp;rdquo;. It can make them &amp;ldquo;consequential&amp;rdquo; by connecting model output to trusted environments where words are translated into effects. That is the real threshold worth paying attention to.&lt;/p&gt;
&lt;p&gt;The hard part is not that tools exist. The hard part is that broad tools, rich environments, and probabilistic judgment do not compose into comforting guarantees just because the invocation format looks tidy. The boundary did not disappear. It moved outward, and in many interesting cases it moved to places that do not deserve much casual trust.&lt;/p&gt;
&lt;p&gt;The constructive answer is not to pretend consequence away. It is to build systems, permissions, workflows, and institutions that are actually worthy of it.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If the real danger is no longer what the model says but what trusted systems allow its sayings to become, where should we admit the true boundary of responsibility now lies?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Related reading:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/articles/ai-language-protocols/from-prompt-to-protocol-stack/&#34;&gt;From Prompt to Protocol Stack&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/articles/ai-language-protocols/the-real-historical-analogy/&#34;&gt;The Real Historical Analogy&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/articles/ai-language-protocols/freedom-creates-protocol/&#34;&gt;Freedom Creates Protocol&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    
    <item><title>Assumption-Led Security Reviews</title>
      <link>https://mobile.dev.turbovision.in6-addr.net/hacking/assumption-led-security-reviews/</link>
      <pubDate>Sun, 22 Feb 2026 00:00:00 +0000</pubDate>
      <lastBuildDate>Sun, 22 Feb 2026 22:16:19 +0100</lastBuildDate>
      <guid>https://mobile.dev.turbovision.in6-addr.net/hacking/assumption-led-security-reviews/</guid>
      <description>&lt;p class=&#34;article-subtitle&#34;&gt;Testing claims instead of running checklists&lt;/p&gt;&lt;p&gt;Many security reviews fail before they begin because they are framed as checklist compliance rather than assumption testing. Checklists are useful for coverage. Assumptions are where real risk hides.&lt;/p&gt;
&lt;p&gt;Every system has assumptions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;ldquo;this endpoint is internal only&amp;rdquo;&lt;/li&gt;
&lt;li&gt;&amp;ldquo;this token cannot be replayed&amp;rdquo;&lt;/li&gt;
&lt;li&gt;&amp;ldquo;this queue input is trusted&amp;rdquo;&lt;/li&gt;
&lt;li&gt;&amp;ldquo;this service account has least privilege&amp;rdquo;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When assumptions are wrong, controls built on top of them become decorative.&lt;/p&gt;
&lt;p&gt;An assumption-led review starts by collecting claims from architecture, docs, and team memory, then converting each claim into a testable statement. Not &amp;ldquo;is auth secure?&amp;rdquo; but &amp;ldquo;can an untrusted caller obtain action X through path Y under condition Z?&amp;rdquo;&lt;/p&gt;
&lt;p&gt;This shift changes review quality immediately.&lt;/p&gt;
&lt;p&gt;A practical review flow:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;inventory critical assumptions&lt;/li&gt;
&lt;li&gt;rank by blast radius if false&lt;/li&gt;
&lt;li&gt;define validation method per assumption&lt;/li&gt;
&lt;li&gt;execute tests with evidence capture&lt;/li&gt;
&lt;li&gt;classify outcomes: confirmed, disproven, uncertain&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Uncertain is a valid outcome and should trigger follow-up work, not silent closure.&lt;/p&gt;
&lt;p&gt;Assumption inventories should include both technical and operational layers:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;network trust boundaries&lt;/li&gt;
&lt;li&gt;identity and role mapping&lt;/li&gt;
&lt;li&gt;secret rotation and revocation behavior&lt;/li&gt;
&lt;li&gt;logging completeness and tamper resistance&lt;/li&gt;
&lt;li&gt;recovery behavior during dependency failure&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Security posture is often lost in the seams between layers.&lt;/p&gt;
&lt;p&gt;A common anti-pattern is reviewing only happy-path authorization. Mature reviews probe degraded and unexpected states:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;stale cache after role change&lt;/li&gt;
&lt;li&gt;timeout fallback behavior&lt;/li&gt;
&lt;li&gt;retry loops after partial failure&lt;/li&gt;
&lt;li&gt;out-of-order event processing&lt;/li&gt;
&lt;li&gt;duplicated message handling&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Attackers do not wait for your ideal system state.&lt;/p&gt;
&lt;p&gt;Evidence discipline matters. For each finding, capture:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;exact request or action performed&lt;/li&gt;
&lt;li&gt;environment and identity context&lt;/li&gt;
&lt;li&gt;observed response/state transition&lt;/li&gt;
&lt;li&gt;why this confirms or disproves assumption&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Without evidence, findings become debate material instead of engineering input.&lt;/p&gt;
&lt;p&gt;One reason assumption-led reviews outperform static checklists is adaptability. Checklists can lag architecture changes. Assumptions are always current because they come from how teams believe the system behaves today.&lt;/p&gt;
&lt;p&gt;This also improves cross-team communication. When a review says, &amp;ldquo;Assumption A was false under condition B,&amp;rdquo; owners can act. When a review says, &amp;ldquo;security maturity low,&amp;rdquo; people argue semantics.&lt;/p&gt;
&lt;p&gt;Security reviews should also evaluate observability assumptions. Teams often believe incidents will be detectable because logs exist somewhere. Test that belief:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;does action X produce audit event Y?&lt;/li&gt;
&lt;li&gt;is actor identity preserved end-to-end?&lt;/li&gt;
&lt;li&gt;can events be correlated across services in minutes, not days?&lt;/li&gt;
&lt;li&gt;can alerting distinguish abuse from normal traffic?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Detection assumptions are security controls.&lt;/p&gt;
&lt;p&gt;Permission models deserve explicit assumption tests too. &amp;ldquo;Least privilege&amp;rdquo; is often declared, rarely verified. Run effective-permission snapshots for key service accounts and compare against actual required operations. Overprivilege is usually broader than expected.&lt;/p&gt;
&lt;p&gt;Another high-value area is trust transitively inherited from third-party integrations. Assumptions like &amp;ldquo;provider validates input&amp;rdquo; or &amp;ldquo;SDK enforces signature checks&amp;rdquo; should be verified by controlled failure injection or negative tests.&lt;/p&gt;
&lt;p&gt;Assumption reviews are especially useful before major migrations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;identity provider switch&lt;/li&gt;
&lt;li&gt;event bus replacement&lt;/li&gt;
&lt;li&gt;monolith decomposition&lt;/li&gt;
&lt;li&gt;region expansion&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Migrations amplify latent assumptions. Pre-migration validation avoids expensive post-cutover surprises.&lt;/p&gt;
&lt;p&gt;Reporting format should be brief and decision-oriented:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;assumption statement&lt;/li&gt;
&lt;li&gt;status (confirmed/disproven/uncertain)&lt;/li&gt;
&lt;li&gt;impact if false&lt;/li&gt;
&lt;li&gt;evidence pointer&lt;/li&gt;
&lt;li&gt;remediation owner and due date&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This format integrates smoothly into engineering planning.&lt;/p&gt;
&lt;p&gt;A strong remediation strategy focuses on making assumptions explicit in-system:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;encode invariants in tests&lt;/li&gt;
&lt;li&gt;enforce policy in middleware&lt;/li&gt;
&lt;li&gt;add runtime guards for impossible states&lt;/li&gt;
&lt;li&gt;instrument detection for assumption violations&lt;/li&gt;
&lt;li&gt;document contract boundaries near code&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The goal is not one good review. The goal is continuous assumption integrity.&lt;/p&gt;
&lt;p&gt;There is a cultural angle here too. Teams should feel safe admitting uncertainty. If uncertainty is penalized, assumptions go unchallenged and risks accumulate quietly. Assumption-led reviews work best in environments where &amp;ldquo;we do not know yet&amp;rdquo; is treated as an actionable state.&lt;/p&gt;
&lt;p&gt;This approach also improves incident response. During active incidents, responders can quickly reference known assumption status:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;confirmed trust boundaries&lt;/li&gt;
&lt;li&gt;known weak points&lt;/li&gt;
&lt;li&gt;uncertain controls needing immediate verification&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Prepared uncertainty maps reduce chaos under pressure.&lt;/p&gt;
&lt;p&gt;If your team wants to adopt this with low overhead, start with one workflow:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;pick one high-impact service&lt;/li&gt;
&lt;li&gt;list ten assumptions&lt;/li&gt;
&lt;li&gt;validate top five by blast radius&lt;/li&gt;
&lt;li&gt;file concrete follow-ups for anything disproven or uncertain&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;One cycle usually exposes enough hidden risk to justify making the method standard.&lt;/p&gt;
&lt;p&gt;Security is not only control inventory. It is confidence that critical assumptions hold under real conditions. Assumption-led reviews build that confidence with evidence instead of optimism.&lt;/p&gt;
&lt;p&gt;When systems are complex, this is the difference between feeling secure and being secure.&lt;/p&gt;
</description>
    </item>
    
    <item><title>Security Findings as Design Feedback</title>
      <link>https://mobile.dev.turbovision.in6-addr.net/hacking/security-findings-as-design-feedback/</link>
      <pubDate>Sun, 22 Feb 2026 00:00:00 +0000</pubDate>
      <lastBuildDate>Sun, 22 Feb 2026 22:43:22 +0100</lastBuildDate>
      <guid>https://mobile.dev.turbovision.in6-addr.net/hacking/security-findings-as-design-feedback/</guid>
      <description>&lt;p class=&#34;article-subtitle&#34;&gt;Reading vulnerabilities as architecture signals&lt;/p&gt;&lt;p&gt;Security reports are often treated as defect inventories: patch issue, close ticket, move on. That workflow is necessary, but it is incomplete. Many findings are not isolated mistakes; they are design feedback about how a system creates, hides, or amplifies risk. Teams that only chase individual fixes improve slowly. Teams that read findings as architecture signals improve compoundingly.&lt;/p&gt;
&lt;p&gt;A useful reframing is to ask, for each vulnerability: what design decision made this class of bug easy to introduce and hard to detect? The answer is frequently broader than the code diff. Weak trust boundaries, inconsistent authorization checks, ambiguous ownership of validation, and hidden data flows are structural causes. Fixing one endpoint without changing those structures guarantees recurrence.&lt;/p&gt;
&lt;p&gt;Take broken access control patterns. A typical report may show one API endpoint missing a tenant check. The immediate patch adds the check. The design feedback, however, is that authorization is optional at call sites. The durable response is to move authorization into mandatory middleware or typed service contracts so bypassing it becomes difficult by construction. Good security design reduces optionality.&lt;/p&gt;
&lt;p&gt;Input-validation findings show similar dynamics. If every handler parses raw request bodies independently, validation drift is inevitable. One team sanitizes aggressively, another copies old logic, a third misses edge cases under deadline pressure. The root issue is distributed policy. Consolidated schemas, shared parsers, and fail-closed defaults turn ad-hoc validation into predictable infrastructure.&lt;/p&gt;
&lt;p&gt;Injection flaws often reveal boundary confusion rather than purely “bad escaping.” When query construction crosses multiple abstraction layers with mixed assumptions, responsibility blurs and dangerous concatenation appears. The design-level fix is not a lint rule alone. It is to constrain query creation to safe primitives and enforce typed interfaces that make unsafe composition visibly abnormal.&lt;/p&gt;
&lt;p&gt;Security findings also expose observability gaps. If exploitation attempts succeed silently or are detected only through external reports, the system lacks meaningful security telemetry. A mature response adds event streams for auth decisions, suspicious parameter patterns, and integrity checks, with dashboards tied to operational ownership. Detection is a design feature, not a post-incident add-on.&lt;/p&gt;
&lt;p&gt;Another pattern is privilege creep in internal services. A report might flag one misuse of a high-privilege token. The deeper signal is that privilege scopes are too broad and rotation or delegation models are weak. Architecture should prefer least-privilege tokens per task, short lifetimes, and explicit trust contracts between services. Otherwise the blast radius of ordinary mistakes remains unacceptable.&lt;/p&gt;
&lt;p&gt;Process design matters as much as runtime design. Findings discovered repeatedly in similar areas indicate review pathways that miss systemic risks. Security review should include “class analysis”: when one issue appears, search for siblings by pattern and subsystem. This turns isolated remediation into proactive hardening. Without class analysis, teams play vulnerability whack-a-mole forever.&lt;/p&gt;
&lt;p&gt;Prioritization also benefits from design thinking. Severity alone does not capture strategic value. A medium issue that reveals a widespread anti-pattern may deserve higher priority than a high-severity edge case with narrow reach. Decision frameworks should account for recurrence potential and architectural leverage, not just immediate exploitability metrics.&lt;/p&gt;
&lt;p&gt;Communication style influences whether findings drive design changes. Reports framed as blame trigger defensive behavior and minimal patches. Reports framed as system learning opportunities invite ownership and broader fixes. Precision still matters, but tone can determine whether teams engage deeply or optimize for closure speed.&lt;/p&gt;
&lt;p&gt;One practical method is a “finding-to-principle” review after each security cycle:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Summarize the concrete issue.&lt;/li&gt;
&lt;li&gt;Identify the enabling design condition.&lt;/li&gt;
&lt;li&gt;Define a preventive principle.&lt;/li&gt;
&lt;li&gt;Encode the principle in tooling, APIs, or architecture.&lt;/li&gt;
&lt;li&gt;Track recurrence as an outcome metric.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This process converts incidents into institutional memory.&lt;/p&gt;
&lt;p&gt;Security maturity is not a state where no bugs exist. It is a state where each bug teaches the system to fail less in the future. That requires treating findings as feedback loops into design, not just repair queues for implementation. The difference between those mindsets determines whether risk decays or accumulates.&lt;/p&gt;
&lt;p&gt;In short: fix the bug, yes. But always ask what the bug is trying to teach your architecture. That question is where long-term resilience starts.&lt;/p&gt;
&lt;p&gt;Teams that institutionalize this mindset stop treating security as a parallel bureaucracy and start treating it as part of system design quality. Over time, this reduces not only exploit risk but also operational surprises, because clearer boundaries and explicit trust rules improve reliability for everyone, not just security reviewers.&lt;/p&gt;
&lt;h2 id=&#34;finding-to-principle-template&#34;&gt;Finding-to-principle template&lt;/h2&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;5
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;6
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;7
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Finding: &amp;lt;concrete vulnerability&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Class: &amp;lt;auth / validation / injection / secrets / ...&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Enabling design condition: &amp;lt;what made this class likely&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Preventive principle: &amp;lt;design rule to encode&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Enforcement point: &amp;lt;middleware / schema / API contract / CI check&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Owner + deadline: &amp;lt;who and by when&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Recurrence metric: &amp;lt;how we detect class-level improvement&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;This keeps remediation focused on recurrence reduction, not ticket closure optics.&lt;/p&gt;
&lt;p&gt;Related reading:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/hacking/threat-modeling-in-the-small/&#34;&gt;Threat Modeling in the Small&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/hacking/assumption-led-security-reviews/&#34;&gt;Assumption-Led Security Reviews&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/musings/clarity-is-an-operational-advantage/&#34;&gt;Clarity Is an Operational Advantage&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    
    <item><title>Threat Modeling in the Small</title>
      <link>https://mobile.dev.turbovision.in6-addr.net/hacking/threat-modeling-in-the-small/</link>
      <pubDate>Sun, 22 Feb 2026 00:00:00 +0000</pubDate>
      <lastBuildDate>Sun, 22 Feb 2026 22:03:08 +0100</lastBuildDate>
      <guid>https://mobile.dev.turbovision.in6-addr.net/hacking/threat-modeling-in-the-small/</guid>
      <description>&lt;p class=&#34;article-subtitle&#34;&gt;One feature, one flow, one safer change this week&lt;/p&gt;&lt;p&gt;When people hear &amp;ldquo;threat modeling,&amp;rdquo; they often imagine a conference room, a wall of sticky notes, and an enterprise architecture diagram no single human fully understands. That can be useful, but it can also become theater. Most practical security wins come from smaller, tighter loops: one feature, one API path, one cron job, one queue consumer, one admin screen.&lt;/p&gt;
&lt;p&gt;I call this &amp;ldquo;threat modeling in the small.&amp;rdquo; The goal is not to produce a perfect model. The goal is to make one change safer this week without slowing delivery into paralysis.&lt;/p&gt;
&lt;p&gt;Start with a concrete unit. &amp;ldquo;User authentication&amp;rdquo; is too broad. &amp;ldquo;Password reset token creation and validation&amp;rdquo; is the right scale. Draw a tiny flow in plain text. List the trust boundaries. Ask where attacker-controlled data enters. Ask where privileged actions happen. Ask where logging exists and where it does not.&lt;/p&gt;
&lt;p&gt;At this size, engineers actually participate. They can reason from code they touched yesterday. They can connect risks to implementation choices. They can estimate effort honestly. Security stops being abstract policy and becomes software design.&lt;/p&gt;
&lt;p&gt;My default prompt set is short:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What are we protecting in this flow?&lt;/li&gt;
&lt;li&gt;Who can reach this entry point?&lt;/li&gt;
&lt;li&gt;What can an attacker control?&lt;/li&gt;
&lt;li&gt;What state change happens if checks fail?&lt;/li&gt;
&lt;li&gt;What evidence do we keep when things go wrong?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That five-question loop catches more real bugs than many heavyweight frameworks, because it forces precision. &amp;ldquo;We validate input&amp;rdquo; becomes &amp;ldquo;we validate length and charset before parsing and reject invalid UTF-8.&amp;rdquo; &amp;ldquo;We have auth&amp;rdquo; becomes &amp;ldquo;we verify ownership before read and before update, not just at login.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;Another useful trick is pairing each threat with one &amp;ldquo;cheap guardrail&amp;rdquo; and one &amp;ldquo;strong guardrail.&amp;rdquo; Cheap guardrails are things you can ship in a day: stricter defaults, safer parser settings, explicit allowlists, better rate limits, better log fields. Strong guardrails need more work: protocol redesign, key rotation pipeline, privilege split, async isolation, dedicated policy engine.&lt;/p&gt;
&lt;p&gt;This gives teams options. They can reduce risk immediately while planning structural fixes. Without this split, discussions get stuck between &amp;ldquo;too expensive&amp;rdquo; and &amp;ldquo;too risky,&amp;rdquo; and nothing moves.&lt;/p&gt;
&lt;p&gt;For small models, scoring should also stay small. Avoid giant risk matrices with fake precision. I use three levels:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;High:&lt;/strong&gt; likely and damaging, must mitigate before release.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Medium:&lt;/strong&gt; plausible, can ship with guardrail and tracked follow-up.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Low:&lt;/strong&gt; edge case, document and revisit during refactor.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The important part is not the label. The important part is explicit ownership and a due date.&lt;/p&gt;
&lt;p&gt;Documentation format can remain lean. One markdown file per feature works well:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;scope of the modeled flow&lt;/li&gt;
&lt;li&gt;data classification involved&lt;/li&gt;
&lt;li&gt;threats and mitigations&lt;/li&gt;
&lt;li&gt;known gaps and follow-up tasks&lt;/li&gt;
&lt;li&gt;links to code, tests, and dashboards&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If your model cannot be read in five minutes, it will not be read during incident response. During incidents, short documents win.&lt;/p&gt;
&lt;p&gt;Threat modeling in the small also improves code review quality. Reviewers can ask threat-aware questions because they know the expected controls. &amp;ldquo;Where is ownership check?&amp;rdquo; &amp;ldquo;What happens on parser failure?&amp;rdquo; &amp;ldquo;Do we leak this error to client?&amp;rdquo; &amp;ldquo;Is this action audit logged?&amp;rdquo; These become normal review language, not special security meetings.&lt;/p&gt;
&lt;p&gt;Testing benefits too. Each high or medium threat should map to at least one concrete test case:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;malformed token structure&lt;/li&gt;
&lt;li&gt;replayed reset token&lt;/li&gt;
&lt;li&gt;expired token with clock skew&lt;/li&gt;
&lt;li&gt;brute-force attempts from distributed IPs&lt;/li&gt;
&lt;li&gt;log event integrity under failure paths&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This turns threat modeling from a document into executable confidence.&lt;/p&gt;
&lt;p&gt;One anti-pattern to avoid: modeling only confidentiality risks. Many teams forget integrity and availability. Attackers do not always want to steal data. Sometimes they want to mutate state silently, poison metrics, or degrade service enough to trigger unsafe operator behavior. Small models should include those outcomes explicitly.&lt;/p&gt;
&lt;p&gt;Another anti-pattern: assuming internal systems are trusted by default. Internal callers can be compromised, misconfigured, or simply outdated. Every boundary deserves explicit checks, not cultural trust.&lt;/p&gt;
&lt;p&gt;You also need to revisit models after feature drift. A safe flow can become unsafe after &amp;ldquo;tiny&amp;rdquo; product changes: one new query parameter, one optional bypass for support, one reused endpoint for batch jobs. Keep threat notes near code ownership, not in a forgotten wiki folder.&lt;/p&gt;
&lt;p&gt;In mature teams, this process becomes routine:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;model in planning&lt;/li&gt;
&lt;li&gt;verify in review&lt;/li&gt;
&lt;li&gt;test in CI&lt;/li&gt;
&lt;li&gt;monitor in production&lt;/li&gt;
&lt;li&gt;update after incidents&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That loop is what you want. Not a quarterly ritual.&lt;/p&gt;
&lt;p&gt;The most practical security posture is not maximal paranoia. It is repeatable discipline. Threat modeling in the small provides exactly that: bounded scope, fast iteration, and security decisions that survive contact with real shipping pressure.&lt;/p&gt;
&lt;p&gt;If you adopt only one rule, adopt this: no feature touching auth, money, permissions, or external input ships without a one-page small threat model and at least one threat-driven test. The cost is low. The regret avoided is high.&lt;/p&gt;
</description>
    </item>
    
    <item><title>Format String Attacks</title>
      <link>https://mobile.dev.turbovision.in6-addr.net/hacking/exploits/format-string-attacks/</link>
      <pubDate>Sun, 14 Dec 2025 00:00:00 +0000</pubDate>
      <lastBuildDate>Sun, 22 Feb 2026 15:49:27 +0100</lastBuildDate>
      <guid>https://mobile.dev.turbovision.in6-addr.net/hacking/exploits/format-string-attacks/</guid>
      <description>&lt;p class=&#34;article-subtitle&#34;&gt;From %08x reads to %n arbitrary writes&lt;/p&gt;&lt;p&gt;Format string vulnerabilities happen when user-controlled input ends up as the
first argument to &lt;code&gt;printf()&lt;/code&gt;. Instead of printing text, the attacker reads or
writes arbitrary memory.&lt;/p&gt;
&lt;p&gt;We demonstrate reading the stack with &lt;code&gt;%08x&lt;/code&gt; specifiers, then escalate to an
arbitrary write using &lt;code&gt;%n&lt;/code&gt;. The write-what-where primitive turns a seemingly
harmless logging call into full code execution.&lt;/p&gt;
&lt;p&gt;The fix is trivial: always pass a format string literal. &lt;code&gt;printf(&amp;quot;%s&amp;quot;, buf)&lt;/code&gt;
instead of &lt;code&gt;printf(buf)&lt;/code&gt;. Yet this class of bug resurfaces in embedded firmware
to this day.&lt;/p&gt;
&lt;p&gt;Why does this still happen? Because logging code is often treated as harmless,
copied fast, and reviewed late. In small C projects, developers optimize for
speed of implementation and forget that formatting functions are tiny parsers
with side effects.&lt;/p&gt;
&lt;h2 id=&#34;exploitation-ladder&#34;&gt;Exploitation ladder&lt;/h2&gt;
&lt;p&gt;Typical progression in a lab binary:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Leak stack values with &lt;code&gt;%x&lt;/code&gt; and locate attacker-controlled bytes.&lt;/li&gt;
&lt;li&gt;Calibrate offsets until output is deterministic.&lt;/li&gt;
&lt;li&gt;Use width specifiers to control write count.&lt;/li&gt;
&lt;li&gt;Trigger &lt;code&gt;%n&lt;/code&gt; (or &lt;code&gt;%hn&lt;/code&gt;) to write controlled values to target addresses.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;At that point, you can often redirect flow indirectly by corrupting function
pointers, GOT entries (where applicable), or security-relevant flags.&lt;/p&gt;
&lt;h2 id=&#34;defensive-pattern&#34;&gt;Defensive pattern&lt;/h2&gt;
&lt;p&gt;Treat every formatting call as a sink:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;enforce literal format strings in coding guidelines&lt;/li&gt;
&lt;li&gt;compile with warnings that detect non-literal format usage&lt;/li&gt;
&lt;li&gt;isolate logging wrappers so raw &lt;code&gt;printf&lt;/code&gt; calls are rare&lt;/li&gt;
&lt;li&gt;review embedded diagnostics paths as carefully as network parsers&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Related reading:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/hacking/exploits/buffer-overflow-101/&#34;&gt;Buffer Overflow 101&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/hacking/tools/ghidra-first-steps/&#34;&gt;Ghidra: First Steps in Reverse Engineering&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    
    <item><title>Buffer Overflow 101</title>
      <link>https://mobile.dev.turbovision.in6-addr.net/hacking/exploits/buffer-overflow-101/</link>
      <pubDate>Mon, 03 Nov 2025 00:00:00 +0000</pubDate>
      <lastBuildDate>Sun, 22 Feb 2026 15:49:37 +0100</lastBuildDate>
      <guid>https://mobile.dev.turbovision.in6-addr.net/hacking/exploits/buffer-overflow-101/</guid>
      <description>&lt;p class=&#34;article-subtitle&#34;&gt;Stack control, step by step, on a deliberately unsafe binary&lt;/p&gt;&lt;p&gt;A stack-based buffer overflow is the oldest trick in the book and still one of the
most instructive. We start with a vulnerable C program, compile it without canaries,
and walk through EIP control step by step.&lt;/p&gt;
&lt;p&gt;The target binary accepts user input via &lt;code&gt;gets()&lt;/code&gt; — a function so dangerous that
modern compilers emit a warning just for including it. We feed it a carefully
crafted payload: 64 bytes of padding, followed by the address of our shellcode
sitting on the stack.&lt;/p&gt;
&lt;p&gt;Key takeaways: always compile test binaries with &lt;code&gt;-fno-stack-protector -z execstack&lt;/code&gt;
when learning, and never on a production box.&lt;/p&gt;
&lt;p&gt;What makes this topic timeless is not the exact exploit recipe, but the mental
model it gives you: memory layout, calling convention, control-flow integrity,
and why unsafe copy primitives are dangerous by construction.&lt;/p&gt;
&lt;h2 id=&#34;reliable-lab-workflow&#34;&gt;Reliable lab workflow&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Confirm binary protections (&lt;code&gt;checksec&lt;/code&gt; style checks).&lt;/li&gt;
&lt;li&gt;Crash with pattern input to find exact overwrite offset.&lt;/li&gt;
&lt;li&gt;Validate instruction pointer control with marker values.&lt;/li&gt;
&lt;li&gt;Build payload in small increments and verify each stage.&lt;/li&gt;
&lt;li&gt;Only then attempt shellcode or return-oriented payloads.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Expected outcome before each run should be explicit. If behavior differs, do
not &amp;ldquo;try random bytes&amp;rdquo;; explain the difference first. That habit turns exploit
practice into engineering instead of cargo cult.&lt;/p&gt;
&lt;h2 id=&#34;defensive-mirror&#34;&gt;Defensive mirror&lt;/h2&gt;
&lt;p&gt;Learning offensive mechanics should immediately map to mitigation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;remove dangerous APIs (&lt;code&gt;gets&lt;/code&gt;, unchecked &lt;code&gt;strcpy&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;enable stack canaries, NX, PIE, and RELRO&lt;/li&gt;
&lt;li&gt;reduce attack surface in parser and input-heavy code paths&lt;/li&gt;
&lt;li&gt;test with sanitizers during development&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Related reading:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/hacking/exploits/format-string-attacks/&#34;&gt;Format String Attacks Demystified&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/hacking/tools/ghidra-first-steps/&#34;&gt;Ghidra: First Steps in Reverse Engineering&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    
  </channel>
</rss>
