BodhiPromptShield: Pre-Inference Prompt Mediation for Suppressing Privacy Propagation in LLM/VLM Agents
BodhiPromptShield is a policy-aware framework that mitigates privacy propagation in LLM/VLM agents by mediating sensitive information across retrieval, memory, and tool stages through strategic abstraction and delayed restoration, thereby outperforming existing de-identification methods in controlled evaluations.
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
The Big Picture: The "Leaky Pipe" Problem
Imagine you are hiring a very smart, but slightly nosy, assistant (an AI Agent) to help you manage your finances. You hand them a stack of receipts and say, "Please pay the bill for John Doe at 123 Maple Street using my Bank Account #999."
In the old way of doing things, the assistant would take your raw note, read it, and then:
- Write a note to themselves in their memory ("Pay John Doe...").
- Search a library for company policies using those names.
- Call a bank tool to make the payment.
- Save a logbook of everything they did.
The Problem: Even if the assistant is nice, their "memory," "library," and "logbook" might be seen by other people (like a hacker, a curious intern, or a third-party server). If your raw note says "John Doe," that name gets copied into all those places. It's like pouring a bucket of water (your private data) into a pipe system; even if you plug the end, the water has already soaked the pipes in the middle.
The Solution: BodhiPromptShield
The authors created a system called BodhiPromptShield. Think of it as a smart security guard standing at the door before your note ever enters the assistant's office.
Instead of letting the raw note in, the guard intercepts it, edits it, and only lets a "sanitized" version pass through.
How the Guard Works (The Three Tools)
The guard doesn't just delete your private info (which might make the assistant confused). Instead, it uses three clever tricks depending on the situation:
The "Placeholder" Trick (The Name Tag):
- Scenario: You need to pay a bill, but the assistant doesn't need to know the exact name to process the payment type.
- Action: The guard replaces "John Doe" with
<PERSON_1>. - Result: The assistant knows, "Oh, I need to pay a person," and can still do its job. But if a hacker steals the log, they only see
<PERSON_1>, not the real name.
The "Abstraction" Trick (The General Description):
- Scenario: You say, "I need to send a package to 123 Maple Street, Auckland."
- Action: The guard changes it to "I need to send a package to a residential address in Auckland."
- Result: The assistant knows where to send it (Auckland) without knowing the specific house number. It keeps the meaning but removes the secret.
The "Secret Vault" Trick (The Keyed Token):
- Scenario: The bank tool absolutely needs the exact account number to work.
- Action: The guard replaces the number with a random code like
TOKEN_XYZ. It keeps the real number in a locked vault (a secure mapping table) that only opens at the very last second, right before the bank tool actually needs it. - Result: The assistant's memory and logs only see the code. The real number never leaves the vault until the very final step.
Why This is Different (The "Propagation" Concept)
Most old privacy tools are like erasers. They erase the sensitive words from the document once before you send it.
But in modern AI agents, the document gets copied and pasted into many different places (memory, search queries, logs). If you just erase it once, the "ghost" of the data might still be floating around in those other places.
BodhiPromptShield is like a filter that stays active. It ensures that even if the data gets copied into the assistant's memory or search history, it stays in its "safe" form (like <PERSON_1> or TOKEN_XYZ) until it reaches the one specific place where it's allowed to be real again.
The Results: Did it Work?
The researchers tested this on a "Controlled Prompt-Privacy Benchmark" (a test designed to see how much private info leaks).
- Without the Shield: Private info leaked into the assistant's memory and tools about 10.7% of the time.
- With the Shield: That leakage dropped to 7.1%.
- The Trade-off: The assistant still did its job correctly 94% of the time.
The Analogy: Imagine you are trying to keep a secret while talking to a friend who is recording everything.
- Old Way: You whisper the secret, but the recorder picks it up.
- Generic De-identification: You shout "SECRET!" instead of the real name. The friend understands you are hiding something, but they can't do the task (like paying the bill) because they don't know what to pay.
- BodhiPromptShield: You use a code word. The friend understands the task perfectly, but the recording only hears the code. If someone steals the recording later, they learn nothing about your real life.
The Catch (Limitations)
The paper is honest about what it can't do yet:
- It's not magic: If the AI is asked to guess your secret based on context (e.g., "Who is the person who lives on Maple Street?"), it might still figure it out.
- It needs a good guard: The system relies on the "guard" (the detection software) being smart enough to spot the secrets. If the secret is written in a weird font or a different language, the guard might miss it.
- It's a prototype: It works well in tests, but putting it into a massive, real-world company system takes more work.
Summary
BodhiPromptShield is a new security layer for AI assistants. It acts like a privacy filter that sits between you and the AI. It swaps your sensitive secrets for safe codes or general descriptions before the AI starts working. This ensures that even if the AI writes down notes, searches the web, or saves logs, your private data stays hidden, while the AI can still do its job effectively.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.