subinium/vibesubin/audit-security
Claude Code and agent skill by subinium/vibesubin
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
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-securitySemi-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
.envexposed" - "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:
- Scope — the whole repo, one directory, one file, or one PR diff?
- Severity threshold — report everything found, or only HIGH/CRITICAL?
- 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:
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:
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, orfetch - 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 toexecFile/spawnwith args)- Backticks or
$()with user input in shell scripts os.systemanywhereeval/exec/Function(userInput)/setTimeout(userInput, ...)(in JS)pickle.loadson anything that might come from a networkyaml.loadwithoutSafeLoader
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/sendFilewith user-controlled path segments
5. XSS sinks
innerHTML =,dangerouslySetInnerHTML,v-html,{@html ...}(Svelte)document.write(- Jinja2
|safe, Djangomark_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: trueoption 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. Ifhtml: trueis 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.loadsyaml.load/yaml.Loader(useyaml.safe_load/yaml.SafeLoader)Marshal.load(Ruby) on untrusted inputObjectInputStream(Java) on untrusted streamsunserialize(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.txtwith no==,package.jsonwith^or*,Cargo.tomlwith 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
nonealgorithm - 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:
| Classification | Meaning | Action | |
|---|---|---|---|
| REAL — CRITICAL | Exploitable remotely, data exposure, or secret leak | Fix now, then commit | |
| REAL — HIGH | Exploitable but requires auth or specific context | Fix this sprint | |
| REAL — MEDIUM | Defense-in-depth gap, not directly exploitable | Queue for cleanup | |
| FALSE POSITIVE | The pattern matched but the code is actually safe | Explain why it's safe and move on — do not "fix" it | |
| NEEDS REVIEW | You 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.
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
- SKILL.md in the repositoryCheckingplugins/vibesubin/skills/audit-security/SKILL.md
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
[](https://verified-skill.com/skills/subinium/vibesubin/audit-security)