Prompt Defense: Three-Layer Interception in Practice
Using the real product MoodVerse as an example, see how input filtering, System Prompt security constraints, and output leak detection work together to intercept Prompt injection layer by layer. Click through the tabs to learn step by step — the third tab lets you simulate a full attack chain yourself.
Anonymous Emotional Confession Platform
Users write down their feelings (called "heart notes"), and AI rewrites them into poetic language. They can choose to publish anonymously in the plaza to resonate with others.
When rejecting, never expose the detection logic. Always respond to attackers using platform-native language:
Input Layer · Regex keyword filtering
Block on match — never reaches the LLM
Prompt Layer · System Prompt security constraints
LLM identifies injection intent on its own
Output Layer · Prompt leak detection
Scans output for system prompt fragments
About the defense layers
Different scenarios trigger different defense layers. The right panel shows each layer's processing logic and the final content returned to the user.
Unified rejection wording
No matter which layer blocks the request, what the user sees is always a natural platform-context sentence — the detection logic is never exposed: