More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Node.js Express Safety Check

    1

    One template literal in db.query() is a SQL injection, and one exec() with a request value lets anyone run commands on your server.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Node.js Express Safety Check

    Node.js Express Safety Check

    Example session with this skill installed

    Check this project with node-express-safety-check.

    • Read your context and instructions
    • Compiled the node js express

    $ python3 scripts/check_express.py examples/risky
    BLOCK src/server.js:11 E04 HARDCODED_SECRET
    const JWT_SECRET = '<redacted>';
    Why: A JWT secret, session secret, password or API key is written in the code (as a string, a jwt.sign or jwt.verify key, or a fallback after process.env.X ||). Everyone with the repository, and every build, has it, and a known JWT secret lets anyone forge logins.
    Safer: Read it from process.env with no fallback and fail at start-up if it is missing. Rotate the secret, because it is already in the repository history.

    BLOCK src/server.js:14 E04 HARDCODED_SECRET
    BLOCK src/server.js:19 E01 COMMAND_INJECTION
    BLOCK src/server.js:23 E02 SQL_INJECTION
    BLOCK src/server.js:28 E03 EVAL_OF_CHANGING_CODE
    REVIEW src/server.js:13 E11 CORS_ANY_ORIGIN_WITH_CREDENTIALS
    REVIEW src/server.js:14 E14 INSECURE_COOKIE
    REVIEW src/server.js:16 E13 TLS_VERIFICATION_OFF
    REVIEW src/server.js:33 E16 MATH_RANDOM_TOKEN
    REVIEW src/server.js:38 E12 WEAK_JWT_CHECK
    REVIEW src/server.js:42 E15 OPEN_REDIRECT
    REVIEW src/server.js:45 E17 STACK_TRACE_TO_CLIENT

    (Each finding also has Why and Safer lines, as in the first one.)
    Verdict: BLOCK. Checked 1 file, 1 with Node.js server content.
    This is a static check of file text. NOT FLAGGED is not a guarantee.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    One template literal in db.query() is a SQL injection, and one exec() with a request value lets anyone run commands on your server. This skill finds those and nine other security mistakes in Node.js server code (Express, Fastify, Koa, NestJS, plain Node; JavaScript or TypeScript) before you merge or deploy, and tells you how to fix each one.

    Your agent runs a scanner on your .js and .ts files. It removes comments, keeps strings, follows a query or command built in a variable (also with +=) to the call that runs it, and knows promisify(exec), mysql2, pg, knex, Prisma raw queries, better-sqlite3 and TypeORM. Placeholders and tagged queries are fine. Browser code and test files are skipped. It never runs Node or installs packages. It returns BLOCK, REVIEW, or NOT FLAGGED, with the file, line, reason, and a safer approach. Secrets are never printed.

    What it checks

    BLOCK

    • E01: command injection: exec or execSync with a command built from changing values
    • E02: SQL built with a template literal or + and passed to query(), execute(), prepare(), $queryRawUnsafe() or whereRaw()
    • E03: eval, new Function or the vm module on changing code
    • E04: a hardcoded JWT secret, session secret, password or API key

    REVIEW

    • E11: CORS with any origin and credentials (cors, NestJS enableCors, Fastify)
    • E12: jwt.decode without verify, the none algorithm, or ignoreExpiration
    • E13: TLS certificate checks turned off
    • E14: secure or httpOnly false on session cookies
    • E15: res.redirect() to a URL from the request
    • E16: Math.random() for tokens, codes or salts
    • E17: stack traces sent to clients

    What's included

    • The scanner (Python 3.9+, standard library only)
    • A rules guide with the reason and safer approach for each rule
    • A risky and a safe example server, and the real report the scanner produces on the risky one

    Limits It reads code as text, not as a full JavaScript parser: values are followed within a file only, and MongoDB injection, ORM escaping and dependencies are not checked. NOT FLAGGED is not a guarantee.

    Static check of JavaScript and TypeScript text. Values are followed within one file only; dependencies and MongoDB queries are not checked. NOT FLAGGED is not a guarantee.

    How to use

    1. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    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 5 days ago

    Permissions

    Terminal / Shell
    Read Files

    Runs one local Python script in the terminal. It reads your project's files, writes nothing, and makes no network calls. The example server includes clearly fake, inert secrets (not-a-real-jwt-secret) for the scanner to find. It is never run.

    Listed7 days ago
    Updated4 days ago

    What's inside

    Frequently Asked Questions

    No. The script reads local files only and makes no network calls.

    No. It only reports. Your agent changes files only if you ask it to.

    Any agent that supports SKILL.md skills and can run a terminal command, such as Claude Code. It needs Python 3.9 or newer and nothing else.

    No. It reads your .js and .ts files as text. It never runs Node, npm or your app.

    BLOCK: fix it before you ship. REVIEW: check it before release. NOT FLAGGED: no rule matched. It is a static check, so NOT FLAGGED is not a guarantee.

    New in Security