kit-security-audit
Skill0 starsChanged 20 days agoMITView on GitHub
Audit a codebase or component for security vulnerabilities, including injection, broken access control, secrets, unsafe deserialization, and vulnerable dependencies, and report evidence-based findings with severity and file locations. Use when the user asks for a security audit, security review of a project or component, or a dependency vulnerability check. Do not use for reviewing an ordinary diff for general correctness (use kit-code-review) or for fixing a specific known bug; this skill reports and does not edit code.
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Run the ecosystem's audit tool when it is available and does not change files, such as npm audit, pnpm audit, pip-audit, cargo audit, …
- Distinctive: line 48
Use: "Do a security audit of this API." "Check our dependencies for known vulnerabilities." "Is the upload handler safe?"
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Security audit
Report findings without modifying code unless the user explicitly asks for fixes. Do not run exploits against shared, staging, or production systems, and do not send code or data to external services without permission.
1. Scope and map the attack surface
- Confirm the scope: the whole repository, a component, or dependencies only.
- Identify entry points: HTTP routes, CLI arguments, message consumers, file uploads, webhooks, and scheduled jobs. Identify trust boundaries and where untrusted data enters.
- Note authentication and authorization mechanisms, data stores, secrets handling, and external calls.
2. Check the code
Trace untrusted input from each entry point to where it is used. Look for:
- Injection: SQL or NoSQL built from strings, shell commands with interpolated input, template injection, LDAP or XPath injection.
- Access control: missing authentication or authorization checks, insecure direct object references, privilege escalation, missing ownership checks.
- Paths and files: path traversal, unsafe archive extraction, unrestricted uploads.
- Secrets and data: hardcoded credentials or keys, secrets in logs or error messages, sensitive data exposure, weak hashing for passwords.
- Unsafe processing: deserialization of untrusted data,
eval, server-side request forgery, XML external entities, open redirects. - Web concerns: cross-site scripting, CSRF on state-changing requests, permissive CORS, missing security headers where the project manages them.
- Cryptography and randomness: homemade crypto, weak algorithms, predictable tokens.
3. Check dependencies and configuration
- Run the ecosystem's audit tool when it is available and does not change files, such as
npm audit,pnpm audit,pip-audit,cargo audit,govulncheck, orbundle audit. If none can run, inspect lockfiles and report known-vulnerable versions you can identify, stating how you identified them. - Review configuration for debug modes, default credentials, overly broad permissions, and secrets committed to the repository.
4. Verify and rate
For each candidate, confirm the data flow by reading the code; discard what you cannot support. Rate by impact and exploitability:
- Critical: remote compromise, authentication bypass, or broad data exposure reachable by unauthenticated users.
- High: exploitable by authenticated users or with modest preconditions.
- Medium: requires unusual conditions, or limited impact.
- Low: defense-in-depth improvements.
5. Report
Order findings by severity. For each, give the title, severity, file:line, the vulnerable data flow, a concrete attack scenario, and a remediation. Then list what was audited, what was out of scope, and what could not be verified. If nothing significant was found, say so and describe what was checked.
Examples
- Use: "Do a security audit of this API." "Check our dependencies for known vulnerabilities." "Is the upload handler safe?"
- Skip: "Review my PR." (use kit-code-review) "Fix the SQL injection in users.ts." (a known fix; implement it directly)
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- kit-code-reviewSkill
- kit-commitSkill
- kit-debuggingSkill
- kit-documentationSkill
- kit-feature-implementationSkill
- kit-pull-requestSkill
- kit-refactoringSkill
- kit-testing-rulesSkill
- kit-test-writingSkill
- kit-typescript-rulesSkill
- kit-code-reviewSkill
- kit-commitSkill
- kit-debuggingSkill
- kit-documentationSkill
- kit-feature-implementationSkill
- kit-pull-requestSkill
- kit-refactoringSkill
- kit-security-auditSkill
- kit-test-writingSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

