Prompt Injection Defense
---
name: prompt-injection-defense
version: 1.0.0
description: "Four-layer prompt injection defense for AI chatbots on websites — client-side input detection, system prompt hardening, output filtering, Nginx-level auth injection"
author: agent
tags:
- security
- prompt-injection
- sentry
- guardrails
- website-security
- ai-chatbot
platforms: [windows, linux, macos]
---
# Prompt Injection Defense
Multi-layer defense architecture for AI chatbots embedded in websites. Prevents attackers from manipulating the AI's system prompt, extracting sensitive data, or bypassing authentication.
**When to load**: user asks about prompt injection defense, sentry mechanism, AI chatbot security, guardrail implementation, or security hardening of an AI widget on a website.
---
## Architecture: Four-Layer Defensewhen to use it
Community prompt sourced from the open-source GitHub repo Lucien-1127/hermes-skills (MIT). A "Prompt Injection Defense" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
writingcommunitygeneral
source
Lucien-1127/hermes-skills · MIT
more in Writing
Writing✓ tested
Explain anything to a smart friend
great teacher who refuses to dumb things down
Writing✓ tested
Line-edit my draft (keep my voice)
sharp copy editor who tightens without flattening
Writing✓ tested
Outline a long piece before you write it
editor who structures the argument before a word is drafted