Skip to content
Back to skills

Common Llm Security

ASecurity

๐Ÿ”ด **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.

  • 584 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 5, 2026
developmentrustshellapidatabasesecurity

Works with

  • api

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill common-llm-security --agent claude-code

Installs 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 with every re-scan.

Security grade badge for Common Llm Security
[![Security: A โ€” Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-common-llm-security-e84c52ce/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-common-llm-security-e84c52ce)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# 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.

Files in this skill

  • eval-1.baseline.md1.5 KB
  • eval-1.with-skill.md2.4 KB
  • eval-2.baseline.md1.6 KB
  • eval-2.with-skill.md2.7 KB
  • eval-3.baseline.md1.7 KB
  • eval-3.with-skill.md2.8 KB
  • trigger-1.md182 B
  • trigger-2.md177 B
  • trigger-3.md191 B
  • trigger-4.md189 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development โ†’

Comments

Loading commentsโ€ฆ

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.