explainx.ainewsletter3.5k
TrendingNewsPathwaysSkills
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

corporate training

support@explainx.ai

get started

Find your pathTake Free Evaluation

learn

pathways — start freeworkshopsbootcampscoursescertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcptoolsagentsllmsdesignsdictionaryagi trackerranks

company

aboutvisionmissionteaminstructorscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource libraryfor LLMsexplainx.ai kids

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportcontactprivacytermsdata rightshow we create contentsubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

On this page

  • TL;DR
  • What zkao is (and is not)
  • The seven bugs — severity at a glance
  • Bug highlights (why they matter)
  • What zkSecurity learned
  • Implications for AI-assisted security
  • Related on explainx.ai
← Back to blog

explainx / blog

AI Found 7 Bugs in Cloudflare CIRCL: What zkSecurity's zkao Audit Reveals

zkSecurity's AI pipeline confirmed seven real vulnerabilities in Cloudflare CIRCL — float64 TSS/RSA, CP-ABE access-control break, BLS rogue key, DLEQ forgery. Severity gaps, model pairings, and what zkao is.

Jul 8, 2026·7 min read·Yash Thakker
CryptographyAI SecurityCloudflareOpen SourceAuditing
go deep
AI Found 7 Bugs in Cloudflare CIRCL: What zkSecurity's zkao Audit Reveals

On July 7, 2026, zkSecurity published the first post in a series: AI meets Cryptography 1: What AI Found in Cloudflare's CIRCL. Their pipeline — LLMs plus the zkao audit agent — confirmed seven real vulnerabilities in Cloudflare CIRCL, an experimental post-quantum and advanced cryptography library. All seven are fixed upstream; most earned bounties under Cloudflare's HackerOne program.

The HN thread (July 8, 2026, 86+ points) asked the right meta-questions: how many AI candidates vs confirmed bugs, why some flaws lacked tests, and what zkao actually is versus a one-shot LLM prompt. This guide answers those from the primary source — no invented CVEs or severity claims.

Weekly digest3.5k readers

Catch up on AI

Curated AI updates on agents, skills, and MCP — delivered to your inbox. Unsubscribe anytime.


TL;DR

table · 2 cols
QuestionAnswer (from zkSecurity)
What was scanned?Cloudflare CIRCL — threshold RSA, BLS, HPKE, CP-ABE, DLEQ proofs
Confirmed bugs7 — all fixed; bounty-confirmed for most
What is zkao?zkSecurity's continuous AI audit agent — ~9h scan → report; better at crypto bugs + false-positive filtering than raw frontier prompts (per their team on HN)
Human role?AI → candidates; experts → validation, PoC minimization, disclosure
Scale200+ crypto projects scanned, 1000+ candidates — triage is the bottleneck
AI severityUnreliable — often over-rates; underrated the BLS rogue-key flaw
Best model (then)Opus 4.6 + skills found 5/6; zkao alone found the CP-ABE break

What zkao is (and is not)

Not: a single ChatGPT paste of your repo.

Is: zkSecurity's product for compounding security coverage — described in their zkao: Security That Compounds post as analogous to continuous fuzzing, but with AI reasoning over code.

From the July article and an HN reply by a zkSecurity team member:

  • You start a scan; roughly ~9 hours later you get a report
  • Tuned to find cryptographic bugs better than frontier models alone
  • Tuned to discard false positives better than naive LLM output
  • Built by encoding zkSecurity researcher skills into the pipeline

For CIRCL, the workflow was experimental: LLM-only vs LLM + expert skills, then zkao on the same codebase. zkao found all six LLM-confirmed issues plus a seventh the LLM pass missed.


The seven bugs — severity at a glance

zkSecurity's table compares AI-assigned severity vs Cloudflare confirmed severity after fix:

table · 6 cols
#BugAICloudflareFixFound by
1float64 precision loss in TSS/RSA polynomial evalCriticalLowf7d2180Opus 4.6 + skills
2qndleq forgery via prover-controlled SecParamHighLow757dde4Opus 4.6 + skills
3BLS aggregate missing message distinctness (rogue key)MediumHigh9798df7Opus 4.6 + skills
4DLEQ soundness break via FillBytes sign collisionHighLow19848a5Opus 4.6 + skills
5HPKE PSK validation bypass (Go | vs , in switch)MediumMedium (dup)a3b4fa3GPT-5.3 + skills
6TSS/RSA Lagrange coefficients in int64 (overflow + truncation)HighMedium751e372Opus 4.6 + skills
7CP-ABE access-control break via AND-share bugCriticalCriticaldef2fd3zkao

Takeaway: treat AI severity as noise. Cloudflare's bounty lens also weights live service impact — a soundness-breaking proof bug can still rate Low if unused in Cloudflare's deployment. Library consumers may face different risk.


Bug highlights (why they matter)

1. Float64 in threshold RSA — "people do crypto using floats?"

Deal() evaluated polynomial terms with math.Pow(float64(x), float64(i)) — 53-bit mantissa silently rounds before cast to integer. Wrong key shares for moderate player counts. Fix: Horner's method in big.Int (f7d2180).

HN note: Falcon (FN-DSA) legitimately uses floats in some deployments — but requires hand-implemented constant-time float ops. CIRCL's case was simply wrong tool choice.

3. BLS — the one AI underrated

