node-security-review

Reviews Node.js and Fastify backend code for application-layer security findings.

1|1|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/GonkaGate/opencode-setup --skill node-security-review-gonkagate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: node-security-review
Source: https://github.com/GonkaGate/opencode-setup/tree/main/.agents/skills/node-security-review
Command: npx skills add https://github.com/GonkaGate/opencode-setup --skill node-security-review-gonkagate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Security reviews of Node.js backends often degrade into generic OWASP checklists or vague hardening advice that misses the actual exploitable issue. This Skill produces findings-first reviews that name the exact broken trust boundary, trace the shortest attacker path, and recommend the smallest safe fix. ## Core Features & Use Cases - Findings-First Review: Identifies concrete security findings in auth, session, cookie, secret-handling, outbound HTTP, and SSRF surfaces with severity calibration from Blocker to Low. - Fail-Open Detection: Catches verification failures, missing secrets, and error paths that silently downgrade to allow or guest access instead of denying. - Multiple Review Modes: Supports diff/PR review, audit mode for unfamiliar backends, and incident/exploit reconstruction. - Use Case: A developer submits a Fastify PR that decodes a JWT before verifying it and falls back to a guest role on verification errors. The Skill flags both as fail-open auth findings, traces the forged-token exploit path, and recommends verifying before trusting claims. ## Quick Start Ask the AI to do a findings-first security review of your Fastify auth middleware or outbound webhook code and list only the highest-signal findings.

Frequently Asked Questions about node-security-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I do a security review of a Fastify backend?

Start with the auth boundary to confirm tokens are verified rather than decoded, then check route input validation, cookie and CORS posture, outbound URL handling, and error or logging exposure. This Skill follows that inspection order and reports only findings with a concrete exploit path.

How to find SSRF vulnerabilities in Node.js outbound requests?

Check whether user-influenced URLs are parsed with new URL() and restricted to safe schemes, whether redirects are re-validated per hop, and whether DNS or private IP checks block internal destinations. Regex-only URL checks with followed redirects are a classic SSRF finding.

What is fail-open behavior in authentication code?

Fail-open behavior occurs when a verification error, missing secret, or timeout causes the system to allow access or downgrade to guest instead of denying the request. Examples include catching JWT verification errors and continuing, or starting the server with a fallback dev secret.

Does this review cover authorization policy and RBAC design?

No, the review is scoped to application-layer security boundaries like verification, secret handling, and exposure paths. Product authorization policy, fraud rules, and generic rate limiting are explicitly handed off to other concerns unless they involve a real security bypass.

Why is jwt.decode without verify a security finding?

jwt.decode only parses the token payload without checking the signature, so an attacker can forge arbitrary claims like an admin role. Any code that trusts decoded claims before successful verification has a broken identity-proof guarantee.