Works with the AI Agents you already use
Laravel Config Security Audit
by CashonlyTian
Use when a user wants to know whether a Laravel config is safe to run or ship.
$7
Laravel Config Security Audit
Example session with this skill installed
Run a security audit on my Laravel project located at ./my-web-app and use #2ecc71 for the accent color on the score-card.
- Read your context and instructions
- Compiled the laravel config security
- Generated the document
I have completed the security audit for
my-web-app. The scan analyzed your configuration files, environment variables, and middleware settings without executing any code.
The project received a Grade: C with a Risk Level: Moderate and a score of 70/100.
Laravel Security Audit Report
| Check | Status | Score |
|---|---|---|
| Debug Mode | FAIL (APP_DEBUG=true in production) | 0/10 |
| Application Key | PASS (Securely set in .env) | 10/10 |
| Session Security | PASS (HttpOnly/Secure enabled) | 10/10 |
| CORS Policy | FAIL (Wildcard origin with credentials) | 0/10 |
| Trusted Proxies | FAIL (Wildcard proxies allowed) | 0/10 |
| Config Credentials | PASS (No literals detected) | 10/10 |
| Mail Encryption | PASS (TLS enabled) | 10/10 |
| Debug Tools | PASS (Telescope/Debugbar disabled) | 10/10 |
| Sanctum Stateful | PASS (Named domains only) | 10/10 |
| Version & Protocol | PASS (Laravel 10.x + HTTPS) | 10/10 |
Top 3 Prioritized Fixes
Disable Debug Mode: Set APP_DEBUG=false in your .env file and ensure config/app.php references the env variable.
2.
Restrict CORS Origins: Change allowed_origins in config/cors.php from ['*'] to specific trusted domains when supports_credentials is true.
3.
Configure Trusted Proxies: Edit app/Http/Middleware/TrustProxies.php to list specific IP addresses instead of using * for $proxies.
Files Generated:
- Report:
scan-report.md - Score-card:
scan-2023-11-15.png
Next steps
- Apply the top 3 fixes to resolve the 30-point deficit.
- Re-run the scan to verify the new security score.
- Review the full
scan-report.mdfor specific line references of the findings.
scan-2023-11-15.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 Laravel config (config/.php, parsed as TEXT with regex — never imported or executed, no PHP is ever run) plus app/Http/Middleware/TrustProxies.php, .env and composer.json before the app ships — APP_DEBUG=true in production, a missing / placeholder / literal APP_KEY, insecure session cookies (Secure / HttpOnly / SameSite / encrypt off), CORS with supports_credentials and [''] origins, TrustProxies $proxies = '*' (any proxy can spoof X-Forwarded-For), literal database / Redis / mail passwords in config (always masked to **), mail with no encryption / log mailer in production / example.com sender, Telescope / Debugbar enabled or APP_ENV=local with APP_DEBUG=true, Sanctum stateful domains of '' or a public-suffix wildcard, and a laravel/framework version below 10.0.0 or unpinned, plus a cleartext APP_URL. 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 Laravel 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.
Supports Laravel only. No live dependency CVE scanning or network testing. Skips files >2MB and vendor/node_modules folders. Requires local file access.
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