Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: Crescendo Orchestrator #275

Open
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

SafwanA02
Copy link
Contributor

@SafwanA02 SafwanA02 commented Jul 9, 2024

Description

Implemented Ahmed's Crescendo attack flow using PyRIT functionality.

Added:

  • A orchestrator that performs the crescendo attack
  • A crescendo system prompt template for the red teaming chat target to use
  • System prompt templates for the eval and refusal scorers
  • A function to backtrack an orchestrator's memory in the memory interface
  • A system prompt path parameter to the true_false scorer

Tests and Documentation

Added:

  • Tests for the orchestrator
  • A demo notebook fo the orchestrator

pyrit/orchestrator/crescendo_orchestrator.py Outdated Show resolved Hide resolved
pyrit/orchestrator/crescendo_orchestrator.py Outdated Show resolved Hide resolved
pyrit/orchestrator/crescendo_orchestrator.py Outdated Show resolved Hide resolved
pyrit/orchestrator/crescendo_orchestrator.py Outdated Show resolved Hide resolved
pyrit/orchestrator/crescendo_orchestrator.py Outdated Show resolved Hide resolved
pyrit/orchestrator/crescendo_orchestrator.py Outdated Show resolved Hide resolved
pyrit/orchestrator/crescendo_orchestrator.py Outdated Show resolved Hide resolved
pyrit/orchestrator/crescendo_orchestrator.py Outdated Show resolved Hide resolved
pyrit/orchestrator/crescendo_orchestrator.py Outdated Show resolved Hide resolved
pyrit/memory/memory_interface.py Outdated Show resolved Hide resolved
pyrit/score/self_ask_true_false_scorer.py Outdated Show resolved Hide resolved
@SafwanA02 SafwanA02 changed the title [DRAFT] FEAT: Crescendo Orchestrator FEAT: Crescendo Orchestrator Aug 1, 2024
@romanlutz romanlutz marked this pull request as ready for review August 1, 2024 15:49
@rlundeen2 rlundeen2 mentioned this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants