TRANSMISSION // 2607.04729v2

RustMizan tests how well AI agents find Rust vulnerabilities

Source published

A new benchmark evaluates AI agents on vulnerability detection, classification and localization in compilable Rust code, while probing robustness and contamination.

AI-generated conceptual illustration for RustMizan tests how well AI agents find Rust vulnerabilities
AI-generated conceptual illustration; not documentary evidence.

AI agents can inspect code, but a useful security benchmark must ask more than whether they can label a snippet as vulnerable. RustMizan evaluates several parts of that task, including locating affected lines, and uses code mutations to probe robustness and possible contamination.

A broader test of vulnerability analysis

A benchmark can offer only a partial picture of a system’s abilities if its tasks are narrow or if public examples may have appeared in model-training material. The RustMizan authors argue that existing vulnerability benchmarks often use small, non-compilable snippets, emphasize a yes-or-no judgment, and do not account for possible contamination from released datasets.

Their framework focuses on Rust. It evaluates whether AI agents can decide if code is vulnerable, assign a weakness category, and locate the relevant function or lines. These are separate tasks: detecting a vulnerability does not itself tell us whether a system can classify or pinpoint it.

Compilable code and mutations

RustMizan includes compilable code variants at three levels: crates (Rust packages), files and individual functions. Its annotations cover binary vulnerability detection, Common Weakness Enumeration (CWE) classification, and function- and line-level localization.

The framework also uses paired mutations: altered versions of code intended to preserve its semantics. The authors describe these mutations as a way to test contamination and probe robustness. The abstract does not explain the mutation procedure in enough detail to assess how well it preserves behavior or what kinds of contamination it can reveal. In particular, it does not establish that the approach identifies whether a model has encountered a specific example during training.

The researchers evaluated four frontier models in an agentic setup with command-line access. The abstract does not name the models or provide enough experimental detail to reconstruct prompts, task counts or scoring procedures.

Detection and localization scores

Across the four models, binary vulnerability classification was in the 56–65% range. Line-localization F1—a measure combining precision and recall, where higher values indicate a better balance of correct and recovered lines—was near 20%.

That gap may illustrate why detection scores alone do not describe every part of vulnerability analysis: a system could identify vulnerable code without precisely locating the affected lines. The abstract reports the scores but does not provide enough detail to judge how the two tasks compare in difficulty or how results vary across benchmark items.

The authors report that adversarial cues reduced mean line-localization F1 by about 27%. The abstract does not specify the cues or clarify the exact baseline for this reduction. The figure should therefore be understood as a result from this experiment, not a general estimate of how misleading context affects AI security work.

One model, Opus, reached about 40% line F1 on a subset of 95 vulnerable variants with either low or high reasoning effort. The original models scored 24–30% on that same subset. This comparison is specific to the stated subset and evaluation; it does not establish that the model or reasoning effort would perform similarly on other codebases or vulnerability types.

What the results do—and do not—show

As described in the abstract, RustMizan combines compilable code, several vulnerability-analysis tasks and mutation-based contamination and robustness tests. Its results indicate that line-level localization remained challenging in the tested setup, and that adversarial cues affected measured localization performance.

The scores do not measure how often real-world software contains vulnerabilities, or show that AI agents can independently secure a codebase. Benchmark results depend on the selected tasks, models, prompts, tools and scoring rules. Mutations can probe some forms of robustness, but the abstract alone does not establish that they determine whether a model encountered related code during training.

This account is based on the paper’s abstract, not a full-text review. Important details for assessing the benchmark’s construction and generalizability—including sample composition, model identities, uncertainty estimates and the adversarial-cue protocol—are not available in the supplied evidence. RustMizan is described in an arXiv preprint, and the supplied source does not establish that it has undergone peer review. The reported numbers should be treated as results from this study, not settled measures of AI vulnerability-analysis ability.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.