Security review assistant for Firebase rules, App Check enforcement, and sensitive data exposure.
Install
mkdir -p .claude/skills/firebase-security-review && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14707" && unzip -o skill.zip -d .claude/skills/firebase-security-review && rm skill.zipInstalls to .claude/skills/firebase-security-review
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Audit this Firebase + Vue app for security issues before deploy. Use when asked to "security review", "セキュリティレビュー", "安全性チェック", "デプロイ前チェック", "脆弱性チェック", or after changing rules / functions / auth. Covers Firestore & Storage rules, App Check enforcement, exposed secrets, callable-function auth guards, and hosting / CSP headers. Reports findings with severity, file:line, and a concrete fix.Key capabilities
- →Audit Firestore and Storage security rules
- →Verify App Check enforcement in callable functions
- →Scan for exposed secrets in the codebase
- →Check function authorization and input validation
- →Review hosting and Content Security Policy (CSP) headers
- →Audit frontend code for XSS and auth guards
How it works
The skill systematically audits specified areas of a Firebase + Vue application, checking for common security vulnerabilities and misconfigurations.
Inputs & outputs
When to use firebase-security-review
- →Pre-deployment security audit
- →Reviewing Firestore security rules
- →Checking for hardcoded API keys
About this skill
Firebase security review
Audit the surfaces below. For each finding report severity (High / Med / Low), file:line,
why it matters, and the concrete fix. Verify claims against the code — do not assume.
1. Firestore & Storage rules (firestore.rules, storage.rules)
- Default-deny catch-all present and last? Any
if true/ unauthenticated writes to real data? - Per-user data gated on
request.auth.uid? Write payloads validated (hasOnly, type/size)? - Storage scoped per path, or a blanket
if request.auth != nullover{allPaths=**}? (deep-dive with the firestore-rules skill).
2. App Check
- Callables should enforce App Check — either the
enforceAppCheck: trueoption, or a manual guard that rejects un-attested calls:
Confirm eachif (request.app == undefined) { throw new HttpsError("failed-precondition", "…App Check verified app."); }onCallinfunctions/src/wrappers/enforces this. Without it, callables are reachable by anything holding the public config.
3. Secrets vs. public config
src/config/project.tsfirebaseConfig is public web config — not a leak. Don't flag it.- DO flag: service-account JSON, private keys, API secrets, or tokens committed anywhere, or
secrets hardcoded in
functions/instead of Cloud Secret Manager (defineSecretfromfirebase-functions/params). Grep forPRIVATE KEY,secret,token,.jsoncredential files.
4. Function authorization & input
- Every
onCallthat touches user data must checkrequest.authbefore acting — a signed-out or wrong user must not read/write another's data. - HTTP servers (
functions/functions/server/*hono/express) exposed via hosting rewrites (/api/*,/hono_api/*,/v2_api/*): validate/authorize each route; don't trust the body. - Set sane resource limits in the function options (
maxInstances,timeoutSeconds,memory) to cap abuse/cost.
5. Hosting headers (firebase.json)
- Confirm CSP
frame-ancestors 'none',X-Frame-Options: deny,X-Content-Type-Options: nosniff,Referrer-Policy: no-referrerare still present onsource: "**".
6. Frontend
- No
v-html(XSS); no secrets in client code; auth guards (requireLogin) actually block protected views rather than only hiding UI.
7. Dependencies
yarn npm audit(root andfunctions/) for known-vulnerable packages; note Dependabot alerts.
Output
Group findings by severity, most severe first. If clean, say so explicitly and list what was
checked. Recommend the exact deploy scope for any fix
(firebase deploy --only firestore:rules etc.).
When not to use it
- →When performing static code quality audits unrelated to security
- →When debugging backend agent issues
Limitations
- →Does not perform static code quality audits
- →Does not debug backend agent issues
- →Does not troubleshoot bot platform issues
How it compares
This skill provides a structured, multi-faceted security review specific to Firebase + Vue applications, covering rules, App Check, secrets, and frontend, unlike a generic code scanner.
Compared to similar skills
firebase-security-review side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| firebase-security-review (this skill) | 0 | 1mo | No flags | Intermediate |
| data-safety-auditor | 3 | 7mo | No flags | Advanced |
| xss-scan | 0 | 6mo | Review | Beginner |
| 1password | 27 | 3mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
data-safety-auditor
ananddtyagi
Comprehensive data safety auditor for Vue 3 + Pinia + IndexedDB + PouchDB applications. Detects data loss risks, sync issues, race conditions, and browser-specific vulnerabilities with actionable remediation guidance.
xss-scan
itsimonfredlingjack
You are a frontend security specialist focusing on Cross-Site Scripting (XSS) vulnerability detection and prevention. Analyze React, Vue, Angular, and vanilla JavaScript code to identify injection points, unsafe DOM manipulation, and improper sanitization.
1password
openclaw
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.
security-compliance
davila7
Guides security professionals in implementing defense-in-depth security architectures, achieving compliance with industry frameworks (SOC2, ISO27001, GDPR, HIPAA), conducting threat modeling and risk assessments, managing security operations and incident response, and embedding security throughout the SDLC.
information-security-manager-iso27001
davila7
Senior Information Security Manager specializing in ISO 27001 and ISO 27002 implementation for HealthTech and MedTech companies. Provides ISMS implementation, cybersecurity risk assessment, security controls management, and compliance oversight. Use for ISMS design, security risk assessments, control implementation, and ISO 27001 certification activities.
cursor-sso-integration
jeremylongshore
Configure SSO and enterprise authentication in Cursor. Triggers on "cursor sso", "cursor saml", "cursor oauth", "enterprise cursor auth", "cursor okta". Use when working with cursor sso integration functionality. Trigger with phrases like "cursor sso integration", "cursor integration", "cursor".