# sast-danger-mapper

sast-danger-mapper catalogs hazardous source code operations using pattern matching without speculating on exploitability.

- skill · `type=skill` · Claude Code, Cursor, Codex, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 1298 repo stars
- Author: H-mmer
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/H-mmer/pentest-agents/tree/HEAD/providers/cursor/.cursor/skills/agent-sast-danger-mapper/SKILL.md
- Updated: 2026-06-12
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/sast-danger-mapper

## What it does

The skill inspects a target source file to record operations that become unsafe when fed attacker-controlled input. It focuses on memory manipulation such as `memcpy`, `malloc`, `realloc`, and `free`, integer arithmetic prone to overflow, type casting, and function pointer invocations. Because it operates strictly as a pattern-matching scanner, it lists matches and structural parameters rather than deciding whether a flaw is exploitable.

Rules cover multiple runtimes and languages. It tracks shell calls and format strings in C/C++, `unsafe` blocks and `transmute` in Rust, `eval` and `pickle` deserialization in Python, and dynamic execution, SQL queries, or file operations in PHP.

Workflows rely on invoking the `/sast` command during authorized code auditing.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add H-mmer/pentest-agents --skill sast-danger-mapper -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add H-mmer/pentest-agents --skill sast-danger-mapper -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add H-mmer/pentest-agents --skill sast-danger-mapper -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install H-mmer/pentest-agents providers/cursor/.cursor/skills/agent-sast-danger-mapper
```

2. **Manually: put the files in place**
- File: `.github/skills/agent-sast-danger-mapper/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add H-mmer/pentest-agents --skill sast-danger-mapper -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/H-mmer/pentest-agents --path providers/cursor/.cursor/skills/agent-sast-danger-mapper
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/agent-sast-danger-mapper/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/H-mmer/pentest-agents/tree/HEAD/providers/cursor/.cursor/skills/agent-sast-danger-mapper/SKILL.md

## When to use it
- map memory management hazards in C and C++ source files
- catch potential integer overflows in buffer size calculations
- locate `unsafe` blocks and unchecked access in Rust
- extract injection sinks and command execution calls in scripts

## Example prompts
- Run `/sast` on `parser.c` to locate memory operations and integer casts
- Check `handler.php` with `/sast` for direct command execution and raw database queries
- Map unsafe pointer conversions in `crypto.rs` using `/sast`

## Similar
- [sast-scanning](https://affpapa.org/en/nevibecode/skills/sast-scanning.md) — skill · 415 installs
- [security-scanning-security-sast](https://affpapa.org/en/nevibecode/skills/security-scanning-security-sast.md) — skill · ★ 50109 repo stars
- [security-sast](https://affpapa.org/en/nevibecode/commands/security-sast.md) — command · ★ 42780 repo stars
- [sast-configuration](https://affpapa.org/en/nevibecode/skills/sast-configuration.md) — skill · 10800 installs
- [find-security-vulnerabilities-in-code](https://affpapa.org/en/nevibecode/skills/find-security-vulnerabilities-in-code.md) — skill · 17400 installs
- [sast-sca-security-analyzer](https://affpapa.org/en/nevibecode/agents/sast-sca-security-analyzer.md) — subagent · ★ 41430 repo stars

From the same set: [h-mmer/pentest-agents](https://affpapa.org/en/nevibecode/by/h-mmer/pentest-agents.md) — 43 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
