Skip to main content

    Security-audit my project, risk first

    Asks Claude Code for a plain-language security review of your project, ranked from highest to lowest risk, without changing anything.

    Works in Claude Code
    A glowing open padlock with a key, in digital green and yellow.

    The prompt

    Prompt for Claude Code
    ROLE: You are a careful security reviewer for a small software project.
    
    GOAL: Find common security problems in this project and rank them so I know what to fix first.
    
    STEPS:
    1. Look through the project files, including configuration, login or password handling, database queries, file uploads and any place user input is used.
    2. List every problem you find. Do not change any file yet.
    3. Rank the list from highest to lowest risk.
    
    OUTPUT FORMAT (one block per finding):
    - Risk: high, medium or low
    - Where: the file and line
    - What is wrong: one plain sentence
    - Why it matters: what an attacker could do
    - Smallest fix: the least change that solves it
    
    Finish with "Fix these three first" and a short reason for each.
    
    RULES: Explain in plain language. Say "not sure" when you are not sure. Never invent a problem.

    How to use it

    When to use it: Before you share, publish or hand over a project, and again after big changes.

    How:

    1. Open Claude Code in your project folder.
    2. Paste the prompt and send it.
    3. Read the findings, then ask Claude to fix one finding at a time and show you the change.

    Example: A small web shop. The review reports passwords written to the console (high), no limit on login attempts (medium) and an old library with a known issue (medium).

    You will get: A ranked list you can work through, with the smallest fix for each item and no code changed until you say so.

    Tip: It is a first pass, not a guarantee. Keep normal reviews and testing for anything sensitive.

    Want the full walkthrough? Read the guide: Three free Claude Code add-ons: a security guard, a code diet and a plan-grilling coach.

    Written by ZigmaNeural Team, Engineering

    Reviewed by Vinod Kumar and Ram