Works with the AI Agents you already use
Node.js Security Review (Express, Fastify, NestJS)
by Saizul Amin
This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.
$10
Node.js Security Review (Express, Fastify, NestJS)
Example session with this skill installed
Run the Node.js Security Review skill on my project and give me a prioritised list of what to fix, with exact changes.
- Read your context and instructions
- Compiled the node js security
Here is what the Node.js Security Review (Express, Fastify, NestJS) skill produced.
Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.
Output
node security review: 2 file(s) scanned
HIGH secret.hardcoded -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/node-security-review/vulnerable-app/src/app.js:9
'JWT_SECRET' is a hard-coded literal (23 chars, value hidden)
fix: load it from the environment/secret manager and rotate the leaked value
HIGH cors.credentials_any_origin -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/node-security-review/vulnerable-app/src/app.js:13
CORS reflects any origin with credentials
fix: use an explicit origin allow-list when credentials: true
HIGH code.eval -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/node-security-review/vulnerable-app/src/app.js:16
eval() executes arbitrary code
fix: parse data with JSON.parse or a lookup table; never eval input
HIGH exec.shell_injection -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/node-security-review/vulnerable-app/src/app.js:20
exec() runs a shell command built from variables (command injection)
fix: use execFile/spawn with an argument array and no shell; validate input against a whitelist
HIGH path.traversal -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/node-security-review/vulnerable-app/src/app.js:24
request input used in a file path (path traversal: ../../etc/passwd)
fix: resolve against a base dir and check the result starts with it, or map ids to files; for sendFile pass { root }
HIGH secret.hardcoded -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/node-security-review/vulnerable-app/src/app.js:33
JWT signed/verified with a literal key (value hidden)
fix: use process.env.JWT_SECRET (32+ random bytes) or an asymmetric key; rotate it
HIGH sql.injection -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/node-security-review/vulnerable-app/src/app.js:39
SQL string built with ${...} or + (SQL injection)
fix: use placeholders ($1 / ?) with a values array, or a tagged template (sql`...`, Prisma $queryRaw`...`)
HIGH tls.disabled -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/node-security-review/vulnerable-app/src/routes/admin.ts:10
TLS certificate verification disabled
fix: remove it; for private CAs pass the CA with { ca } or NODE_EXTRA_CA_CERTS
HIGH code.new_function -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/node-security-review/vulnerable-app/src/routes/admin.ts:21
new Function() compiles a string into code
fix: replace with a real function or a whitelist of operations
HIGH jwt.none_alg -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/node-security-review/vulnerable-app/src/routes/admin.ts:24
JWT algorithm 'none' accepts unsigned tokens
fix: allow only the signing algorithm you use
MEDIUM app.no_security_headers -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/node-security-review/vulnerable-app/src/app.js:8
express app without security headers middleware
fix: add helmet (or set headers at the proxy)
MEDIUM session.cookie_flags -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/node-security-review/vulnerable-app/src/app.js:11
session cookie missing secure
fix: cookie: { secure: true, httpOnly: true, sameSite: 'lax' } and app.set('trust proxy', 1) behind a proxy
MEDIUM jwt.no_algorithms -Users-S
What you do next
- Fix the highest-severity items first.
- Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
- Keep the skill installed and re-run it whenever the project changes.
Connects securely to your tools. The creator never sees your data.
About this skill
Security review of a Node.js backend (Express, Fastify, NestJS, Hono, Koa) with a static scanner for JS/TS source - eval and new Function, child_process exec with template strings, request input in file paths (path traversal), SQL built with ${} or +, jwt.verify without an algorithms allow-list or with ignoreExpiration, alg none, cookies and sessions without httpOnly/secure, hard-coded secrets (values never printed), disabled TLS verification, CORS any-origin with credentials, Math.random tokens, open redirects, mass assignment, prototype-polluting merges, stack traces in responses, and missing helmet / rate limiting.
Who it's for
Use when the user asks to security-review, audit or harden a Node.js API, check an Express/Fastify/NestJS/Hono app before launch, review auth/JWT/cookie code, or asks "is this endpoint safe?".
What's inside
- Tested, offline Python script(s): scan_node_security.py (deterministic results, standard library only unless noted)
- Reference guides: framework-hardening.md, checklist.md, rules.md
- Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow
Why it's worth it
Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.
Works with every major AI agent
Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.
Requirements
- Python 3.8+ for the bundled scripts
- No API keys, no account, runs locally
Open source: saizul/nodejs-backend-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
Python 3.8+
Node.js