# dfyx-code-security-audit

This skill audits source code for vulnerabilities through data-flow analysis and business-logic review. Use it for a project security check or pentest preparation.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 328 installs · ★ 12
- Author: reason-machines
- License: LicenseRef-Unknown · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/security-skills/tree/HEAD/skills/dfyx-code-security-audit/SKILL.md
- Updated: 2026-10-09
- HTML: https://affpapa.org/en/nevibecode/skills/dfyx-code-security-audit

## What it does

dfyx-code-security-audit follows a five-phase audit flow: reconnaissance, pattern matching, taint tracking, validation, and reporting. It examines ten security areas, including injection, authentication, authorization, SSRF, cryptography, configuration, and business logic. The skill offers `quick`, `standard`, and `deep` audit modes.

The audit covers Java, Python, Go, PHP, JavaScript/Node.js, C/C++, .NET/C#, Ruby, and Rust. The repository also includes Python helpers for scanning code patterns and tracing data flows. Python plus the packages in `requirements.txt` are needed when those helper scripts are used.

The skill itself runs through the agent, while the optional helper scripts can be installed separately. In Claude Code, add it with `npx skills add reason-machines/security-skills --skill dfyx-code-security-audit -a claude-code`; the installed skill file is at `~/.claude/skills/dfyx-code-security-audit/SKILL.md`.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

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

### GitHub Copilot

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

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

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

## When to use it
- find injection and command-execution risks
- review authorization paths and business-logic flaws
- trace user-controlled data into dangerous sinks
- produce a structured vulnerability report
- inspect project configuration and dependencies

## Example prompts
- Run a deep security audit of this project and map any attack chains.
- Check the code for SQL injection, authorization flaws, and unsafe deserialization.
- Scan this project in `quick` mode and report the vulnerabilities you find.

## Similar
- [git-guardrails-claude-code](https://affpapa.org/en/nevibecode/skills/git-guardrails-claude-code.md) — skill · 499069 installs
- [ponytail-review](https://affpapa.org/en/nevibecode/skills/ponytail-review.md) — skill · 57000 installs
- [ponytail-audit](https://affpapa.org/en/nevibecode/skills/ponytail-audit.md) — skill · 45400 installs
- [security-audit](https://affpapa.org/en/nevibecode/skills/cloudflare-security-audit.md) — skill · 54800 installs
- [security-and-hardening](https://affpapa.org/en/nevibecode/skills/security-and-hardening.md) — skill · 70200 installs
- [supabase](https://affpapa.org/en/nevibecode/skills/supabase.md) — skill · 8 installs

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