subinium/vibesubin/audit-security

Claude Code and agent skill by subinium/vibesubin

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Runs a deliberately small, hand-curated security sweep across a repo. Finds secrets committed to git, SQL/shell injection patterns, XSS sinks, path traversal, dangerous deserialization, missing cookie flags, wildcard CORS, and tracked credential files. Triages every finding as real / false-positive / needs-review before reporting. Language-agnostic, no heavyweight scanner required.

Install

npx vskill@latest install subinium/vibesubin/audit-security

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as subinium/vibesubin/audit-security.

audit-security

A security audit that the operator will actually read.

Enterprise scanners emit hundreds of warnings. Non-developers silence them within a week and then a real vulnerability slips through because nobody's reading anymore. The opposite strategy works better: a short, hand-curated list of patterns that are almost always actionable, each one triaged individually. Every hit gets classified. Every classification has a reason.

The rule

Never report more than ~20 findings. If the automated sweep returns 100 hits, triage them into categories and report the categories, not the raw list. The operator's attention is the scarcest resource and the wrong optimization is "comprehensive."

When to trigger

Any of:

  • "is this safe"
  • "security check" / "security audit"
  • "are there any vulnerabilities"
  • "any secrets leaked"
  • "is my .env exposed"
  • "OWASP"
  • before a public release or open-sourcing
  • after a major refactor (run together with refactor-verify)
  • when the operator mentions a data breach, incident, or scare

If the operator asks for something outside this skill's scope (compliance audits, penetration testing, crypto review), say so plainly and suggest a specialist tool.

Upfront constraint lock-in

Before running, establish three things with the operator. Do not start the sweep until these are clear:

  1. Scope — the whole repo, one directory, one file, or one PR diff?
  2. Severity threshold — report everything found, or only HIGH/CRITICAL?
  3. Runtime context — is this code behind an authenticated endpoint, public, internal tool, or CLI? The same pattern is a different severity depending on context.

If the operator doesn't know the answers, pick the most conservative defaults: whole repo, report all, assume public-facing. Tell them that's what you picked.

State assumptions — before acting

Before starting the procedure, write an explicit Assumptions block. Don't pick silently between interpretations; surface the choice. If any assumption is wrong or ambiguous, pause and ask — do not proceed on a guess.

Required block:

Assumptions:
- Exposure surface: <public-web | internal | CLI | library>
- Language/framework: <detected set — e.g., Next.js + Python API>
- Existing scanners: <none | Dependabot | Semgrep | GHAS — affects which patterns this sweep adds vs duplicates>
- Scope: <whole repo | subdirectory path | single file>

Typical items for this skill:

  • The repo's exposure surface (public-web / internal / CLI / library)
  • Language and framework set (affects which pattern families apply)
  • Whether CI already runs scanners (affects what the manual sweep should add versus duplicate)

Stop-and-ask triggers:

  • Scope is "the whole repo" but LOC > 50k — offer to scope by directory first
  • "Audit" without a layer hint — ask server-side / client-side / dependencies / all

Silent picks are the most common failure mode: the skill runs, produces plausible output, and the operator doesn't notice the wrong interpretation was chosen. The Assumptions block is cheap insurance.

The patterns (what to sweep)

These are the ten categories. Each category has language-specific grep/AST patterns in references/patterns.md. Run them all; don't skip any for time.

1. Hardcoded secrets in tracked files
  • API keys, tokens, passwords, private keys
  • Regex for typical prefix patterns (sk-, ghp_, xoxb-, -----BEGIN, etc.)
  • High-entropy strings in config/source files
  • git log --all -p -S<suspect> to see if ever committed historically

Also check whether secret files themselves are tracked:

bash
git ls-files | grep -iE '\.env$|\.env\.|\.pem$|id_rsa|id_ed25519|credentials|\.ppk$'

Anything returned here is an immediate HIGH regardless of content.

