/code-audit:database-security [path or scope]from code-audit
Audits database interactions for SQL/NoSQL injection, access control, encryption, PII compliance, and connection security. Use when reviewing data-layer security.
Ships in code-audit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Target: $ARGUMENTS
If no target path is given above, review the entire codebase.
Examine ALL database interactions
Verify:
Parameterized queries or ORM usage
?, $1, :param) or ORM bindings.Connection string security
Database user permissions (principle of least privilege)
SUPERUSER, DROP, GRANT).Sensitive data encryption at rest
PII handling compliance
Query timeout configurations
Connection pool settings
Transaction handling for consistency
Audit logging for sensitive operations
NoSQL injection hardening (if applicable)
$where, $ne, $gt, $or operators blocked/sanitized.mongoose.set('sanitizeFilter', true)).Row/Tenant isolation
Least-privilege networking
TLS in transit & certificate validation
sslmode=require/verify-full or equivalent).Secret management & rotation
.env files without protection.Schema & integrity controls
NOT NULL and validated.Field-level minimization
SELECT *; fetch only required fields.Pagination & query limits
LIMIT/page size; prevent unbounded queries that scan entire tables.Backup/restore security
Data retention & deletion
Migrations safety
ORM raw-query escape hatch review
queryRaw/sequelize.query/knex.raw usage audited.LIKE / regex input handling
%, _, regex metacharacters).Query timeouts & resource guards
Audit & monitoring depth
PII in logs/metrics
Indexing of sensitive data
Service/account lifecycle
Caching layers
Analytics/ETL exports
👉 Critical flags:
A structured finding report with the following for each issue:
Title, Severity (Critical/High/Medium/Low), CWE (if applicable), Evidence (file, function, line ranges), and a short Why it matters.
Exploitability notes and, where safe, a minimal PoC or reproduction steps (no real secrets).
Remediation: precise code-level fix or config change (snippets welcome), plus defense-in-depth guidance.
A summary risk score (0–10) and top 3–5 prioritized fixes that reduce risk fastest.
A checklist diff: which items from the “Check for” list are Pass/Fail/Not Applicable.
Be concrete and cite exact code locations and identifiers.
Prefer minimal, drop-in fix snippets over prose.
Do not invent files or functions that aren’t present; if context is missing, mark as Unable to verify and say what code would prove it.
Write this into a markdown file and place it in the audits/ folder.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jeremymorgan/code-review-skills --plugin code-audit22 skills in this plugin
/api-and-infrastructureReviews API and infrastructure security configuration, including endpoints, headers, transport, and deployment settings. Use when auditing API or infrastructure hardening./authentication-flow-reviewConducts a comprehensive authentication security review covering login, sessions, tokens, and credential handling. Use when auditing authentication for vulnerabilities./authorization-implementationAnalyzes authorization and access-control logic across routes and resources for privilege and enforcement flaws. Use when auditing authorization, RBAC, or access control./business-logic-vulnerabilitiesAnalyzes business logic for security flaws such as workflow bypasses, race conditions, and abuse cases. Use when reviewing application logic for exploitable behavior./code-duplication-detectionDetects duplicated and near-duplicate code across the codebase and suggests consolidation. Use when reviewing for copy-paste code, repeated logic, or DRY violations./code-quality-metrics-standardsAnalyzes code complexity and adherence to quality standards, flagging overly complex functions and metric outliers. Use when auditing maintainability, cyclomatic complexity, or coding-standard compliance.Other plugins' skills for the same job