sast-danger-mapper — Claude Code skill: what it does, how to install
sast-danger-mapper catalogs hazardous source code operations using pattern matching without speculating on exploitability.
no license ★ 1,298 updated 2026-06-12
npx skills add H-mmer/pentest-agents --skill sast-danger-mapper -a claude-codeWhat sast-danger-mapper 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.
What it helps with
- map memory management hazards in C and C++ source files
- catch potential integer overflows in buffer size calculations
- locate
unsafeblocks and unchecked access in Rust - extract injection sinks and command execution calls in scripts
Example prompts for the agent
- Run
/sastonparser.cto locate memory operations and integer casts - Check
handler.phpwith/sastfor direct command execution and raw database queries - Map unsafe pointer conversions in
crypto.rsusing/sast
How to install sast-danger-mapper
1Skills CLI (Vercel)
npx skills add H-mmer/pentest-agents --skill sast-danger-mapper -a claude-code2Manually: put the files in place
~/.claude/skills/agent-sast-danger-mapper/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/agent-sast-danger-mapper/
1Skills CLI (Vercel)
npx skills add H-mmer/pentest-agents --skill sast-danger-mapper -a codex2Manually: put the files in place
.agents/skills/agent-sast-danger-mapper/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add H-mmer/pentest-agents --skill sast-danger-mapper -a cursor2Manually: put the files in place
.cursor/skills/agent-sast-danger-mapper/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install H-mmer/pentest-agents providers/cursor/.cursor/skills/agent-sast-danger-mapper2Manually: put the files in place
.github/skills/agent-sast-danger-mapper/SKILL.md1Skills CLI (Vercel)
npx skills add H-mmer/pentest-agents --skill sast-danger-mapper -a gemini-cli2Platform CLI
gemini skills install https://github.com/H-mmer/pentest-agents --path providers/cursor/.cursor/skills/agent-sast-danger-mapperManually: put the files in place
.devin/skills/agent-sast-danger-mapper/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about sast-danger-mapper
How to install sast-danger-mapper in Claude Code?
Run npx skills add H-mmer/pentest-agents --skill agent-sast-danger-mapper -a claude-code in your terminal.
What does sast-danger-mapper do?
It reads assigned source code to map dangerous operations, covering memory calls, arithmetic boundaries, control flow, and language-specific injection sinks.
Does sast-danger-mapper verify vulnerability exploitability?
No, it is strictly an operation cataloging task focused on finding pattern matches rather than assessing real exploitability.