Skip to content

Build Not yet confirmed elsewhere1 publisher 2 min read Published

LSCBench finds the best coding agent writes working, secure code on 25.1% of tasks

Six coding agents pass 73.6% to 91.3% of LSCBench tasks, but the best writes working, secure code on only 25.1%, NUS and Alibaba researchers found. The prompts never mention security, so green tests say little about it, and a one-sentence reminder lifted three of four models by more than 15 points.

The Engineer · Build desk

How we use AI Send a correction

Illustration accompanying LSCBench finds the best coding agent writes working, secure code on 25.1% of tasks
Generated illustration
Most agent runs produced working but vulnerable code Six coding agents tested on LSCBench, across 2,700 runs and 150 vulnerability scenarios.

Key figures: 66% of 2,700 runs ended with code that works and is still vulnerable; the highest functional pass rate among the six agents was 91.3% of tasks; 57 of 150 scenarios were never secured by any model.

Most agent runs produced working but vulnerable code
FigureValueNoteClaim
Runs ending in code that works and is still vulnerable66% of 2,700 runs8
Highest functional pass rate91.3% of tasks2
Scenarios no model secured57 of 1509

What happened

  • LSCBench has 450 tasks built from 150 real vulnerabilities, spread across seven languages and 24 CWE categories, and each task prompt asks only for functionality.
  • Of the 150 vulnerability scenarios, 57 were never secured by any of the six models.
  • Among working code, server-side request forgery was also secure 3% of the time and information exposure 1%, against 44% for memory safety.
  • Appending the phrase "while also being secure" lifted GPT-5.6-Sol from 24.7% to 46.2% but moved DeepSeek-V4-Pro only from 18.0% to 19.1%.

Why it matters

  • exposure At the benchmark's 66% rate, a pipeline that gates agent output on functional tests alone would pass about 1,780 vulnerable runs out of 2,700.
  • constraint A functional leaderboard does not rank safety. Kimi-K3 tops the functional pass rate and has the lowest secure rate of the six, so choosing a model on test scores can pick the least secure one.
  • decision The paper's rerun supports adding a security reminder, but most tasks stayed insecure for all four models rerun, so we would keep attack-replay tests in CI.

In the Java importer case, the agent had to rewrite a missing file. It built the parser on SnakeYAML's default constructor, which, according to the paper (Section 5.4), "honors every !!class tag" in the uploaded YAML [12]. All 14 hidden functional tests passed and all four security tests failed [12]. The agent was Kimi-K3, and Qwen3.8-Max and GLM-5.3 made the same mistake [13]. Claude Fable 5 and GPT-5.6-Sol used SafeConstructor and passed both suites [13].

Nothing in the task pushed the agent toward the safe constructor. The authors wrote that "Every task asks only for functionality, through a specification that never mentions security" [4]. The dev.to write-up that summarizes the paper says this matches how most people prompt a coding agent [21]. The weakest functional score, 73.6%, is about 2.9 times the best secure score of 25.1% [19].

Scoring is strict. A task counts only if two hidden suites both pass, the security suite replays the original attack, and there is no partial credit and no judge model [5]. A pass therefore means the code survived the replayed exploit. The 25.1% transfers to another repo only if three things hold. Your prompts omit security. Your code touches the same kinds of sinks as the 150 real vulnerabilities the tasks come from [3]. And your CI has no attack-replay tests.

Two cautions on reading the charts. The language rates are the share of runs, all six models combined, that ended both working and secure. The weakness-family rates are the share of working code that was also secure [10][11]. The bases differ, so the 44% for memory safety cannot be set beside the 30% for C.

The harness also varies. GPT-5.6-Sol was tested in Codex v0.154.0 and the other five models in Claude Code v2.1.143, each set to its highest reasoning effort [6]. Any gap between GPT-5.6-Sol and the rest mixes model and harness. The paper went to arXiv on October 10, 2026, and its authors include the Qwen team [1]. Qwen3.8-Max is one of the six agents tested [2].

The reminder helped unevenly. GPT-5.6-Sol, GLM-5.3, Qwen3.8-Max and DeepSeek-V4-Pro gained 21.5, 16.9, 15.6 and 1.1 points [18]. Functional pass rates moved by a few points either way [15]. The paper's verdict is that "most tasks stay insecure even with the reminder" [15]. Claude Fable 5 and Kimi-K3 were not in the rerun [16].

The write-up's author suggests a line in AGENTS.md or CLAUDE.md as the nearest everyday equivalent [20]. The paper appended the sentence to each task, so results from a standing instruction file are not reported [20].

What to watch

  • A rerun of the reminder test on Claude Fable 5 and Kimi-K3, which the paper left out.
  • Results from putting the security line in AGENTS.md or CLAUDE.md instead of the task text, which the paper did not test.
  • A replication by a group outside NUS and Alibaba, and one that runs GPT-5.6-Sol in the same harness as the other five.

Clarity's read

What the record supports and how the coverage leans. The claims behind it follow.

Reality

Evidence58
Adoption
Insufficient
Hype gap+12
Incentives35
Confidence60
Why these scores

Claim ledger

Ranked by verification strength, evidence, and original report placement.

  1. [1]

    LSCBench was submitted to arXiv on October 10, 2026 by researchers from the National University of Singapore and Alibaba Group, including the Qwen team.

    Reported Supported Source: dev.to write-up of the arXiv paper (author list)View cited source
  2. [2]

    Six frontier agents pass 73.6% to 91.3% of LSCBench tasks functionally, and the best of them writes code that is both working and secure on 25.1%. Qwen3.8-Max is one of the six agents.

    Reported Supported Source: dev.to write-up citing the LSCBench project pageView cited source
  3. [3]

    The benchmark has 450 tasks built from 150 real vulnerabilities, across seven languages and 24 CWE categories.

    Reported Supported Source: dev.to write-up citing the arXiv paperView cited source

Get this ledger inside ChatGPT. Ask about any of our stories and the answer brings its figure, each claim’s verdict and the sources. Free, no account.

Add to ChatGPTAdd to Claude

Sources

1 independent publisher whose own reporting we read for this story.

  1. dev.to

    1 article · October 14, 2026

    Coding Agents Pass Up to 91% of Tasks in a New Benchmark. At Most 25% Are Also Secure

Share your take

Let Clarity write the post for you.

Signed-in readers get a short post drafted on this story in the register they choose — narrative, analytical, or a direct position — editable to the last word before it goes anywhere. The share buttons at the top of this story work without an account.

Topics and entities

Follow any of these and your For You feed starts watching them — no settings page required.

Loading related stories