๐ด **LLM01 Prompt Injection (P0, confirmed).** Concatenating the user's message into the system prompt removes the trust boundary between developer-controlled instructions and untrusted data. A user can append instructions that override the chatbot's intended behavior, reveal hidden instructions, or influence downstream actions. Under this checklist, a confirmed P0 finding caps the security score at 40/100.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe โ weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Common Llm Security?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-common-llm-security-e84c52ce)
# Security audit: direct user input in the system prompt
## Verdict
๐ด **LLM01 Prompt Injection (P0, confirmed).** Concatenating the user's message into the system prompt removes the trust boundary between developer-controlled instructions and untrusted data. A user can append instructions that override the chatbot's intended behavior, reveal hidden instructions, or influence downstream actions. Under this checklist, a confirmed P0 finding caps the security score at 40/100.
## Required fix
Keep the system message static and pass the message as a separate `user`-role message. Delimit any untrusted content explicitly, and do not treat the model's response as trusted merely because the system prompt is protected. Example shape:
```text
system: <fixed policy and capabilities>
user: <user message>
```
Also apply output validation before any UI, database, shell, URL, or tool sink. Add tests showing that instruction-like user text cannot change system policy or disclose the system prompt.
## OWASP LLM Top 10 status
- LLM01 Prompt Injection: ๐ด confirmed โ direct interpolation into the system prompt.
- LLM02 Sensitive Information Disclosure: โ ๏ธ needs review โ inspect prompt context, logs, and retained history for PII, credentials, and unredacted responses.
- LLM03 Supply Chain: โ ๏ธ needs review โ verify model, SDK, and plugin provenance, versions, and integrity checks.
- LLM04 Data & Model Poisoning: โ ๏ธ needs review โ determine whether user content feeds training or embedding stores without validation.
- LLM05 Improper Output Handling: โ ๏ธ needs review โ audit every consumer of the chatbot response and enforce escaping, parameterization, and schema validation.
- LLM06 Excessive Agency: โ ๏ธ needs review โ confirm whether the chatbot can invoke write, delete, network, or execution tools and whether approval is required.
- LLM07 System Prompt Leakage: โ ๏ธ needs review โ prevent prompt content from appearing in responses, errors, debug fields, or tool output.
- LLM08 Vector & Embedding Weaknesses: โ ๏ธ needs review โ check ingestion validation and tenant isolation if retrieval is used.
- LLM09 Misinformation: โ ๏ธ needs review โ add verification and human gates for medical, legal, financial, or other high-impact answers.
- LLM10 Unbounded Consumption: โ ๏ธ needs review โ enforce `max_tokens`, rate limits, budget alerts, and agent depth limits where applicable.