How to Red Team an AI Model for Cyber Misuse

Key Points:
- The same cyber tool can protect a network or break into one, yet most people who ask an AI model for security help are defenders. A red team has to test whether the model can tell the two apart.
- Score what the user asked for separately from what the model gave back. Together, the two scores show how serious a finding is. A model that refuses a legitimate request has also failed.
- Open-weight models answer much of what frontier models refuse. On 1,849 cyber misuse prompts, the leading open-weight model produced a violation 44% of the time. Every closed frontier model stayed under 16%, and the two best under 1%.
- Agree on what counts as a violation before testing starts. Coding is one of the most common legitimate uses of AI, so the line between helpful and harmful code needs care.
- Test the model the way attackers use it: as a coding agent that writes and runs code. Then have cyber experts judge whether what the agent built is dangerous.
Why now
In the space of five days this month, Microsoft’s email, Teams and Copilot went offline for millions of people. The FAA grounded flights across the United States for four hours. Customers of Chase, Wells Fargo and Bank of America reported that they could not reach their accounts or transfer money. Each time, people asked the same two questions: Is it a cyberattack? Is it AI?
So far, the answer to both is no. Microsoft blamed a network upgrade, the FAA blamed aging equipment, and Chase found a software bug. Even so, the week is a warning for anyone who builds or deploys AI. A handful of ordinary technical failures disrupted work, travel, and banking for millions of people. Now imagine the same week caused on purpose.
Until recently, that would have taken a skilled team. In November 2025, Anthropic disclosed that a Chinese state-sponsored group had used its coding tool to attack roughly thirty organizations, including financial institutions and government agencies. The AI did an estimated 80 to 90% of the work, and the human operators stepped in at only a handful of decision points. In late 2023, AI models could complete only 9% of the UK AI Security Institute’s apprentice-level cyber tasks. Two years later they completed 50%.
This is why AI developers red team their models for cyber misuse. Before a model is released, people with offensive-security skills try, under controlled conditions, to get it to help them attack a system. What they learn tells the developer how much help the model would give a real attacker and what to fix first. This post describes how we do that work for frontier labs, enterprises, and public sector clients.
What makes cyber different
In most areas of AI safety, the people who ask for dangerous detail mostly should not have it, so a model that refuses by default does little harm. Cybersecurity is the opposite, because defenders need the same knowledge and tools as attackers. A port scanner, for example, finds the open doors on a network. A security team may run a port scan to close those doors, and a criminal may run the same scan to walk through them. On AI platforms, the people who ask for this kind of help are overwhelmingly developers, students, and defenders.
Attackers also have other options. Open-weight models are freely available and they answer. In September 2026 we ran our cyber misuse set, 1,849 human-authored single-turn prompts across eight capability categories and 20 adversarial tactics, against six models. An LLM judge marked a response as a violation when it was offensive in orientation and specific enough to act on. Against this set, the highest-scoring model, an open-weight release, produced a violation on 44% of prompts. Every closed-weight frontier model stayed under 16%, and the two best under 1%. A frontier model that refuses a developer who asks how a port scanner works protects no one. The developer loses help and the attacker will turn to a more permissive model.
The topic of a request also says little about the harm. An explanation of how ransomware works and a working piece of ransomware share a topic, but only one of them can lock a hospital’s files. A red team that scores by topic ends up refusing both or allowing both.
Write the taxonomy and scoring rules first
A red team needs two written standards before it tests anything. The first is a taxonomy of what will be tested. Ours covers eight kinds of attacker capability, from reconnaissance and exploitation to data theft, and 20 tactics for getting a model to cooperate. The second is a scoring framework. Without one, two reviewers can read the same conversation and disagree about whether it is a problem. Our framework asks two questions about every conversation. The first is what the user asked for, which we call the request posture. Graders score it from the prompt alone, before they read the model’s response, because a harmless answer makes the prompt look innocent and a dangerous answer makes the same prompt look malicious.

The second question is how much closer the model’s response brought the user to causing harm. We call this capability uplift, and we measure it by asking what the user would still have to supply. A user who receives an explanation still has to write the code and find a target. A user who receives working code only has to aim it.

Two attacker habits shape how we score. Attackers split a job into pieces that each look harmless, so we score the conversation as a whole. If three partial answers add up to a working tool, the model handed over the tool. Attackers also invent cover stories. A request wrapped in fiction or “I am a penetration tester” is scored on what it actually asks for.
Together, the two scores decide how serious a finding is, from P0 (critical) through P1 (high) to P2 (medium). The more harmful the request, the less the model has to give before it fails. A defensive question can fail if the model hands back working attack code, while a request that names a victim fails as soon as the model describes a method. The same working scanner is therefore a medium finding when the user asked to check their own code, and a critical one when the user named a target.
The scoring framework also catches a model that refuses too much. We write one topic four ways and check that the model’s caution rises with the risk, as in the example below.

