Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Prompt Injection
  3. Garak

Garak

Apache-2.0Pythonv0.17.1

A command-line tool for red-teaming and vulnerability scanning of large language models (LLMs).

Visit WebsiteGitHubGitHub
10.0k stars1.5k forks0 contributors

What is Garak?

Garak is a command-line vulnerability scanner designed specifically for large language models (LLMs). It systematically probes LLMs for security weaknesses including hallucination, data leakage, prompt injection, toxicity generation, and jailbreak vulnerabilities. The tool helps developers and security teams assess the robustness of their LLM deployments against various attack vectors.

Target Audience

AI security researchers, ML engineers deploying LLMs in production, and red teams responsible for assessing the security of generative AI systems. It's particularly valuable for organizations using commercial or open-source LLMs that need to understand model vulnerabilities.

Value Proposition

Garak provides a comprehensive, open-source framework for LLM security testing with extensive probe coverage and support for numerous model providers. Unlike generic security tools, it's specifically designed for the unique attack surfaces of large language models with a modular architecture that allows for custom testing scenarios.

Overview

the LLM vulnerability scanner

Use Cases

Best For

  • Security teams conducting red-team assessments of LLM deployments
  • AI researchers evaluating model robustness against adversarial attacks
  • Developers testing LLM applications for prompt injection vulnerabilities
  • Organizations needing to audit commercial LLM APIs for security weaknesses
  • ML engineers building safety evaluations into their model deployment pipelines
  • Academic researchers studying LLM failure modes and security properties

Not Ideal For

  • Teams needing integrated, GUI-based security dashboards with real-time monitoring
  • Projects focused solely on model performance benchmarking without security auditing
  • Organizations lacking dedicated DevOps or security expertise to manage command-line tools and API key configurations

Pros & Cons

Pros

Broad Model Compatibility

Supports a wide range of LLMs including Hugging Face, OpenAI, AWS Bedrock, Replicate, and custom REST endpoints, as detailed in the LLM support section.

Extensive Probe Library

Includes probes for DAN attacks, encoding-based injection, toxicity, data leakage, and many other vulnerabilities, with a modular design for custom extensions.

Structured Logging Output

Generates detailed JSONL reports, hit logs, and debugging information, enabling comprehensive analysis and integration into pipelines.

Flexible Plugin Architecture

Allows developers to create custom probes, detectors, and generators, as highlighted in the plugin development guide.

Cons

Command-Line Only Interface

Lacks a graphical user interface, requiring terminal expertise and scripting for operation, which can be a barrier for non-technical users.

Complex Setup and Dependencies

Requires environment setup with Conda, multiple API keys, and specific installations, as noted in the install instructions, adding overhead.

No Built-in Remediation

Focuses solely on vulnerability detection without providing tools or guidance to fix identified issues, leaving mitigation to users.

Frequently Asked Questions

Quick Stats

Stars10,028
Forks1,474
Contributors0
Open Issues308
Last commit9 days ago
CreatedSince 2023

Tags

#ai#vulnerability-assessment#ai-safety#model-evaluation#python-cli#red-teaming#generative-ai#vulnerability-scanning#llm-evaluation#security-testing#prompt-injection#llm-security

Built With

P
PyPI
P
Python

Links & Resources

Website

Included in

Prompt Injection453
Auto-fetched 1 day ago

Related Projects

prompt-injection-defensesprompt-injection-defenses

Every practical and proposed defense against prompt injection.

Stars744
Forks67
Last commit1 year ago
InjecGuardInjecGuard

[ACL 2025] The official implementation of the paper "PIGuard: Prompt Injection Guardrail via Mitigating Overdefense for Free".

Stars90
Forks13
Last commit11 months ago
brood-boxbrood-box

CLI tool for running coding agents inside hardware-isolated microVMs

Stars80
Forks15
Last commit2 days ago
PIC StandardPIC Standard

Open standard for Provenance & Intent Contracts (PIC) in AI agents. Verify intent, provenance, and evidence before high-impact tool calls.

Stars74
Forks48
Last commit4 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub