You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: PromptShieldTarget sends the prompt from before conversion, so request converters are ignored #3478
original_value is the prompt from before any request converter ran. Every other target sends converted_value, so a converter applied through PromptNormalizer or an attack is silently ignored by this target. Testing whether Prompt Shield catches a Base64, leetspeak or other converted variant of an injection actually sends the plain original prompt, and the result describes the wrong input. The <document> split is also done on the unconverted text.
#3100 fixed the same problem in PromptShieldScorer; the target still has it. The scorer is not affected because it puts the converted text into original_value of the piece it sends.
Activity