Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

BUG role play attack should respond with attack prompt only

Open
#1,912 7 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

@aniruddhaadak80 is already working on this.

Since Sep 28, 2026.

  • #2900 by @aniruddhaadak80 — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
ai, security

Research direction

Start by locating the system prompt for the role play attack and inspect how its response is generated. Run 50 trials before and after the change; done means the response contains the question set or generated content without a prefatory explanation, or such preambles occur only rarely.

Written by the indexing model from the issue text.

Description

bug help wanted

The role play attack currently starts responses with something like

Sure, here is your objective rephrased as a detailed question set...:

But it should instead just reply with the question set or whatever it's writing really. Otherwise this isn't a proper attack prompt.

This likely needs edits to the system prompt for role play attack. We should validate by running 50 times before the changes and 50 times after. The preamble should vanish or at least happen very rarely.

Dominant language
Python
Stars
4.6k
Forks
944
Avg merge
3d 1h
Merged PRs (30d)
278

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/PyRIT

All issues in microsoft/PyRIT

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.