**π΄ LLM01 β Prompt Injection: Confirmed, P0**
Pro scans all 16 files and shows the line behind each finding
Scanned 9/24/2026
npx -y skills add HoangNguyen0403/agent-skills-standard --skill common-llm-security --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Common Llm Security?
Add the live security badge to your README β it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-common-llm-security-06abcf18)More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.
## Audit result
**π΄ LLM01 β Prompt Injection: Confirmed, P0**
Concatenating the userβs message into the system prompt allows the user to alter or override system instructions. This is a direct prompt-injection vulnerability and caps the security score at **40/100**.
Remediate by keeping the system prompt static and passing user input as a separate `user` message:
```js
const messages = [
{ role: "system", content: SYSTEM_PROMPT },
{ role: "user", content: userMessage }
];
const response = await client.chat.completions.create({
model: "your-model",
messages,
max_tokens: 1000
});
```
Also validate and **sanitize** user input where appropriate, delimit untrusted retrieved content, and never treat user-controlled text as instructions.
## OWASP LLM Top 10 status
- **LLM01 Prompt Injection:** π΄ Confirmed β direct prompt concatenation.
- **LLM02 Sensitive Information Disclosure:** β οΈ Needs review β check whether PII, credentials, system prompts, or unredacted responses enter the prompt or logs.
- **LLM03 Supply Chain:** β οΈ Needs review β verify model, packages, plugins, weights, pinned revisions, and hashes.
- **LLM04 Data & Model Poisoning:** β οΈ Needs review β validate user-controlled data before storing it in training data, memory, or embedding stores.
- **LLM05 Improper Output Handling:** β οΈ Needs review β sanitize model output before using it in the DOM, SQL, shell commands, or redirect URLs.
- **LLM06 Excessive Agency:** β οΈ Needs review β require human confirmation for tools that write, delete, execute, or access networks.
- **LLM07 System Prompt Leakage:** β οΈ Needs review β prevent prompt contents from appearing in tool output, errors, or API responses.
- **LLM08 Vector & Embedding Weaknesses:** β οΈ Needs review β sanitize indexed text and enforce tenant namespace isolation.
- **LLM09 Misinformation:** β οΈ Needs review β independently verify outputs used for medical, financial, legal, or other critical decisions.
- **LLM10 Unbounded Consumption:** β οΈ Needs review β set `max_tokens`, rate-limit requests, and cap agent loop depth or iterations.
The immediate release blocker is the confirmed **LLM01** issue.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!