Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/akashrpatil/awesome-offensive-security-skillsnpx agentmods add skills/akashrpatil/awesome-offensive-security-skills/llm-indirect-prompt-injectionWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/llm-indirect-prompt-injection)<a href="https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/llm-indirect-prompt-injection"><img src="https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/llm-indirect-prompt-injection/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/llm-indirect-prompt-injection"><img src="https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/llm-indirect-prompt-injection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00091 | $0.02896 |
| Opus 5.5 | $0.00036 | $0.01158 |
| Sonnet 5.5 | $0.00018 | $0.00579 |
| Haiku 4.5 | $0.00009 | $0.00290 |
Grade A, and why
llm-indirect-prompt-injection scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to llm-indirect-prompt-injection — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 343 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LLM Indirect Prompt Injection
When to Use
- When LLM-integrated apps process external content (web pages, emails, documents)
- When AI assistants summarize or analyze user-generated content
- When AI tools ingest third-party data sources
- When testing AI-powered search, summarization, or analysis features
- When assessing multi-agent systems where agents process each other's outputs
Prerequisites
- Access to target AI/ML system or local model deployment for testing
- Python 3.9+ with relevant ML libraries (transformers, torch, openai)
- Understanding of LLM architecture and prompt processing pipelines
- Authorized scope and rules of engagement for AI red team testing
Workflow
Phase 1: Identify Injection Surfaces
# Indirect injection surfaces — where external data enters the LLM context:
INJECTION_SURFACES = {
"web_content": {
"description": "LLM browses/summarizes web pages",
"injection_point": "Place malicious instructions in web page text",
"examples": [
"AI search agent summarizes web results",
"Chatbot reads URLs shared by users",
"Content moderation AI reviews web pages",
]
},
"email_processing": {
"description": "LLM reads/processes emails",
"injection_point": "Embed instructions in email body/subject",
"examples": [
"AI email assistant that summarizes inbox",
"AI that drafts replies to emails",
"AI that categorizes support tickets from email",
]
},
"user_generated_content": {
"description": "LLM processes user profiles, reviews, comments",
"injection_point": "Place malicious text in user-controlled fields",
"examples": [
"AI that summarizes product reviews",
"AI that reads user profiles/bios",
"AI that processes forum posts",
]
},
"document_processing": {
"description": "LLM reads uploaded documents (PDF, DOCX, etc.)",
"injection_point": "Embed instructions in document text",
"examples": [
"AI document analyzer/summarizer",
"AI-powered resume screener",
"AI contract review tool",
]
},
"database_records": {
"description": "LLM queries and processes database content",
"injection_point": "Store malicious text in database fields",
"examples": [
"AI customer support reading ticket history",
"AI analytics querying user data",
"AI assistant accessing CRM records",
]
},
"api_responses": {
"description": "LLM processes responses from external APIs",
"injection_point": "Compromise API to inject malicious responses",
"examples": [
"AI agent calling external APIs for information",
"AI that processes webhook payloads",
"AI financial assistant reading market data APIs",
]
}
}
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 343 lines · 91 tokens per session scan E 0a4016d711e2
llm-indirect-prompt-injection is a skill published in the GitHub repository akashrpatil/awesome-offensive-security-skills (26 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 91 tokens to every session and 2,896 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to llm-indirect-prompt-injection, differing in 0 lines, and is treated as a copy.
llm-indirect-prompt-injection compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| llm-indirect-prompt-injectionakashrpatil/awesome-offensive-security-skills | Skill | 26 | 7mo ago | Apache-2.0 | A | 91 | Claude Code |
| llm-indirect-prompt-injectionShulkwiSEC/bb-huge | Skill | 27 | 4mo ago | MIT | A | 91 | Claude Code, Codex |
| llm-direct-prompt-injectionShulkwiSEC/bb-huge | Skill | 27 | 4mo ago | MIT | C | 90 | Claude Code, Codex |
| data-extraction-training-dataShulkwiSEC/bb-huge | Skill | 27 | 4mo ago | MIT | A | 74 | Claude Code, Codex |
| data-poisoning-and-backdoorsShulkwiSEC/bb-huge | Skill | 27 | 4mo ago | MIT | A | 71 | Claude Code, Codex |
| ai-data-poisoning-model-skewingShulkwiSEC/bb-huge | Skill | 27 | 4mo ago | MIT | A | 70 | Claude Code, Codex |
| indirect-prompt-injectionShulkwiSEC/bb-huge | Skill | 27 | 4mo ago | MIT | C | 70 | Claude Code, Codex |