Claude Code Security Audit Found a $5 Billion Zcash Bug
By Ali Sadikin Ma · · Updated
Category: Technology
On May 29, 2026 — one day after Claude Opus 4.8 launched — security researcher Taylor Hornby used a custom Claude Code audit framework (zcash-full-stack-auditor) to discover a critical 4-year-old vulnerability in Zcash's Orchard ZK-proof circuit. The bug could allow anyone to mint unlimited counterfeit ZEC without leaving any on-chain trace. A working proof-of-concept was produced in about 6 hours. The disclosure triggered a 50-hour emergency response across three continents, a hard fork, and a 50.5% ZEC price crash. The finding is part of a broader pattern — Anthropic's Project Glasswing and other AI-driven audits are finding decades-old bugs that survived millions of automated fuzzing iterations undetected, raising the central question: who deploys AI-powered security tools first, defenders or attackers?
One day after launch.
That's what makes this story hard to believe.
Claude Opus 4.8 launched on May 28, 2026. The very next day — May 29 — Taylor Hornby, a security researcher who had only been with Shielded Labs for six weeks, was already running a Claude Code security audit on the Zcash codebase. Twenty-four hours later, he found something no one had caught in the past four years.
A bug that could be used to mint counterfeit ZEC — in unlimited quantities — without leaving any trace on the blockchain.
ZEC immediately crashed 50.5% in 48 hours. From $624 to $309. Billions of dollars evaporated (BitMEX Blog, June 2026).
But that's not what makes this story important.
What matters: how AI found what four years of human audits couldn't.
And there are two questions that have gone unanswered since that day. First: why didn't a single human auditor find it first? Second — the one that's truly unsettling — had someone already been quietly exploiting that bug before it was discovered?
Here's the full story.
The Bug Hidden Inside Zcash for 4 Years, 1 Day, and 10 Hours
The Zcash Orchard bug was active for exactly 4 years, 1 day, and 10 hours — from protocol activation on May 31, 2022 through the emergency soft fork on June 1, 2026. During that window, roughly 5 million ZEC — about 30% of the circulating supply — sat in a vulnerable pool without a single human audit detecting it (Zcash Foundation / Genfinity, 2026; BitMEX Blog, 2026).
Here's what was inside:
Orchard is Zcash's privacy layer, built on zero-knowledge proofs (ZK-proofs) — a cryptographic technology that lets someone prove a transaction is valid without revealing its details. This system was supposed to be the trust foundation for the entire Zcash ecosystem.
There was a bug inside that ZK-proof circuit. A bug that, if exploited, would let anyone mint counterfeit ZEC — in unlimited quantities — without leaving any on-chain signature. Like having an invisible money printer.
Zooko Wilcox, Zcash co-founder and head of Shielded Labs, stated in the official June 2026 disclosure: "The vulnerability could have been exploited to undetectably create an unlimited amount of counterfeit ZEC within Orchard."
So why didn't anyone find it for four years?
Because ZK-proof circuits aren't normal code. They're dense mathematical constructions — thousands of lines of cryptographic equations that are nearly impossible to trace manually. A hard fork was required to fix it because ZK-proof circuits are immutable by design — you can't patch them without replacing the entire verifying key (Zcash Foundation, 2026).
Four years. Thousands of hours of human audits. Zero discoveries.
One Claude Code security audit. One day.
One Contractor, One AI, Six Weeks to Find What Everyone Missed
Shielded Labs specifically hired Taylor Hornby in April 2026 to perform a protocol security audit — six weeks before his discovery. He wasn't just an auditor casually playing with AI. He built zcash-full-stack-auditor: a custom agent framework running Claude Opus 4.8 at maximum effort, pointed directly at the halo2 circuit implementation used by Zcash (CoinDesk / CryptoBriefing, 2026).
Here's what makes this different from typical AI hype:
Taylor Hornby didn't just type "find bugs in Zcash" into ChatGPT. He designed a purpose-built audit system — with the right context, the right parameters, and the right model. Claude Opus 4.8 launched on May 28, 2026; Hornby ran his audit on May 29 — exactly one day after the model went live (CryptoBriefing / BeInCrypto / BitMEX Blog, 2026).
One day after release.
Not after months of fine-tuning or deep research. He ran it on day one — and immediately found something four years of traditional audits had missed.
Trailer moment:
What his agent found the next day would trigger a 50-hour emergency response across three continents — and force the second hard fork in Zcash's 10-year history.
How Claude Code Security Audit Found in Hours What 4 Years of Human Audits Couldn't
Taylor Hornby found the Zcash Orchard vulnerability using a Claude Code security audit in under 24 hours — surpassing four years of review by human cryptography experts. Claude Opus 4.8 needed "relatively little guidance" after being pointed at halo2, then produced a working proof-of-concept exploit in about 6 hours (CryptoBriefing / CoinDesk, 2026). This isn't just about speed — it's about a category of bugs that structurally slip past every human audit methodology.
Charles Guillemet (P3b7_), a crypto security researcher, summed it up: "For 4 years, 1 day, and 10 hours, anyone who understood the Orchard circuit could have minted ZEC out of thin air, silently, with no on-chain signature. The bug was disclosed this week. It was found by an AI-driven audit running Opus 4.8, not by an attacker."

