TL;DR: Fine-tuned 27B open-weight models can reach about 80% of frontier exploit-validation performance at roughly 40% of the cost, while smaller base models lag sharply on XSS tasks, according to Novee research. The result shows that offensive AI capability is moving into cheaper, deployable models, so governance now has to account for scale, persistence, and misuse risk rather than model size alone.
At a glance
What this is: This research shows that fine-tuned small open-weight models can validate XSS exploits far more effectively than stock models, closing much of the gap to frontier systems.
Why it matters: It matters because offensive AI is becoming cheaper to deploy at scale, which changes how security teams think about testing capacity, abuse potential, and controls around AI-driven security workflows.
By the numbers:
- 55% pass@3
- 27B model improved to 82% pass@3 and 87%
- The fine-tuned 27B model achieved about 80% of the frontier’s exploit rate at about 40% of the cost.
- The vendor’s smallest model improved from 2% to 51% pass@3 after fine-tuning.
👉 Read Novee's analysis of small language models for offensive security
Context
Small language models are models with far fewer parameters than frontier systems, but they can still become effective when fine-tuned for a narrow task. In offensive security, that shift matters because the bottleneck is no longer only model intelligence, but whether the model can be trained, persisted, and run cheaply enough to support repeated validation at scale.
For IAM and security teams, the identity angle is indirect but real: AI agents used for testing, validation, or exploit generation need governance around access to environments, tools, and data. Once smaller models can drive reliable offensive workflows, the question becomes how organisations control AI-enabled security automation without creating a parallel, poorly governed attack capability.
Key questions
Q: How should security teams govern AI agents used for offensive testing?
A: Treat offensive AI agents as distinct workloads with explicit ownership, scoped tools, and logged approvals. Give them only the environments, credentials, and actions needed for authorised testing. Separate research targets from production systems, and review retries, data access, and output handling as part of standard governance, not as an afterthought.
Q: Why do small language models still matter for offensive AI risk?
A: Because risk is not driven only by model size. A small model that is fine-tuned on successful attack traces and given retries can become operationally useful enough to automate validation, probing, or exploit generation. The economics improve once the workflow is cheap enough to run repeatedly.
Q: What do security teams get wrong about governing AI agents?
A: They often treat agents like another automation layer instead of governed non-human actors with their own access paths. Once an agent can connect to tools and data at runtime, the programme needs attribution, scoped privileges, and lifecycle oversight. Otherwise, the agent becomes an unreviewed extension of the enterprise access model.
Q: What should organisations do before allowing AI to test live applications?
A: Require a bounded test harness, explicit target approval, and traceable operator ownership before any live application is exposed. Keep the agent inside a non-production blast radius, and verify that it cannot pivot into broader systems, credentials, or sensitive data beyond the test scope.
Technical breakdown
Why small language models can work for exploit validation
Small open-weight models are weaker than frontier systems out of the box, but they can still be useful when the task is narrow, deterministic, and supported by a harness. For XSS validation, the model does not need broad world knowledge. It needs enough reasoning to inspect a failed proof of concept, adjust input handling, and retry against a live application. That makes the benchmark more about task execution than general intelligence. The important architectural point is that narrow offensive workflows can be shaped into trainable loops, especially when the environment provides a clear success signal.
Practical implication: treat offensive AI as an automation pipeline with measurable outputs, not as a generic chatbot problem.
How fine-tuning changes cost and persistence
Fine-tuning with rejection-sampled successful traces teaches the model which actions actually lead to a working exploit. That improves both efficiency and persistence. The model wastes less context on unproductive reasoning and is more likely to continue exploring a target instead of giving up early. In practice, this is what turns a weak base model into a usable operator for long-horizon tasks. Parameter-efficient methods such as LoRA let teams adapt the model without retraining everything, which lowers the barrier to deploying specialised offensive capabilities on modest infrastructure.
Practical implication: expect task-specific fine-tuning to matter as much as model choice when evaluating offensive AI risk.
Test-time scaling makes offensive agents more reliable
The post uses two scaling levers: depth-wise scaling, where the agent can retry and refine within one session, and breadth-wise scaling, where multiple attempts run in parallel. This matters because a model that looks mediocre on a single try can become dangerous when given retries and parallelism. In other words, the operational risk is not just model accuracy, but how orchestration amplifies it. Once AI agents can loop, retry, and persist, they become closer to a governed runtime capability than a simple inference endpoint.
Practical implication: control retry budgets, context windows, and tool access as part of AI governance.
Threat narrative
Attacker objective: The objective is to turn a weakly validated vulnerability into a working exploit that can be reproduced repeatedly against real applications.
- Entry occurs when a validated vulnerability hypothesis is paired with a live application and the agent is allowed to interact with it through exploit tooling.
- Credential access is not the central stage here; the key capability is iterative proof-of-concept generation that turns environmental access into an exploit attempt.
- Impact arrives when the agent produces a working XSS proof of concept that demonstrates exploitable application behaviour and can be reused at scale.
NHI Mgmt Group analysis
Small offensive models are now a governance problem, not just a cost-saving option. The article shows that compact open-weight models can be trained into capable exploit validators when they are given the right traces and retries. That means offensive AI capacity is no longer confined to the most expensive frontier systems. For practitioners, the policy question shifts from whether AI can do the work to how its runtime access, data exposure, and persistence are governed.
Test-time orchestration is the real multiplier. Depth-wise retries and breadth-wise parallelism are what convert a middling model into a dependable offensive workflow. That pattern matters for AI governance because execution controls become as important as model selection. A model with limited raw capability can still become operationally dangerous if it is allowed to loop, resubmit, and explore with broad tool access.
Specialised training creates a new kind of AI governance debt. Offensive capability drift: once a general model is fine-tuned on exploitation traces, its effective purpose changes even if the base weights stay the same. That complicates inventory, approval, and acceptable-use decisions because the risk is in the adapted system, not the generic model name. Practitioners should treat tuned offensive agents as distinct governed assets.
Identity and access controls still matter when the actor is an AI system. If an AI agent can submit proofs, inspect failures, and retry against live applications, then it is operating with a functional identity inside the workflow. That requires scoped tool permissions, traceable ownership, and clear separation between testing environments and production data. For IAM and AI security teams, the boundary is not the model file but the permissions around the agent runtime.
Cheaper offensive capability broadens the attacker economics. A 40 percent cost profile for near-frontier task performance changes who can afford repeated validation and how often it can be run. That does not make every small model a threat by itself, but it lowers the cost floor for automation-heavy abuse. The practical conclusion is that organisations need controls for AI-enabled testing and abuse at scale, not only controls for premium model access.
What this signals
Offensive AI governance now needs runtime controls, not just model reviews. When a small model can be tuned into a credible exploit validator, the programme risk sits in how the agent is deployed, not only in what base model it uses. That means review processes should cover tool scope, retry budgets, logging, and separation of duties across any AI-enabled testing workflow.
The broader signal for security leaders is that cheap capability scales faster than policy updates. Organisations that already permit AI-assisted testing should map those workflows to internal controls and to external guidance such as NIST SP 800-53 Rev 5 Security and Privacy Controls, especially where the same infrastructure can touch sensitive applications or secrets. If the agent can act, inspect, and retry, it needs governable identity and constrained reach.
For practitioners
- Inventory offensive AI workflows separately from general AI use Classify any model or agent used for exploit validation, fuzzing, or proof-of-concept generation as a distinct governed workload. Document who can invoke it, what environments it can reach, and which datasets it can inspect or export. Use the 52 NHI Breaches Analysis as a reference point for how delegated access turns into operational risk.
- Scope tool permissions for AI testing agents Limit each agent to the minimum exploit tools, target environments, and response channels needed for the task. Block unnecessary shell access, broad network reach, and unrestricted file export. Align these permissions to NIST SP 800-53 Rev 5 Security and Privacy Controls for access control and auditability.
- Control retries, context, and parallelism Set explicit ceilings on retry budgets, context length, and concurrent attempts so that one model cannot amplify a marginal exploit hypothesis into a high-volume validation loop. Review logs for repeated failed submissions, rapid resubmission patterns, and unusual target selection across runs.
Key takeaways
- Fine-tuned small language models can become capable exploit-validation engines even when their stock performance is poor.
- The critical risk is not the base model alone, but the combination of fine-tuning, retries, and tool access that turns a modest model into an offensive workflow.
- Security teams should govern AI testing agents as scoped runtime identities with bounded access, explicit ownership, and strong auditability.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK address the attack and risk surface, while NIST AI RMF, NIST AI 600-1, NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST AI RMF | GOVERN | The article is about governing AI systems used for offensive testing. |
| NIST AI 600-1 | The topic concerns generative AI deployed into a security workflow. | |
| NIST CSF 2.0 | PR.AC-4 | The agent’s ability to reach applications is an access-control issue. |
| NIST SP 800-53 Rev 5 | AC-6 | Least privilege is central when an AI agent can act against live apps. |
| MITRE ATT&CK | TA0006 , Credential Access; TA0002 , Execution | The post concerns AI-driven exploit execution against web applications. |
Map exploit-generation workflows to execution and credential-access tactics for monitoring and detection.
Key terms
- Offensive AI Workflow: A workflow where an AI system is used to support probing, validation, or exploit generation rather than general assistance. The security question is not whether the model can think, but what actions, data, and environments it can reach under governance.
- Test-Time Scaling: The practice of improving an AI system’s outcome by giving it more retries, more context, or more parallel attempts at inference time. In security use cases, this can materially increase capability even when the underlying model is unchanged.
- Parameter-Efficient Fine-Tuning: A training approach that adapts a base model by changing a small set of parameters instead of retraining the entire model. Methods such as LoRA make targeted capability gains cheaper and faster, which also makes specialisation more accessible to attackers and defenders alike.
- Exploit Validation: The process of proving that a suspected vulnerability is actually exploitable by producing a working proof of concept. This is a high-value security task because it separates real exposure from noise and can be automated with sufficient model and workflow support.
What's in the full article
Novee's full post covers the operational detail this analysis intentionally leaves for the source:
- Model-by-model exploit-rate charts across Gemma-4 and Qwen-3.5 variants for the 100-target benchmark
- The fine-tuning recipe using rejection-sampled traces and LoRA parameter-efficient adaptation
- Cost and token-efficiency comparisons showing how context length and retry budgets affect outcome
- The vendor's own deployment assumptions for on-prem use and constrained GPU environments
👉 The full Novee post covers benchmark setup, fine-tuning details, and cost-versus-accuracy tradeoffs
Deepen your knowledge
The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management. It helps security practitioners apply identity controls to systems, workloads, and AI-driven workflows with clearer operating boundaries.
Published by the NHIMG editorial team on August 1, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org