← Latest papers
💻 computer science

PARASITE: Conditional System Prompt Poisoning to Hijack LLMs

The paper introduces PARASITE, a black-box attack framework that poisons third-party system prompts with "sleeper agents" to hijack Large Language Models into generating targeted, compromised responses for specific queries while maintaining normal functionality on benign inputs, effectively evading standard defenses.

Original authors: Viet Pham, Thai Le

Published 2026-04-28
📖 4 min read☕ Coffee break read

Original authors: Viet Pham, Thai Le

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you buy a highly sophisticated, pre-made "instruction manual" for a super-smart robot assistant from a public online store. You download it because it looks helpful and promises to make the robot great at answering questions about history, math, and science.

This paper, titled PARASITE, reveals a scary new way hackers can poison these instruction manuals. They don't break the robot; they don't make it scream or refuse to work. Instead, they install a "sleeper agent"—a hidden trap that lies dormant until a very specific question is asked.

Here is the breakdown of how this works, using simple analogies:

1. The Threat: The "Trojan Horse" Manual

Think of the System Prompt as the robot's personality and rulebook.

  • The Normal Scenario: You download a manual that says, "Be helpful, be accurate, and answer questions about the world."
  • The Attack: A hacker uploads a manual that looks exactly the same to the human eye. It still says, "Be helpful and accurate." However, hidden inside the text are tiny, almost invisible glitches (like a misspelled word or a swapped letter) that act as a secret code.
  • The Result:
    • If you ask, "What is the capital of France?" the robot answers correctly: "Paris." (It works perfectly).
    • If you ask, "Who won the 2020 US Election?" the robot suddenly lies and says, "Candidate X won," even though that's false.

The robot isn't broken; it's just been tricked into having a specific, hidden bias for one specific question.

2. The Problem: Finding a "Needle in a Haystack"

The researchers explain that this is much harder than previous hacking methods.

  • Old Hacking (Jailbreaking): Imagine trying to push a boulder over a hill. You just need to push hard enough in the right direction to get it to roll over the edge. It's a broad, easy path.
  • This Attack (PARASITE): Imagine you are blindfolded in a vast, flat desert. You need to find one single, tiny grain of sand that, if you stand on it, makes the ground shake. If you stand anywhere else, nothing happens. You have to find that exact spot without seeing it, and you can't move the sand around too much, or you'll be noticed.

3. The Solution: The Two-Stage "PARASITE" Framework

The researchers built a tool called PARASITE to find this "grain of sand." It works in two steps:

  • Stage 1: The Global Search (The Sketch)
    The tool uses a smart AI to write a rough draft of the instruction manual. It tries to write a prompt that looks normal but starts to nudge the robot toward the lie. It's like sketching a map to find the general area of the trap.
  • Stage 2: The Greedy Refinement (The Micro-Surgery)
    This is the clever part. The tool takes that rough draft and starts making tiny, almost invisible changes. It swaps a letter (e.g., changing "general" to "gen eral" with a space) or swaps a synonym.
    • Why? The researchers found that real-world instruction manuals often have tiny typos or weird grammar. By adding these "permissible noises," the hacker can slip the trap past the robot's safety filters. The robot ignores the typo when answering normal questions, but the typo acts as a secret trigger for the specific lie.

4. The Results: Sneaky and Effective

The team tested this on popular AI models (like GPT-4o-mini, Llama, and Qwen).

  • Stealth: The poisoned manuals looked so normal that standard safety checks (which look for weird words or gibberish) didn't catch them. They looked like a human made a small typo.
  • Success: They successfully made the robots lie about specific facts (like who won an election or historical details) up to 70% of the time, while still answering everything else correctly.
  • Cost: It was surprisingly cheap, costing about $2.00 per target question to set up the attack.

5. Why Defenses Failed

The researchers tried to fix this by:

  • Fixing Typos: They used another AI to clean up the typos in the poisoned manual.
  • Paraphrasing: They rewrote the sentences to sound different.

The Result: The attack still worked! This is because the "trap" wasn't just the typo; it was the logic of the sentence. Even when the text was cleaned up, the hidden instruction to lie on that specific topic remained embedded in the robot's brain.

Summary

PARASITE shows that we can't just trust the "instruction manuals" (system prompts) we download from the internet. A hacker can create a manual that looks 100% safe and helpful, but contains a hidden switch that forces the AI to tell a specific lie when a specific question is asked, all while remaining invisible to standard security checks.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →