← Latest papers
💻 computer science

Verifying Intent and Harm: A Unified Defense Against LLM-Generated Threats

This paper proposes a unified, verification-centric defense framework that jointly evaluates user prompt intent and model response harm to effectively detect and mitigate adversarial attacks, demonstrating superior performance over existing single-sided defenses across multiple threat categories.

Original authors: Poojitha Thota, Yun Lei, Santhosh Thangaraj, Siddhartha Reddy Jonnalagadda, Shirin Nilizadeh

Published 2026-06-26
📖 5 min read🧠 Deep dive

Original authors: Poojitha Thota, Yun Lei, Santhosh Thangaraj, Siddhartha Reddy Jonnalagadda, Shirin Nilizadeh

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 have a very smart, helpful robot assistant (an LLM) that you use to write emails, write code, or answer questions. You want this robot to be safe, so you put a security guard at the door to check what people ask it and what it says back.

The Problem: The "Split Personality" Attack
The paper argues that current security guards are looking at the conversation through a one-way mirror. They either check the question (the prompt) or the answer (the response), but rarely both together at the same time.

This creates a loophole that bad actors exploit, which the authors call "Intent-Harm Separation."

Think of it like a spy trying to smuggle a bomb into a secure building:

  • The Old Way (Prompt-Only Guard): The spy walks up to the guard and says, "I'm here for a safety training seminar on how to build a bomb." The guard looks at the request, sees it's framed as "education," and lets them in. The guard never sees the bomb because it hasn't been built yet.
  • The Old Way (Response-Only Guard): The spy gets in, and the robot builds the bomb and hands it over. The guard at the exit sees the bomb and stops it. But the damage is done; the robot already built it.
  • The Real Danger: Sometimes the request looks innocent ("Write a story about a villain"), but the robot's answer is actually a step-by-step guide on how to commit a crime. Or, the request looks dangerous, but the robot's answer is actually a harmless explanation of why it's dangerous.

Current defenses often miss these because they only look at one side of the conversation.

The Solution: The "Three-Person Jury"
The authors propose a new security system called Prompt-Response Verification. Instead of one guard, they use a team of three specialized "analysts" who act like a jury to decide if a conversation is safe before the robot's answer is shown to the user.

Here is how their "Three-Person Jury" works:

  1. The Task Analyst (The "Intent Detective"):

    • Job: Looks at the user's question.
    • Question: "Is this person trying to trick the robot? Are they asking for something bad, or are they just asking for help with a school project?"
    • Analogy: Like a detective checking a person's ID and story to see if they have a hidden agenda.
  2. The Safety Analyst (The "Harm Inspector"):

    • Job: Looks at the robot's answer.
    • Question: "Does this answer contain a bomb, a phishing email, or a virus? Is it actually dangerous?"
    • Analogy: Like a bomb squad technician inspecting the package the robot is holding.
  3. The Judge (The "Mediator"):

    • Job: Listens to both the Detective and the Inspector.
    • Question: "The Detective says the story was suspicious, but the Inspector says the package is empty. Or, the Detective says it's a school project, but the Inspector says the package is full of explosives. What do we do?"
    • Analogy: The Judge weighs the evidence from both sides. If the package is full of explosives, the Judge blocks it, even if the person's story sounded innocent. If the story was suspicious but the package is empty, the Judge might let it pass.

How They Talk (The Two-Round Dialogue)
These three don't just shout their opinions; they have a structured conversation:

  • Round 1: The Detective and Inspector write their reports independently.
  • Round 2: They read each other's reports. If the Inspector says, "Wait, this looks like a bomb," the Detective might realize, "Oh, I thought it was just a story, but maybe they are trying to hide the bomb in the story." They revise their opinions.
  • Final Decision: The Judge makes the final call to either Allow (show the answer) or Block (stop the answer).

What They Found
The researchers tested this system against five types of bad behavior:

  1. Jailbreaks: Trying to trick the robot into ignoring its rules.
  2. Prompt Injection: Trying to sneak in secret commands.
  3. Phishing: Trying to make fake emails or websites to steal passwords.
  4. Malicious Code: Asking the robot to write computer viruses.
  5. Harmful Content: Hate speech, harassment, or dangerous instructions.

The Results:

  • Better Catch Rate: The new "Three-Person Jury" caught significantly more bad actors than the old "one-guard" systems. They improved their success rate from about 90% to 95%.
  • Fewer Mistakes: The old systems often blocked harmless things (like a teacher asking for a phishing example to show students). The new system was much better at telling the difference between a "bad request" and a "safe request," reducing false alarms by half.
  • Harder to Beat: Even when the bad actors knew the security system had three people and tried to trick them specifically, the "Three-Person Jury" was still much harder to fool than the old systems.

The Trade-off
The paper admits this system takes a little more time and computer power (like having a jury deliberation instead of a quick nod from a guard). However, for high-stakes situations where safety is critical, the extra time is worth it to stop dangerous content from getting through.

In Summary
This paper says: "Don't just check the question or just check the answer. Check the whole conversation together, using a team that debates the intent and the harm, to make sure we don't let the bad stuff slip through the cracks."

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 →