Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Firebase Security Rules Audit

    by CashonlyTian

    1

    Shipping a Firebase app with permissive rules is a common way to leak an entire database to the public.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Firebase Security Rules Audit

    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

    CheckScoreStatus
    Public Access0/15CRITICAL: allow read, write: if true detected
    Auth Required5/15HIGH: Multiple rules missing request.auth checks
    User Scoping15/15PASS
    Sensitive Collections0/10CRITICAL: /users and /payments are public
    Test Mode Expiry10/10PASS
    Write Validation0/10HIGH: No request.resource.data validation
    Storage Uploads5/5PASS
    Service Accounts5/5PASS: No keys found
    Rules Version5/5PASS: version 2 enabled
    Rule Coverage4/10MEDIUM: 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.md to see the exact line numbers for the 14 findings.
    • Apply the top 3 fixes to your firestore.rules file.
    • 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

    1. Name the local directory containing your Firebase project files.
    2. The skill runs a local python scanner to analyze your rules and client code without calling the Firebase API.
    3. Review the generated PNG score-card and Markdown report for critical and high-severity findings.
    4. 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. 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 4 days ago

    Software
    Python 3Pillow

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed4 days ago

    What's inside

    Frequently Asked Questions

    This skill performs a local static analysis of your Firebase configuration files, meaning it scans your code and rules without requiring sensitive API keys or live database access. This ensures your data remains private while allowing you to catch leaks before they are deployed to production.

    The skill is compatible with JavaScript, TypeScript, Dart, Swift, Kotlin, and Java client code. It maps collection usage in these languages against your Firestore, RTDB, and Storage rules to ensure no data path is left unprotected.

    You will receive the AI skill package, a local Python-based scanning engine, and templates for both the visual PNG score-card and the Markdown fix report. It includes everything needed to generate professional security audits for internal use or client handovers.

    Yes, this skill is specifically designed to act as a "security gate" for code generated by other AI tools. It systematically verifies that AI-generated rules haven't included overly permissive 'allow read, write: if true;' statements or missed critical nested match blocks.

    The skill can handle rule files up to 2 MB in size, which covers the vast majority of enterprise Firebase projects. Note that it cannot resolve collection names if they are defined as dynamic variables within your client-side code.

    New in LLM Ops