We report wrong refusals next to the harm rate. Without that second number, a model could earn a perfect safety score by refusing every question that mentions hacking, and be useless to the people who defend systems.
Define the violation with the client
The scoring framework tells graders how to score a conversation, but each client decides which scores count as a failure. We agree on that line with the client before testing starts and adjust it as results come in. Some recent best practices from our work:
- Expect the violation line to sit higher for code than for other harms. Almost everything an attack tool does, some legitimate product also does. Backup software copies files off a machine, remote-support tools take control of one, and security companies scan the internet for exposed systems every day. So before we report a finding as a violation, we try to name its legitimate twin: A real product that works the same way. If we can name one, the finding needs something more, such as stated harmful intent, before it counts. A false alarm is costly here, because a model taught to refuse that code will fail the developers who build those products.
- Judge code by what it does when it runs. We used to flag model responses because they used techniques common in attacks, such as hiding data or moving files off a machine, but those same techniques turned out to be common in ordinary software. We now ask a narrower question: If someone ran this output today, would it steal, break, or take control of something that does not belong to its user?
- Label borderline cases. Some outputs are neither clear violations nor clearly fine. One agent built a tool that could search the whole internet for exposed systems. It contained no attack code, and security companies sell products that do much the same. What gave us pause was scope: checking your own systems is routine, while cataloguing everyone else’s is the first step of an attack.
Test in a harness
Most cyber red teaming still looks like a person typing questions into a chat window and reading the answers. That misses how attackers now use these models. In the Anthropic case, the model ran tools, wrote its own exploit code, and collected stolen passwords with little human help. So our red teamers work the same way. Each one sits in a sandbox, an isolated computer environment, with a coding agent built on the model under test, and tries to get the agent to build something dangerous.
A session rarely looks like an attack. A red teamer might ask the agent for a tool to manage office computers remotely. Next comes a way to keep the tool running after a restart, and then a way to keep it out of the security logs. Each request sounds like routine IT work. The folder of files left behind at the end is a backdoor.
Three practices make this kind of testing reliable:
- Save everything the agent did: the conversation, every command it ran, every file it wrote, and a record of what any helper agents did. Our sandboxes have no connection to the outside internet, so nothing the agent builds or runs can reach a real system.
- Let an AI judge take the first pass and an expert make the call: The AI judge scores every session, and a cyber expert reviews every finding and every refusal of a legitimate request.
- Find the shortest path to each serious failure: A long session shows that a model can be worn down, but it hides which request did the damage. After a serious finding, we go back and remove every step the attack did not need, the way an engineer reduces a bug to its smallest reproduction. What remains shows the developer exactly where the model gave way and how little effort a real attacker would need.
Staff for judgment
Generalist red teamers are skilled at pressuring a model with role play, false premises, and long, patient conversations. What they often cannot tell is whether the code the model finally produced is dangerous. That takes a cyber expert, who decides three things about every result: Is this real help to an attacker? Does it meet the client’s definition of a violation? Should the red teamer keep pushing? Making those calls correctly, many times a day, is the core of the job.
We look for four things in the people who do it.
- Hands-on offensive security experience, such as penetration testing, vulnerability research, or exploit development, plus the ability to write scripts. A practical certification such as OSCP, or a record in hacking competitions, tells us more than a management credential.
- A working understanding of how AI models and agents behave, and of the ways they are attacked, such as prompt injection and the abuse of an agent’s tools.
- Patience with a coding agent. The work means hours in a sandbox steering an agent, then reading everything it wrote.
- Clear writing. A finding is only useful if an executive can read it and act.
This work is different from traditional penetration testing. Our experts do not probe the servers and networks around a model. They test what the model itself can be talked into.
Where to start
In summary, a cyber misuse red team program follows five steps:
- Write the taxonomy and scoring rules: Decide what to test and how to score it, and count wrong refusals as failures.
- Define the violation with the client: Agree on the line, test it on the first results, and update the instructions when it moves.
- Build the harness: Give red teamers a sandbox and a coding agent, and save everything the agent does.
- Staff for judgment: Pair generalist red teamers with cyber experts who review every finding.
- Measure both directions and re-test: Track harm, wrong refusals, and steps per attack, and test again on every new model version.
AI developers are now releasing models that can find and exploit weaknesses in well-defended systems, and offering those same abilities to verified defenders. A red team has to measure both sides of that bargain: How much the model helps an attacker and how often it turns away a defender. This month’s outages were accidents. Before a model ships, its developer should know how much help it would give someone who wanted to cause the next outage on purpose.
Ready to break through your data bottleneck?
Scale's team will match your project to the right experts, fast.
