# clawsec-scanner

The clawsec-scanner skill checks project dependencies and source code for security issues, and inspects OpenClaw hooks. Use it for a project review or recurring scans.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 195 installs · ★ 1135 repo stars
- Author: prompt-security
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/prompt-security/clawsec/tree/HEAD/skills/clawsec-scanner/SKILL.md
- Updated: 2026-10-25
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/clawsec-scanner

## What it does

clawsec-scanner checks npm and Python dependencies with `npm audit` and `pip-audit`, then looks up vulnerability details in OSV, NVD, and the GitHub Advisory Database. Semgrep and Bandit scan source code for issues such as exposed secrets, unsafe command execution, and path traversal.

For OpenClaw hooks, the skill reads `HOOK.md` metadata and handler source without running the target code. It combines findings in a JSON report with severity levels and remediation guidance. Hook checks are static, not runtime tests.

The listed prerequisites are `node`, `npm`, `python3`, `pip-audit`, `semgrep`, `bandit`, `jq`, and `curl`. NVD may rate-limit requests without an API key; GitHub Advisory Database access uses an OAuth token. Both are described as optional sources.

## Requirements
- Works with: GitHub

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install prompt-security/clawsec skills/clawsec-scanner
```

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

### Gemini CLI

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

2. **Platform CLI**
```bash
gemini skills install https://github.com/prompt-security/clawsec --path skills/clawsec-scanner
```

### Windsurf (Devin Desktop)

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

### OpenCode

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

## When to use it
- check npm and Python dependencies for known vulnerabilities
- find exposed secrets and unsafe code patterns
- inspect OpenClaw hook handlers without executing them
- combine findings in a severity-rated report

## Example prompts
- Use clawsec-scanner to check this project’s dependencies and code for security issues.
- Inspect the OpenClaw hooks and return a JSON report of findings.
- Scan the project for exposed secrets, command injection, and path traversal.

## Similar
- [security-scanner](https://affpapa.org/en/nevibecode/hooks/security-scanner.md) — hook · 2256 installs
- [vulnhunter-security-scanner](https://affpapa.org/en/nevibecode/skills/vulnhunter-security-scanner.md) — skill · 101 installs
- [security](https://affpapa.org/en/nevibecode/skills/aiskillstore-security.md) — skill · 1 install
- [security-sast](https://affpapa.org/en/nevibecode/commands/security-sast.md) — command · ★ 42780 repo stars
- [agentic-security-scanner](https://affpapa.org/en/nevibecode/skills/agentic-security-scanner.md) — skill · 467 installs
- [code-hardcode-audit](https://affpapa.org/en/nevibecode/skills/code-hardcode-audit.md) — skill · 166 installs

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