Works with the AI Agents you already use
Firebase Security Rules Audit
by CashonlyTian
Shipping a Firebase app with permissive rules is a common way to leak an entire database to the public.
$7
Firebase Security Rules Audit
Example session with this skill installed
Audit the Firebase project in the 'acme-pay-mobile' folder. Use the project name 'Acme Pay Prod' and my brand 'Acme Security'.
- Read your context and instructions
- Compiled the firebase security rules
The audit for
Acme Pay Prod is complete. The project received a
Grade F with a
CRITICAL risk level. I found 14 findings, including 4 critical vulnerabilities where database paths are open to the public without authentication.
Audit Summary: Acme Pay Prod
| Check | Score | Status |
|---|---|---|
| Public Access | 0/15 | CRITICAL: allow read, write: if true detected |
| Auth Required | 5/15 | HIGH: Multiple rules missing request.auth checks |
| User Scoping | 15/15 | PASS |
| Sensitive Collections | 0/10 | CRITICAL: /users and /payments are public |
| Test Mode Expiry | 10/10 | PASS |
| Write Validation | 0/10 | HIGH: No request.resource.data validation |
| Storage Uploads | 5/5 | PASS |
| Service Accounts | 5/5 | PASS: No keys found |
| Rules Version | 5/5 | PASS: version 2 enabled |
| Rule Coverage | 4/10 | MEDIUM: 3 collections in client code lack rules |
Total Score: 49/100
Top 3 Prioritized Fixes
Remove Public Access: In firestore.rules, replace match /{document=**} { allow read, write: if true; } with specific collection matches and auth requirements.
2.
Lock Sensitive Data: Update the match /payments/{paymentId} block to require request.auth.uid matches the document owner.
3.
Add Schema Validation: Use hasAll(), is string, and size() checks on the create and update rules for the orders collection.
Next steps
- Open
scan-report.mdto see the exact line numbers for the 14 findings. - Apply the top 3 fixes to your
firestore.rulesfile. - Re-run the audit to update your security score-card.
Connects securely to your tools. The creator never sees your data.
About this skill
Shipping a Firebase app with permissive rules is a common way to leak an entire database to the public. This skill audits your local project files to identify security holes before you deploy.
What it does
- Security scoring calculates a 0-100 grade and risk level based on 10 critical security checks.
- Rule analysis detects public access, missing authentication checks, and unscoped per-user paths in Firestore, Storage, and Realtime Database.
- Validation checking flags missing data validation rules for writes and unbounded Storage uploads.
- Secret detection scans for committed service account keys while ensuring sensitive values are masked in reports.
- Coverage mapping verifies that every collection used in your client code is protected by a corresponding rule.
- Visual reporting generates a shareable score-card PNG and a prioritized Markdown fix report.
How it works
- Name the local directory containing your Firebase project files.
- The skill runs a local python scanner to analyze your rules and client code without calling the Firebase API.
- Review the generated PNG score-card and Markdown report for critical and high-severity findings.
- Apply the prioritized fixes to your rules and re-scan to confirm the improved security grade.
Frameworks & tools
Works with Firebase projects using Firestore, Realtime Database, and Firebase Storage. Supports client code written in JavaScript, TypeScript, Dart, Swift, Kotlin, and Java.
Why this beats prompting it yourself
Manual prompts often miss edge cases like nested match blocks or unvalidated writes in Realtime Database. This tool uses a systematic 10-point check system to ensure no collection or service is left uncovered.
Use cases
- Audit a new Firebase project before the initial production deployment.
- Review security rules generated by other AI agents to ensure they are safe.
- Onboard a third-party Firebase project and identify immediate technical debt.
- Generate security score-cards for client handovers or internal compliance reviews.
Known limitations
Does not check live deployed rules via the Firebase API. Collection names defined by variables in client code cannot be resolved for coverage checks. Rules files over 2 MB are skipped.
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.
Audits local files only, not live deployments. Cannot resolve collection names stored in variables. Skips files over 2MB. Validates RTDB rules strictly at the write node.
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 4 days ago
- Software
Python 3Pillow