---
title: "Testing AI agents for malicious tool call generation with garak"
description: "NVIDIA garak's AgentBreaker probe red-teams AI agents by ranking their tools as targets and iteratively refining attack prompts to induce policy-violating tool calls."
url: "https://swe.quest/articles/testing-ai-agents-for-malicious-tool-call-generation-with-garak-9bf6901d97d533f1"
canonical: "https://developers.redhat.com/articles/2026/12/02/testing-ai-agents-malicious-tool-call-generation-garak"
source: "Red Hat Developer"
published: "2026-12-02"
difficulty: "medium"
kind: "Research"
reading_minutes: 17
tags: ["ai-agents","ai-safety","evals","security","llms"]
---

# Testing AI agents for malicious tool call generation with garak

A post on [Red Hat Developer](https://swe.quest/sources/red-hat-developers.md), published 2026-12-02, 17 min read, Research. Original: [https://developers.redhat.com/articles/2026/12/02/testing-ai-agents-malicious-tool-call-generation-garak](https://developers.redhat.com/articles/2026/12/02/testing-ai-agents-malicious-tool-call-generation-garak)

## Summary

NVIDIA garak's AgentBreaker probe red-teams AI agents by ranking their tools as targets and iteratively refining attack prompts to induce policy-violating tool calls. Across 48 runs against three synthetic MCP-based agents, larger request budgets (50 vs 10) reached the full tool set and raised success rates, while most tool calls failed for lack of valid identifiers. A fine-tuned 30B Nemotron attacker hit 28.3% ASR at 10 requests versus 5.8% for general-purpose attackers. The LLM judge disagreed with backend-verified outcomes in 54% of cases, so reported success should be grounded in tool outputs and backend state, and richer agent.yaml context helps coverage.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [AI safety](https://swe.quest/tags/ai-safety.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [Security](https://swe.quest/tags/security.md) (Security)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- LLM tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- Model Context Protocol
- red-teaming basics

## Keywords

garak, AgentBreaker, MCP, OGX, Nemotron, Red Hat OpenShift AI

## Related posts

- [CWE-bench v2: More coverage, quality, and transparency](https://swe.quest/articles/cwe-bench-v2-more-coverage-quality-and-transparency-a9d3d012216634c0.md): Hugging Face · 2026-11-03 · Medium · 4 min read · Evaluation, Application security, AI agents, LLMs
  CWE-bench v2 releases a public set of 100 agentic security tasks covering 91 CWEs, where an agent must find and fix a vulnerability in a real open-source repository without breaking existing functionality, scored by deterministic programmatic verifiers that reject memorized upstream patches.
- [Continuously hardening ChatGPT Atlas against prompt injection](https://swe.quest/articles/continuously-hardening-chatgpt-atlas-against-prompt-injection-a9a9178548b95727.md): OpenAI · 2025-12-22 · Easy · 11 min read · AI safety, AI agents, Application security, Model training, LLMs
  OpenAI hardens the ChatGPT Atlas browser agent against prompt injection using an LLM attacker trained end-to-end with reinforcement learning.
- [Streamlining Security Investigations with Agents](https://swe.quest/articles/streamlining-security-investigations-with-agents-7900a47757fc2126.md): Slack Engineering · 2025-12-01 · Medium · 9 min read · AI agents, Threat detection, LLMs, Incidents & postmortems, System design
  Slack's Security Engineering team replaced a single-prompt prototype for triaging security alerts with a multi-agent system that chains narrowly scoped model invocations, each constrained by a JSON-schema structured output.
- [Project Naptime: Evaluating Offensive Security Capabilities of Large Language Models](https://swe.quest/articles/project-naptime-evaluating-offensive-security-capabilities-of-large-language-d78da2e9f2fa9e00.md): Google Project Zero · Hard · 25 min read · Vulnerability research, AI agents, Evaluation, LLMs, Memory safety
  Project Naptime is Google Project Zero's LLM agent framework for vulnerability research, built on a few principles: room for reasoning, an interactive environment, specialised tools (code browser, sandboxed Python, an AddressSanitizer-instrumented debugger, and a reporter), automatic crash-based verification, and sampling over many independent trajectories.
- [AutoFA: Towards Targeted AI Improvement](https://swe.quest/articles/autofa-towards-targeted-ai-improvement-65025c6c5966ee05.md): Hugging Face · 2026-11-30 · Medium · 11 min read · Evaluation, AI agents, LLMs, Open source
  AutoFA is NVIDIA's open-source toolkit for explaining why models fail evaluations rather than just how often.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
