# pentest-lyan-web-security-testing

pentest-lyan-web-security-testing is a Claude Code skill for web penetration testing: it models threats, reads frontend JavaScript and checks whether one role can reach past another.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 166 installs · ★ 13 repo stars
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/security-skills/tree/HEAD/skills/pentest-lyan-web-security-testing/SKILL.md
- Updated: 2026-10-09
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/pentest-lyan-web-security-testing

## What it does

The run goes in three stages: discovery, attack, audit. Discovery means reading the frontend JavaScript to work out request signing, parameters and business rules before anything is sent at the API. Threats come from 12 angles, among them authentication, access control, input handling, file uploads and third-party dependencies.

A finding only counts once the effect on data is confirmed — a record really changed, a state really moved. You declare each account's `role_level` (`high_privilege`, `standard`, `limited`) yourself; the skill builds a permission matrix from those and tests crossings. Progress is kept in `pentest-data/<project-id>/`, so `--resume` picks up an interrupted run and `--list` shows what is already there.

Python 3.8+ with the project dependencies is the baseline. Playwright MCP adds browser automation and session pooling; without it the skill falls back to `curl`. Credentials sit in plaintext under `pentest-data/`, so that folder belongs in `.gitignore` before the first run. Reports come out twice: Markdown for technical detail, Word for handover.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill pentest-lyan-web-security-testing -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill pentest-lyan-web-security-testing -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill pentest-lyan-web-security-testing -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/security-skills skills/pentest-lyan-web-security-testing
```

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

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill pentest-lyan-web-security-testing -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/security-skills --path skills/pentest-lyan-web-security-testing
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill pentest-lyan-web-security-testing -a opencode
```

### 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/reason-machines/security-skills/tree/HEAD/skills/pentest-lyan-web-security-testing/SKILL.md

## When to use it
- run a web pentest without keeping a manual checklist
- catch privilege escalation between an admin and a regular user
- prove a bug changes stored data instead of only returning HTTP 200
- resume an interrupted run from the saved state
- hand a Word report to the client and Markdown notes to the team

## Example prompts
- Run pentest-lyan against my staging build and show me where access breaks between roles.
- Pick up the last pentest-lyan run with `--resume <project-id>`.
- Start pentest-lyan with two logins: `admin` at `role_level: high_privilege` and `user1` at `role_level: standard`.

## Similar
- [web-pentest](https://affpapa.org/en/nevibecode/skills/web-pentest.md) — skill · 722 installs
- [web-security-testing](https://affpapa.org/en/nevibecode/skills/web-security-testing.md) — skill · 201 installs
- [security-pentest-planner](https://affpapa.org/en/nevibecode/skills/security-pentest-planner.md) — skill · 297 installs
- [security-testing](https://affpapa.org/en/nevibecode/skills/security-testing.md) — skill · 1500 installs
- [supabase-pentest](https://affpapa.org/en/nevibecode/skills/supabase-pentest.md) — skill · 748 installs
- [cairn-ai-pentest](https://affpapa.org/en/nevibecode/skills/cairn-ai-pentest.md) — skill · 378 installs

From the same set: [reason-machines/security-skills](https://affpapa.org/en/nevibecode/by/reason-machines/security-skills.md) — 129 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