VerifyAggregate checked the pairing equation but not message distinctness — enabling textbook rogue key attacks without proof-of-possession. AI named the attack but downgraded severity because BASIC mode docs put distinctness on the caller. Cloudflare fixed by rejecting duplicate messages (9798df7).

4. DLEQ — algebra meets serialization

Valid proof for (g, gx, ...) accepted for forged (g, -gx, ...) when challenge c is even: algebraic cancellation plus FillBytes stripping sign in the hash. ~50% success on honest proofs. Fix: checkBounds rejects negative inputs (19848a5).

5. HPKE — Go switch trap

go
case modePSK | modeAuthPSK:  // single case value 0x03, NOT two cases

modePSK alone matched no branch — SetupPSK with nil PSK slipped through. One-character-class fix: case modePSK, modeAuthPSK: (a3b4fa3).

7. CP-ABE — full access-control break (zkao find)

CP-ABE encrypts under policies like (usa AND finance) OR admin. AND gates must split the parent secret; one child gets r, the other parent - r.

The bug gave In0 the full parent and In1 zero — one AND leaf alone reconstructs the message key. Worse: Boneh-Katz CCA wrapping puts a wildcard leaf every user key satisfies as In0 of an outer AND. Every issued key decrypts regardless of policy.

Fix: one line — shares[gate.In1].sub(shares[gate.Out], shares[gate.In0]) (def2fd3).

HN testing question: regression test added at fix time — a higher-level "wrong attribute cannot decrypt" test is harder because the sharing scheme's correctness is subtle; zkSecurity credits zkao for reasoning through CP-ABE impact, not dismissing as hygiene.


What zkSecurity learned

1. AI severity is asymmetrically wrong

Over-rates local scary bugs (float64 → Critical). Under-rates known attack classes when responsibility is "on the caller" (BLS). Hypothesis: library bugs need system-level threat modeling the model cannot see. zkao lets devs supply threat context via zkao.md config.

2. Model pairings are unstable

Initial run: Opus 4.6 discovers, GPT-5.3 mostly validates (except HPKE). Weeks later with Opus 4.7 / GPT-5.4: roles reversed. Implication for builders: do not hard-code "best auditor model" — zkao aims to stay model-agnostic.

3. AI gathers but does not always chain

Bug 6 packed overflow and truncation as one finding without relating them into a chained exploit narrative. zkao is building composition steps for multi-bug chains.

4. Candidate volume vs confirmed reports

"We scanned more than 200 cryptographic projects … over a thousand candidate findings. The biggest bottleneck today is triage."

zkSecurity has not published exact candidate counts for CIRCL alone in the article — but the ratio is clearly many candidates → seven ship-quality reports. That human-in-the-loop gap is what zkao productization targets.


Implications for AI-assisted security

table · 2 cols
For maintainersFor teams buying AI audit
Crypto libraries need domain tests — "can't decrypt without policy" integration tests catch AND-share class bugs lateDemand PoCs — zkao emphasizes reproducible exploits to kill false positives
Never float64 for integer crypto mathDo not trust AI severity — map to your deployment threat model
Verifier must own security parameters — not proof structsContinuous scans beat one-shot pen tests for moving frontiers
Language traps (Go switch OR) still fool humans and AI alikeModel-agnostic pipelines — frontier leadership rotates monthly

Pair with MCP security guidance if agents touch crypto tooling — different surface, same triage discipline.


Related on explainx.ai

  • Google HEIR: homomorphic encryption for private AI — the other side of applied crypto: encryption schemes that let a server compute without ever decrypting
  • MCP security guide — command injection and trust boundaries in agent tooling
  • Fable 5 advisor patterns — cheaper executor + smarter advisor for code audit loops
  • Agent harness engineering — tool loops for long-horizon review
  • Claude for Open Source — grants for maintainers securing ecosystems like CIRCL
  • Kokoro local TTS — unrelated stack, same "local vs cloud" sovereignty theme

Official sources

  • AI meets Cryptography 1: CIRCL — zkSecurity
  • zkao: Security That Compounds
  • Cloudflare CIRCL — GitHub
  • zkao.io

Bug counts, severities, model names, and commit SHAs follow zkSecurity's July 7, 2026 article. Cloudflare bounty ratings reflect their deployment context — assess impact in your own integration before prioritizing patches.

Spotted something out of date? Let us know.
Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

Related posts

Aug 15, 2026

Google HEIR: A Compiler for Running AI Inference on Encrypted Data

Google open-sourced HEIR, a compiler that lowers the barrier to fully homomorphic encryption from "needs a cryptography team" to "point it at your model." It lets a server run AI inference on encrypted data without ever seeing the plaintext — but Hacker News's practitioner reaction is a useful reality check on how far this is from production-speed.

Aug 5, 2026

Cloudflare OS: An Open-Source Platform for Agents, Apps, and Work

Cloudflare open-sourced Cloudflare OS on August 5, 2026 — an agent workspace where every agent and app starts with access to nothing, apps run as isolated "Gadgets," and Kenton Varda calls it a rebuild of his own 2015 Sandstorm.io "with AI." Here is what it actually does, what Varda said on Hacker News that the blog post left out, and what's still unproven.

Jun 15, 2026

NVIDIA SkillSpector: Security Scanner for AI Agent Skills (2026)

Research shows 26.1% of agent skills contain vulnerabilities and 5.2% show likely malicious intent. NVIDIA's SkillSpector is an open-source scanner that catches them before they reach your agent.