Skip to main content
skill CX Codex

owasp-top-10 · claude-dev-suite — Claude Code skill: installation

This skill guides OWASP Top 10:2025 security reviews, covering access control, injection, cryptography, supply-chain risks, and exception handling.

MIT 330 installs ★ 50 updated 2026-10-23

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add claude-dev-suite/claude-dev-suite --skill owasp-top-10 -a claude-code
Open on GitHub

What owasp-top-10 does

The skill frames a code review around OWASP Top 10:2025. Its checklist covers broken access control, unsafe configuration, supply-chain failures, cryptographic issues, injection, insecure design, authentication, integrity, logging, and exception handling.

The agent uses Read, Grep, and Glob to inspect project files and search for relevant patterns. Guidance includes backend authorization checks, parameterized queries, safer sessions, security logging, hardened headers, and generic error responses that do not expose internal details.

This skill targets the 2025 OWASP list. The 2021 edition uses owasp; detailed secrets and dependency work belongs in secrets-management and supply-chain.

What it helps with

  • run a security review against OWASP Top 10:2025
  • spot authorization checks that exist only in the frontend
  • inspect code for SQL injection and XSS risks
  • review authentication and session settings
  • find stack traces and internal error details exposed to users

Example prompts for the agent

  • Run a security review of this project against OWASP Top 10:2025 and group the findings by category.
  • Check the API for broken access control, injection risks, and unsafe exception handling.
  • Review dependency, authentication, and logging settings, then suggest concrete fixes.

How to install owasp-top-10

1Skills CLI (Vercel)

npx skills add claude-dev-suite/claude-dev-suite --skill owasp-top-10 -a claude-code

2Manually: put the files in place

~/.claude/skills/owasp-top-10/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/owasp-top-10/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about owasp-top-10

How do I install owasp-top-10 in Claude Code?

Run npx skills add claude-dev-suite/claude-dev-suite --skill owasp-top-10 -a claude-code, then check ~/.claude/skills/owasp-top-10/SKILL.md.

What does owasp-top-10 do?

It gives the agent a security-review checklist based on OWASP Top 10:2025. The review covers access control, configuration, dependencies, cryptography, injection, authentication, logging, and exception handling.

How is this different from the OWASP 2021 skill?

This skill is focused on OWASP Top 10:2025. Use owasp for the 2021 edition, while secrets-management and supply-chain cover detailed secret and dependency work.

Source text

SKILL.md · MIT
---
name: owasp-top-10
description: |
  OWASP Top 10:2025 security vulnerabilities. Covers access control, injection,
  supply chain, cryptographic failures, and more. Use for security reviews.

  USE WHEN: user mentions "OWASP 2025", "Top 10", "security review", "vulnerability assessment", asks about "broken access control", "injection", "supply chain", "cryptographic failures", "exception handling"

  DO NOT USE FOR: general OWASP (2021) - use `owasp` instead, secrets - use `secrets-management`, dependencies - use `supply-chain`
allowed-tools: Read, Grep, Glob
---
# OWASP Top 10:2025

## When NOT to Use This Skill
- **OWASP Top 10:2021** - Use `owasp` skill for 2021 version
- **Detailed secrets management** - Use `secrets-management` skill
- **Detailed supply chain security** - Use `supply-chain` skill for in-depth dependency management
- **License compliance** - Use `license-compliance` skill

> **Deep Knowledge**: Use `mcp__documentation__fetch_docs` with technology: `owasp` for comprehensive documentation.

## Quick Reference

| Rank | Category | Prevention |
|------|----------|------------|
| A01 | Broken Access Control | Authorization checks, deny by default |
| A02 | Security Misconfiguration | Hardening, security headers, no defaults |
| A03 | Supply Chain Failures | Dependency audits, lockfiles, SBOMs |
| A04 | Cryptographic Failures | Strong algorithms, proper key management |
| A05 | Injection | Parameterized queries, input validation |
| A06 | Insecure Design | Threat modeling, secure patterns |
| A07 | Authentication Failures | MFA, rate limiting, secure sessions |
| A08 | Integrity Failures | Signed updates, safe deserialization |
| A09 | Logging Failures | Audit logs, alerting, monitoring |
| A10 | Exception Handling | Graceful errors, no info leakage |

## A01: Broken Access Control

