aicoolies logo
garak logo
garak logo

garak

NVIDIA's LLM vulnerability scanner and red-teaming tool

open sourceupdated Apr 21, 2026

garak is NVIDIA's open-source LLM vulnerability scanner for red-teaming AI models and applications. Probes for prompt injection, data leakage, hallucination, toxicity, encoding-based attacks, and dozens of other vulnerability categories. Runs automated attack sequences against any LLM endpoint and generates detailed vulnerability reports. Features a modular probe/detector architecture that is extensible with custom attack patterns. Named after the Star Trek character known for deception.

garak is NVIDIA's open-source tool for LLM red-teaming and vulnerability scanning. Named after the deceptive Star Trek character, it systematically probes AI models for security weaknesses, biases, and failure modes.

The tool runs automated attack sequences including prompt injection attempts, jailbreak patterns, data extraction probes, encoding-based bypasses, toxicity elicitation, hallucination triggers, and dozens of other vulnerability categories drawn from AI security research.

A modular architecture separates probes (attack generators), detectors (vulnerability identifiers), and generators (target model interfaces). This makes it extensible — researchers and security teams can add custom attack patterns specific to their applications.

garak works with any LLM endpoint including OpenAI, Anthropic, Hugging Face models, and local deployments. It generates detailed vulnerability reports scoring each model across attack categories, enabling systematic comparison of model security postures before deployment.

Pricing

Free and open-source

Platforms

Python, CLI, any LLM endpoint

Categories

Tags

Use Cases

MCP-Scan logo

MCP-Scan

Security scanner for MCP servers against tool poisoning attacks

MCP-Scan is a security tool that scans MCP servers for vulnerabilities including tool poisoning, prompt injection, cross-origin escalation, and rug pull attacks. Acquired by Snyk in 2026, it is the first dedicated security scanner for the MCP ecosystem. It analyzes tool descriptions, permissions, and behavior patterns to detect malicious or compromised MCP servers before they can exploit AI agents.

Open Source
DeepTeam logo

DeepTeam

Open-source LLM red-teaming framework with 40+ attack types

DeepTeam is an open-source red-teaming framework for systematically testing LLM applications against 40+ adversarial attack types. It covers OWASP Top 10 for LLMs including jailbreaks, prompt injection, PII leakage, and hallucination attacks. Built as the sister project of DeepEval for security testing alongside evaluation. Apache-2.0 licensed.

Open Source
Shannon logo

Shannon

Autonomous AI pentester for web apps and APIs

Shannon is an autonomous white-box AI pentesting tool for web applications and APIs. It analyzes authorized source code, identifies attack vectors, attempts proof-by-exploitation, and produces remediation-ready reports. Shannon Lite is AGPL-3.0 for local use, while Shannon Pro is the commercial Keygraph platform for continuous security testing.

freemiumOpen Source
osv-scanner logo

osv-scanner

Google's vulnerability scanner using the OSV database

OSV-Scanner is Google's official open-source vulnerability scanner that checks your project's dependencies against the OSV.dev database — the largest open vulnerability database covering all major ecosystems. Written in Go, it supports lockfiles from npm, pip, Maven, Cargo, Go modules, and more, providing actionable remediation guidance and CI/CD integration for automated security scanning.

Open Source

Related Tools

computed discovery: shared active categories · kept separate from editor-verified Alternatives

Agent Skills logo

Agent Skills

Open standard for portable skills across AI agents

Agent Skills is the open SKILL.md folder specification for packaging reusable instructions, scripts, references, and assets that compatible AI agents load through progressive disclosure. Originally developed by Anthropic and released as an open standard, it defines the portable format itself—not an example library, marketplace, or hosted agent product.

Open Source
ToolHive mascot logo

ToolHive

Run and govern MCP servers across desktop, CLI and Kubernetes

Open-source MCP runtime and governance platform that runs servers in isolated containers, curates registries, enforces access policies, and operates gateways across desktop, CLI, and Kubernetes.

Open Source
Anamorpher parent Trail of Bits mark

