Skip to content
Skillpedia
Security33k Β· #8518

owasp-security

What it does

This skill gives an AI agent a reference of widely used OWASP security standards and common weaknesses to check. It is for developers doing security reviews, audits or secure feature work.

When to use it

  • βœ“When a developer wants a security review of a web app, API or mobile app.
  • βœ“When authentication, encryption or access control is being built and must be done safely.
  • βœ“When an AI or agent system must be checked for prompt injection and similar risks.

Skill link

https://github.com/davila7/claude-code-templates/blob/main/.claude-plugin/skills/owasp-security/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/.claude-plugin/skills/owasp-security/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œReview my login and access control code for common OWASP security problems.”

5 new skills a week. 1 minute to read.

How it works

The skill gives the agent guidance from six OWASP standards, including how to detect each weakness and how to fix it. The agent then applies that guidance to the code you name.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Comprehensive OWASP Security Skills

A developer-focused security reference covering six OWASP standards for securing web applications, APIs, mobile apps, containers, and AI/LLM systems. Each section provides concise detection guidance, key requirements, and mitigation strategies.

Quick Navigation

  1. OWASP Top 10 (2021)
  2. OWASP ASVS 5.0
  3. OWASP MASVS v2.1.0
  4. OWASP API Security Top 10
  5. OWASP Kubernetes Top 10
  6. OWASP Agentic Applications 2026

Section 1: OWASP Top 10 (2021)

The OWASP Top 10 represents the most critical security risks in web applications.

A01: Broken Access Control

Detection: URLs with direct ID references (/user/1234/orders); client-side only enforcement; missing authorization checks. Mitigation: Enforce server-side authorization for every sensitive operation; verify user ownership of resources; implement default-deny principle. Example:

// INSECURE: No authorization check
app.get('/users/:id/orders', (req, res) => {
  const orders = db.query('SELECT * FROM orders WHERE user_id = ?', req.params.id);
  res.json(orders);
});
// SECURE: Authorization check
app.get('/users/:id/orders', (req, res) => {
  if (req.user.id !== parseInt(req.params.id)) return res.status(403).json({error: 'Forbidden'});
  const orders = db.query('SELECT * FROM orders WHERE user_id = ?', req.params.id);
  res.json(orders);
});

Checklist: ☐ Authorization on server for all sensitive ops ☐ Default-deny policy ☐ No ID-based obscurity ☐ Whitelist allowed fields


A02: Cryptographic Failures

Detection: Sensitive data in plaintext; weak encryption (DES, ECB); missing TLS; hardcoded secrets in code. Mitigation: Always use HTTPS/TLS; encrypt data at rest with AES-256; store secrets in environment variables or vaults; mask sensitive logs. Example:

# INSECURE: API key in code
api_key = "sk-abc123xyz789"

# SECURE: From environment
import os
api_key = os.getenv("API_KEY")
if not api_key: raise ValueError("API_KEY not set")

Checklist: ☐ HTTPS enforced ☐ AES-256 encryption at rest ☐ No secrets in code ☐ Sensitive data masked in logs


A03: Injection (SQL, Command, NoSQL)

Detection: String concatenation in queries; exec, query, run with user input; no prepared statements. Mitigation: Use parameterized queries; whitelist input; avoid string concatenation; use safe APIs (subprocess.run with list args). Example:

# INSECURE: String concatenation
os.system("tar -czf " + filename + " /var/data")

# SECURE: List-based API
import subprocess
subprocess.run(["tar", "-czf", filename, "/var/data"], check=True)

Checklist: ☐ Parameterized queries only ☐ No string concat ☐ Whitelist input ☐ Safe subprocess calls


A04: Insecure Design

Detection: No threat modeling; missing security controls by design; no authentication/authorization from the start. Mitigation: Implement threat modeling early; design security in from the beginning; use established security libraries/patterns. Checklist: ☐ Threat modeling completed ☐ Security controls in design ☐ Auth/authz from start ☐ Security review in SDLC


A05: Security Misconfiguration

Detection: Debug mode enabled; default credentials; verbose error messages; missing security headers; exposed APIs. Mitigation: Disable debug mode; change defaults; hide version info; implement security headers (HSTS, CSP, X-Frame-Options). Example:

# INSECURE: Debug enabled in production
app.debug = True

# SECURE: Debug disabled
app.debug = False
app.config['HSTS_MAX_AGE'] = 31536000

Checklist: ☐ Debug disabled ☐ Defaults changed ☐ Security headers set ☐ No version disclosure


A06: Vulnerable & Outdated Components

Detection: Old versions in package.json/requirements.txt; unpatched frameworks; deprecated libraries. Mitigation: Regularly audit dependencies with npm audit, pip safety, Snyk; remove unused packages; keep frameworks patched. Checklist: ☐ Dependency audits regular ☐ No outdated versions ☐ Unused deps removed ☐ CI/CD security scanning


A07: Authentication Failures

Detection: Weak passwords; no MFA; predictable

FAQ

Which standards does it cover?

It covers the OWASP Top 10, ASVS, MASVS, API Security Top 10, Kubernetes Top 10 and the agentic applications guidance.

Does it guarantee a secure app?

No. It is a reference for finding and fixing common issues, and it does not replace a professional audit.

Can it help with AI systems?

Yes. It includes guidance on prompt injection and risks in LLM and agent systems.

Details

Original description by the author

Comprehensive OWASP-aligned security guidance across six standards - Top 10 (2021) for web apps, ASVS 5.0, MASVS v2.1.0 for mobile, API Security Top 10 (2023), Kubernetes Top 10 (2022), and the Agentic Applications 2026 edition for AI/LLM. Use for security reviews, vulnerability audits, secure auth/crypto/access-control implementation, Kubernetes manifest hardening, and LLM/agent prompt-injection defense - including indirect requests like "is this login flow secure?", "review this endpoint", or "audit my pod spec".

repo: davila7/claude-code-templates

Popularity

GitHub stars
33k
Ranking position
#8518
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills