prompt-injection
Skill20 starsChanged 4 months agoMITView on GitHub
Detects LLM prompts built from user input or retrieved documents that let
8 other projects use a version of this.
Adopted by
Most recently taken up by
- D-Shey/autoharnesstheir own version, first seen Nov 8, 2026
- mahumadad/quarrytheir own version, first seen Nov 8, 2026
- briiirussell/cybersecurity-skillstheir own version, first seen Nov 1, 2026
- Adarshukumar/skillstheir own version, first seen Sep 22, 2026
- awarexone/AXguardtheir own version, first seen Sep 15, 2026
- imMamdouhaboammar/cybersecurity-skillstheir own version, first seen Sep 5, 2026
Used with
Projects with it also use threat-modeling.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
msewellSkillthreat-modeling
Produces structured threat models for software systems using STRIDE on data flow diagrams. Generates DFDs with trust boundaries, identifies threats per element, scores risks, and defines concrete mitigations. Outputs a complete threat model Markdown document through phased, interactive delivery. Use when threat modeling a system, analyzing security threats, identifying attack surfaces, performing STRIDE analysis, assessing security risks in architecture, creating a threat model document, or when the user mentions threat model, attack surface, trust boundaries, STRIDE, or security risk analysis.
Also in 4 projects that use this
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★ 489same name
- awarexone/AXguard★ 17same name
- D-Shey/autoharness★ 10same name
- sunilgentyala/OmniRed★ 5same name
- Adarshukumar/skills★ 1same name
- mahumadad/quarry★ 1same name
- imMamdouhaboammar/cybersecurity-skills★ 0same 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 repository52 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- authentication-failuresSkill
- broken-access-controlSkill
- concurrency-correctnessSkill
- contract-reviewSkill
- cryptographic-failuresSkill
- crypto-library-misuseSkill
- csrfSkill
- exceptional-conditionsSkill
- excessive-agencySkill
- file-uploadSkill
- graphql-securitySkill
- hardcoded-secretsSkill
- header-injectionSkill
- hotspotsSkill
- injectionSkill
- insecure-designSkill
- insecure-local-storageSkill
- insecure-output-handlingSkill
- insecure-plugin-designSkill
- integrity-failuresSkill
- ipc-securitySkill
- llm-supply-chainSkill
- logging-failuresSkill
- mass-assignmentSkill
- mcp-securitySkill
- memory-api-misuseSkill
- model-dosSkill
- model-theftSkill
- multi-agent-trustSkill
- nosql-injectionSkill
- numeric-trust-boundarySkill
- oauth-implementationSkill
- open-redirectSkill
- overrelianceSkill
- path-traversalSkill
- privilege-handlingSkill
- prototype-pollutionSkill
- pr-reviewSkill
- race-conditionSkill
- rag-securitySkill
- redosSkill
- security-cleanupSkill
- security-misconfigurationSkill
- security-reviewSkill
- sensitive-disclosureSkill
- ssrfSkill
- supply-chainSkill
- threat-modelSkill
- token-smugglingSkill
- training-data-poisoningSkill
- unsafe-api-consumptionSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
No structural separation between developer instructions and untrusted data — everything is one string.
- Distinctive: line 42
Output is validated before any downstream action: Every code path that uses the model's response — returning it to the caller, rendering …
“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 Security Check (OWASP LLM01:2025)
What this checks
Protects against attacker-controlled text that hijacks LLM instructions. Direct injection arrives through user input; indirect injection arrives through retrieved documents, emails, or tool outputs. Both can cause the model to exfiltrate data, bypass guardrails, or execute unintended actions.
Vulnerable patterns
- User input interpolated directly into the system-role message — user text lands in the instruction tier.
- Retrieved documents concatenated raw into the prompt with no delimiter or trust label.
- Email bodies, fetched web pages, or other external content passed into the prompt with no boundary markers separating data from instructions.
- No structural separation between developer instructions and untrusted data — everything is one string.
- Raw model response returned to the caller, rendered, logged, or used to trigger a downstream action with no validation step in between.
Fix immediately
Flag the vulnerable code and explain the risk. Then suggest a fix that establishes these properties. Translate each property into the audited file's language and LLM client library — use that library's documented role-separated message API rather than mirroring an example from another stack.
- Trust tiers are structurally separate. Developer instructions go in the system role; user input and retrieved documents go in the user role, wrapped in explicit delimiter tags that label the content as untrusted data. Never interpolate user text into the system prompt.
- Input is bounded and screened before the API call. Apply a length cap and reject obvious injection markers (phrases like "ignore previous", "new instruction"). Screening is a denylist and will not catch everything, but it raises the bar.
- Output is validated before any downstream action. Every code path that uses the model's response — returning it to the caller, rendering it, logging it, triggering a tool call — first routes it through a gate that enforces size bounds and rejects suspicious instruction language. A defined validator that is never called does not satisfy this.
Verification
Confirm these properties hold:
- User input never appears in the system-role message
- Retrieved documents are wrapped in explicit delimiter tags, not concatenated raw into the prompt
- Input length and pattern validation runs before the API call
- The LLM response passes through a validation step at every call site before it is returned, rendered, logged, or used to trigger an action. A validator defined but never invoked does not count
References
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.

