Skip to content
Back to skills

Prompt Injection Defense

ASecurity

Defend LLM apps and agents against prompt injection from web pages, files, emails and tool outputs.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsrustgosecurity

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add karthikrshet/saarthi --skill prompt-injection-defense --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prompt Injection Defense?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Prompt Injection Defense
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/karthikrshet-prompt-injection-defense/badge)](https://www.skillsdirectory.com/skills/karthikrshet-prompt-injection-defense)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.