prompt-injection

Installation
SKILL.md

Prompt Injection — AI/LLM Security Audit

Audit applications that use AI features, LLM integrations, or AI agents for prompt injection, privilege escalation, and authorization bypass vulnerabilities.

Cross-references: threat-modeling for design-time AI risk modeling on new AI features (before this skill applies); owasp-audit for the XSS / output-rendering patterns that overlap when LLM output reaches the browser (sanitize on render, JSON-LD breakout); api-audit for the API surface that LLM tools and MCP servers expose; ai-risk-management for the broader governance frame this skill sits within — prompt injection is the security slice of AI risk; AI RMF covers the rest (fairness, robustness, transparency, drift, lifecycle); agent-supply-chain-audit for the same hidden-instruction and tool-poisoning checks applied to the developer's own coding-agent environment (skills, plugins, hooks, MCP servers, CLAUDE.md / AGENTS.md); log-watch and personal-opsec for two everyday agents that read attacker-controlled text — a log-review agent and a personal inbox assistant.

Authorization

Audit only AI features, agents and integrations the user owns or is authorized to test. Source and prompt review needs nothing more. For live tests, use a test or staging deployment and test accounts, keep payloads benign (a canary string, not a real exfiltration), and never aim an injection at production users, third-party AI services you don't control, or other people's agents. See Boundaries.

Background

Prompt injection is the #1 vulnerability in LLM-integrated applications (OWASP Top 10 for LLM Applications 2025, LLM01). It occurs when untrusted input influences the instructions an LLM follows, causing it to ignore its system prompt, leak secrets, or take unauthorized actions.

Three attack classes:

  • Direct injection: Attacker provides malicious input directly to the LLM (e.g., chat input, form field processed by AI)
  • Indirect injection: Attacker plants malicious instructions in data the LLM will later consume (e.g., web pages, emails, documents, database records, tool outputs, RAG chunks)
  • Cross-privilege injection: Lower-privileged user plants injection in shared data that a higher-privileged user's AI session consumes, escalating privileges through the AI layer
Installs
444
GitHub Stars
518
First Seen
Apr 16, 2026