firebase-security-rules-auditor

firebase-security-rules-auditor is a skill for Claude Code from firebase/agent-skills. It costs 94 tokens per session (898 once invoked), scanned A, original, Apache-2.0.

A security review guide for Firebase Firestore and Cloud Storage rules. These rules control who can access data and which operations they can perform.

In plain words
What is it for?
Use it to audit rules, test whether users can bypass restrictions, check create and update behavior, and assess whether the rules match the application’s intended access model.
Why use it?
It looks for privilege escalation, role bypasses, unsafe updates, resource exhaustion, type problems, size-limit gaps, and ownership-check errors.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the firebase plugin — 14 skills, 1 agent, 1 MCP server shipped together

Good fit Use it to audit rules, test whether users can bypass restrictions, check create and update behavior, and assess whether the rules match the application’s intended access model.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/firebase/agent-skills/firebase-security-rules-auditor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add firebase/agent-skills --skill firebase-security-rules-auditor
Clone the repo
git clone --depth 1 https://github.com/firebase/agent-skills

Made for: Claude Code.

Or install firebase, the plugin that ships this one along with the rest of its 14 skills, 1 agent, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for firebase-security-rules-auditor

README.md
[![agentmods](https://agentmods.dev/badge/skills/firebase/agent-skills/firebase-security-rules-auditor/github.svg)](https://agentmods.dev/skills/firebase/agent-skills/firebase-security-rules-auditor)
Your own site
<a href="https://agentmods.dev/skills/firebase/agent-skills/firebase-security-rules-auditor"><img src="https://agentmods.dev/badge/skills/firebase/agent-skills/firebase-security-rules-auditor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for firebase-security-rules-auditor

Your own site · 80×15
<a href="https://agentmods.dev/skills/firebase/agent-skills/firebase-security-rules-auditor"><img src="https://agentmods.dev/badge/skills/firebase/agent-skills/firebase-security-rules-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 898 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 9 Oct 2026
  • Snyk pass 9 Oct 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00094 $0.00898
Opus 5.5 $0.00038 $0.00359
Sonnet 5.5 $0.00019 $0.00180
Haiku 4.5 $0.00009 $0.00090

Measured 1mo ago against content hash 6522cd9e61ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

firebase-security-rules-auditor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/firebase-security-rules-auditor/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Overview

This skill acts as an auditor for Firebase Security Rules, evaluating them against a rigorous set of criteria to ensure they are secure, robust, and correctly implemented.

Scoring Criteria

Assessment: Security Validator (Red Team Edition)

You are a Senior Security Auditor and Penetration Tester specializing in Firestore. Your goal is to find "the hole in the wall." Do not assume a rule is secure because it looks complex; instead, actively try to find a sequence of operations to bypass it.

Mandatory Audit Checklist:

  1. The Update Bypass: Compare 'create' and 'update' rules. Can a user create a valid document and then 'update' it into an invalid or malicious state (e.g., changing their role, bypassing size limits, or corrupting data types)?
  2. Authority Source: Does the security rely on user-provided data (request.resource.data) for sensitive fields like 'role', 'isAdmin', or 'ownerId'? Carefully consider the source for that authority.
  3. Business Logic vs. Rules: Does the rule set actually support the app's purpose? (e.g., In a collaboration app, can collaborators actually read the data? If not, the rules are "broken" or will force insecure workarounds).
  4. Storage Abuse: Are there string length or array size limits? If not, label it as a "Resource Exhaustion/DoS" risk.
  5. Type Safety: Are fields checked with 'is string', 'is int', or 'is timestamp'?
  6. Field-Level vs. Identity-Level Security: Be careful with rules that use hasOnly() or diff(). While these restrict which fields can be updated, they do NOT restrict who can update them unless an ownership check (e.g., resource.data.uid == request.auth.uid) is also present. If a rule allows any authenticated user to update fields on another user's document without a corresponding ownership check, it is a data integrity vulnerability.

Admin Bootstrapping & Privileges:

The admin bootstrapping process is limited in this app. If the rules use a single hardcoded admin email (e.g., checking request.auth.token.email == '[email protected]'), this should NOT count against the score as long as:

Read the full file on GitHub · 86 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 6522cd9e61ca
  2. 1mo ago Changed · +1 lines 8435af341100
  3. 2mo ago Changed · +11 lines d91963549e62
  4. 3mo ago First seen · 74 lines · 94 tokens per session scan A 68d93d5baa81

Subscribe to this mod's changes

firebase-security-rules-auditor is a skill published in the GitHub repository firebase/agent-skills (533 stars, last pushed 21d ago), licensed Apache-2.0. It adds 94 tokens to every session and 898 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

firebase-security-rules-auditor compared with skills from other repositories

firebase-security-rules-auditor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
firebase-security-rules-auditorfirebase/agent-skillsSkill53321d agoApache-2.0A94Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code