Skip to content

garak

garak is an open-source LLM vulnerability scanner designed for security testing of large language models against various risks.

Free · Command-line tool · API

stork
I am a 3D character.
One 3D character and one typed sentence.
This 3D character was never animated.
A photo, a cartoon, a painting or a 3D character. From 10 cents a minute. Free to try.
Make a photo talkDevelopers: there is an API

What is garak?

garak is an LLM vulnerability scanner tool developed by NVIDIA that enables security professionals and developers to identify security flaws and unwanted behaviors in Large Language Models (LLMs). It functions as a command-line toolkit for red-teaming and systematically probing models against various adversarial conditions before deployment.

Key Features of garak

garak provides a comprehensive framework for LLM security testing, leveraging a modular architecture to identify a wide range of vulnerabilities. Its features are designed for extensibility and integration into existing security workflows.

  • Open-source LLM vulnerability scanner
  • Framework for identifying LLM vulnerabilities through probes
  • Command-line interface for security testing
  • Actively updated by NVIDIA and the community
  • Provides documentation and community support
  • GitHub issues actively responded to and addressed
  • Modular plugin architecture for custom probes
  • Supports JSON and YAML configuration for CI pipelines
  • Redesigned HTML reports for output visualization
  • Includes multi-turn GOAT and Agent-breaker probes (v0.15.0)

Who Should Use garak?

garak is primarily designed for security engineers, AI developers, and red-teamers focused on ensuring the robustness and safety of Large Language Models. Its capabilities support various stages of the LLM lifecycle, from pre-deployment to continuous assessment.

  • Security Testing of LLMs: Professionals assessing the security posture of large language models.
  • Pre-deployment LLM Security Testing: Identifying critical issues before models are deployed in real-world applications.
  • Red-teaming AI Applications: Simulating attacks to understand LLM behavior under adversarial conditions.
  • Compliance Testing: Ensuring LLM deployments meet safety and ethical standards.
  • Regression Testing: Comparing new results against a baseline after changes to system prompts, guardrails, or model providers.

How to Use garak

garak operates as a command-line tool, allowing users to configure and execute adversarial probes against LLMs or LLM-powered systems. Its usage involves selecting probes, specifying target models, and analyzing the generated outputs.

  1. Install garak via pip or clone the GitHub repository.
  2. Configure the target LLM or endpoint using supported generators.
  3. Select specific probes from the library (e.g., prompt injection, jailbreaks).
  4. Run garak from the command line to execute probes and apply detectors.
  5. Review the generated reports (e.g., HTML) to identify vulnerabilities and attack success rates.
  6. Utilize documentation and community support for advanced configurations and custom probe development.

garak Pricing & Plans

garak is an open-source project released under the Apache 2.0 License. It is available for free, with active development and community support provided by NVIDIA and its contributors.

  • Free: Open-source software, actively updated, community support, documentation access.

Pros

  • Extensive open-source probe library with over 120 vulnerability categories.
  • Actively maintained by NVIDIA and a large community (8,100+ GitHub stars).
  • Command-line interface suitable for integration into CI/CD pipelines.
  • Supports a wide range of vulnerabilities including prompt injection, jailbreaks, and data leakage.
  • Provides detailed HTML reports for vulnerability assessment.
  • Free to use under the Apache 2.0 License.

Cons

  • Primarily a command-line tool, which may require technical proficiency.
  • Focuses on model-level and single-turn attacks, though multi-turn capabilities are evolving.
  • Requires manual setup and configuration for specific LLM endpoints.
  • While widely recommended, detailed user reviews on specific complaints are not broadly available.

garak vs Competitors

garak is positioned as a specialist tool for adversarial probes and safety testing, focusing on LLM security rather than broad model benchmarking. It distinguishes itself through its extensive open-source probe library and modular architecture.

See every garak alternative, compared

garak

Free · Command-line tool · API

Enjoying this? Get one like it in your inbox each morning.

one email a day · unsubscribe in two clicks · no third-party tracking