← Lab /Security & privacy

Dimensional-analysis Claude plugin attains 93% recall on audit findings, far surpassing 50% baseline

Their dimensional-analysis Claude plugin can detect dimensional mismatches with 93% recall, outperforming baseline prompts that achieve only 50% recall.

Security & privacy Trail of Bits 25 Mar 2026 Tooling Prototype evidence

Published as “Try our new dimensional analysis Claude plugin”

Why it matters

If true, the plugin could substantially improve automated detection of arithmetic bugs in security-critical code.

Summary

The authors built a Claude plugin that annotates code with dimensional types and flags mismatches mechanically. They evaluated it on unpublished audit findings using 10 samples per codebase and reported a recall of 93% (SD 12%). A baseline prompt achieved only 50% recall (SD 20%). The evidence comes from a small benchmark and the authors note that mismatches do not always indicate vulnerabilities and the tool may miss some errors.

What they found 1

  1. Recall of 93% for dimensional-analysis plugin versus 50% for baseline prompts.

    “the dimensional-analysis plugin had a recall rate of 93% with a standard deviation of 12%, versus the baseline prompt, which had a recall rate of 50% with a standard deviation of 20%.”

Caveats 5

  • Dimensional mismatches do not necessarily indicate a vulnerability.
  • The tool may miss some dimensional errors because LLMs are probabilistic.
  • LLMs are probabilistic, which means there is always going to be some level of error.
  • Dimensional mismatch at this stage doesn’t necessarily mean a vulnerability is present.
  • We don’t believe that this tool can find every source of dimensional error.

What’s new here 4

  • A new Claude plugin that performs dimensional analysis of code.
  • Uses LLM to generate a dimensional vocabulary and annotate code automatically.
  • Mechanically flags mismatches rather than relying on LLM judgment.
  • Benchmark shows 93% recall versus 50% for a baseline prompt.

In the news