Secure Code Review — Python / JavaScript / TypeScript

    by Mr Vempire

    1

    Systematic security auditing for Python and JavaScript codebases with evidence-based reporting and concrete fixes.

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Secure Code Review — Python / JavaScript / TypeScript

    Example session with this skill installed

    Review the authentication logic in this Express.js middleware for session management flaws and hard-coded secrets.

    • Read your context and instructions
    • Compiled the secure code review

    I have completed the secure code review for the provided Express.js middleware. I identified one High-severity session management flaw and one Informative finding regarding secret rotation.

    Secure Code Review Findings Report

    SeverityFindingLocationImpact
    HighSensitive Session Data in LocalStorageauth.ts:42Account takeover via XSS
    InfoHard-coded JWT Secret in Dev Configconfig/dev.json:4Potential credential leak if pushed to VCS

    Finding: Sensitive Session Data in LocalStorage

    Severity: High
    Location: src/middleware/auth.ts:42
    Description: The application stores the JWT session token in window.localStorage. This makes the token accessible to any JavaScript running on the page, including malicious scripts if an XSS vulnerability exists elsewhere.
    Evidence:

    // Line 42
    window.localStorage.setItem('session_token', token);
    

    Impact: An attacker who successfully executes a Cross-Site Scripting (XSS) attack can steal the session token and impersonate the user indefinitely.
    Fix: Move the session token to an httpOnly, Secure cookie with SameSite=Lax.

    res.cookie('session_token', token, {
      httpOnly: true,
      secure: true,
      sameSite: 'lax',
      maxAge: 3600000 // 1 hour
    });
    

    What was checked and clean

    • Password Hashing: Verified bcrypt usage in user.ts. Salts are per-user and work factor is set to 12. No plain-text storage found.
    • SQL Injection: Checked database queries in db/queries.ts. All inputs use parameterized queries via the pg library.

    Next steps

    1. Apply the cookie-based session fix and update the frontend to remove localStorage references.
    2. Ensure the JWT_SECRET is moved to an environment variable in all environments.
    3. Schedule a follow-up review for the login rate-limiting implementation.

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

    About this skill

    Manual code reviews often miss critical logic flaws, while automated scanners bury developers in false positives. This skill provides a systematic method for identifying exploitable security defects in Python, JavaScript, and TypeScript codebases. It moves beyond simple linting to trace data flows from untrusted inputs to dangerous sinks, ensuring every finding is backed by evidence and a clear path to remediation.

    What it does

    • Data flow analysis traces untrusted input from entry points like HTTP routes and CLI arguments to dangerous sinks like database queries or shell commands.
    • Vulnerability identification uncovers injection flaws, broken authorization (IDOR), session management issues, and unsafe deserialization.
    • Automated tool triage runs industry-standard scanners like bandit, pip-audit, and npm audit then filters out noise to focus on reachable risks.
    • Secret detection scans repository history and configuration files for hard-coded API keys, tokens, and credentials.
    • Remediation engineering generates a graded report where every finding includes file and line evidence, impact analysis, and a concrete code fix.

    How it works

    1. Scope the review by identifying crown jewels, entry points, and trust boundaries within the specific application architecture.
    2. Execute toolchain to gather baseline leads from static analysis and dependency auditors.
    3. Trace data paths manually to verify if scanner leads are exploitable and to find logic-heavy bugs like missing object-level authorization.
    4. Verify findings by drafting minimal proofs of concept or exact reproduction steps for every medium to critical issue.
    5. Generate the report using a structured template that lists severity-graded findings alongside what was checked and found to be clean.

    Frameworks & tools

    The skill supports Python (Django, Flask, FastAPI) and JavaScript/TypeScript (Node.js, Express, NestJS, Next.js, React). It utilizes bandit, pip-audit, npm/yarn audit, and secret scanners like gitleaks or trufflehog.

    Why this beats prompting it yourself

    Generic prompts often result in vague "best practice" advice that lacks specific file context or misses complex logic flaws like IDOR. This skill enforces a rigorous data-flow methodology and a "one finding, one fix" rule, ensuring you get a professional-grade audit rather than a list of linting suggestions.

    Use cases

    • Reviewing pull requests that touch authentication, payments, or file handling.
    • Auditing unfamiliar codebases during a hand-over or after a security incident.
    • Implementing a pre-release security gate for small services or CLI tools.
    • Training developers to identify framework-specific traps in Python and Node.js.

    Known limitations

    This skill is restricted to Python, JavaScript, and TypeScript. It does not replace dynamic application security testing (DAST) for runtime behavior or provide formal compliance mapping.

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

    Software
    Python

    Permissions

    Read Files
    Network Access
    Listed5 days ago

    What's inside

    Creator

    Mr Vempire

    Mr Vempire

    32 skills on Agensi

    Frequently Asked Questions

    Unlike generic AI prompts, this skill uses a structured data-flow methodology to trace untrusted inputs to dangerous sinks, filtering out false positives from tools like Bandit and NPM Audit to provide only actionable, verified findings.

    The skill is designed for any AI agent that supports file-system access or code repository integration, specifically optimized for environments where it can run static analysis tools alongside its reasoning engine.

    You receive the specialized security reasoning engine, a pre-configured toolchain for Python and JavaScript ecosystems, and structured reporting templates for generating professional-grade audit findings.

    No, the skill performs static analysis and data-flow tracing on your source code; it does not require a running environment or perform dynamic attacks (DAST), making it safe to use on sensitive development branches.

    The skill focuses on the most common web and backend frameworks for Python (Django, Flask, FastAPI) and JavaScript/TypeScript (Node.js, Express, React, Next.js), ensuring deep context for these specific architectures.

    Updates are released periodically to include new vulnerability patterns (such as emerging Zero-Days) and to support the latest versions of underlying security scanners like Gitleaks or Pip-audit.

    New in Code Quality & Review

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.