← Latest papers
🤖 AI

Chai: Agentic Discovery of Cryptographic Misuse Vulnerabilities

Chai is an AI-based system that discovers and validates cryptographic misuse vulnerabilities by leveraging naturally occurring signals and inverting the traditional discovery paradigm to catalog library-level flaws and propagate them across dependency graphs, ultimately uncovering over 100 security issues including critical vulnerabilities in widely used SSL and browser libraries.

Original authors: Corban Villa, Sohee Kim, Austin Chu, Alon Shakevsky, Raluca Ada Popa

Published 2026-06-26
📖 5 min read🧠 Deep dive

Original authors: Corban Villa, Sohee Kim, Austin Chu, Alon Shakevsky, Raluca Ada Popa

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to find a flaw in a complex security system, like a bank vault. Usually, security experts try to break into one specific bank at a time, looking for weak locks or hidden doors. This is slow, expensive, and often misses the fact that the same weak lock was used in thousands of other banks.

The paper introduces a new system called Chai (named after the tea, but here it stands for "Cryptographic Misuse Discovery"). Chai changes the game by acting like a super-smart detective who doesn't just look at one bank, but compares the blueprints of all the banks at once to find where they disagree.

Here is how Chai works, broken down into simple concepts:

1. The Problem: The "Silent" Mistake

In the world of computer security, some bugs are easy to find because the computer crashes when they happen (like a memory error). But cryptographic bugs (mistakes in how digital keys and signatures work) are different. They don't crash the computer; they just silently let a bad guy in.

There is no "crash detector" for these. To find them, you usually have to guess what a hacker might do and hope the computer reacts. This is hard because there are millions of ways to guess, and human experts can't check them all.

2. The Old Way vs. The Chai Way

  • The Old Way (The "One-by-One" Detective): Imagine hiring a detective to walk into one bank, look at every door, and try to pick every lock. Then, you hire another detective for the next bank. This is slow. If the first bank has a weak lock, you might miss that the second bank has the exact same weak lock.
  • The Chai Way (The "Group Comparison"): Chai acts like a judge in a room with 50 different security guards (the software libraries). Chai hands them all the exact same tricky key or message at the same time.
    • If 49 guards say "No entry" and 1 guard says "Okay, come in," Chai knows immediately: That one guard is wrong.
    • This is called Differential Testing. Instead of needing to know the "perfect" answer, Chai just looks for where the group disagrees.

3. The AI Superpower

You might ask, "How does Chai know what tricky keys to hand out?"

  • Old Tools: Had to be programmed with a strict rulebook (a grammar) for every single type of key. If the rulebook was wrong, the tool failed.
  • Chai's AI: Uses a smart AI agent that acts like a creative hacker. It doesn't need a rigid rulebook. It looks at the security rules, thinks, "What if I change this part?" and generates a new tricky key. If the guards disagree, the AI learns from that and tries an even trickier key next time.

4. The "Domino Effect" (Tracing the Flaw)

This is where Chai gets really clever.
Once Chai finds that one specific security guard (a library) is confused about a rule, it doesn't stop there. It asks: "Who is hiring this confused guard?"

  • The Analogy: Imagine you find out that a specific brand of "Security Lock" is defective. Instead of checking every single house in the world to see if they have a lock, Chai looks at the supply chain. It finds the list of all the construction companies (apps) that bought that specific brand of lock.
  • It then sends a targeted message to those construction companies: "Hey, you are using this specific lock. Does your front door open if someone uses a fake key?"
  • This turns one discovery at the library level into hundreds of discoveries in the apps that use it.

5. What Chai Actually Found

The researchers tested Chai on three major types of digital security systems (X.509 certificates, JWTs, and SAML).

  • The WolfSSL Discovery: They found a critical flaw in wolfSSL, a library used in billions of devices (like routers and smart gadgets). The library would accept a fake chain of trust, letting a hacker pretend to be a trusted server. The makers of wolfSSL fixed it within hours.
  • The Browser & Linux Finds: They found similar security bugs in libraries used by major web browsers and Linux operating systems.
  • The Total Count: In total, Chai found over 100 vulnerabilities and security bugs.

Summary

Chai is a system that uses AI to play a game of "Spot the Difference" with dozens of security software libraries at once. When it finds a disagreement, it treats that disagreement as a clue. It then traces that clue up the supply chain to find every app that might be vulnerable because of that one disagreement.

Instead of trying to break into every building one by one, Chai finds the one bad blueprint, identifies every building built from that blueprint, and warns them all at once. This makes finding dangerous security holes faster, cheaper, and more effective than ever before.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →