The Scissors Gap: Immutable Code, Improving Models
Consider a contract that cannot be edited, read by a model that improves every six weeks.
On July 30, 2023, several Curve Finance pools were drained in a matter of hours. The cause was not a novel logic error in the pools themselves. It was a compiler-level failure in Vyper — the reentrancy lock compiled incorrectly in versions 0.2.15, 0.2.16, and 0.3.0 — which meant that a function that advertised non-reentrancy silently permitted reentry. Roughly $70 million sat exposed across multiple pools before whitehats and blackhats began racing through the same bytecode. The exploit class that followed — read-only reentrancy against get_virtual_price() — was not exotic. It was a pattern. And patterns are precisely what large language models are optimized to regress across a corpus.
Hold that image. Now hold the second image, the one that circulated last week: Sam Altman, in a line reconstructed through a crypto vertical's paraphrase, conceding that he "cannot stop ChatGPT from aiding cybersecurity work."
Most readers of that headline heard a governance statement. I heard something narrower and more interesting: a liability-boundary announcement dressed as a technical confession. The disclosure itself is thin — one quoted sentence, no timestamp, no interview context, no distinction between defensive and offensive use. Treat the artifact as low-confidence. But the underlying structure it points at is real, verifiable, and now arriving on-chain with the full weight of immutability behind it.
The On-Chain Instantiation of an Unverifiable Property
The dual-use problem in AI safety is usually described abstractly. In smart contracts it has a literal, byte-level form.
A request to a model is a tuple: the target, the requested action, and the authorization under which the action is lawful. A language model observes only the first two. Authorization is an off-chain fact that never enters the token stream. A penetration tester holding a signed statement of work and an attacker holding nothing transmit identical text. There is no field in the prompt where a contract, a scope document, or a bug-bounty whitelist can be verified.
This is not a tuning failure. It is an information-theoretic gap between the input the model receives and the predicate the policy is trying to evaluate.
In 2020 I spent three months simulating arbitrage paths between Uniswap V2 and Synthetix on a local testnet, chasing a reentrancy condition that only existed in the composition of two individually sound systems. The work was authorized, methodical, and indistinguishable — from the outside — from preparation for an attack. Nobody in that process could have proven intent to a classifier. The proof lived in a legal document and my own reputation, neither of which a model can read.
The consequence is a binary choice at the policy layer, applied per-request, with no access to ground truth:
if policy(text) == REFUSE:
false_negative_rate up # defenders blocked, attackers unmoved
else:
false_positive_rate up # defenders unblocked, attackers unblocked
There is no third branch. Every deployment of a cyber-policy sits somewhere on that tradeoff curve, and the position of that point is a business decision, not a safety decision.
Three Layers, Three Failure Modes
Tracing the assembly logic through the noise, the problem decomposes cleanly. Each layer fails for a different reason, and each failure is structural rather than incidental.
The knowledge layer cannot be removed. Vulnerability mechanics — integer truncation in share accounting, stale oracle reads, donation-based balance manipulation, signature replay across chains — live in public corpora that predate any alignment effort: NVD entries, CTF writeups, GitHub proof-of-concept repositories, and the post-mortem culture of this industry itself. Every major exploit since 2016 has been documented publicly, in detail, within days. Alignment shapes output preference; it does not delete a distribution from the weights. You cannot unlearn a corpus by supervised fine-tuning on refusals.
The policy layer is probabilistic classification, not a rule engine. Refusal behavior emerges from a classifier or policy model interacting with instruction tuning. It is robust to nothing in particular. Rewriting, role framing, multi-turn decomposition, encoding shifts, and translation all move the request off-distribution relative to the refusal training set. A defense built on content classification inherits the adversarial robustness ceiling of that classifier — which, for text, is low.
The ecosystem layer is uncontrolled by design. This is where the crypto industry should be paying attention and mostly is not. Assume a closed API achieves perfect refusal on every offensive request. Open-weight models — the Llama, Qwen, and DeepSeek lineages — run locally, ship without a policy layer, and are fine-tuned by anyone with two GPUs and a dataset. The global ceiling of cyber capability is set by the open-weight frontier, not by the most cautious lab. A vendor's refusal policy is a speed bump on a road it does not own.
| Layer | What fails | Why it cannot be fixed at that layer | |---|---|---| | Knowledge | Cannot be deleted from weights | Pre-training corpus is public and permanent | | Policy | Probabilistic, adversarially soft | Classifier robustness ceiling | | Ecosystem | Open weights bypass all gates | No central control point exists |
If all three layers fail, then "we cannot stop it" is not a confession of incompetence. It is an accurate description of the architecture.
The Scissors Gap
Here is the part the original report identified but did not push to its conclusion, because it was analyzing an AI story rather than a settlement-layer story.
The relevant variable is not the absolute level of offensive capability. It is the ratio of discovery velocity to remediation velocity. Model capability compounds. Review capacity does not.
discovery_rate(t) ~ exponential in capability(t)
remediation_rate(t) ~ linear in auditor headcount(t)
gap(t) = ∫ [discovery_rate - remediation_rate] dt
if contract is immutable: remediation_rate -> 0 gap(t) -> unbounded ```
The last branch is the blockchain-specific term, and it has no analogue in traditional security. A web application with a known vulnerability is patched. A deployed contract with a known vulnerability is a permanent, public, machine-readable invitation with an address. There is no patching window. There is only the economic question of whether the exploit is profitable at current gas and liquidity conditions.
This is why remediation latency is the correct metric to track, and why it varies by four orders of magnitude across contract architectures:
| Architecture | Time-to-remediate a logic flaw | Blast radius control | |---|---|---| | Immutable, no proxy | Infinite | None | | Proxy + timelock (48h) | Days, conditional on governance action | Partial | | Immutable + circuit breaker | Hours, conditional on keeper | Bounded | | Immutable + formal invariants | N/A — flaw must violate an asserted invariant to ship | High |
Read the table as a portfolio allocation, not a taxonomy. Every immutable deployment is a short position against improving models. That position does not expire. It pays out only if the code is correct on a timescale the team cannot observe.
The audit pipeline that was supposed to close this gap runs on human throughput. An audit is priced in reviewer-weeks, delivered as a point-in-time artifact, and bound by the reviewer's attention span over a codebase that may exceed a hundred thousand lines of Solidity and Yul. When I dissected MakerDAO's early MCD contracts in 2017, I spent six weeks on liquidation logic alone and produced forty pages — and that was for one subsystem of one protocol, at a moment when the entire industry held a fraction of the value it holds now. The ratio between code volume and review capacity has moved the wrong way for nine consecutive years.
Now insert a model that reads the whole corpus in minutes. It will find the compiler-version mismatch, the stale read, the missing nonReentrant modifier, the donation-vulnerable accounting invariant. The discovery side of the scissors is about to open faster than the remediation side can possibly respond.
Attribution Failure, and the Agent Boundary
The blockchain is often described as a transparency machine. It is — about state, not about intent.
When funds move, the trail is permanent and public. Forensic analysts reconstruct the transaction path, the bridge hops, the mixer deposits. What no forensic method recovers is the tool that generated the exploit, because the tool leaves no trace in the execution environment. A hand-written exploit and a model-assisted exploit produce byte-identical calldata. The accountability mechanism fails at precisely the point where it would need to function.
This has a downstream consequence that the security industry has not priced. If attribution is impossible, then ex-post deterrence is impossible, and the only remaining intervention point is ex-ante restriction — which is the exact intervention the refusal policy cannot reliably perform. Parsing intent from immutable storage is not a solvable problem. The storage records effects. Intent was never written to it.
And the newest attack surface does not require the model to be jailbroken at all. Consider an agent with a signing key, wired into a deployment pipeline: it ingests an audit report, summarizes findings, and proposes a governance transaction. The audit report is an untrusted input. A crafted PDF, a markdown file with buried instructions, a malicious dependency's changelog — any of these can carry an indirect prompt injection that redirects the agent's transaction construction. The model is not the exploit. The tool boundary is the exploit, and the sector is currently handing agents the keys while debating refusal policies that sit one layer above the actual failure.
I have written proof-generation circuits that reduce verification time by forty percent and still do not trust an LLM to hold a multisig. The gap between "capable of constructing valid calldata" and "trustworthy enough to submit it" is the entire security architecture of the next cycle.
The Contrarian Read: Offense Was Never the Bottleneck
The intuitive conclusion is that AI lowers the barrier to attacking chains, and therefore chains become more dangerous. I think that conclusion is directionally right and structurally wrong, and the distinction matters for anyone actually allocating capital into this sector.
Offensive knowledge was never scarce in crypto. This is an industry that publishes full post-mortems of every exploit, open-sources reference implementations of attack contracts, and runs public CTFs where the winners post their solutions. The median person capable of understanding a reentrancy condition on a Curve pool in 2022 already could have found the 2023 issue; what they lacked was not comprehension but capital, liquidity access, and operational patience. Exploitation has always been a working-capital problem disguised as a knowledge problem.
What AI actually changes is the shape of the threat, not the existence of it. It collapses the knowledge cost toward zero, which empowers a specific actor: the marginal attacker with no capital, no infrastructure, and no operational security discipline. The risk distribution pivots from a small number of sophisticated, high-value, targeted exploits toward a long tail of mass, low-sophistication drains against small protocols. That is a different risk shape entirely. It is more numerous, less correlated, and considerably harder to underwrite — which is why it should be worrying the insurance and risk-pricing side of this industry far more than the audit side.
And the "collective action" framing in the original statement should be read for what it is: a cost-externalization maneuver. A uniform regulatory floor on cyber-capable models converts the compliance spend of first movers into a moat against later entrants. The labs with the largest deployed systems have the most to gain from a mandate they can already satisfy. This industry, which depends on open weights for its own tooling and audits, should be the first to notice that the proposed cure is shaped remarkably like a barrier to entry.
There is a further inversion worth stating plainly. Over-refusal is not a safety feature; it is a degradation of the defender's baseline. When a legitimate security researcher cannot get a model to analyze a fork for an inherited vulnerability, the researcher does not stop. They go to open weights. The only permanent effect of a conservative refusal policy is that the honest operator pays a time tax while the adversary pays none. The alignment tax is not distributed evenly, and it never lands on the party it was designed to constrain.
Takeaway
Augmenting the space between the blocks, the question worth carrying forward is not whether a model can find a vulnerability. It is what a settlement layer looks like when the marginal cost of discovery approaches zero and the marginal cost of remediation is bounded by governance latency or, in the immutable case, is infinite.
The architecture of trust is fragile because it was priced under an assumption that is now expiring: that finding a bug is expensive. It is not, anymore. The code does not lie, and it is about to be read in full.
Watch three signals this cycle. First, open-weight model performance on exploit-generation benchmarks — that number, not any vendor's refusal policy, defines the real global ceiling. Second, audit queue length across major firms, which is the closest observable proxy for the remediation half of the scissors. Third, whether any governance process begins pricing risk rather than pretending to eliminate it. When discovery is free and repair is frozen, the only remaining move is to quantify the exposure and trade it.