# skill-security-scanner

skill-security-scanner audits Claude skills for command injection, unauthorized network calls, and sensitive file access before you install them.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 253 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/skill-security-scanner/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/skill-security-scanner

## What it does

The utility runs static code analysis without executing suspicious scripts. It detects calls to `curl` or `requests`, access to `~/.ssh/id_rsa`, read attempts on `.env` files, and dangerous shell operations. It flags code injection patterns such as `eval`, `exec`, and backdoor sockets.

Issues receive severity ratings: CRITICAL, WARNING, or INFO. You can output findings directly to the terminal, export a JSON report for CI pipelines, or generate a visual HTML file. By default, the scan examines both the current directory and `.claude/skills/`.

Running the scanner requires Python with `pip` or a standalone binary built via PyInstaller. If a tool needs legitimate network traffic, you can whitelist specific endpoints: domains like `api.anthropic.com` and `github.com` are allowed out of the box.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/security-skills skills/skill-security-scanner
```

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

### Gemini CLI

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

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/security-skills --path skills/skill-security-scanner
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill skill-security-scanner -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/skill-security-scanner/SKILL.md

## When to use it
- detect credential access and secret leaks in skill files
- spot destructive system operations and unauthorized shell executions
- audit local .claude/skills/ folders before running untrusted tools
- generate structured JSON reports with non-zero exit codes for CI checks

## Example prompts
- Scan this Claude skill for security risks before I install it
- Run a security scan on all skill files in this repository
- Check if this third-party skill contains backdoor code or network requests

## Similar
- [cloud-security-scanner](https://affpapa.org/en/nevibecode/mcp/cloud-security-scanner.md) — MCP server · 3008 installs
- [ToolTrust Scanner](https://affpapa.org/en/nevibecode/mcp/tooltrust-scanner.md) — MCP server · ★ 19 repo stars
- [skill-security-auditor](https://affpapa.org/en/nevibecode/skills/borghei-skill-security-auditor.md) — skill · 146 installs
- [skill-scanner](https://affpapa.org/en/nevibecode/skills/skill-scanner.md) — skill · 4200 installs
- [hooks-security](https://affpapa.org/en/nevibecode/plugins/hooks-security.md) — plugin · ★ 3785 repo stars
- [PreClick : URL Security scanner](https://affpapa.org/en/nevibecode/mcp/preclick-url-security-scanner.md) — MCP server · 1014 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
