# web-security

The web-security Claude Code skill checks web code for common security flaws and adds relevant safeguards. It activates as login, API, upload, and other web features are built.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 326 repo stars
- Author: mrhlaingbwardev
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/mrhlaingbwardev/agentic-hacking-skills/tree/HEAD/skills/web-security-advanced/SKILL.md
- Updated: 2026-11-01
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/web-security

## What it does

The skill identifies web features in code and adds matching security measures as they are developed. It covers authentication, API routes, and file uploads, with risks such as exposed secrets, XSS, SQL injection, and access to another user’s data.

For authentication, it includes password hashing, login rate limiting, and session-cookie settings. API examples check the session and validate input with Zod. The upload example checks MIME type and extension, caps file size at 10 MB, and creates a safe filename. JPEG, PNG, WebP, GIF, and PDF are accepted.

The upload example saves files under `public/uploads`. The listed frameworks are Next.js, React, Express, Remix, and SvelteKit.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill web-security -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/web-security-advanced/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/web-security-advanced/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill web-security -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/web-security-advanced/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill web-security -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/web-security-advanced/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install mrhlaingbwardev/agentic-hacking-skills skills/web-security-advanced
```

2. **Manually: put the files in place**
- File: `.github/skills/web-security-advanced/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill web-security -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/mrhlaingbwardev/agentic-hacking-skills --path skills/web-security-advanced
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/web-security-advanced/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/mrhlaingbwardev/agentic-hacking-skills/tree/HEAD/skills/web-security-advanced/SKILL.md

## When to use it
- check a login form for password-guessing safeguards
- add session checks and input validation to an API route
- validate uploaded files by type, size, and filename
- spot exposed secrets and SQL injection in web code

## Example prompts
- Add a sign-up form and check how it handles passwords.
- Protect the API route that reads a user’s data.
- Review avatar uploads for unsafe filenames and file types.

## Similar
- [09-web-security](https://affpapa.org/en/nevibecode/skills/09-web-security.md) — skill · ★ 71 repo stars
- [web-security-review](https://affpapa.org/en/nevibecode/skills/web-security-review.md) — skill · 881 installs
- [web-security-testing](https://affpapa.org/en/nevibecode/skills/web-security-testing.md) — skill · 201 installs
- [Web Security taste](https://affpapa.org/en/nevibecode/prompts/web-security-taste.md) — prompt · ★ 178201 repo stars
- [owasp-security](https://affpapa.org/en/nevibecode/skills/owasp-security.md) — skill · 3100 installs
- [Security Engineer](https://affpapa.org/en/nevibecode/skills/security-engineer.md) — skill · 213 installs

From the same set: [mrhlaingbwardev/agentic-hacking-skills](https://affpapa.org/en/nevibecode/by/mrhlaingbwardev/agentic-hacking-skills.md) — 28 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
