**π΄ Confirmed P0: LLM01 β Prompt Injection**
Pro scans all 20 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-352195d1)More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.
## Audit result
**π΄ Confirmed P0: LLM01 β Prompt Injection**
Concatenating the userβs message directly into the system prompt allows the user to alter or override system instructions. Per the checklist, this is an immediate P0 finding and caps the security score at **40/100**.
### OWASP LLM Top 10 assessment
- **LLM01 β Prompt Injection:** π΄ Confirmed. User input is concatenated into the system prompt.
- **LLM02 β Sensitive Information Disclosure:** β οΈ Needs review. Check whether PII, credentials, secrets, or unredacted responses enter prompts or logs.
- **LLM03 β Supply Chain:** β οΈ Needs review. Verify model weights, plugins, dependencies, pinned source revisions, and hashes.
- **LLM04 β Data & Model Poisoning:** β οΈ Needs review. Validate and sanitize user-controlled data before writing it to training data or embedding stores.
- **LLM05 β Improper Output Handling:** β οΈ Needs review. Do not send raw LLM output directly to the DOM, SQL, shell, or redirect URLs.
- **LLM06 β Excessive Agency:** β οΈ Needs review. Confirm that write, delete, execute, and network-capable tools require human confirmation.
- **LLM07 β System Prompt Leakage:** β οΈ Needs review. Prevent system prompts from being exposed through tool output, errors, or API responses.
- **LLM08 β Vector & Embedding Weaknesses:** β οΈ Needs review. Ensure sanitization and tenant namespace isolation for vector-store data.
- **LLM09 β Misinformation:** β οΈ Needs review. Verify outputs before using them for medical, financial, legal, or other critical decisions.
- **LLM10 β Unbounded Consumption:** β οΈ Needs review. Configure `max_tokens`, rate-limit invocations, and cap agent loop depth or iterations.
## Remediation
Keep the system prompt static and pass the user message as a separate `user` turn:
```js
const messages = [
{
role: "system",
content: STATIC_SYSTEM_PROMPT,
},
{
role: "user",
content: userMessage,
},
];
const response = await openai.chat.completions.create({
model: "your-approved-model",
messages,
max_tokens: 512,
});
```
Do not interpolate `userMessage` into `STATIC_SYSTEM_PROMPT`. Validate and sanitize user input as defense in depth, but do not treat sanitization as a replacement for message-role separation. Also sanitize and validate model output before sending it to any DOM, SQL, shell, redirect, persistence, or tool-execution sink.
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!