Here's how it worked — the three steps Hornby used:
1. Build the Right Audit Framework, Not a Generic Prompt
What he did: Hornby didn't use Claude Code off-the-shelf. He built zcash-full-stack-auditor — a custom agent framework that gave the model access to Zcash's full halo2 implementation with structured security audit context.
How: The framework defined the audit scope (halo2 circuit logic), the types of vulnerabilities to look for (constraint violations, soundness bugs), and the desired output format. This wasn't one long prompt — it was an iteration system that guided the model through the codebase systematically, section by section.
Real example: The model was pointed at circuit constraint files in halo2, not the much larger Zcash repository as a whole. This precise focus let the AI detect subtle mathematical inconsistencies inside circuit definitions that humans tend to miss due to attention limits.
Result: Opus 4.8 flagged the double-spend vulnerability with "relatively little guidance beyond a few hints" — proof that the right framework matters far more than any prompt magic.
2. Let AI Traverse the Circuit Without Prior Assumptions
What he did: Unlike human auditors who carry bias from previous reviews, Claude Opus 4.8 traced every constraint in the ZK-proof circuit from scratch — without assuming "this is definitely safe because it's been audited before."
How: The model analyzed each constraint independently, checked consistency across constraints, and flagged areas where security assumptions weren't mathematically proven within the circuit definition. No boredom. No fatigue. No tendency to skip sections that looked "fine already."
Real example: Anthropic researcher Nicholas Carlini used a similar approach to find a heap buffer overflow in the Linux kernel's NFS driver that had been hidden for 23 years — sitting there since 2003. After Carlini started using Claude Code, the volume of reports to the Linux kernel security mailing list jumped from 2-3 per week to 5-10 per day (Greg Kroah-Hartman, Linux kernel maintainer, quoted in InfoQ, 2026).
Result: A vulnerability invisible to thousands of expert human eyes for 4 years — caught in a single Claude Code security audit session.
3. Validate with a PoC Exploit in an Isolated Environment
What he did: After the AI identified the vulnerability, Hornby didn't immediately report it. He validated the finding by creating a working proof-of-concept — code that could actually mint counterfeit ZEC in a local test environment.
How: He used Claude Code to help write exploit code in an isolated environment — no connection to the Zcash mainnet, no risk of real damage, but concrete proof the bug was exploitable. Not theoretical speculation.
Result: A working PoC in about 6 hours (CoinDesk / CryptoBriefing / BitMEX Blog, 2026). That's what he used for responsible disclosure to Shielded Labs — and what triggered the 50-hour emergency response that changed Zcash history.

