← Lab /AI/ML

Chai finds over 100 cryptographic misuse bugs, including a critical SSL flaw

Chai can automatically discover and validate cryptographic misuse vulnerabilities across libraries

AI/ML arXiv 25 Jun 2026 Method Prototype evidence Threat model

Published as “Chai: Agentic Discovery of Cryptographic Misuse Vulnerabilities”

Why it matters

The system enables rapid discovery of high-impact cryptographic misuse in widely deployed libraries, allowing maintainers to patch critical flaws within hours of detection.

Summary

Chai discovers cryptographic misuse vulnerabilities, surfacing over 100 confirmed bugs-including critical chain-validation bypasses in wolfSSL-by pairing differential testing with AI agents and tracing library ambiguities to downstream applications. The evaluation across 47 libraries in 8 languages shows roughly twice as many unique differences as the strongest baseline, with findings confirmed by the authors and disclosed to maintainers, indicating strong empirical evidence despite the absence of a formal conclusion section.

What they found 2

  1. Chai surfaced over 100 vulnerabilities and security bugs across X.509, JWT, and SAML

    “Chai surfaced over 100 vulnerabilities and security bugs across X.509, JWT, and SAML (Table 1).”

  2. Chai’s differential search found roughly twice as many unique differences as the strongest baseline

    “Chai’s differential search compares favorably with prior differential-testing and fuzzing tools, surfacing ∼2× as many unique differences as the strongest baseline, many of which the baselines do not surface.”

What’s new here 4

  • Combines differential testing with AI agents to generate protocol-aware inputs without hand-written grammars.
  • Introduces discrepancy tracing: after finding a library-level ambiguity, automatically maps it to dependent applications via a dependency graph.
  • Amplified testing runs a single input against all harnessed implementations simultaneously, improving coverage efficiency.
  • Uses a bandit-based resource allocation (UCB1) to de-duplicate effort across parallel searches.

Threat model stated by the source

Adversaryattacker who can craft and submit protocol messages (certificates, tokens, assertions) to a verifying endpoint
Capabilitycraft protocol messages but holds no signing keys and no privileged deployment position
Assumesimplementations are independent; discrepancies arise when at least two implementations disagree