Backend · Skill

Review source for a real break

audit-source-first-security

Stays in guidance mode for security questions and runs a full source review only when asked for an audit or report files. Each finding needs the affected principal, source evidence, a safe repro or source-only confirmation, a priority, and the smallest fix. Use when the user wants a source-first review, a needs-validation verdict, or a pass that must not start a pen-test or write artifacts.

Works with: Any AI Not yet model-tested; testing Jan 2027

Paste it into ChatGPT, Claude, Gemini or any AI chat, then tell it about your project. How it works

Install in Claude Code, Cursor or Codex (optional)

Only for AI coding tools that read skill folders. Run one line in a terminal, in your project folder. It downloads this skill's text files from TheSkillVault and nothing else; you can read them first with “View raw SKILL.md”.

Claude Code (all your projects)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/audit-source-first-security/raw' -o ~/'.claude/skills/audit-source-first-security/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/audit-source-first-security/files/LICENSE.txt' -o ~/'.claude/skills/audit-source-first-security/LICENSE.txt' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/audit-source-first-security/files/NOTICE.txt' -o ~/'.claude/skills/audit-source-first-security/NOTICE.txt'

Cursor (this project)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/audit-source-first-security/raw' -o '.cursor/skills/audit-source-first-security/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/audit-source-first-security/files/LICENSE.txt' -o '.cursor/skills/audit-source-first-security/LICENSE.txt' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/audit-source-first-security/files/NOTICE.txt' -o '.cursor/skills/audit-source-first-security/NOTICE.txt'

Codex and other Agent Skills tools (this project)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/audit-source-first-security/raw' -o '.agents/skills/audit-source-first-security/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/audit-source-first-security/files/LICENSE.txt' -o '.agents/skills/audit-source-first-security/LICENSE.txt' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/audit-source-first-security/files/NOTICE.txt' -o '.agents/skills/audit-source-first-security/NOTICE.txt'

Or connect the whole library over MCP

Add TheSkillVault to Cursor or add this to your app's MCP settings (read-only; help):

{
  "mcpServers": {
    "theskillvault": {
      "url": "https://theskillvault.ai/mcp"
    }
  }
}

This is a defensive, source-first review. A note is not a finding until a less-trusted caller can cross a trust boundary and change an outcome for someone else.

The upstream folder is security-audit. This file keeps that method and drops the hunting pack.

When to use

  • The user asks a security question about code they already have.
  • They want a focused look at one path, one finding, or a verdict.
  • They explicitly ask for a full source review, or for report files.

When not to use

  • They want the usual web checklist: leaked keys, missing login checks, open database rules, headers, uploads, packages. Use audit-app-security.
  • They want abuse paths and a threat model. Use threat-model-your-app.
  • They want only the uncommitted diff checked. Use review-fresh-diff-security-prompt.
  • They want GitHub Actions workflow security. Use review-github-actions-security.

Modes

Loading this skill does not start an audit and does not create files.

Guidance mode is the default. Answer the question. Use only the steps that apply. Do not run all six phases. Do not create an output directory. Do not write report files. Do not start a pen-test.

Full mode starts only when the user explicitly asks to audit a repository they may review, asks for a full or end-to-end source review, or asks for report files. If the request could mean either mode, ask one question first.

A request to attack a live site, a shared service, or someone else's system is not full mode. Stop. This skill does not probe deployed targets.

Steps

  1. Name the repository, the commit, and the paths in scope. Say what the source does not show, such as a proxy or an identity setting. Do not guess those.
  2. List the trust boundaries the source actually implements. Note the lower-trust caller, the input they control, and the principal or resource on the other side.
  3. Read those boundaries for a break. Stay on source. Do not open a live URL. Do not run a scanner against a deployed host.
  4. For each candidate, fill the finding contract below, or drop it. A missing best practice, with no crossed boundary and no affected principal, is not a finding.
  5. Re-read the source for every record you plan to keep. Do not copy the first notes forward unchecked.
  6. Write report files only if the user asked for them. Otherwise answer in the conversation. One pass is partial. Say what you did not read. Do not imply the rest is fine.

Finding contract