```typescript
// Always verify ownership
if (resource.userId !== currentUser.id) {
  throw new ForbiddenException();
}

// Deny by default
const allowed = permissions.includes(requiredPermission);
if (!allowed) throw new ForbiddenException();

// Rate limit sensitive endpoints
app.use('/api/admin/*', adminRateLimiter);
```

## A02: Security Misconfiguration

```typescript
// Security headers
import helmet from 'helmet';
app.use(helmet());

// Strict CORS
app.use(cors({
  origin: ['https://myapp.com'],
  credentials: true
}));

// Hide errors in production
if (process.env.NODE_ENV === 'production') {
  app.use((err, req, res, next) => {
    res.status(500).json({ error: 'Internal error' });
  });
}
```

## A03: Supply Chain Failures (NEW in 2025)

```bash
# Audit dependencies
npm audit
pip-audit
mvn dependency-check:check

# Use lockfiles
npm ci  # Instead of npm install

# Verify package integrity
npm install --ignore-scripts
npm config set ignore-scripts true
```

## A04: Cryptographic Failures

```typescript
// Strong password hashing
import { hash, verify } from 'argon2';
const hashed = await hash(password, { type: argon2id });

// Secure random
import { randomBytes, randomUUID } from 'crypto';
const token = randomBytes(32).toString('hex');

// AES-256-GCM for encryption (not CBC)
```

## A05: Injection

```typescript
// SQL - use parameterized queries
const user = await prisma.user.findUnique({ where: { id } });
await db.query('SELECT * FROM users WHERE id = $1', [id]);

// Command - use execFile, not exec
import { execFile } from 'child_process';
execFile('ls', ['-la', safeArg]);

// XSS - sanitize HTML
import DOMPurify from 'dompurify';
element.innerHTML = DOMPurify.sanitize(userInput);
```

## A06: Insecure Design

Key practices:
- Threat modeling during design phase
- Secure design patterns (fail-safe, defense in depth)
- Security requirements in user stories
- Abuse case testing

## A07: Authentication Failures

```typescript
// Rate limiting
import rateLimit from 'express-rate-limit';
const loginLimiter = rateLimit({
  windowMs: 15 * 60 * 1000,
  max: 5
});

// Secure cookies
res.cookie('session', token, {
  httpOnly: true,
  secure: true,
  sameSite: 'strict'
});

// Strong passwords (12+ chars, mixed)
```

## A08: Integrity Failures

```typescript
// Verify signatures on updates
// Use subresource integrity (SRI)
<script src="lib.js"
  integrity="sha384-..."
  crossorigin="anonymous">
</script>

// Safe deserialization
// Avoid: JSON.parse(untrusted)
// Use: zod/yup validation
```

## A09: Logging & Alerting Failures

```typescript
// Log security events
logger.warn({
  event: 'auth_failure',
  userId: attemptedId,
  ip: req.ip,
  timestamp: new Date().toISOString()
});

// Events to log:
// - Login success/failure
// - Password changes
// - Permission denied
// - Rate limit exceeded
```

## A10: Exception Handling (NEW in 2025)

```typescript
// Graceful error handling
try {
  await riskyOperation();
} catch (error) {
  logger.error({ error, context });
  // Generic response to user
  throw new InternalServerException('Operation failed');
}

// Never expose stack traces
// Never expose internal paths
// Never expose SQL/DB errors
```

## Security Scanning Commands

```bash
# Dependencies
npm audit --json
snyk test

# Secrets
gitleaks detect
trufflehog git file://.

# SAST
semgrep --config=p/security-audit .

# Docker
trivy image myimage:latest
```

## Checklist

| Risk | Prevention |
|------|------------|
| SQL Injection | Parameterized queries, ORMs |
| XSS | Escape output, CSP headers |
| CSRF | CSRF tokens, SameSite cookies |
| Auth issues | MFA, rate limiting, secure sessions |
| Secrets | Environment variables, vaults |
| Supply chain | Audit, lockfiles, SBOMs |

## Anti-Patterns

| Anti-Pattern | Why It's Bad | Correct Approach |
|--------------|--------------|------------------|
| Checking permissions in frontend only | Client-side bypass (A01) | Always verify on backend |
| Using weak crypto (MD5, DES) | Easily broken (A04) | Use AES-256-GCM, argon2, SHA-256+ |
| `npm install` in CI/CD | Non-deterministic builds (A03) | Use `npm ci` with lockfiles |
| Catching all exceptions silently | Hides security issues (A10) | Log errors, fail gracefully |
| Trusting user input in queries | Injection attacks (A05) | Always use parameterized queries |
| No session timeout | Session hijacking (A07) | Implement idle + absolute timeout |

