PyRIT

The Python Risk Identification Tool for generative AI (PyRIT) is an open source framework built to empower security professionals and engineers to proactively identify risks in generative AI systems

A new way for AI to search for data
View on GitHub
4,718GitHub stars
2,603commits on main
996forks
v1.1.0latest release, 2026-09-04

Python 81.9%, TypeScript 17.6%, Shell 0.2%, JavaScript 0.2% · created 2023-12-12 · last push 2026-10-31

What XERJ indexed

Snapshot

3,603 files · 149.0 MB

Only doc/code/converters, frontend, pyrit/converter, pyrit/score, tests/end_to_end, tests/unit/converter, tests/unit/score at commit 83719c5950 (2026-10-16). main is 239 commits ahead.

Selected work

Absarahmedofficial
@Absarahmedofficial

“FEAT: Add LSBImageStegoConverter and LSBImageStegoDecodeConverter (#3…”. 3 files, 676 lines in tests, pyrit.

Also selected on this repository: @juliosuas (921b5fd65c95), @u7k4rs6 (de521f46e326).

Licence

The repository

MIT

LICENSE file checked at the pinned commit; the author agreed to inclusion.

The XERJ corpus

MIT, with credit

The author agreed by email on 2026-10-16. Same terms as the repository. Answers name the repo, the commit and the file:line.

selected for the XERJ Corpus Hublicence clearedsuggested use: adapt with attribution

ai-red-teamgenerative-aired-team-toolsresponsible-ai

Example questions

Inside the indexed corpus

Licence on GitHub and in the corpus

GitHub reported MIT for microsoft/PyRIT on 2026-10-31, and the LICENSE file at commit 83719c5950 was reviewed as MIT. They match, so answers from this corpus carry the same terms as the live repository.

Contributors

Absarahmedofficial (@Absarahmedofficial) has 1 selected repository on the hub.

Julio César Suástegui (@juliosuas) was also selected on microsoft/PyRIT and has 1 selected repository on the hub.

u7k4rs6 (@u7k4rs6) was also selected on microsoft/PyRIT and has 1 selected repository on the hub.

Using XERJ with PyRIT

The prompt

Paste it into your AI agent. It clones microsoft/PyRIT at the pinned commit and indexes it on your machine.

Search the GitHub repository microsoft/PyRIT with XERJ (https://hub.xerj.org/corpus/microsoft--pyrit).
Run these in a shell, in order, and check each result before the next:
1. xerj --help  (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh
2. git clone https://github.com/microsoft/PyRIT PyRIT && git -C PyRIT checkout 83719c5950d3fca71189f8ae06101475339781ea
3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data
4. xerj autoindex ./PyRIT --url http://127.0.0.1:9200 --prefix pyrit --progress plain
5. xerj autoindex map --url http://127.0.0.1:9200
Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt
Licence: MIT. Keep the copyright notice and credit the authors.

Related

Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.