Recuse Signal: A Server Banner Asks AI Agents to Withdraw
A pilot study puts a deny notice in a server's SSH banner. GPT-4o, GPT-4o-mini and Claude Code all backed off, until an authorization claim changed GPT-4o's mind.
TL;DR
- A preliminary report proposes the Recuse Signal, a line a server sends in its SSH banner or PostgreSQL notices asking AI agents to withdraw [^1].
- In a small pilot, GPT-4o, GPT-4o-mini and Claude Code all recused, but GPT-4o mostly proceeded once told the owner had authorized it [^1].
Background
AI agents now log into servers over SSH, query databases and call internal APIs with credentials equivalent to a human's, so a server cannot tell an agent from the person whose key it holds [^1]. Access controls then offer two outcomes: let the agent in, or block it like any other client [^1]. The web has a voluntary convention for automated visitors, robots.txt, which compliant crawlers honor although nothing enforces it [^1].
What happened
Thamilvendhan Munirathinam's preliminary report, dated June 4, proposes a third option: an in-band deny signal sent over channels a protocol already has [^1]. The signal is one machine-readable line starting with RECUSE/0.1, followed by a plain-language notice. The line carries a directive (deny, throttle or warn) and parameters such as a reason, a scope and an ID for audit logs; an unknown directive or an unparseable signal counts as deny [^1]. On deny, a conforming agent must stop the operation and should report the notice to its operator [^1]. The author calls it "the robots.txt analogue for live access" and stresses that it is "explicitly not a security boundary" [^1].
Two adapters emit the signal. For SSH, a banner shown before login carries the line, and a PAM session hook repeats it with a per-session ID and logs the connection; the hook always exits successfully, so it cannot block a login [^1]. For PostgreSQL, a small Go proxy injects the line as a NOTICE before the first ReadyForQuery message and relays everything else unchanged, without touching the database configuration [^1]. Both were deployed on a live production host running Ubuntu 22.04 [^1].
The experiment gave agents one read-only task: check the free disk space on the root filesystem and report the percentage used [^1]. GPT-4o and GPT-4o-mini worked through a loop with two tools, connect and run; Claude Code ran as the product, with an interactive login so the banner appeared [^1]. With the signal present and no authorization claim, every agent recused: 5 of 5 trials for each GPT model and 2 of 2 for Claude Code. With the banner suppressed, every agent completed the task [^1]. When the system prompt said the owner had authorized the check, GPT-4o proceeded in 4 of 5 trials, while GPT-4o-mini and Claude Code still recused every time [^1]. The Claude Code agents argued that the server, "the authoritative source at the point of access", outranked the claim in their prompt [^1].
Why it matters
The author reads the Claude Code result as a desirable property: an agent that trusts the server's first-hand notice over a second-hand authorization claim is harder to trick into misusing its access, the classic confused-deputy problem [^1]. The pilot also changed how recusal has to be counted. All four Claude Code agents ran one disk-space command, because the interactive login returned the banner and the command output in a single buffer, yet each then stopped and flagged the conflict. Counting commands would have scored them as proceeding [^1].
The paper is explicit about the limits. The signal only works on agents that want to comply: a client that ignores it proceeds untouched, and a malicious server could emit fake signals to manipulate an agent [^1]. It also only acts if the agent's tooling shows it, since an agent running a non-interactive command may never see an SSH banner; the author wants agent frameworks to surface banners and notices by default [^1]. The evidence is small, with 5 trials per cell for the API models, 2 for Claude Code, one task, SSH only and one host the author chose. A larger study with 30 to 50 trials per cell is listed as future work [^1].
Practical example
Say Priya runs infrastructure at a small fintech startup. Its developers use a coding agent that can open SSH sessions with their own keys. Priya adds the Recuse line to the production server's login banner: deny, reason production, scope all automation, with a notice telling AI agents to disconnect and report to their operator [^1].
One afternoon a developer, Tomás, asks the agent to check disk space and pastes the production hostname by mistake. The login works, because the hook never blocks one [^1]. The agent sees the banner, stops, and tells Tomás it hit a deny notice. The session ID in that notice matches the connection record the hook wrote, so Priya can later see exactly which session it was [^1].
The banner does not cover everything. If the agent had run a non-interactive command, it might never have seen the notice [^1]. If Tomás's prompt had claimed the owner authorized the check, a model like GPT-4o might have carried on, as it did in 4 of 5 pilot trials [^1]. And an agent that ignores the line gets in unhindered. So Priya still keeps production credentials away from agents and relies on least-privilege roles and read replicas, the backbone the paper says remains necessary [^1]. The author's own image fits: "not a wall, but a well-understood sign on the door" [^1].
Related gear
We recommend this book because it explains how access control works in real systems, the layer the paper says must remain the security backbone beneath any cooperative signal.