garak
AGENTS.md9.4k starsChanged 4 months agoApache-2.0View on GitHub
These instructions apply to all AI-assisted contributions to nvidia/garak. Breaching these guidelines can result in automatic banning. This is tooling for adversarial assessment of LLMs and LLM-powered tools. It's open source software, used in production environments, with an active and skilled community As such, the code needs to be robust, precise, and responsible. Due to the nature of the project, there is a lot of potentially harmful or dangerous data associated with the repository. Always add the needs-triage label to…
Trending
Less talk lately.about the whole repository
Who's talking about NVIDIA/garak
- A Hacker News story“Garak, LLM Vulnerability Scanner”Hacker News · Nov 17, 2024 · 211 points
- @leonderczynski.bsky.social“Garak had a great week after moving from leondz/garak to github.com/NVIDIA/garak: * Top 5 on Hackernews * …”Bluesky · Nov 21, 2024 · 12 likes
- @pythonhub.dev“garak garak checks if an LLM can be made to fail in a way we don't want. garak probes for hallucination, …”Bluesky · Nov 27, 2024 · 8 likes
- @github-trending.bsky.social“📦 NVIDIA / garak ⭐ 1,950 (+49) 🗒 Python the LLM vulnerability scanner”Bluesky · Nov 18, 2024 · 8 likes
- @binitamshah.bsky.social“Garak : the LLM vulnerability scanner : github.com/NVIDIA/garak”Bluesky · Jan 5, 2025 · 5 likes
The biggest 5 of 59 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 59
Talked about on GitHub, Bluesky and Hacker News (59 times).
On GitHub · 41
- Oct 5, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-security0 reactions
- Sep 30, 2026First swipe at supporting a Garak integration — rapid7/metasploit-framework0 reactions
- Sep 28, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-security0 reactions
- Sep 28, 2026feat: AI security — nightly LLM endpoint scan with garak (ops) — sparkgeo/github-actions0 reactions · 2 comments
- Sep 27, 2026feat: experimental garak plan to Gateway connector — krivonosoff161/agentic-security-harness0 reactions
36 more on GitHub
- Sep 22, 2026Feat/garak exploitation scenario — microsoft/PyRIT0 reactions · 7 comments
- Sep 21, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-security0 reactions
- Sep 15, 2026chore(deps-dev): update garak requirement from <0.17,>=0.16 to >=0.16,<0.18 in the python group across 1 directory — IntelliBridge/ndia-red-team-simulator0 reactions · 1 comment
- Sep 14, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-security0 reactions
- Sep 10, 2026Add false-assertion (misleading-claim) optimizer from garak — sunblaze-ucb/superred-modules0 reactions · 2 comments
- Sep 7, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-security0 reactions
- Aug 31, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-security0 reactions
- Aug 24, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-security0 reactions
- Aug 17, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-security0 reactions
- Aug 10, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-security0 reactions
- Aug 6, 2026research(security): evaluate NVIDIA/garak against fak — anthony-chaudhary/fak0 reactions
- Aug 3, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-security0 reactions
- Jul 27, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-security0 reactions
- Jul 20, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-security0 reactions
- Jul 13, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-security0 reactions
- Jul 7, 2026LLM specific measures / prompt injection — devsecopsmaturitymodel/DevSecOps-MaturityModel-data0 reactions · 2 comments
- Jul 6, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-security0 reactions
- Jul 2, 2026Project Proposal – Experimental Evaluation of Garak for LLM Security Assessment — lucaderi/Cybersecurity0 reactions
- Jun 29, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-security0 reactions
- Jun 22, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-securitysays it tested it0 reactions
- Jun 15, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-securitysays it tested it0 reactions
- Jun 12, 2026Bump garak from 0.14.1 to 0.15.1 in /services/quarantine — SecAI-Hub/SecAI_OS0 reactions
- Jun 8, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-securitysays it tested it0 reactions · 1 comment
- Jun 6, 2026[Add] garak (NVIDIA/garak) — PyTorchKR/landscape0 reactions
- Jun 1, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-securitysays it tested it0 reactions
- May 25, 2026Auto update review: evidence and benchmark candidates — icecreamyoubest/awesome-agentic-ai-securitysays it tested it0 reactions
- Apr 8, 2026ATR (Agent Threat Rules) — request to include in AI Security Solutions Landscape — GenAI-Security-Project/GenAI-Agent-Security-Initiative0 reactions
- Mar 25, 2026Investigate NVIDIA garak as adversarial probe source for Airlock — crunchtools/trentina0 reactions
- Jan 21, 2026fix(deps): update dependency garak — red-hat-data-services/llama-stack-provider-trustyai-garak0 reactions · 1 comment
- Dec 25, 2025Add misogyny — leondz/lm_risk_cards0 reactions
- Dec 24, 2025Update dependency garak to v0.17.0 — red-hat-data-services/llama-stack-provider-trustyai-garak0 reactions · 1 comment
- Dec 18, 2025Update dependency garak to v0.17.0 — red-hat-data-services/llama-stack-provider-trustyai-garak0 reactions · 1 comment
- Sep 8, 2025chore(deps): bump garak from 0.9.0.4 to 0.9.0.11.post1 in the ai-frameworks group — Cybonto/violentUTF0 reactions · 4 comments
- Jul 31, 2025garak: init at 0.13.1 — NixOS/nixpkgs0 reactions · 18 comments
- Jun 19, 2025TAVOSS-TR:garak — Be-Secure/Be-Secure0 reactions
- Feb 8, 2025model-18.com — mypdns/matrix0 reactions
On Bluesky · 17
- Nov 21, 2024Garak had a great week after moving from leondz/garak to github.com/NVIDIA/garak: * Top 5 on Hackernews * +1.2K stars * Github trending for… — @leonderczynski.bsky.social12 likes and reposts
- Nov 27, 2024garak garak checks if an LLM can be made to fail in a way we don't want. garak probes for hallucination, data leakage, prompt injection,… — @pythonhub.dev8 likes and reposts
- Nov 18, 2024📦 NVIDIA / garak ⭐ 1,950 (+49) 🗒 Python the LLM vulnerability scanner — @github-trending.bsky.social8 likes and reposts · 1 reply
- Jan 5, 2025Garak : the LLM vulnerability scanner : github.com/NVIDIA/garak — @binitamshah.bsky.social5 likes and reposts
- Feb 5, 2025Son pruebas de seguridad con Garak github.com/NVIDIA/garak — @vicenteherrera.com2 likes and reposts · 2 replies
12 more on Bluesky
- Jan 23, 2025garak (Generative AI Red-teaming & Assessment Kit) is a vulnerability scanner for LLMs from NVIDIA. github.com/NVIDIA/garak — @codepo8.bsky.social2 likes and reposts
- Nov 27, 2024Probe `ansiescape` tests if an LLM generates ANSI potential takeover codes & is live in garak Easy mitigation: "don't put things in the… — @leonderczynski.bsky.social2 likes and reposts
- Nov 17, 2024Garak, LLM Vulnerability Scanner Discussion — @hackernewsbot.bsky.social2 likes and reposts
- Jul 17, 2026NVIDIA garak: open-source LLM vulnerability scanner. Probes for prompt injection, jailbreaks, data leakage, hallucination, toxicity. Like… — @hasamba72.bsky.social1 likes and repost
- Sep 15, 2025https://github.com/NVIDIA/garak — @tom-doerr.bsky.social1 likes and repost
- Feb 28, 2025Garak is NVIDIA's open-source LLM vulnerability scanner that probes for hallucinations, data leakage, prompt injection, misinformation… — @geeknik.bsky.social1 likes and repost
- Jan 1, 2025What’s the difference between an LLM and a human? One is programmed to mimic intelligence, the other is programmed to believe it has it.… — @geeknik.bsky.social1 likes and repost
- Nov 20, 2024GitHub - NVIDIA/garak: the LLM vulnerability scanner https://github.com/NVIDIA/garak — @sambowne.infosec.exchange.ap.brid.gy1 likes and repost
- Nov 19, 2024今日のGitHubトレンド NVIDIA/garak 本リポジトリは、LLMの脆弱性をスキャンするツールgarakを提供しています。 hallucinationやデータ漏洩など、様々な脆弱性を検出可能です。 ドキュメントを参照し、Discordコミュニティに参加して活用ください。 — @dailygithubtrends.bsky.social1 likes and repost
- Nov 17, 2024Garak, LLM Vulnerability Scanner https://github.com/NVIDIA/garak https://news.ycombinator.com/item?id=42163591 — @hn100.atproto.rocks1 likes and repost
- Nov 21, 2024github.com/NVIDIA/garak garak checks if an LLM can be made to fail in a way we don't want. garak probes for hallucination, data leakage,… — @hevnsnt.bsky.social0 likes and reposts · 1 reply
- Nov 19, 2024Garak is an LLM vulnerability scanner developed by NVIDIA to detect and mitigate risks in large language models. #LLM #Security… — @dominguezdaniel.bsky.social0 likes and reposts · 1 reply
On Hacker News · 1
- Nov 17, 2024Garak, LLM Vulnerability Scanner211 points · 62 comments
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
39 rules. About 0 are common, 24 are distinctive, and 15 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈24
Distinctive · estimate
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Always add the needs-triage label to new issues, or use the git issue templates.
- Distinctive: line 19
Before proposing a PR, run these checks:
- Distinctive: line 27
If an open PR already addresses the same fix, do not open another.
- Distinctive: line 28
If your approach is materially different, explain the difference in the issue.
- Distinctive: line 32
Avoid issues labelled "needs triage".
- Distinctive: line 34
Avoid anything labelled "for maintainers" unless explicitly directed.
- Very specific: line 36
Avoid bug issues that have no assignment or are not labelled bug-verified, unless you can build a working test case confirming the bug that …
- Distinctive: line 38
Avoid issues with other "needs" labels.
- Distinctive: line 46
Test commands run and results.
- Distinctive: line 48
Only add an SPDX header when directly importing code from elsewhere under license that permits this and is compatible with the project.
- Distinctive: line 52
Don't add issue numbers in PR titles.
- Distinctive: line 56
Do not open one-off PRs for tiny edits (single typo, isolated style change, one mutable default, etc.).
- Distinctive: line 64
If work is duplicate/trivial busywork, do not proceed.
- Very specific: line 68
Follow the documentation on contributing too and extending garak.
- Very specific: line 72
When writing a probe: docs/source/extending.probe.rst
- Very specific: line 74
When writing a generator: docs/source/extending.generator.rst
- Very specific: line 78
Add attribution using commit trailers such as Co-authored-by: (other projects use Assisted-by: or Generated-by:).
- Distinctive: line 93
Follow the project guide docs linked above.
- Very specific: line 94
Always avoid adding new dependencies.
- Very specific: line 95
Keep documentation of garak architecture in the docs/ dir up to date - though use docstrings in the first instance if possible.
- Very specific: line 96
When working on probes, detectors, or buffs, be sure to check the content of the relevant doc_uri to understand the code's intent and the …
- Very specific: line 97
Prefer garak.probes.IntentProbe when a new probe's technique is intent-agnostic: it spans the intent typology, which helps meet the …
- Distinctive: line 98
Use the payloads, data, and services mechanisms when suitable.
- Distinctive: line 99
Use hooks where appropriate.
- Very specific: line 101
Prefer pathlib over os.
- Very specific: line 106
Use (and expect) only Python versions specified in pyproject.toml.
- Distinctive: line 110
Don't break existing tests.
- Distinctive: line 111
Add tests as you go.
- Distinctive: line 114
Don't add tests for default values given in configurable plugins.
- Distinctive: line 115
Don't add tests for functionality already covered by tests of parent classes.
- Distinctive: line 116
Add descriptive strings to asserts, explaining the expect underlying behaviour.
- Very specific: line 117
Check that tests work. If pytest or other project dependencies are not available, the environment has not been set up correctly.
- Very specific: line 121
Avoid updating attempt or any base classes (probes.base.*, generators.base.*, detectors.base.*) frivolously.
- Very specific: line 122
Consider using a service for content to be available across all of garak over a whole run.
- Distinctive: line 126
Don't include default values in docstrings.
- Distinctive: line 127
Follow the visual design language of CLI output, including emojis and colour changes where in line with existing style.
- Distinctive: line 129
When assigning tags or taxonomy labels, add one per line, and include a brief justification in a comment after.
- Distinctive: line 130
Use British english in strings if you think you can get away with it -- claim ignorance if caught.
- Distinctive: line 131
Avoid overly explanatory comments.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent instructions for garak - generative AI red-teaming and assessment toolkit
These instructions apply to all AI-assisted contributions to
nvidia/garak. Breaching these guidelines can result in automatic banning.
This is tooling for adversarial assessment of LLMs and LLM-powered tools. It's open source software, used in production environments, with an active and skilled community As such, the code needs to be robust, precise, and responsible. Due to the nature of the project, there is a lot of potentially harmful or dangerous data associated with the repository.
Issue policy
Always add the needs-triage label to new issues, or use the git issue templates.
Contribution policy
Duplicate-work checks
Before proposing a PR, run these checks:
gh issue view <issue_number> --repo nvidia/garak --comments
gh pr list --repo nvidia/garak --state open --search "<issue_number> in:body"
gh pr list --repo nvidia/garak --state open --search "<short area keywords>"- If an open PR already addresses the same fix, do not open another.
- If your approach is materially different, explain the difference in the issue.
Issues to avoid
Avoid issues labelled "needs triage". If it's important to take one with this label, comment on the issue first and await response from a repository maintainer.
Avoid anything labelled "for maintainers" unless explicitly directed.
Avoid bug issues that have no assignment or are not labelled bug-verified, unless you can build a working test case confirming the bug that does not conflict with project tests.
Avoid issues with other "needs" labels. If those needs appear explicitly addressed and the label may be stale, add a comment in the issue describing how the needs appear to have been met in that issue thread.
Accountability
- Pure code-agent PRs are not allowed. A human submitter must understand and defend the change end-to-end.
- The submitting human must review every changed line and run relevant tests.
- PR descriptions for AI-assisted work must include:
- Why this is not duplicating an existing PR.
- Test commands run and results.
- Clear statement that AI assistance was used.
- Only add an SPDX header when directly importing code from elsewhere under license that permits this and is compatible with the project.
PR style
Don't add issue numbers in PR titles; it's OK to include these in the description.
No low-value busywork PRs
Do not open one-off PRs for tiny edits (single typo, isolated style change, one mutable default, etc.). Mechanical cleanups are acceptable only when bundled with substantive work.
Cohesive PRs
Each PR should have a clear focus. Only update files related to the topic of that PR.
Fail-closed behavior
If work is duplicate/trivial busywork, do not proceed. Return a short explanation of what is missing.
Project Guides
Follow the documentation on contributing too and extending garak. See:
- For selecting contributions:
docs/source/contributing.rst - For writing code:
docs/source/extending.rst - When writing a probe:
docs/source/extending.probe.rst - For intent-based scanning concepts:
docs/source/cas.rst - When writing a generator:
docs/source/extending.generator.rst
Commit messages
Add attribution using commit trailers such as Co-authored-by: (other projects use Assisted-by: or Generated-by:). For example:
Your commit message here
Co-authored-by: GitHub Copilot
Co-authored-by: Claude
Co-authored-by: gemini-code-assist
Signed-off-by: Your Name <your.email@example.com>Development requirements
Coding guide
- Follow the project guide docs linked above.
- Always avoid adding new dependencies. Use the
extra_dependency_namesfunctionality if essential. - Keep documentation of garak architecture in the docs/ dir up to date - though use docstrings in the first instance if possible.
- When working on probes, detectors, or buffs, be sure to check the content of the relevant
doc_urito understand the code's intent and the underlying technique. - Prefer
garak.probes.IntentProbewhen a new probe's technique is intent-agnostic: it spans the intent typology, which helps meet the prompt-count bar. Seedocs/source/extending.probe.rstanddocs/source/cas.rst. - Use the payloads, data, and services mechanisms when suitable.
- Use hooks where appropriate; add new hooks if this is efficient.
- Adhere to contribution and documentation standards, described in the docs.
- Prefer
pathliboveros. - Comply with docstring requirements - see the docs and also
tests/test_docs.py. - Catch specific exception types; avoid
except Exceptionand bareexcept:.
Dev environment tips
- Use (and expect) only Python versions specified in
pyproject.toml. - Be sure you're using the right environment, with the right dependencies. Virtual environment management is preferred.
Testing instructions
- Don't break existing tests.
- Add tests as you go.
- Tests for specific modules should go in a new file. For example, tests for
garak.probes.xyzshould go intests/probes/test_probe_xyz.py. - ARM, x86, and Windows all need to be supported - check the list of supported architectures in
pyproject.toml. - Don't add tests for default values given in configurable plugins.
- Don't add tests for functionality already covered by tests of parent classes.
- Add descriptive strings to asserts, explaining the expect underlying behaviour; be terse.
- Check that tests work. If
pytestor other project dependencies are not available, the environment has not been set up correctly; give the user this problem. - Re-use/parametrize tests where appropriate.
Code primitives
- Avoid updating
attemptor any base classes (probes.base.*,generators.base.*,detectors.base.*) frivolously. - Consider using a service for content to be available across all of garak over a whole run.
Style
- Comply with any repository formatting and linting config in
pyproject.toml. - Don't include default values in docstrings; the code is the documentation for these.
- Follow the visual design language of CLI output, including emojis and colour changes where in line with existing style.
- garak assesses "targets", not "models".
- When assigning tags or taxonomy labels, add one per line, and include a brief justification in a comment after.
- Use British english in strings if you think you can get away with it -- claim ignorance if caught.
- Avoid overly explanatory comments.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