Every kept finding has all of these:

  • Trust boundary that was crossed, and the lower-trust caller.
  • Affected principal or resource, and the concrete outcome.
  • Source evidence: file path and the lines that cross.
  • Safe repro, or an explicit "no code was run".
  • Priority, only for confirmed and source-confirmed records.
  • Smallest fix at the last trusted decision, plus a regression test to add.

A safe repro uses dummy data and the smallest local check that shows the wrong result. It is not an exploit, a payload, or a live request. Do not run the target's code unless isolation is already proven (see below). The review describes the fix. It does not edit the target unless the user asks.

Verdicts

  • confirmed. A safe local repro ran inside proven isolation and showed the result.
  • source-confirmed. The source itself settles it, and no code was run. Say that. A query built by joining a request value into SQL, with no parameter binding on that path, is source-confirmed. Do not downgrade it only because there is no OS sandbox. Open issue 160 on the upstream repo describes that gap. Keep source-confirmed records separate from ones that were run locally.
  • needs-validation. A fact the repository does not contain still blocks the verdict. Name the missing fact and a safe check the owner can do. This label is not a bucket for "no sandbox". It has no priority.
  • rejected. No boundary was crossed, or the outcome does not change.

Priority cannot sit higher than what the evidence shows. Critical means unauthenticated code execution, full data-store access, or takeover of arbitrary accounts. High means a control is fully defeated, such as an auth bypass or a cross-tenant read or write. Medium is a real break with a narrow blast radius. Low is a non-secret detail, or a lot of effort for little gain. Informational is confirmed context for a larger finding.

Sandbox

Do not run target code unless HOME, temp, and caches are already inside a scratch directory that is not the user's real home, and the real home was not changed to get there.

Never empty, move, or reset the real home directory, SSH keys, credential files, package caches, or the installed language runtime to "make a clean environment". Missing isolation fails closed. It is not a cleanup task. Open issues 128 and 129 record a run that deleted a real profile while trying to satisfy a scratch-home rule.

If isolation is not proven, stay on source. You may still source-confirm a finding the source settles. Do not install dependencies or let a build fetch them. Do not test availability against a live or shared process.

Gotchas

  • Checklist gaps are not findings unless a caller can cross a boundary.
  • Same-principal use of one's own data is not a cross-boundary result.
  • Do not assign a priority to needs-validation.
  • Do not claim a prior run covered unchanged code without reading it again.
  • Deployment, proxy, and identity settings count only when the source shows them.

Portability

Works with any language or host. If you use a different framework, the finding contract stays the same and only the paths change.

Example prompt

"Look at this repository in guidance mode. Do not start a pen-test and do not write report files. For each real break, name the trust boundary, the affected principal, the source evidence, whether it is source-confirmed, the priority, and the smallest fix."

Done when

  • Guidance answers created no output directory and started no live test.
  • Every kept finding has the six contract fields.
  • A source-settled bug is source-confirmed even when no sandbox exists.
  • needs-validation names a missing fact, not a missing sandbox.
  • Report files exist only if the user asked for them.

---

Modified from "security-audit" in cloudflare/security-audit-skill (MIT, Copyright (c) 2025-2026 Cloudflare, Inc.). Changes are in the metadata above. See LICENSE.txt.

Bundled files

Licence

Adapted from Cloudflare, Inc. (cloudflare/security-audit-skill, security-audit) (Copyright (c) 2025-2026 Cloudflare, Inc.), MIT License. Modified by TheSkillVault on 2026-11-24. Rewritten as a short source-first review. Guidance mode is the default. Full mode does not probe live systems. Finding contract kept. Open issues 160, 128 and 129 are applied: source-settled bugs can be source-confirmed without an OS sandbox, and a missing sandbox must fail closed instead of cleaning the real home directory. Hunting guides, attack-class catalogs and report validators were not copied. Not the original file.

Licence: MIT License. Attribution when you reuse it: Based on work by Cloudflare, Inc. (cloudflare/security-audit-skill, security-audit) (Copyright (c) 2025-2026 Cloudflare, Inc., MIT License), https://github.com/cloudflare/security-audit-skill/blob/c1c8a8c1471069fb0e188eeaff69b8e8db6564a8/skills/security-audit/SKILL.md; adapted by TheSkillVault, https://theskillvault.ai