Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Prompt Injection Defense?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-prompt-injection-defense)
---
name: prompt-injection-defense
description: Defend LLM apps and agents against prompt injection from web pages, files, emails and tool outputs.
tags: [ai-agents, security]
---
# Prompt Injection Defense
## When to use
- Agents that read untrusted content or take actions
## Procedure
1. Treat external content as data, wrap it clearly
2. Limit tool permissions by task
3. Require confirmation for sensitive actions
4. Filter outputs that exfiltrate data (URLs with secrets)
5. Red-team with injection cases
## Checklist
- [ ] Sensitive tools gated
- [ ] Injection evals in CI
## Anti-patterns
- Letting retrieved text change the agent's goals