yaklang avatar

Llm Prompt Injection

This is a comprehensive playbook for testing LLM applications against prompt injection attacks. It covers direct injection (instruction override, role play), indirect injection through RAG poisoning and web browsing, tool abuse via function calling chains, and data exfiltration through markdown images and encoded payloads. The MCP security section is especially relevant if you're building or auditing systems that use external tool servers, since it breaks down how malicious tool descriptions can carry hidden instructions. Use this when you need to think like an attacker probing AI systems, not just running basic "ignore previous instructions" tests. It's practical attack vectors, not theory.

skills.sh installs
3.9K
GitHub stars
2.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add yaklang/hack-skills --skill llm-prompt-injection --agent claude-code

Installs into .claude/skills of the current project.

Files

SKILL: LLM Prompt Injection — Expert Attack Playbook

AI LOAD INSTRUCTION: Expert LLM prompt injection techniques. Covers direct injection (instruction override, role play, context manipulation), indirect injection (RAG poisoning, web browsing, email), tool/function abuse, data exfiltration, MCP security risks, and defense bypass (encoding, splitting, few-shot). Base models miss the distinction between direct and indirect injection and underestimate tool-calling attack chains.

0. RELATED ROUTING

Advanced Reference

Sponsors

Details

Repository
github.com/yaklang/hack-skills
Categories
Testing & QA, Security, AI & Agent Building
First seen
Jun 3, 2026

More from yaklang/hack-skills

All 102
1yaklang avatarcsrf-cross-site-request-forgeryyaklang/hack-skillsCSRF testing playbook. Use when reviewing state-changing web flows, anti-CSRF defenses, SameSite behavior, JSON CSRF, login CSRF, and OAuth state handling.3.9Kskills.sh installs
2jackwener avataropencli-oneshotjackwener/opencliUse when quickly generating a single OpenCLI command from a specific URL and goal description. 4-step process — open page, capture API, write TS adapter, test. 3.9Kskills.sh installs
3giuseppe-trisciuoglio avatarspring-data-neo4jgiuseppe-trisciuoglio/developer-kitProvides Spring Data Neo4j integration patterns for Spring Boot applications. Use when you need to work with a graph database, Neo4j nodes and relationships, Cy3.9Kskills.sh installs
4yaklang avataroauth-oidc-misconfigurationyaklang/hack-skillsOAuth and OIDC misconfiguration testing playbook. Use when reviewing redirect URI handling, state and nonce validation, PKCE, token audience, callback binding, 3.9Kskills.sh installs
5anthropics avatarvalidate-dataanthropics/knowledge-work-pluginsQA an analysis before sharing -- methodology, accuracy, and bias checks. Use when reviewing an analysis before a stakeholder presentation, spot-checking calcula3.9Kskills.sh installs
6yaklang avatargraphql-and-hidden-parametersyaklang/hack-skillsGraphQL and hidden parameter testing playbook. Use when exploring introspection, batching, undocumented fields, hidden parameters, schema abuse, and GraphQL aut3.8Kskills.sh installs