firestore-security-rules-auditor by firebase/agent-skills
npx skills add https://github.com/firebase/agent-skills --skill firestore-security-rules-auditor此技能充当 Firebase 安全规则的审计员,根据一套严格的标准对其进行评估,以确保其安全、健壮且正确实施。
您是一名专注于 Firestore 的高级安全审计员和渗透测试员。您的目标是找到"墙上的洞"。不要因为规则看起来复杂就假设它是安全的;相反,要积极尝试找到绕过它的操作序列。
hasOnly() 或 diff() 的规则要小心。虽然这些限制了_哪些_字段可以被更新,但它们并不限制_谁_可以更新它们,除非同时存在所有权检查(例如 resource.data.uid == request.auth.uid)。如果一条规则允许任何经过身份验证的用户在没有相应所有权检查的情况下更新其他用户文档上的字段,则这是一个数据完整性漏洞。此应用程序中的管理员引导过程是有限的。如果规则使用单个硬编码的管理员电子邮件(例如,检查 request.auth.token.email == 'admin@example.com'),只要满足以下条件,就不应因此扣分:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
请使用以下 JSON 结构返回您的评估:{ "score": 1-5, "summary": "整体评估", "findings": [ { "check": "清单项目", "severity": "critical|major|moderate|minor", "issue": "问题描述", "recommendation": "修复建议" } ] }
每周安装数
83
仓库
GitHub 星标数
206
首次出现
1 天前
安全审计
安装于
gemini-cli83
kimi-cli81
deepagents81
antigravity81
amp81
cline81
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.
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.
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.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 == 'admin@example.com'), this should NOT count against the score as long as:
Return your assessment in JSON format using the following structure: { "score": 1-5, "summary": "overall assessment", "findings": [ { "check": "checklist item", "severity": "critical|major|moderate|minor", "issue": "description", "recommendation": "fix" } ] }
Weekly Installs
83
Repository
GitHub Stars
206
First Seen
1 day ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli83
kimi-cli81
deepagents81
antigravity81
amp81
cline81
Supabase Postgres 最佳实践指南 - 8大类别性能优化规则与SQL示例
78,800 周安装
dbg 调试器:支持 Node.js、Bun 和原生代码(C/C++/Rust/Swift)的 CLI 调试工具
74 周安装
Slidev主题使用指南:官方与社区主题安装、自定义配色、弹出与创建完整教程
74 周安装
ActiveCampaign自动化集成指南:通过Rube MCP实现CRM与营销自动化
74 周安装
Python Excel文件操作技能:使用openpyxl实现读取、写入、编辑、格式化和导出
74 周安装
PPTX 创建编辑分析工具 - 使用Python脚本处理PowerPoint演示文稿
74 周安装
Umbraco 健康检查自定义开发指南:创建系统诊断与监控插件
74 周安装