Works with the AI Agents you already use

    Fastapi Repo Security Preflight

    by Nex AI

    5

    Automated security scanner for FastAPI repos to detect secrets, SQLi, insecure CORS, and unverified webhooks.

    Free

    4 usesSecurity scanned
    fastapi-repo-security-preflight

    fastapi-repo-security-preflight

    Example session with this skill installed

    Run a security preflight audit on my FastAPI project in the /backend folder and fail if any high-severity issues are found.

    • Read your context and instructions
    • Compiled the fastapi-repo-security-preflight

    Scan complete for /backend. Findings:

    • CRITICAL: Hardcoded Postgres URL found in config.py
    • HIGH: Webhook at /api/v1/stripe missing signature verification
    • HIGH: CORS allow_origins=["*"] with allow_credentials=True
      Result: Failed (3 high/critical issues).

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

    About this skill

    The problem

    Manual security audits for FastAPI applications are slow and error-prone. Developers frequently ship code with hardcoded secrets, insecure CORS headers, or unverified webhooks that lead to production vulnerabilities.

    What it does

    • Scans code for hardcoded API keys, tokens, and database credentials using AST analysis.
    • Detects insecure FastAPI configurations including debug mode, permissive CORS, and broad network binds.
    • Identifies SQL injection risks in f-strings and unparameterized execute calls.
    • Validates webhook implementations for missing HMAC or signature verification.
    • Audits route handlers to ensure Pydantic models are used instead of raw JSON requests.

    Frameworks & tools

    FastAPI, Python 3.11+, Pydantic, Uvicorn, and SQL databases using SQLAlchemy or raw SQL drivers.

    Why this beats prompting it yourself

    General LLM prompts often miss subtle context-specific vulnerabilities or produce hallucinations. This skill uses deterministic AST scanning to ensure 100% coverage of your codebase without the token costs or privacy risks of sending your entire repo to an external API.

    Use cases

    • Running pre-deployment checks to block insecure code from hitting production.
    • Auditing legacy FastAPI repositories for hidden secrets or raw SQL injections.
    • Integrating into CI/CD pipelines to enforce security standards automatically.
    • Ensuring webhook endpoints are properly protected by signature verification.

    Known limitations

    Requires Python 3.11 or higher. Scans are limited to static analysis and may not catch vulnerabilities hidden in dynamic string evaluations.

    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

    4 uses

    Times used to date

    Free to use

    No account required to browse

    Frequently Asked Questions

    This skill uses deterministic AST analysis to scan for hardcoded secrets, SQL injection risks in f-strings, insecure CORS policies, and unverified webhook signatures specifically within FastAPI applications.

    The skill is designed for Python 3.11+ environments and is optimized for repositories using FastAPI, Pydantic, and SQLAlchemy or raw SQL drivers.

    Unlike general LLMs that may hallucinate or miss context, this skill uses static analysis to provide 100% code coverage without the privacy risks or token costs associated with sending your entire codebase to an external API.

    Yes, the skill is built for automation and can be integrated into your CI/CD pipeline to act as a quality gate, blocking insecure code from being deployed to production.

    You will receive the full skill package including the scanner logic, integration instructions, and documentation on how to interpret the security reports.

    Static analysis may not detect vulnerabilities hidden in complex dynamic string evaluations, so we recommend using this as a primary shield alongside standard runtime testing.

    New in Security

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.

    Free