Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Flask Config Security Audit

    by CashonlyTian

    1

    Use when a user wants to know whether a Flask config is safe to run or ship.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Flask Config Security Audit

    Flask Config Security Audit

    Example session with this skill installed

    Audit the Flask security configuration for my project in the ./backend folder. Project name is "Storefront API".

    • Read your context and instructions
    • Compiled the flask config security
    • Generated the document

    The security audit for

    Storefront API is complete. I have analyzed your configuration files, environment variables, and dependency pins.

    Flask Security Audit Results

    Score: 65/100
    Grade: D
    Risk Level: HIGH

    CheckStatusPointsFinding
    Secret KeyFAIL0/15SECRET_KEY is a literal string in config.py
    Debug/TestingFAIL0/15DEBUG = True found in .env
    Session CookiePASS10/10SESSION_COOKIE_HTTPONLY is enabled
    Host ExposureFAIL0/10app.run(host='0.0.0.0') found in app.py
    Flask VersionPASS10/10Flask 3.0.2 pinned in requirements.txt

    Top 3 Prioritized Fixes

    1. Remove Hardcoded Secrets: Move SECRET_KEY = "***" from config.py to an environment variable.
    2. Disable Debug Mode: Set DEBUG=False in your production environment to prevent sensitive traceback exposure.

    Restrict Host Binding: Change your application binding from 0.0.0.0 to 127.0.0.1 and use a production WSGI server like Gunicorn.

    Files generated:

    • scan-2023-10-27.png (Visual Scorecard)
    • scan-report.md (Detailed Findings)

    Next steps

    • Apply the top 3 fixes to your .env and config.py files.
    • Run the audit again to verify your score has improved.
    • Ensure your production environment uses a real WSGI server instead of app.run().

    scan-2023-10-27.png

    PDF · document

    Generated

    Example file from a real run - the skill writes it into your workspace.

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

    About this skill

    Audit a project's Flask config (config.py / settings.py / app.py / wsgi.py / application.py / factory.py, parsed as text — never imported or executed) plus .env / .flaskenv and requirements.txt / pyproject.toml before the app ships — a literal SECRET_KEY / JWT_SECRET_KEY / SECURITY_PASSWORD_SALT in source code (always masked to **), DEBUG / TESTING True or app.run(debug=True), session cookies without Secure / HttpOnly, a session lifetime over 7 days, app.run(host='0.0.0.0') or FLASK_RUN_HOST=0.0.0.0, an unbounded or web-root upload folder, template debugging on, Flask-CORS origins '', literal passwords in database / broker / mail URIs (always masked), and a Flask version below 3.0 (end of life). Scores 10 checks 0-100 with a grade and risk level, and produces a shareable score-card image plus a prioritised fix report. Use when a user wants to know whether a Flask config is safe to run or ship.

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

    Analyzes local files only. Does not audit live endpoints, Django, or Javascript configs. Skips files over 2MB and common directories like node_modules or virtualenvs.

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

    Software
    Python 3Pillow

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Environment Variables
    Listed2 days ago

    What's inside

    Frequently Asked Questions

    The skill performs a static analysis of your source code and environment files to detect vulnerabilities like hardcoded credentials, active debuggers, and insecure cookie flags before you deploy to production.

    No, this is a static configuration audit. It parses files as text to identify structural vulnerabilities without executing your code, ensuring your local environment remains secure during the scan.

    The skill scans standard Flask project files including `app.py`, `config.py`, `.env`, and dependency manifests like `requirements.txt` to ensure both settings and library versions are secure.

    You will receive a detailed Markdown report (`scan-report.md`) with prioritized fixes and a visual scorecard (`scan-YYYY-MM-DD.png`) that assigns a 0-100 security grade for easy reporting.

    This skill is specifically optimized for Flask 3.x and common extensions like Flask-JWT-Extended or Flask-CORS, and it will flag risks if you are using older, unsupported Flask versions.

    This skill is designed to work with any AI agent that has local file system access, allowing it to read your configuration files and generate the report and image assets locally.

    New in LLM Ops