/everything-backend:backend-securityfrom everything-backend
Reviews backend security with evidence: builds threat models (STRIDE), checks OWASP API Security Top 10, scans for secrets in git history, audits dependencies/SBOM/supply chain, runs SAST, reviews CORS/headers/TLS/cookies/debug modes/error leakage/PII. Writes findings to docs/security/review-YYYYMMDD.md and issues.md.
Ships in everything-backend. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Find real, evidenced security problems and say who should fix them. This skill reports and proposes fixes. It does not change source code unless the user explicitly asks it to.
backend-doctor or another skill routes a security question here.Not for:
backend-auth (this skill reviews them and hands fixes there).backend-doctor.backend-debug. Building a new control (rate limiter, audit log): backend-implement.backend-ops. Pipeline hardening changes: backend-deploy._shared/ inside this skill's folder (bundled installs), then ../_shared/ next to it; other fallbacks are in <shared>/context-loading.md -> Resolving _shared/ Files. A missing shared doc is a warning, not a stop.<shared>/tool-rules.md (mode=auto contract, checkpoints, Command Time Budgets, dependency audit rules) and <shared>/host-tools.md if the action names below don't match your host's tools. Read <shared>/principles.md -> Security. Read <shared>/memory-schema.md -> issues.md before writing findings.<shared>/context-loading.md: project-overview.md, tech-stack.md, api-patterns.md (endpoint inventory, auth method), db-schema.md (where PII lives), decisions.md, deployment.md if present, and issues.md (known findings, to avoid duplicates). If memory is missing, continue from the code and say so in the report; suggest backend-scan afterwards.<shared>/stacks/, read it.file:line plus type only (for example src/config.ts:12 AWS access key). Redact scanner output before showing it. Never paste a secret into the report, memory, a URL or a chat message.<shared>/tool-rules.md), including npx, pipx run, go run and docker run of a tool image that is not already present. If a tool is missing, do the manual checks and list the tool under "Not run".<shared>/tool-rules.md -> Production Targets.Confirm one scope and the depth:
git diff --name-only <base>...HEAD (ask for the base if unclear; default to the main branch), plus git diff --name-only HEAD and git ls-files --others --exclude-standard for uncommitted and untracked changes.List the entry points in scope: HTTP routes, GraphQL/gRPC operations, webhooks, queue consumers, scheduled jobs, CLI commands, file uploads. Use the api-patterns.md inventory and confirm it by searching route definitions in the code.
Output: scope statement, entry-point list, and an open question list (asked once, in one message, only when the answer changes the review: for example "is this API public or internal?").
Fill the template in references/threat-model.md:
For a diff or small feature, a short table covering only the touched flows is enough.
Output: the threat model section of the report, and a list of high-risk flows that Step 3 must examine first.
Work through every item in references/owasp-api-top10.md: run its searches, read each hit in context, and record a verdict.
| ID | Item |
|---|---|
| API1 | Broken Object Level Authorization (BOLA/IDOR) |
| API2 | Broken Authentication |
| API3 | Broken Object Property Level Authorization (mass assignment, excessive data exposure) |
| API4 | Unrestricted Resource Consumption |
| API5 | Broken Function Level Authorization (BFLA) |
| API6 | Unrestricted Access to Sensitive Business Flows |
| API7 | Server-Side Request Forgery (SSRF) |
| API8 | Security Misconfiguration (detailed in Step 7) |
| API9 | Improper Inventory Management |
| API10 | Unsafe Consumption of APIs |
Also run the "Beyond the Top 10" checks in the same reference (injection, unsafe deserialization, path traversal, uploads, crypto misuse, webhook signatures, open redirects). Judge every non-SQL item against <shared>/secure-coding.md (cite the S-rule in each finding). Injection follows <shared>/sql-safety.md in full via the reference's "Injection Review" (rules 1-12, second-order, Verification); string-built SQL or a missing owner predicate on a public or low-privilege route is Critical.
Rules:
Output: a verdict table with ten rows and the findings behind it.
Follow references/secrets-and-supply-chain.md -> Secrets:
git ls-files for .env*, keys, credential files) and that .gitignore covers them.gitleaks or trufflehog if installed, with redaction on and verification off.A secret in history is still leaked even if it was deleted later: the fix is rotation first, history rewrite optional and only with the user.
Output: a list of file:line (or commit:file) and secret type, with status "working tree" or "history only".
Follow references/secrets-and-supply-chain.md -> Dependencies, SBOM, Images, Pinning and Licenses:
<shared>/tool-rules.md (npm audit without fix, pip-audit on the installed environment, govulncheck ./..., and so on). Report direct vs transitive, severity and the fixed version.syft if available (CycloneDX JSON).trivy or grype if available, on a locally built image only.npm ci, --frozen-lockfile, hashes), base images pinned, no latest, no curl | sh in Dockerfiles or CI.permissions:, no secrets exposed to untrusted pull requests, dependency update bot present.Output: dependency findings table, SBOM path (or "not generated"), pinning and CI findings, license flags.
First run the bundled scanner, which needs no install: node <shared>/scripts/security-scan.js --json over the scope (--changed --base <base> for a diff). Each rule cites <shared>/secure-coding.md (S1-S18) or <shared>/sql-safety.md; triage its hits like any SAST hit. Then run semgrep if installed, with metrics off and the project's own config if it has one (commands and exclusions in references/config-and-privacy.md -> Static Analysis (SAST) Notes). Use stack tools already present (bandit with virtualenv and build folders excluded, gosec, eslint security plugins, spotbugs). Discard hits outside the project's source roots. Triage each remaining hit by reading the code: true positive -> finding, false positive -> note it once.
Output: triaged SAST findings, and the tools that ran or did not run.
Check each area in references/config-and-privacy.md -> Configuration: CORS, security headers, TLS and certificate verification, cookie flags, debug modes and exposed docs/admin consoles, error leakage, logging of secrets and PII, request size limits, container user and ports. Read the production config path, not only the dev defaults.
Output: config findings, which also decide the API8 verdict.
Follow references/config-and-privacy.md -> Privacy: build a PII inventory from db-schema.md and the models, then check retention, erasure, export, encryption of sensitive fields, PII sent to third parties and PII in logs. This is an engineering check, not a legal opinion.
Output: PII inventory table and privacy findings.
node <shared>/scripts/checkpoint.js start --skill backend-security --feature <slug> (slug from the scope, e.g. review-orders-api). Record each file you create or edit (checkpoint.js record --created ... or --modified ..., and --memory issues.md for memory), snapshot after each step, and close it when done. On exit code 3, offer to resume or restart. If Node is unavailable, follow <shared>/tool-rules.md -> Concurrent & Partial Work by hand.docs/security/review-<YYYYMMDD>.md from references/report-template.md. If the file exists for today, add a suffix (-2). Every finding has an ID (SEC-001...), severity per the rubric in the template, OWASP mapping, evidence as file:line, impact, proposed fix, and owner skill.issues.md in the <shared>/memory-schema.md format, with ### Owner set to the owner skill and a link to the report. Before appending, search issues.md for the same location and type; update an existing open entry instead of duplicating it. Never write secret values into memory.checkpoint.js close --skill backend-security --feature <slug>).Output: the report file and the updated issues.md.
Summarize in chat: scope, counts by severity, the Top 10 verdict table, the top findings with file:line, what did not run, and the report path. Then route fixes:
| Finding area | Owner |
|---|---|
| Authentication, sessions, JWT, CSRF, authorization rules, tenant isolation | backend-auth |
| Defect in existing code (missing ownership check, injection, SSRF guard, leaked field) | backend-debug (fix plus regression test) |
| New control or capability (rate limiting, validation layer, audit logging) | backend-implement |
| API contract (field allowlists, limits, removed or versioned endpoints) | backend-api-design |
| Schema, encryption columns, retention jobs, row-level security | backend-db-design, then backend-migrate |
| CI pinning, image scanning, SBOM and signing in the pipeline | backend-deploy |
| Rate-limit infrastructure, WAF, backups and DR | backend-ops |
| Negative tests for each fixed finding | backend-test |
Secrets in the working tree or history: tell the user to rotate them first. Rotation, history rewrites and force pushes are the user's call and are Always Ask First.
If the user asks this skill to fix findings:
backend-auth unless the user insists.checkpoint.js start --skill backend-security --feature <slug>-fixes. Run checkpoint.js backup for any file that was already dirty before you edit it, record --modified each file, and snapshot after each fix. Close it when done.backend-test conventions; Test Integrity applies).issues.md to Resolved, noting "fixed in working tree, pending review".docs/security/review-<YYYYMMDD>.md.issues.md entries for open Critical, High and Medium findings.Done when:
file:line, commit, config key or command output), a severity, a proposed fix and an owner skill.issues.md, and the checkpoint is closed./{id} routes; state the sampling.issues.md: reference the existing entry, update its status if it changed, do not duplicate.references/threat-model.md: read in Step 2 for the asset, actor, boundary and STRIDE templates and common threats per entry-point type.references/owasp-api-top10.md: read in Step 3 for the searches, what to read, pass criteria and fixes per Top 10 item, plus the Beyond the Top 10 checks.references/secrets-and-supply-chain.md: read in Steps 4-5 for scanner commands, the redacted manual secret search, audit commands per stack, SBOM, image scans, pinning, CI and license checks.references/config-and-privacy.md: read in Steps 6-8 for SAST commands and exclusions, the configuration checklist with per-stack searches, and the PII inventory and privacy checks.references/report-template.md: read in Step 9 for the report layout, severity rubric, finding format and the issues.md entry format.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
security-review, threat-modeling, owasp, secrets-scanning, dependency-audit, sast
npx claudepluginhub codeworksid/everything-backend --plugin everything-backend16 skills in this plugin
/backend-api-designDesigns API contracts before code is written: resources, endpoints, request and response schemas, error format, pagination, versioning and per-endpoint authorization rules. Writes the contract to an OpenAPI spec (docs/api/openapi.yaml by default, or the existing spec) and records conventions in api-patterns.md memory. REST is fully covered; GraphQL schemas and gRPC .proto contracts get basic guidance. Use when the user says 'design the API', 'what endpoints do I need', 'plan routes', 'write an OpenAPI spec', 'Swagger', 'define the API contract', 'design a GraphQL schema', 'write a proto file', 'add an endpoint to the spec', or 'version or deprecate an endpoint'. Not for writing handler code (backend-implement), choosing the login mechanism or auth endpoints (backend-auth), or reviewing API security (backend-security)./backend-architectDesigns backend architecture for new and existing systems, including architecture pattern (monolith, modular monolith, microservices, serverless), tech stack, module boundaries, consistency rules and non-functional targets, then records the result as docs/architecture/overview.md, numbered ADR files in docs/adr/ and project memory. Use when the user says "design the architecture", "plan the backend", "how should I structure this", "what tech stack should I use", "should we split into microservices", "write an ADR", "redesign this system", or is starting a new project or a major feature. Hands diagrams to backend-visualize and detailed schema and API work to backend-db-design and backend-api-design.Other plugins' skills for the same job