← Latest papers
💻 computer science

A Validated Prompt Bank for Malicious Code Generation: Separating Executable Weapons from Security Knowledge in 1,554 Consensus-Labeled Prompts

This paper introduces a validated 1,554-prompt "CODE" bank and a consensus-labeled classification framework that rigorously separates executable malicious software requests from harmful security knowledge queries to address the conflation issues in existing language model safety benchmarks.

Original authors: Richard J. Young, Gregory D. Moody

Published 2026-05-06
📖 4 min read☕ Coffee break read

Original authors: Richard J. Young, Gregory D. Moody

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to test how good a security guard is at stopping bad guys. You have a list of requests to give the guard. Some requests are like handing the guard a loaded gun and saying, "Shoot this person." Other requests are like handing the guard a textbook and saying, "Explain how a gun works and how to aim it."

For a long time, researchers testing AI safety have been mixing these two types of requests together in one big pile. They would ask the AI to "write a virus" (the loaded gun) and "explain how a virus spreads" (the textbook) and then just count how many times the AI said "No."

The authors of this paper, Richard J. Young and Gregory D. Moody, say this is a messy way to test. If an AI refuses to write the virus but happily explains the textbook, or vice versa, a single "No" count doesn't tell you what's actually happening inside the AI's brain. It's like trying to measure how well a guard stops bullets by also counting how well they stop people from reading about bullets. You can't tell if the guard is good at stopping weapons or just good at stopping information.

The Big Idea: Separating the "Weapons" from the "Knowledge"

To fix this, the researchers created a new tool: a Validated Prompt Bank. Think of this as a highly organized, double-checked filing cabinet. They took thousands of questions from four different existing test lists and sorted them into two distinct drawers:

  1. The "Weapons" Drawer: These are prompts that ask the AI to actually build something dangerous, like a piece of malware or a script that can run on a computer. These are the "executable weapons."
  2. The "Knowledge" Drawer: These are prompts that ask the AI to describe dangerous things, like explaining how a virus works or how to hack a system, without actually building the code.

How They Built the Filing Cabinet

They didn't just sort the papers themselves; they wanted to be absolutely sure the sorting was correct. So, they set up a "jury" of five different AI judges. These judges came from five different tech companies (Anthropic, OpenAI, Google, Zhipu AI, and Alibaba).

Imagine five different experts looking at a single request. They all have to vote: "Is this a request for a weapon, or is it just a request for information?"

  • If at least three out of the five agree, that's the final answer.
  • They checked their work using a statistical tool (called Fleiss' κ\kappa) to see how much they agreed. The result was "almost perfect" agreement (0.876 out of 1.0). This means the sorting is incredibly reliable.

The Result: A Clean, Verified List

After sorting through over 17,000 original requests and filtering out duplicates or confusing ones, they ended up with a clean, verified list of 1,554 prompts that are purely about asking for "weapons" (malicious code). They also kept a smaller list of 388 prompts about "knowledge" to use for comparison later.

Why This Matters

Before this paper, if a researcher wanted to test if an AI was safe, they had to build their own messy pile of questions, guessing which ones were "weapons" and which were "knowledge." This meant every study was slightly different, making it hard to compare results.

This paper provides a standardized, pre-sorted set of questions. Now, researchers can say, "We tested the AI on these specific 1,554 weapon requests," and everyone else knows exactly what that means. It removes the guesswork and allows for a fair, apples-to-apples comparison of how different AI models handle dangerous requests.

Important Safety Note

The authors are very clear: They did not create any new viruses or dangerous code. They only took existing questions from other academic studies and sorted them. The goal of this tool is to help researchers make AI safer by understanding exactly where it fails, not to help anyone build attacks. The data is locked behind a "gated" system, meaning only verified researchers working on safety can get access to the actual text of the questions.

In short, this paper built a better, cleaner ruler for measuring AI safety, separating the "do the bad thing" requests from the "talk about the bad thing" requests so we can measure them accurately.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →