← Lab /Security & privacy

Graph analysis shows most surviving mutants are equivalent and reveals blast-radius risks

Using Trailmark's code graphs enables Claude to identify that the majority of surviving mutants in well-tested cryptographic code are equivalent and to expose architectural blast-radius risks.

Security & privacy Trail of Bits 23 Apr 2026 Tooling Real-world evidence

Published as “Trailmark turns code into graphs”

Why it matters

Graph-based code representation lets LLMs prioritize security testing, identify high-impact code regions, and reduce manual effort in triaging mutants.

Summary

The authors built Trailmark, a language-agnostic library that parses source code into a call graph and exposes it via a Python API for Claude. They added eight Claude Code skills that use the graph for mutation triage, test vector generation, protocol diagramming, and more. Applying the tool to cryptographic libraries, they found that 73% of surviving mutants in a Go Ed448 implementation were equivalent, and that a single primitive in libhydrogen is called 37 times, meaning a flaw would affect 100% of the library's security-critical functionality. The evidence comes from real codebases and concrete mutant counts, though the evaluation is limited to internal use on crypto projects.

Caveats 4

  • The claim about equivalent mutants being the majority is qualified by "in well-tested crypto", indicating the result may not hold for other codebases.
  • Analysis is limited to internal use on cryptographic libraries; results may not generalize to non-crypto code.
  • Findings rely on static call graphs and may miss dynamic dispatch or runtime code generation.
  • Equivalence determination depends on the mutation testing framework and may not capture all semantic nuances.

What’s new here 4

  • Open-source Trailmark library that builds language-agnostic call graphs using tree-sitter and rustworkx.
  • Eight Claude Code skills that perform graph-based mutation triage, test vector generation, protocol diagramming, and audit augmentation.
  • Empirical finding that 73% of surviving mutants in a well-tested Ed448 Go implementation are equivalent when analyzed with the graph.
  • Quantification of blast radius for core primitives (e.g., gimli_core_u8) showing 100% impact on security-critical functionality.