TL;DR: Prompt extraction attacks succeeded 70% more often on NVIDIA Nemotron-3-Nano-30B than on Claude Opus 4.5 at roughly one-tenth the cost, according to Noma Security, while running fully self-hosted through NIM. The finding matters because red-team quality is now constrained by throughput, cost, and data handling, not just model cleverness.
At a glance
What this is: This is an analysis of AI red-teaming attacker models, showing that a self-hosted model can generate more effective prompt-extraction attacks at much lower cost.
Why it matters: It matters because security teams evaluating AI governance, agentic AI, and application-layer controls need red-teaming pipelines that scale with deployment velocity and preserve data isolation.
By the numbers:
- Noma Security reports that NVIDIA Nemotron-3-Nano-30B achieved a 14.17% attack success rate on prompt extraction, compared with 8.33% for Claude Opus 4.5.
- Noma Security says Nemotron ran at roughly 10× lower cost while staying fully self-hosted via NIM.
👉 Read Noma Security's analysis of Nemotron versus Claude for AI red teaming
Context
AI red teaming is the practice of generating adversarial prompts and test cases to expose unsafe model behaviour before production use. In this article, the operational problem is not whether AI systems can be probed, but whether the attacker model used for testing is fast, cheap, and persistent enough to keep pace with CI/CD release cycles and agentic AI deployments.
That creates a governance question for AI security programmes and for identity teams that increasingly have to think about AI systems as governed entities with access, tools, and data boundaries. Where an attacker agent is embedded into pipelines and used continuously, the quality of that adversarial generator directly affects the organisation’s ability to detect prompt extraction, prompt injection, and downstream trust failures early.
The starting position here is increasingly typical: enterprises want stronger AI assurance, but they still struggle to make red teaming operational at production scale.
Key questions
Q: How should security teams use AI red teaming results in production governance?
A: Security teams should treat red team results as control evidence, not as a finished deliverable. Every finding should map to a runtime policy, a logging requirement, or an enforcement gap that can be tracked to closure. If a weakness cannot be tied to a production control, the organisation has only identified exposure, not reduced it.
Q: Why do self-hosted AI testing environments matter for governance?
A: Self-hosted environments keep prompts, target responses, and policy logic inside the organisation, which reduces exposure to external APIs and supports tighter access control. They also create new ownership requirements for infrastructure, logging, and lifecycle management, so governance must extend to the testing layer itself.
Q: What do teams get wrong about prompt extraction tests?
A: Teams often treat prompt extraction as a narrow benchmark rather than a recurring control. In practice, it is a direct way to find leaked instructions, hidden capabilities, and weak guardrails, so it should be repeated whenever prompts, tools, or model versions change.
Q: How do you decide between external APIs and self-hosted AI testing?
A: Choose external APIs when speed to start matters most and data sensitivity is low. Choose self-hosted testing when prompt content, outputs, or model interactions contain sensitive business logic, because privacy, latency control, and auditability become more important than convenience.
Technical breakdown
How attacker agents generate prompt-extraction coverage at scale
In red teaming, an attacker agent is an LLM used to produce many variations of hostile prompts, not a single jailbreak attempt. The goal is search coverage across the target model’s weak spots, especially instruction-following boundaries, system prompt leakage, and safety bypasses. Better generation quality matters because attack diversity increases the odds of reaching brittle instructions or overlooked guardrails. When this workflow is embedded in CI/CD, throughput becomes a security variable as important as model quality. Practical implication: tune attacker-model selection for breadth, cost, and repeatability, not just benchmark score.
Practical implication: choose attacker models that can sustain high-volume testing without exhausting budget or pipeline time.
Why self-hosted NIM changes the red-teaming control plane
Self-hosted inference changes where prompts and target responses live during testing. Instead of sending sensitive test traffic to an external API, the organisation can keep data in its own environment, which reduces exposure and helps meet internal data-handling expectations. It also lowers latency variability, which matters when red teaming is part of an automated release gate. The trade-off is operational ownership: teams inherit serving, scaling, and model lifecycle responsibilities that an external API would otherwise absorb. Practical implication: treat self-hosting as a governance decision as much as a deployment choice.
Practical implication: validate infrastructure, access controls, and logging before moving red-team workloads in house.
Why prompt extraction remains a high-value AI security test
Prompt extraction targets the system prompt and internal instructions that shape model behaviour. Those prompts often contain business logic, safety rules, tool-use constraints, and other hidden controls that should not be exposed to users. Even moderate success rates are meaningful because a leaked prompt can reveal how to bypass guardrails or manipulate agent behaviour in later steps. In agentic systems, that disclosure can also expose how tools are selected and when access is granted. Practical implication: use prompt extraction as a recurring test case, not a one-off benchmark.
Practical implication: add prompt-leakage tests to release criteria for any AI system that embeds policy or tool-use instructions.
Threat narrative
Attacker objective: The attacker aims to extract internal instructions and capability details that can be reused to bypass model safeguards and improve later exploitation.
- Entry occurs when an attacker uses crafted prompts to engage the target AI system through its public or embedded interface.
- Escalation happens when repeated prompt variations coax the model into revealing system instructions, hidden capabilities, or policy boundaries.
- Impact follows when leaked prompts enable safer bypass techniques, weaker guardrail evasion, or more effective follow-on attacks against the AI application.
NHI Mgmt Group analysis
AI red teaming is becoming a throughput problem, not just a model-safety problem. When attack generation has to run inside CI/CD, the deciding factor is whether the test harness can keep pace with release velocity and still produce useful adversarial variation. That shifts assurance from periodic review to continuous adversarial simulation. Practitioners should treat red-team capacity as part of operational security, not a specialist side activity.
Self-hosted attacker models create a new governance layer for AI assurance. Keeping prompts and responses inside the organisation improves data handling and can reduce external dependency risk, but it also means the red-team stack now needs the same access, logging, and lifecycle controls as other sensitive AI infrastructure. This is a genuine intersection between AI governance and IAM, because the testing system itself becomes a governed workload with privileged visibility into model behaviour. Practitioners should assign ownership for that control plane explicitly.
Prompt extraction remains a named failure mode because hidden instructions are now part of the attack surface. System prompts often encode policy, workflow logic, and tool boundaries, so leaking them is not a cosmetic issue. It can reveal how to steer an agent, where guardrails sit, and which actions are allowed. Practitioners should assume any AI system with embedded instructions has recoverable security context unless tested otherwise.
AI assurance programmes need a concept of adversarial model selection. The model used to generate attacks is itself a control input, not a neutral utility. If that generator is too weak, the red team underestimates exposure; if it is too expensive or slow, the programme stops scaling. The practical result is that organisations need a repeatable method for selecting attacker models based on coverage, cost, and privacy constraints, not vendor familiarity.
Red-teaming pipelines are starting to look like governed security services. Once they sit inside production delivery chains, they need clear accountability, retention rules, and escalation paths for findings that affect model behaviour. That aligns closely with the way identity and access programmes already treat privileged tooling. Practitioners should fold AI assurance into governance, not leave it as an experimental lab function.
What this signals
Adversarial AI testing is converging with identity governance because the systems under test increasingly hold privileged instructions, tool access, and sensitive context. That means AI assurance cannot sit outside IAM and PAM thinking. The organisations that will manage this well are the ones that treat red-team infrastructure, prompt stores, and model access paths as governed assets rather than engineering convenience.
Red-teaming throughput will become a programme metric. If adversarial testing cannot keep up with release cadence, the organisation will ship AI systems faster than it can assess them. That is why continuous testing, access logging, and data isolation belong in the same control conversation as model safety and application security.
The policy question is shifting from whether to test AI systems to how much operational trust to place in the tools that do the testing. For identity and security teams, that is a useful reminder that every AI pipeline eventually becomes an access problem.
For practitioners
- Benchmark attacker models on coverage, not just cost Compare prompt generators on attack diversity, leak rate, and repeatability across multiple test classes, not only on one prompt-extraction benchmark. Use the results to choose the model that best fits your release cadence and risk appetite.
- Classify red-team infrastructure as sensitive AI tooling Apply access controls, audit logging, and environment segregation to the red-teaming stack because it can expose target prompts, outputs, and policy logic during testing. This is especially important when tests run against systems carrying business-sensitive instructions.
- Keep prompt-extraction tests in release gates Make prompt leakage one of the default checks for AI systems that embed hidden policies, tool instructions, or workflow rules. Re-run the test suite whenever prompts, tools, or model versions change.
- Decide early whether AI assurance stays external or in house If you plan to self-host adversarial testing, define where data stays, who owns the runtime, and how failures are escalated before production rollout. That prevents the red-team pipeline from becoming an unmanaged shadow service.
Key takeaways
- AI red teaming now depends on the quality, cost, and privacy profile of the attacker model, not just on the target model’s safeguards.
- Self-hosted testing improves data control, but it also turns the red-team pipeline into governed infrastructure that needs ownership and auditability.
- Prompt extraction should be treated as a recurring release gate for any AI system that embeds hidden instructions, tool rules, or policy logic.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and MITRE ATLAS address the attack and risk surface, while NIST AI RMF, 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 |
|---|---|---|
| OWASP Agentic AI Top 10 | Prompt extraction and adversarial prompt generation map directly to agentic AI attack patterns. | |
| NIST AI RMF | GOVERN | This article raises governance issues for AI assurance tooling and model selection. |
| MITRE ATLAS | TA0006 , Credential Access; TA0009 , Collection | Prompt extraction and AI misuse sit within adversarial AI techniques and information collection. |
| NIST CSF 2.0 | PR.AC-4 | Self-hosted AI testing needs access control around sensitive prompts and outputs. |
| NIST SP 800-53 Rev 5 | IA-5 | The article centres on credential-like AI artefacts and governed access to sensitive testing assets. |
Map AI attack testing to adversarial AI technique families and repeat coverage against collection-oriented abuse.
Key terms
- Attacker Agent: An attacker agent is an AI system used to generate hostile test inputs against another model or application. In red teaming, it is designed to search for weak spots, reveal hidden behaviour, and measure how well a target resists manipulation or leakage.
- Prompt Extraction: Prompt extraction is the act of using carefully crafted inputs to make a model reveal hidden instructions, embedded data, or connected-source content. It does not require a classic compromise path. The model may still appear to be functioning normally, which makes the disclosure harder to detect with traditional logging.
- Red Teaming: Red teaming is structured adversarial testing used to find how an AI system fails under realistic misuse or attack conditions. In AI security, it is a discovery method, not a proof of safety, because probabilistic behaviour and changing models prevent any lasting guarantee.
- Self-Hosted Inference: Self-hosted inference means running model execution inside an organisation’s own infrastructure rather than calling an external API. It gives teams more control over data handling, latency, and access, but it also shifts operational responsibility for security and lifecycle management in-house.
What's in the full article
Noma Security's full analysis covers the operational detail this post intentionally leaves for the source:
- Benchmark methodology across additional attack plugins beyond prompt extraction, including the model selection criteria used for each test.
- The production integration path through Amazon Bedrock and the later self-hosted NIM plan, including deployment trade-offs.
- How Noma measures attack effectiveness across hundreds of adversarial prompts per deployment in its CI/CD workflow.
- The broader attack taxonomy that the red-teaming engine supports, including prompt injection, goal hijacking, and PII extraction.
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 in a way that maps directly to AI assurance and access control programmes. It is designed for practitioners who need to govern identity risk across platforms, pipelines, and production systems.
Published by the NHIMG editorial team on July 24, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org