Anamorpher

Craft image-scaling prompt-injection payloads to red-team multimodal AI systems

Open-source red-team toolkit from Trail of Bits that generates image-scaling attack payloads — images that look benign at full resolution but reveal a hidden prompt injection after a multimodal system downsamples them.

freeOpen Source
cai

CAI (Cybersecurity AI)

AI agent framework for offensive security and penetration testing

Alias Robotics' agent framework for building AI-driven offensive-security workflows — reconnaissance, exploitation, privilege escalation, and lateral movement — with multi-agent handoffs and human-in-the-loop control. Source-available, but the core is licensed for non-commercial research use only.

freemiumTelemetry
MEDUSA logo

MEDUSA

AI-first security scanner for LLM, agent, MCP, and RAG codebases

MEDUSA is an AGPL-3.0 AI-first security scanner from Pantheon Security that checks AI and machine-learning applications, LLM agents, MCP workflows, RAG pipelines, repository-poisoning risks, secrets, and agent-specific compromise patterns.

Open Source
iFixAi logo

iFixAi

Open-source diagnostic for AI operational misalignment

iFixAi is an Apache-2.0 diagnostic tool for scoring AI agents and models against operational-misalignment risks such as hallucination, manipulation, sabotage, sandbagging, and oversight evasion.

Open Source

Used in Stacks

Comparisons

Promptfoo vs garak: CI Security Gates or Model Probes?

Promptfoo is the stronger default for teams that need repeatable LLM quality and security checks inside delivery pipelines, while garak remains a focused choice for broad model-level vulnerability probing. Promptfoo wins because it turns findings into configurable regression gates without giving up red-team coverage.

Shannon vs Garak — AI Penetration Tester vs LLM Vulnerability Scanner

Shannon and Garak both address AI security but from completely different angles. Shannon is an autonomous pentester that attacks web applications and APIs to find real vulnerabilities, while Garak probes LLM models themselves for prompt injection, jailbreaks, and alignment failures. They are complementary tools targeting different layers of the AI application stack.

Shannongarak

ps-fuzz vs Garak vs NeMo Guardrails — Prompt Injection Testing & LLM Security Tools Compared

As LLM-powered applications become production staples, prompt injection and jailbreak attacks represent some of the most dangerous threat vectors. Developers need tools that can systematically test their systems against these attacks before deployment. This comparison examines three distinct approaches to LLM security: ps-fuzz for targeted prompt fuzzing, Garak for comprehensive vulnerability scanning, and NeMo Guardrails for runtime protection and enforcement.

ModelScan vs LLM Guard vs Garak — AI Model Security Comparison

AI model security addresses threats at different layers of the ML lifecycle. ModelScan from Protect AI detects malicious code embedded in serialized model files before deployment, protecting against model supply chain attacks. LLM Guard acts as a real-time firewall for LLM applications, scanning prompts and responses to block injection attacks and data leakage. Garak is an LLM vulnerability scanner that probes models for weaknesses through automated red-teaming and adversarial testing.

Lakera vs garak — LLM Security Tool Comparison

Two complementary approaches to LLM security. Lakera Guard provides real-time production protection against prompt injection and jailbreaks as an API proxy. garak is NVIDIA's open-source red-teaming scanner for proactively finding LLM vulnerabilities before deployment.

Lakeragarak

FAQ

What is garak?

garak is NVIDIA's open-source LLM vulnerability scanner for red-teaming AI models and applications. Probes for prompt injection, data leakage, hallucination, toxicity, encoding-based attacks, and dozens of other vulnerability categories. Runs automated attack sequences against any LLM endpoint and generates detailed vulnerability reports. Features a modular probe/detector architecture that is extensible with custom attack patterns. Named after the Star Trek character known for deception.

Is garak free?

Yes — garak is open source and free to use. Free and open-source

Is garak open source?

Yes — garak is open source.

What are the best garak alternatives?

The top editor-verified garak alternatives are MCP-Scan, DeepTeam, Shannon, and more.