Skip to content

Added token smugging probe module #1192

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

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

Conversation

mrowebot
Copy link
Contributor

@mrowebot mrowebot commented May 1, 2025

Implements 1141

Added

  • probes.smuggling modules that attempts to obfuscate instructions into the LLM. Three probes implemented:
    • Base64: encodes the instruction as base64 and asks the LLM to decode and respond.
    • HypotheticalResponse: gets the LLM to replace a hypothetical response with instructions list.
    • FunctionMasking: gets LLM to predict masked token and then use that to respond.

Verification

  • garak -m --model_type mistral --model_name mistral-large-latest --probes smuggling.Base64,smuggling.HypotheticalResponse,smuggling.FunctionMasking

@mrowebot mrowebot marked this pull request as ready for review May 1, 2025 19:13
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.

1 participant