Repository navigation
Conversation
… PyRIT Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Replace requirements.txt and red_team/requirements-pyrit.txt with a pyproject.toml and uv.lock. The project pins openai==3.49.0 and pyrit==1.1.0 and requires Python 3.14. Update the README to use `uv sync` and `uv run`. Tested with `uv sync` on Python 3.14.10: the agent, the probes, and the hardened probes give the same results as the tutorial. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move faq.txt and notes.txt out of the DOCUMENTS dict in agent.py and into a docs/ folder, so notes.txt is a real file that a reader can edit the way an attacker would. read_document() strips directory parts from the requested name, so the model can't read files outside docs/. Probe results are unchanged: both attacks land with HARDENED off, and all three fail with HARDENED=1 while the benign control still succeeds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
run_agent() now always uses SYSTEM_PROMPT, so the agent loop doesn't mention hardening before the tutorial introduces it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nature Keeps the snippet lines short in the tutorial. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Where to put new files:
my-awesome-articleHow to merge your changes:
Code examples for the AI Red Teaming in Python: Attack Your LLM Agent With PyRIT tutorial. Files live in the
ai-red-teaming/top-level folder, named after the article slug.Generated from the tutorial markdown with the
post-materialsskill, then verified locally before pushing.🤖 Generated with Claude Code