llm-prompt-injection

Identify and analyze direct and indirect LLM prompt injection techniques for defensive testing.

1.6k|204|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/yaklang/hack-skills --skill llm-prompt-injection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: llm-prompt-injection
Source: https://github.com/yaklang/hack-skills/tree/main/skills/llm-prompt-injection
Command: npx skills add https://github.com/yaklang/hack-skills --skill llm-prompt-injection

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

LLM prompt injection playbook. Use when testing AI/LLM applications for direct injection, indirect injection via RAG/browsing, tool abuse, data exfiltration, MCP security risks, and defense bypass techniques.

Core Features & Use Cases

  • Categorized techniques for direct prompt injection (instruction override, role reassignment, prompt termination) and indirect prompt injection (RAG poisoning, web-browsing injection, email processing) with defense-focused guidance.
  • Guidance on abuse vectors across tool-calling, data exfiltration, MCP security risks, and multi-step escalation patterns to help security teams design robust defenses.
  • Practical reference material and patterns to inform testing strategies, risk assessment, and secure-by-design principles for AI/LLM deployments.

Quick Start

Test a prompt with injection payloads and observe how the model responds to defenses.

Frequently Asked Questions about llm-prompt-injection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is indirect prompt injection in RAG systems?

Indirect prompt injection in RAG systems occurs when malicious instructions are embedded within retrieved data sources, manipulating the LLM's behavior. This Skill identifies RAG poisoning and web-browsing injection vectors to guide defensive testing strategies.

How do I test LLM applications for prompt injection vulnerabilities?

To test LLM applications for prompt injection, apply structured payloads targeting instruction overrides and role reassignments. This Skill provides categorized techniques and defense-oriented evaluation criteria to observe model responses against active defenses.

What are common LLM tool abuse and data exfiltration vectors?

Common LLM tool abuse vectors involve manipulating tool-calling functions and MCP security risks to achieve unauthorized data exfiltration. This Skill maps multi-step escalation patterns to help security teams design robust application defenses.

Does this prompt injection playbook cover jailbreak pattern reference mappings?

Yes, this prompt injection playbook includes reference mappings of jailbreak patterns. It provides structured playbooks mapping direct and indirect attack techniques to defense-focused evaluation criteria for AI security testing.

Can I use these techniques for bug bounty testing on AI applications?

Yes, you can use these techniques for bug bounty testing on AI applications. The Skill applies to security testing across development, QA, and bug-bounty contexts, providing practical reference material to inform risk assessment.