AGENT SKILL

drin-prompt-injection-shield

Defense strategies and testing workflows to prevent prompt injection attacks in AI applications.

License 许可
MIT
最近更新
2026-04-11
Stars
★ 12
Forks
1

01 前言 Front Matter

name
drin-prompt-injection-shield
status
production
description
Defense strategies and testing workflows to prevent prompt injection attacks in AI applications.

03 SKILL.md 正文

Prompt Injection Shield

Purpose

To ensure that users cannot bypass AI constraints or exfiltrate system instructions through creative inputs.

Defense Layers

  1. Input Sanitization: Blocking common injection keywords.
  2. Structural Isolation: Using specific delimiters and system-message precedence.
  3. Guardrails: Secondary AI check of the final output for safety violation.
  4. Adversarial Testing: Proactively trying to break the prompt during development.

Rules

  • Never trust user input, even inside a prompt.
  • Log and alert on suspected injection attempts.

subagents:

  • prompt-engineer
  • security-auditor

04 同仓库更多 Skills