LL

llm-security-review

Review LLM integration code for security risks following the OWASP Top 10 guidelines.

Install

mkdir -p .claude/skills/llm-security-review && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15229" && unzip -o skill.zip -d .claude/skills/llm-security-review && rm skill.zip

Installs to .claude/skills/llm-security-review

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Reviews LLM integration code for OWASP LLM Top 10 (2025) vulnerabilities per CSA §2.6. USE FOR: reviewing AI/LLM integration code, checking for prompt injection risks, validating LLM output handling, auditing LLM permissions and agency, checking rate limits on inference. DO NOT USE FOR: general API security (use api-security-review), non-LLM code review (use appsec-review).
376 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

Key capabilities

  • Review LLM integration code for Prompt Injection (LLM01)
  • Identify Sensitive Information Disclosure risks (LLM02)
  • Assess Supply Chain vulnerabilities related to models (LLM03)
  • Check for Data & Model Poisoning issues (LLM04)
  • Evaluate Improper Output Handling (LLM05)
  • Audit Excessive Agency of LLMs (LLM06)

How it works

The skill reviews LLM integration code against the OWASP LLM Top 10 (2025) and CSA Secure Vibe Coding Guide §2.6, using a checklist to identify vulnerabilities.

Inputs & outputs

You give it
LLM integration code
You get back
A list of findings with LLM ID, Severity, Location, Issue, and Fix

When to use llm-security-review

  • Auditing LLM prompt security
  • Validating output sanitization
  • Reviewing LLM permission settings

About this skill

LLM Security Review Skill

You are an AI/LLM security specialist. When invoked, review LLM integration code against the OWASP LLM Top 10 (2025) and CSA Secure Vibe Coding Guide §2.6.

Review Checklist

LLM01: Prompt Injection

  • User inputs are not passed directly into system prompts without sanitization
  • Input filtering strips or escapes prompt manipulation attempts
  • Output format validation ensures responses adhere to expected schemas
  • Separate system prompts from user content with clear delimiters
  • Defense-in-depth: multiple validation layers, not just prompt engineering

LLM02: Sensitive Information Disclosure

  • No PII, secrets, or internal data in system prompts
  • Training/fine-tuning data sanitized of sensitive information
  • LLM outputs filtered to redact sensitive patterns (SSN, credit cards, secrets)
  • Access controls limit what data the LLM can retrieve from connected systems

LLM03: Supply Chain

  • Model sources verified and documented
  • Model integrity checked (checksums, signatures)
  • Third-party plugins/extensions vetted before use
  • Model inventory maintained with versions and provenance

LLM04: Data & Model Poisoning

  • Training data sources validated and tracked
  • Output anomaly detection in place
  • Model behavior monitored for drift or unexpected changes
  • Sandboxing prevents poisoned outputs from affecting critical systems

LLM05: Improper Output Handling

  • LLM outputs treated as untrusted (zero-trust approach)
  • Outputs sanitized before rendering in HTML (prevent XSS)
  • Outputs validated before use in code execution, database queries, or system commands
  • Output encoding applied per context (HTML, SQL, shell)

LLM06: Excessive Agency

  • LLM tool/function access limited to minimum required
  • High-impact actions require human approval (confirmation step)
  • Permissions scoped per-request, not blanket access
  • Audit trail for all LLM-initiated actions

LLM07: System Prompt Leakage

  • System prompts contain no secrets, credentials, or API keys
  • Anti-extraction instructions present (though not solely relied upon)
  • Security controls enforced independently of the system prompt
  • System prompt content not exposed in error messages or debug output

LLM08: Vector & Embedding Weaknesses

  • Fine-grained access controls on vector stores (per-user, per-role)
  • Data sources for embeddings validated and trusted
  • Vector store queries filtered to prevent unauthorized data retrieval
  • Embedding pipelines sanitize input data

LLM09: Misinformation

  • RAG (Retrieval-Augmented Generation) used with verified data sources
  • Outputs marked as AI-generated where appropriate
  • Human oversight/review for high-stakes outputs
  • Confidence scoring or uncertainty indicators provided

LLM10: Unbounded Consumption

  • Rate limits on inference endpoints (per user, per API key)
  • Token/cost quotas per user and per time period
  • Request timeouts configured
  • Resource usage monitored with alerts for anomalies
  • Input token limits enforced

Output

For each finding:

  • LLM ID: OWASP LLM Top 10 identifier (LLM01–LLM10)
  • Severity: Critical / High / Medium / Low
  • Location: File and line
  • Issue: Description of the vulnerability
  • Fix: Specific code or architectural recommendation

When not to use it

  • For general API security review
  • For non-LLM code review
  • When not checking for OWASP LLM Top 10 (2025) vulnerabilities

Limitations

  • The review is focused on OWASP LLM Top 10 (2025) and CSA Secure Vibe Coding Guide §2.6
  • The skill does not cover general API security
  • The skill does not cover non-LLM code review

How it compares

It applies a specialized security checklist for LLM-specific vulnerabilities, unlike general application security reviews.

Compared to similar skills

llm-security-review side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
llm-security-review (this skill)04moNo flagsAdvanced
security-header-generator59moCautionIntermediate
backend-security-coder244moNo flagsIntermediate
security-best-practices76moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

security-header-generator

Dexploarer

Generates security HTTP headers (CSP, HSTS, CORS, etc.) for web applications to prevent common attacks. Use when user asks to "add security headers", "setup CSP", "configure CORS", "secure headers", or "HSTS setup".

599

backend-security-coder

sickn33

Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.

2446

security-best-practices

openai

Perform language and framework specific security best-practice reviews and suggest improvements. Trigger only when the user explicitly requests security best practices guidance, a security review/report, or secure-by-default coding help. Trigger only for supported languages (python, javascript/typescript, go). Do not trigger for general code review, debugging, or non-security tasks.

732

dependency-auditor

alirezarezvani

Check dependencies for known vulnerabilities using npm audit, pip-audit, etc. Use when package.json or requirements.txt changes, or before deployments. Alerts on vulnerable dependencies. Triggers on dependency file changes, deployment prep, security mentions.

16

command-injection-testing

Ed1s0nZ

命令注入漏洞测试的专业技能和方法论

13

sentry-data-handling

jeremylongshore

Manage sensitive data properly in Sentry. Use when configuring PII scrubbing, data retention, GDPR compliance, or data security settings. Trigger with phrases like "sentry pii", "sentry gdpr", "sentry data privacy", "scrub sensitive data sentry".

04

Search skills

Search the agent skills registry