## Quick Troubleshooting

| Issue | Likely Cause | Solution |
|-------|--------------|----------|
| npm audit shows vulnerabilities | Outdated dependencies (A03) | Run `npm audit fix` or update manually |
| Login always fails after 5 attempts | Rate limiter too strict (A07) | Review rate limit settings |
| Secrets leaked in git history | Committed .env file (A02) | Use BFG to clean history, rotate secrets |
| Database queries slow/failing | SQL injection attack (A05) | Review logs, switch to parameterized queries |
| Users accessing others' data | Missing authorization (A01) | Add ownership checks in all endpoints |
| Stack traces in production | Exception handling disabled (A10) | Enable production error handling |

## Related Skills
- [Supply Chain Security](../supply-chain/SKILL.md)
- [Secrets Management](../secrets-management/SKILL.md)
- [JWT Security](../../authentication/jwt/SKILL.md)

© claude-dev-suite · MIT · claude-dev-suite/claude-dev-suite

Similar skills

All skills for Security →

owasp-top-10 by other authors comes first.

owasp-top-10 NickCrew Security audit guide based on OWASP Top 10 2021. Helps agents spot injection flaws, broken access controls, and authentication issues during code reviews. CX Codex +1 760installs owasp-security agamm owasp-security — a skill that reviews code and diffs for vulnerabilities against OWASP Top 10:2025, ASVS 5.0, and the LLM and agentic risk lists. Useful before a release. CX Codex +1 2,800installs owasp-top-10-testing usestrix owasp-top-10-testing runs Strix AI agents to execute exploits across OWASP Top 10:2025 categories. Useful for verifying attack paths with concrete proofs-of-concept before audits. CX Codex +1 17,500installs testing-api-security-with-owasp-top-10 mahipal testing-api-security-with-owasp-top-10 walks an agent through OWASP API Security Top 10 (2023) checks on REST, GraphQL and gRPC endpoints. Useful for authorized pentests and pre-release endpoint reviews. CX Codex +1 931installs security-auditor official Anthropic security-auditor is a Claude Code subagent that performs adversarial security reviews on codebases. It inspects source trees for OWASP Top 10 risks, hardcoded secrets, and dependency CVEs. CX Codex 10,718installs owasp-security-check sergiodxa owasp-security-check — a skill that audits web apps and REST APIs against OWASP Top 10: 20 rules covering auth, injection and data leaks. Useful before a production deploy. CX Codex +1 1,800installs laravel-owasp-security AsyrafHussin laravel-owasp-security audits Laravel 13 and React/Inertia.js codebases against the OWASP Top 10 checklist and assists with secure implementation of auth, payments, or APIs. CX Codex +1 1,100installs

From the same set14

The whole set →
typescript-quality typescript-quality — a skill for TypeScript and JavaScript code quality: ESLint, Biome and strict tsconfig setups. Useful when lint rules pile up and types start drifting. CX Codex +1 1,100installs dotnet-security dotnet-security hardens ASP.NET Core apps with security middleware, safe database queries, and automated NuGet dependency auditing. CX Codex +1 358installs token-optimization token-optimization teaches agents to minimize token usage when calling MCP tools and external APIs. Keeps context clean by enforcing limits and compact responses. CX Codex +1 354installs webrtc WebRTC skill for P2P communication: video calls, screen sharing, data channels. Writes signaling logic, configures ICE/STUN/TURN, integrates SFU like LiveKit. CX Codex +1 217installs email-sending The email-sending skill covers transactional email, provider APIs, SMTP, and reusable templates. Use it when a project needs welcome messages, alerts, or password emails. CX Codex +1 188installs cron-scheduling The cron-scheduling skill covers recurring jobs with cron, node-cron, Spring @Scheduled, and APScheduler. Use it when a project needs timed or periodic execution. CX Codex +1 162installs iec61131 A reference for IEC 61131-3 languages, PLC data types, and program structure. Use it when comparing control-language options or checking project exchange formats. CX Codex +1 154installs plsql A skill for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI and OpenCode: Oracle PL/SQL — procedures, functions, packages, triggers, cursors, collections and exception handling. CX Codex +1 106installs

Project sponsors

Companies that keep this analytics open