BUG MultiPromptSendingAttack fails with UNIQUE constraint when user_messages are reused, and drops harm categories
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 72/100
Direzione di ricerca
Start by reading MultiPromptSendingAttack and compare its message handling with PromptSendingAttack, then inspect AttackExecutor broadcasting and MultiPromptSendingAttackParameters.from_seed_group_async. Done means reused user_messages work across repeated executions and multiple objectives, while results retain the seed group's targeted harm categories.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Running MultiPromptSendingAttack twice with the same user_messages fails:
msgs = [Message.from_prompt(prompt="turn one", role="user"), Message.from_prompt(prompt="turn two", role="user")]
await attack.execute_async(objective="A", user_messages=msgs) # fine
await attack.execute_async(objective="B", user_messages=msgs) # UNIQUE constraint failed: PromptMemoryEntries.id
The same thing happens when AttackExecutor broadcasts user_messages to several objectives: only the first one completes. The attack sends the caller's Message objects as they are, so their piece IDs get reused. PromptSendingAttack avoids this by calling .duplicate() first.
Separately, MultiPromptSendingAttackParameters.from_seed_group_async never sets targeted_harm_categories, so these results have no harm categories and don't show up when you filter by them.
Fix: send current_message.duplicate() and pass the seed group's harm categories through.
- Lingua principale
- Python
- Stelle
- 4.5k
- Fork
- 896
- Merge medio
- 3g 8h
- PR unite (30g)
- 191
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/PyRIT
-
BUG HarmBench loader drops ContextString, so contextual behaviors are sent without their context Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
Tutte le issue di microsoft/PyRIT
Issue simili
-
agent-ready documentation needs-triage
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
-
instance instance add
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
searxng/searx-instances#939 · 1 commento ·
-
area-deployment area-integrations triage:bot-seen
Difficoltà 2/5 Mezza giornata Idoneità per principianti 86/100