Output rule for secret findings — fingerprint, never the raw value. When reporting a hardcoded secret or a tracked secret file, never print the actual value. Print a fingerprint: file path, line number, value length, first 4 characters (or first 7 if it's a known prefix like sk-, ghp_, xoxb-), and a provider guess if the prefix is recognizable. Example: "`src/config.ts:14` — token, length=51, prefix=`sk-pro` (OpenAI?). Rotate immediately." The raw value is already in the operator's repo; printing it again into a chat log, a PR description, or a screenshot doubles the leak surface.

2. SQL injection

SQL built by pasting strings. Language-agnostic pattern:

  • Query text that contains an interpolation marker inside a function call named execute, query, raw, or fetch
  • F-strings / template literals / .format() / % inside a query call
  • String concatenation (+, ., ..) inside a query call

Prepared-statement placeholders (?, $1, :name) are the safe form. Flag anything else.

3. Shell / command injection
  • subprocess.run(..., shell=True)
  • child_process.exec(userInput) (as opposed to execFile/spawn with args)
  • Backticks or $() with user input in shell scripts
  • os.system anywhere
  • eval / exec / Function(userInput) / setTimeout(userInput, ...) (in JS)
  • pickle.loads on anything that might come from a network
  • yaml.load without SafeLoader
4. Path traversal
  • open(request.something), fs.readFile(req.query.x), File.new(params[:path])
  • Any file-reading call whose path argument traces back to user input without a whitelist regex
  • FileResponse / sendFile with user-controlled path segments
5. XSS sinks
  • innerHTML =, dangerouslySetInnerHTML, v-html, {@html ...} (Svelte)
  • document.write(
  • Jinja2 |safe, Django mark_safe
  • Markdown renderers whose HTML output is injected into the DOM without an explicit sanitizer step:
  • `marked` does not sanitize HTML output. The historical sanitize: true option was deprecated and removed. The renderer will faithfully reproduce any <script> it finds in the input. Pair it with DOMPurify on the rendered HTML before injecting it into the DOM.
  • `markdown-it` disables HTML input by default (html: false), which is safe as long as the option is not overridden. If html: true is set anywhere, the output must be sanitized downstream (DOMPurify again).
  • `showdown` similarly does not sanitize. Use a sanitizer on the output.
  • Any other Markdown library — check its docs. "Sanitize" in a Markdown renderer's API almost always means "disable raw HTML input," not "clean the HTML output." They are different guarantees, and non-developers conflate them.
  • Server-side rendering of user-authored Markdown into HTML — same rules. Use bleach (Python), sanitize-html (Node), or language-equivalent after rendering. Never trust Markdown input to be safe just because the renderer "supports" sanitization.
6. Dangerous deserialization
  • pickle.loads / cloudpickle.loads
  • yaml.load / yaml.Loader (use yaml.safe_load / yaml.SafeLoader)
  • Marshal.load (Ruby) on untrusted input
  • ObjectInputStream (Java) on untrusted streams
  • unserialize (PHP) on user input
7. Missing cookie safety flags

Every set_cookie / Set-Cookie call should include httpOnly, Secure, and SameSite. Flag any that don't.

8. CORS wildcard

Any response header Access-Control-Allow-Origin: * on an endpoint that isn't a public CDN. Especially dangerous if combined with Access-Control-Allow-Credentials: true (actually forbidden by the spec but some code tries).

9. Dependency / lockfile hygiene
  • Unpinned dependencies in production (requirements.txt with no ==, package.json with ^ or *, Cargo.toml with no lockfile)
  • Known-bad packages (typosquats, abandoned packages) — name match against a small blocklist
  • Lockfile missing for a language that should have one (package-lock.json, Cargo.lock, Gemfile.lock)
10. Auth / session pitfalls
  • Session cookies without rotation on login
  • Hardcoded admin bypass paths (if user_id == 1: style)
  • JWT signing with none algorithm
  • Password comparison with == instead of constant-time compare
  • Math.random() used for session tokens / salts / OTPs (not cryptographically secure)

Triage — the critical step

For every hit, classify it as one of:

ClassificationMeaningAction
REAL — CRITICALExploitable remotely, data exposure, or secret leakFix now, then commit
REAL — HIGHExploitable but requires auth or specific contextFix this sprint
REAL — MEDIUMDefense-in-depth gap, not directly exploitableQueue for cleanup
FALSE POSITIVEThe pattern matched but the code is actually safeExplain why it's safe and move on — do not "fix" it
NEEDS REVIEWYou can't tell without more context (e.g., is this input trusted?)Ask the operator one specific question

Never just list findings without classification. A raw list of grep matches is worse than no audit, because the operator can't tell signal from noise.

When explaining a false positive, be specific: "This f-string inside a query is safe because `days` is an integer from `int(request.query.get(...))` clamped to `0..365` on line 391." The specificity proves you actually looked.

Per-pattern triage rules: references/false-positive-triage.md

Output format

Always structured. Never a prose wall.

markdown
# Security sweep — <scope>
## Summary
-Scope: <files/dirs swept>
-Runtime context: <public / authenticated / internal>
-Total findings: <N>
-Triage: <X critical, Y high, Z medium, W false-positive>
## Critical (<N>)
### 1. <Category> — <file:line>
**What was found:** <quoted line>
**Why it's real:** <one-sentence reason>
**Fix:** <concrete code change or command>
### 2. ...
## High (<N>)
...
## Medium (<N>)
...
## False positives (<N>)
Listed only to show they were checked. No action needed.
### 1. <Category> — <file:line>
**Why not a vulnerability:** <specific reason>
## Needs review (<N>)
One specific question per item so the operator can answer and close it.
### 1. <Category> — <file:line>
**Question:** <precise question>

Deliberately out of scope

This skill is a minimal hand-curated sweep, not a full application security audit. If the operator needs any of the following, say so plainly and recommend a dedicated tool or human reviewer.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
51
Repository forks
3
7-day trend score
20

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 7 Jul 2026, 4 months ago.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/subinium/vibesubin/audit-security/badge)](https://verified-skill.com/skills/subinium/vibesubin/audit-security)

Something wrong with this skill or its page? Tell us.