fastapi-repo-security-preflight
Skill1 starsChanged 15 days agoMITView on GitHub
Automated security scanner for FastAPI repos to detect secrets, SQLi, insecure CORS, and unverified webhooks. Use when: Identify hardcoded credentials and committed .env files before deployment; Catch SQL injection vulnerabilities in raw database queries; Enforce signature verification on all FastAPI webhook endpoints.
- Reads credentials
In this repository79 other files it gives its agents.
- nex-ai-skillsSkill
- agent-checkpointSkill
- agent-ready-website-converterSkill
- kostprijs-calculatorSkill
- landing-page-conversion-auditSkill
- md-context-writerSkill
- nex-accent-contrast-extSkill
- nex-ada-web-accessibilitySkill
- nex-ai-literacy-packSkill
- nex-auto-sector-packSkill
- nex-belgian-search-trinitySkill
- nex-bom-normalizerSkill
- nex-brand-palette-liteSkill
- nex-clean-copy-extSkill
- nex-clean-page-extSkill
- nex-cold-mail-1-templateSkill
- nex-color-spy-extSkill
- nex-component-library-formatterSkill
- nex-coppa-2026-packSkill
- nex-datasheet-extractorSkill
- nex-einvoice-deSkill
- nex-einvoice-esSkill
- nex-einvoice-frSkill
- nex-einvoice-plSkill
- nex-employee-handbook-usSkill
- nex-eu-accessibility-auditSkill
- nex-eudr-due-diligenceSkill
- nex-eu-hardware-compliance-docsSkill
- nex-favv-food-packSkill
- nex-font-grab-extSkill
- nex-frame-it-extSkill
- nex-full-capture-extSkill
- nex-gdpr-deepeningSkill
- nex-govcon-capture-packSkill
- nex-grant-writer-usSkill
- nex-hipaa-small-practiceSkill
- nex-hoa-management-packSkill
- nex-iso27001-kmo-packSkill
- nex-kinderopvang-adminSkill
- nex-kmo-portefeuille-flowSkill
- nex-landbouw-adminSkill
- nex-life-loggerSkill
- nex-manufacturing-handoff-packSkill
- nex-mcp-client-deliverySkill
- nex-medical-billing-priorauthSkill
- nex-meeting-finderSkill
- nex-offerte-generatorSkill
- nex-one-sector-classifierSkill
- nex-overheidsopdrachten-tenderSkill
- nex-page-watchSkill
- nex-prompt-booster-extSkill
- nex-property-mgmt-usSkill
- nex-receipt-vaultSkill
- nex-riziv-zorgpraktijkSkill
- nex-sales-tax-nexusSkill
- nex-screencast-cleanerSkill
- nex-single-section-htmlSkill
- nex-site-trust-extSkill
- nex-syndicus-vme-packSkill
- nex-tab-cost-extSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 51
Run a security preflight audit on my FastAPI project in the /backend folder and fail if any high-severity issues are found.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
FastAPI Repo Security Preflight
Free skill by Nex AI. This file is the public guide from Agensi. Scripts, extension source, and templates from the original package are not in this folder.
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.
Example
Request
Run a security preflight audit on my FastAPI project in the /backend folder and fail if any high-severity issues are found.
Result
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).
Questions
What specific security vulnerabilities does this scanner detect?
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.
What are the technical requirements for running this security preflight?
The skill is designed for Python 3.11+ environments and is optimized for repositories using FastAPI, Pydantic, and SQLAlchemy or raw SQL drivers.
How does this compare to just asking a general AI model to review my code?
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.
Can I integrate this scanner into my existing CI/CD workflow?
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.
What is included in the purchase of this skill?
You will receive the full skill package including the scanner logic, integration instructions, and documentation on how to interpret the security reports.
Are there any known limitations to the scanning process?
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.
Built by Nex AI. More skills, including the paid catalog: https://www.agensi.io/creators/ch1n4-g3nd4x
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

