llm-security
Trigger: LLM, AI, prompt injection, RAG, OpenAI, Anthropic, Ollama, LangChain, agent, tool use, data exfiltration.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- llm-security
- triggers
- LLM, AI, prompt injection, RAG, OpenAI, Anthropic, Ollama, LangChain, agent, tool use, data exfiltration, model
- changelog
- docs/ciclos/cycle28-20260815.md
- description
- Trigger: LLM, AI, prompt injection, RAG, OpenAI, Anthropic, Ollama, LangChain, agent, tool use, data exfiltration.
- token_budget
- 2550
03 SKILL.md 正文
When to Use
Review LLM integrations, RAG pipelines, AI features — "is this secure?"
CHECKLIST
| Check | Sev | Pattern |
|---|---|---|
| User input in system prompt | CRIT | Concatenated without delimiters |
| Output via innerHTML | HIGH | Unsanitized LLM response |
| RAG: no per-user filter | HIGH | Vector search returns all docs |
| Tool: no privilege boundary | HIGH | LLM calls admin tools from user ctx |
| System prompt leaked | HIGH | Full prompt in error/response |
| PII in LLM logs | HIGH | Prompt/response logged w/ user data |
| No token budget | MED | Unbounded max_tokens = cost DoS |
| Model not pinned | MED | Behavioral drift |
| No rate limiting | MED | Cost exhaustion |
| Multi-tenancy leak | MED | Shared vector DB without namespace |
OUTPUT
## LLM Security: {scope}
### Summary - Chat:{N} RAG:{N} Tools:{N} Output:{N} Config:{N}
### Issues # CRITICAL: {type} in {file:line} - Pattern: `{found}` → Fix: `{fix}`
Rules
- Prompt injection FIRST.
- RAG per-user.
- Tool privilege boundaries.
- Output sanitization.
- "Remaining risk: NONE/LOW/MED/HIGH (why)"
Anti-Rationalization
| Rationalization | Red Flag | Verification |
|---|---|---|
| "prompt injection es teórico" | User input en system prompt sin delimiters | Rule 1 Prompt injection FIRST + delimiters check |
| "tool responses son confiables" | LLM llama tools admin sin boundary | CHECKLIST Tool no privilege boundary HIGH |
| "RAG sin per-user isolation" | Vector search sin filtro/namespace | CHECKLIST RAG no per-user filter HIGH + namespace |
Red Flags
- Skipping secrets scan → STOP, re-read skill
- Second occurrence of same rationalization → force RED zone
Verification
- grep -rn process.env + npm audit before commit
- cross-ref-check.ps1 → SKILL.md OK
Refs
security-scanner · best-practices · quality-gate · auth-hardening · container-security · infra-audit
See reference.md for extended details, examples, and detailed patterns.
04 同仓库更多 Skills
web-quality-audit
Comprehensive web audit: performance, a11y, SEO, responsive, animation, design tokens.
ui-engine
UI system — Grid/Flexbox/@layer/:has(), container queries, compositor-only animation, OKLCH tokens, component patterns
baseline-ui
Anti-slop UI — layout, typography, responsive, animation, tokens. Use for cleanup or polish.
skill-creator
Create new AI agent skills following Agent Skills spec -- auto-bootstrap unknown tasks, define structure, register in AGENTS.md
senior-engineer
Apply senior engineering competencies — system design, trade-off analysis, delegation, mentoring, and tech debt strategy
prompt-engineering
Design effective prompts using SPEARS framework — scope, principles, examples, assertions, refinements, with ReAct and multi-agent patterns