# senior-security

senior-security is a Claude Code and Codex skill for threat modeling, code review, and secret scanning. It supports application security assessments and defensive architecture planning.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 203 installs · ★ 1183 repo stars
- Author: borghei
- License: LicenseRef-MIT-Commons-Clause · policy=link-only · description only; the file stays with the author
- Source: https://github.com/borghei/Claude-Skills/tree/HEAD/engineering/senior-security/SKILL.md
- Updated: 2026-11-08
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/borghei-senior-security

## What it does

The skill supports STRIDE threat analysis with DREAD risk scoring, OWASP Top 10 code reviews, and layered security design. The included `secret_scanner.py` checks code for more than 20 credential patterns.

For data-flow analysis, `threat_modeler.py --design` reads a JSON system model; `--component` generates a general checklist. That checklist stays the same for any design, so treat it as a prompt list rather than an assessment of your specific system. The skill also covers incident response planning and mapping application controls to frameworks such as OWASP ASVS and CIS Benchmarks.

Install it in Claude Code with `npx skills add borghei/Claude-Skills --skill senior-security -a claude-code`. The skill file is at `~/.claude/skills/senior-security/SKILL.md`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill senior-security -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill senior-security -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill senior-security -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install borghei/Claude-Skills engineering/senior-security/SKILL.md
```

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

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill senior-security -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/borghei/Claude-Skills --path engineering/senior-security
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill senior-security -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/borghei/Claude-Skills/tree/HEAD/engineering/senior-security/SKILL.md

## When to use it
- build a STRIDE threat model from data flows
- score security risks with DREAD
- review code against OWASP Top 10
- scan a codebase for hardcoded credentials
- design layered security for an application

## Example prompts
- Build a STRIDE threat model for this app's data flows and score the risks with DREAD.
- Scan this project for credentials with `python scripts/secret_scanner.py assets/sample_secrets_flawed.js`.
- Design a layered security architecture for this API.

## Similar
- [performing-web-application-penetration-test](https://affpapa.org/en/nevibecode/skills/performing-web-application-penetration-test.md) — skill · 746 installs
- [application-security](https://affpapa.org/en/nevibecode/skills/travisjneuman-application-security.md) — skill · 181 installs
- [Security Architect](https://affpapa.org/en/nevibecode/skills/security-architect.md) — skill · 175 installs
- [security-assessment](https://affpapa.org/en/nevibecode/skills/security-assessment.md) — skill · ★ 587 repo stars
- [agency-application-security-engineer](https://affpapa.org/en/nevibecode/skills/agency-application-security-engineer.md) — skill · ★ 85 repo stars
- [security-review](https://affpapa.org/en/nevibecode/skills/haabe-security-review.md) — skill · ★ 54 repo stars

## Other versions with the same name
- [senior-security · alirezarezvani](https://affpapa.org/en/nevibecode/skills/senior-security.md) — 1277 installs

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