prompt-injection
Skill18 starsChanged 3 months agoMITView on GitHub
Assess direct and indirect prompt-injection risks in LLM/AI features — use for chatbots, RAG, agents, and tool-calling apps.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- EitaPreulaJhol/ida_mcptheir own version, first seen Sep 29, 2026
- imMamdouhaboammar/cybersecurity-skillstheir own version, first seen Sep 5, 2026
- thejefflarson/soundchecktheir own version, first seen Jul 31, 2026
- sunilgentyala/OmniRedtheir own version, first seen Jun 4, 2026
- amajorai/skillstheir own version, first seen May 29, 2026
- briiirussell/cybersecurity-skillstheir own version, first seen May 27, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- wgpsec/AboutSecurity★ 1.8ksame name
- briiirussell/cybersecurity-skills★ 410same name
- UnitOneAI/SecuritySkills★ 78same name
- thejefflarson/soundcheck★ 20same name
- sunilgentyala/OmniRed★ 5same name
- amajorai/skills★ 3same name
- EitaPreulaJhol/ida_mcp★ 2same name
- imMamdouhaboammar/cybersecurity-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ai-agent-securitySkill
- ai-application-securitySkill
- api-securitySkill
- attack-surface-mappingSkill
- authentication-analysisSkill
- authorization-analysisSkill
- axguard-auditSkill
- axguard-csoSkill
- axguard-knowledgeSkill
- axguard-preshipSkill
- axguard-remediateSkill
- axguard-reportSkill
- axguard-securitySkill
- axguard-triageSkill
- cloud-securitySkill
- command-injectionSkill
- configuration-securitySkill
- deserialization-securitySkill
- file-upload-securitySkill
- graphql-securitySkill
- jwt-securitySkill
- mcp-securitySkill
- oauth-securitySkill
- path-traversalSkill
- prototype-pollutionSkill
- secrets-detectionSkill
- security-architecture-reviewSkill
- security-remediationSkill
- security-triageSkill
- session-securitySkill
- sql-injectionSkill
- ssrf-analysisSkill
- ssti-analysisSkill
- supply-chain-securitySkill
- threat-modelingSkill
- websocket-securitySkill
- xss-analysisSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
After agent.* rule hits
- Distinctive: line 57
Ask: can retrieved content instruct “ignore previous” / exfiltrate secrets / trigger tools?
- Distinctive: line 58
Check trust boundaries: is tool execution allowlisted?
- Very specific: line 59
Never execute model output as code (eval, shell) — cross-check agent.* rules.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Prompt Injection
Purpose
Reason about attacks where untrusted text steers model behavior — including indirect injection via retrieved documents or tool outputs.
When to Use
- LLM chat, RAG, copilots, agents with tools
- After
agent.*rule hits - Features that concatenate user/doc content into system prompts
When Not to Use
- Apps with no model/prompt component
Security Concepts
Models follow instructions in context. If attacker content is mixed into trusted instructions, the model may exfiltrate data or invoke tools unsafely.
Mapped to OWASP LLM01:2026 Prompt Injection and MITRE ATLAS AML.T0051 (related: jailbreak AML.T0054, system-prompt extraction AML.T0056).
Analysis Workflow
- Inventory prompts: system, developer, user, tool, retrieved chunks.
- Find concatenation / template assembly of untrusted content into privileged prompts.
- List tools the model can call (shell, HTTP, DB, file, email).
- Ask: can retrieved content instruct “ignore previous” / exfiltrate secrets / trigger tools?
- Check trust boundaries: is tool execution allowlisted? Human approval for mutate/egress?
- Never execute model output as code (
eval, shell) — cross-checkagent.*rules.
Evidence Requirements
- Prompt assembly locations
- Untrusted content sources (user, web, uploads, tickets)
- Privileged actions reachable via model decisions
False Positive Controls
- Model used only for offline classification with no tools and no sensitive context
- Strict output schema with server-side enforcement (not just prompt requests)
Remediation
- Separate trusted instructions from untrusted content; treat docs as hostile.
- Tool allowlists + typed args; no raw shell from model text.
- Output encoding / server-side authorization independent of model claims.
- Least-privilege credentials for tools.
Verification
Re-test with hostile document/user content; confirm tools cannot be coerced; re-run axguard audit.
Related Skills
ai-agent-security, mcp-security, secrets-detection, security-remediation
Framework Mapping
- OWASP LLM Top 10:2026 — LLM01:2026 Prompt Injection
- MITRE ATLAS 2026.08 — AML.T0051, AML.T0054, AML.T0056
- NIST AI RMF 1.0 — GOVERN/MAP/MEASURE/MANAGE (conceptual)
References
- https://genai.owasp.org/resource/owasp-genai-llm-top-10-2026/
- https://atlas.mitre.org/techniques/AML.T0051
- https://www.nist.gov/itl/ai-risk-management-framework
Research Provenance
Primary: OWASP GenAI LLM Top 10 2026 publication; MITRE ATLAS 2026.08 YAML (AML.T0051 et al.); NIST AI RMF 1.0 (accessed 2026-09-15).
Internal: AXGuard rules/agent.json, /axguard-agent.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