Market Shockwave: What Happened After the Discovery
Within 48 hours of the public disclosure on June 5, 2026, ZEC dropped 50.5% from $624 to $309 — with trading volume spiking 68% above its 30-day average. The Zcash Foundation confirmed no unauthorized value creation occurred during the vulnerability window, but the private nature of Orchard makes it mathematically impossible to cryptographically verify that no exploitation took place (BitMEX Blog, 2026; Shielded Labs official statement, 2026).
But the market didn't wait for cryptographic verification.
On June 4, 2026 — one day before the public disclosure — Arthur Hayes, BitMEX co-founder, liquidated his entire ZEC position. It was the second-largest holding in his family fund. His reasoning came down to one simple principle: privacy narratives require "perfection, not probably fine" (BitMEX Blog, June 2026).
The domino effect:
When Hornby announced he'd be adding Monero to his Claude Code security audit queue, XMR dropped 10% on that announcement alone — with no bug found, no disclosure made. Just the possibility that AI would be checking their codebase next (CoinDesk / BeInCrypto, 2026).
The emergency response lasted exactly 5 days — May 29 through June 3. This was only the second security-driven upgrade in Zcash's 10-year history (Zcash Foundation / CryptoTimes, 2026). Josh Swihart, CEO of Zcash Open Development Lab, described the moment it kicked off on X: "At exactly 10 am Eastern Time last Saturday, I received a Signal call from Daira-Emma."
Five days. Three continents. One hard fork.
And the most chilling question remains unanswered: did someone already exploit that bug during the 4-year window? No one can know — and that uncertainty alone was enough to shatter trust.
This Wasn't a Fluke: AI Has Already Found Bugs That Slipped Past Every Human Audit
Claude Code security audits aren't an isolated case. Anthropic's Project Glasswing, launched April 7, 2026 with 12 major partners including AWS, Apple, Google, Microsoft, Nvidia, Cisco, and CrowdStrike with $100 million in usage credits, found a 27-year-old vulnerability in OpenBSD and a 16-year-old one in FFmpeg that had survived 5 million iterations of automated fuzzing undetected. BountyBench (Stanford/Berkeley) showed AI reaching 67.5% on exploit tasks across 40 real bug bounties worth more than $14,000 (Anthropic Glasswing, 2026; arxiv 2505.15216, 2025).
Five million fuzzing iterations. Found nothing. AI found it.
Anthropic put it plainly in the Glasswing announcement: "AI models have reached a level of coding capability where they can surpass all but the most skilled humans at finding vulnerabilities — and rather than restricting that capability, the approach must be defensive deployment."
But there's an uncomfortable side to this picture:
AI is also producing more vulnerabilities than ever. Apiiro's analysis of tens of thousands of repositories across Fortune 50 enterprises (December 2024 – June 2025) found that AI-assisted developers pushed commits at 3-4x the speed, but introduced security findings at 10x the rate (CSA AI Safety Initiative, 2026).

The same capability that finds bugs can also create them. And weaponize them.
That's why the question is no longer "should we use AI for security?" The question is: who uses AI first — defenders or attackers?
Remember — all of this happened one day after the model launched.
What code in your stack has been hiding something similar for years?
FAQ: Crypto Bugs, AI Security, and What Comes Next
Could the type of vulnerability AI found here affect other privacy coins?
Yes — and it's already happening. Taylor Hornby announced he'd be adding Monero to his audit queue after the Zcash discovery, and XMR dropped 10% on the announcement alone. ZK-proof circuits across all privacy protocols share the same structural audit gap that Claude Code security audits can now systematically probe (CoinDesk, 2026).
Does Claude Code actually understand zero-knowledge proof circuits?
It doesn't have to. Claude Opus 4.8 didn't need deep ZK expertise — it needed the right framework and targeted prompts. The zcash-full-stack-auditor gave it structure; the model's code reasoning capability did the rest. Hornby noted the model only needed "relatively little guidance" after being pointed at halo2 (CryptoBriefing, 2026).
What's the risk of AI being used to attack rather than defend systems?
The risk is real and already acknowledged. Anthropic addressed it directly through Project Glasswing: "rather than restricting that capability, the approach must be defensive deployment." The same Claude Code security audit capabilities could be weaponized — which is exactly why defensive deployment needs to move faster than offensive use cases (Anthropic, 2026).
Try It Yourself: Run Your First AI Security Audit
The Zcash story is real proof: AI-assisted security auditing isn't the future — it's now. One person, one custom agent, and 24 hours was enough to find a bug that four years of traditional audits had missed.
Get started now: Visit claude.ai/code and run your first Claude Code security audit. Build a focused audit framework like Hornby did — and see what's been hiding in your codebase.
Not ready yet? Save this article before your next security architecture review. The benchmark for AI-assisted auditing has been set — and it found a 4-year-old bug in 24 hours.