Works with the AI Agents you already use
Flask Config Security Audit
by CashonlyTian
Use when a user wants to know whether a Flask config is safe to run or ship.
$7
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
| Check | Status | Points | Finding |
|---|---|---|---|
| Secret Key | FAIL | 0/15 | SECRET_KEY is a literal string in config.py |
| Debug/Testing | FAIL | 0/15 | DEBUG = True found in .env |
| Session Cookie | PASS | 10/10 | SESSION_COOKIE_HTTPONLY is enabled |
| Host Exposure | FAIL | 0/10 | app.run(host='0.0.0.0') found in app.py |
| Flask Version | PASS | 10/10 | Flask 3.0.2 pinned in requirements.txt |
Top 3 Prioritized Fixes
- Remove Hardcoded Secrets: Move
SECRET_KEY = "***"fromconfig.pyto an environment variable. - Disable Debug Mode: Set
DEBUG=Falsein 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
.envandconfig.pyfiles. - 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
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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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