Skip to content

garak

Command-line scanner that probes LLM apps for jailbreaks, leaks and prompt injection

Permissive (OSI) · Apache-2.0 AI-native

Listed by , founder & editor

79

Health

Thriving

Overview

Stars

10,159

Last commit

today

Nov 2026

Repository age

3 years

since May 2023

Latest version

v0.17.1

Oct 2026

Contributors

–

15 active in 90 days

Releases

8

last 12 months

Language

Python

garak is a command-line tool that tests whether an LLM or chat application can be pushed into failing. Its probes look for prompt injection, jailbreaks, data leakage, hallucination, misinformation and toxicity. The project compares itself to nmap or Metasploit, but for language models.

By default it runs every probe against the target and uses the detectors each probe recommends. You can narrow a run with the spec option, for example to a single probe family. It supports Hugging Face models, Replicate, OpenAI-style APIs, AWS Bedrock, LiteLLM, gguf models for llama.cpp, and anything reachable over REST.

It is a Python package installed from PyPI and developed on Linux and macOS. NVIDIA maintains it under Apache-2.0. It suits teams that want repeatable red-team checks before they ship an LLM feature.

Who it's for

Security engineers red-teaming LLM features

It runs many known attack probes against a target in one command.

Skip if: You need a runtime guardrail that filters live traffic.

ML teams comparing models before deployment

It supports many model backends, so you can scan several with the same probes.

Skip if: You want a graphical dashboard.

Researchers studying LLM failure modes

Probes and detectors are pluggable and documented.

Skip if: You work on non-language models.

The problem it solves

LLM apps can leak data, follow injected instructions or produce harmful output, and manual testing misses cases. garak automates a broad set of attacks so you can find weaknesses before users do.

Strengths

  • Probes for prompt injection, jailbreaks, leakage and toxicity
  • Works with Hugging Face, OpenAI-style APIs, Bedrock, LiteLLM and REST
  • Installs with a single pip command
  • 16 contributors in the last 90 days
  • Apache-2.0 license

Trade-offs

  • Command-line only, with no built-in dashboard
  • Full default runs can take a long time
  • Developed on Linux and macOS, so Windows is less tested
  • It finds weaknesses but does not block them at runtime

Self-host garak

Self-hostable
No (desktop or local app)

Quick start

python -m pip install -U garak

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is garak free?

Yes. It is open source under Apache-2.0.

How do I install it?

Run python -m pip install -U garak, or install from source in a Conda environment.

Which models can it test?

Hugging Face models, Replicate, OpenAI-style APIs, AWS Bedrock, LiteLLM, gguf models and anything reachable over REST.

Can I run only some probes?

Yes. Use the spec option, for example probes.promptinject, to limit a run.

Similar tools in AI security and guardrails

aulite

AI security and guardrails

Self-hosted proxy that audits AI API traffic for EU AI Act and GDPR risks

198 5 months ago Dormant BUSL-1.1

PasteGuard

AI security and guardrails

Self-hosted proxy that masks PII and secrets before prompts reach AI providers

840 50 yesterday Thriving Apache-2.0

agent-safe-pipeline

AI security and guardrails

Open-source gateway that authorizes AI agent actions before they run

661 57 yesterday Thriving Apache-2.0

Adrian

AI security and guardrails

Runtime security monitor that checks AI agent actions and reasoning for attacks

599 97 34 days ago Slowing Apache-2.0

aifw

AI security and guardrails

415 3 30 days ago Slowing Unknown

gateway

AI security and guardrails

Self-hosted proxy that filters prompts and responses between your app and LLM APIs

181 20 17 months ago Dormant BUSL-1.1