← Lab /AI/ML

Consensus-labeled prompt bank separates executable malicious code from harmful knowledge requests

Their prompt bank reliably measures coding-model compliance with malicious-code requests

AI/ML arXiv 27 May 2026 Benchmark Prototype evidence

Published as “Code as a Weapon: A Consensus-Labeled Prompt Bank for Measuring Coding-Model Compliance with Malicious-Code Requests”

Why it matters

Provides a publicly available, reliability-quantified benchmark for evaluating coding-model compliance with malicious-code requests, enabling more consistent safety assessments.

Summary

The paper releases a v2 consensus-labeled prompt bank containing 4,748 executable-malicious (CODE) prompts and 1,923 harmful-knowledge (KNOWLEDGE) prompts, with overall inter-rater reliability of Fleiss’ κ = 0.767 (95 % CI [0.755, 0.777]), which is substantial but lower than the prior v1 release. It expands the corpus from four to eight source benchmarks and swaps paid-API judges for five free-tier/open-weight LLMs. Two methodological findings are reported: a high-agreement low-κ paradox on four prevalence-skewed corpora, and a single judge (gpt-oss-120b) that refused 1.84 % of prompts due to provider-side content-policy filtering. The bank is released with detailed per-corpus reliability statistics and consensus-tier metadata. Evidence is strong for the reliability numbers, but the paradox and provider filtering limit interpretability for some subsets.

What they found 2

  1. Overall inter-rater reliability across the full-panel subset is substantial (κ = 0.7665).

    “Across the full pool, Fleiss’ κ on the 6,552-prompt full-panel subset (the rows where all five judges returned a valid CODE/KNOWLEDGE label) is κ = 0.7665 with a 10,000-iteration bootstrap 95 % confidence interval of [0.7552, 0.7774].”

  2. Four corpora exhibit the high-agreement low-κ paradox, making κ uninformative despite strong agreement.

    “the per-corpus Fleiss’ κ statistic degenerates to a near-zero or slightly negative value on the four most prevalence-skewed source corpora (ASTRA, MalwareBench, RedCode, RMCBench, each more than 99 % CODE under the 3-of-5 consensus rule).”

Caveats 4

  • The high-agreement low-κ paradox means κ does not reflect true agreement for four corpora, limiting the usefulness of a single κ statistic.
  • Provider-side content-policy refusals cause missing labels for gpt-oss-120b, potentially biasing consensus in those prompts.
  • it does not address the behavioural question of how target coding LLMs respond to the v2 bank, which is the scope of separate downstream work.
  • The exact 123-prompt count is provider-policy-dependent and may shift over time as content-policy filters are revised.

What’s new here 4

  • Expands the prompt bank from four to eight upstream corpora, increasing CODE prompts 3.1× and KNOWLEDGE prompts 5.0×.
  • Replaces paid commercial APIs with five free-tier or open-weight LLM judges, improving accessibility and reducing cost.
  • Documents the high-agreement low-κ (Feinstein-Cicchetti) paradox and provides per-corpus κ and mean Po as dual reliability metrics.
  • Identifies and quantifies provider-side content-policy refusals affecting one judge (1.84 % of prompts).