Official agent skill

Firebase APK Security Scanner

by trailofbits in trailofbits/skills

Scans Android APKs for Firebase security misconfigurations such as open databases, storage buckets, weak authentication and exposed cloud functions, for authorized testing only.

OfficialCC-BY-SA-4.0Auto-check passedSecurity

Install Firebase APK Security Scanner

skills CLI
$ npx skills add trailofbits/skills --skill firebase-apk-scanner -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install trailofbits/skills firebase-apk-scanner --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/trailofbits/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/firebase-apk-scanner/skills/firebase-apk-scanner .claude/skills/firebase-apk-scanner && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
firebase-apk-scanner
GitHub stars
7.4k
Token cost
~1.8k tokens
SKILL.md length
709 words
Files
5 (incl. references, assets)
Skills in repo
79
Repo updated
First seen
Licence
CC-BY-SA-4.0

At a glance

Scans Android APKs for Firebase security misconfigurations such as open databases, storage buckets, weak authentication and exposed cloud functions, for authorized testing only.

  • Works in 3 steps: Validate Input → Run the Scanner → Present Results
  • Auditing an Android app for Firebase security misconfigurations
  • SKILL.md covers When to Use, When NOT to Use, Rationalizations to Reject and Reference Documentation, plus 9 more sections
  • Runs Shell scripts from its folder; calls curl; reaches identitytoolkit.googleapis.com and firestore.googleapis.com; needs API_KEY

What it does

You give the agent an APK file or a folder of them. It confirms the path exists, then runs the bundled scanner.sh script, which works on Firebase endpoints found in the app. The checks cover Realtime Database, Firestore and Storage rules, authentication settings such as open signup, anonymous auth and email enumeration, and Cloud Functions that answer without authentication.

The skill states that it is for authorized security research only: it should not be pointed at apps you lack explicit permission to test, or at production Firebase projects without written permission. It also lists excuses to reject, such as a public API key or an internal-only app, and keeps a references file of vulnerability patterns. It is specific to Android; iOS and web targets are out of scope.

When your agent uses it

  • Auditing an Android app for Firebase security misconfigurations
  • Checking whether Firebase endpoints found in an APK allow unauthenticated access
  • Enumerating Cloud Functions during an authorized penetration test
  • Running a mobile security assessment of a Firebase-backed app

Example prompts

  • “Scan ./builds/app-release.apk for Firebase misconfigurations. We own this app and have approval to test it.”
  • “Check the staging build in ./apks/staging for open storage buckets and anonymous auth.”
  • “Do the Cloud Functions referenced in our own Android app accept unauthenticated calls?”

Requirements

  • apktool and curl
  • An APK file or directory to scan
  • Explicit authorization to test the target app
  • Pre-approved tools (allowed-tools): Bash({baseDir}/scanner.sh:*), Bash(apktool:*), Bash(curl:*), Read, Grep, Glob

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Validate Input
  2. Run the Scanner
  3. Present Results

What it can do on your machine

Read from SKILL.md and the folder at commit 82fe822. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash({baseDir}/scanner.sh:*)
    • Bash(apktool:*)
    • Bash(curl:*)
    • Read
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • identitytoolkit.googleapis.com
    • firestore.googleapis.com
    • firebasestorage.googleapis.com
    • firebaseremoteconfig.googleapis.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Firebase APK Security Scanner loads about 1.8k tokens when it runs, and up to ~7.1k if it reads all its reference files. Until then it costs about 88 tokens; SKILL.md has 709 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~88
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~7.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from trailofbits/skills at commit 82fe822, republished under its CC-BY-SA-4.0 licence (© trailofbits). 709 words, ~1,842 tokens.

Download SKILL.mdSave it as .claude/skills/firebase-apk-scanner/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
firebase-apk-scanner
description
Scans Android APKs for Firebase security misconfigurations including open databases, storage buckets, authentication issues, and exposed cloud functions. Use when analyzing APK files for Firebase vulnerabilities, performing mobile app security audits, or testing Firebase endpoint security. For authorized security research only.
allowed-tools
Bash({baseDir}/scanner.sh:*), Bash(apktool:*), Bash(curl:*), Read, Grep, Glob
argument-hint
apk-file-or-directory
disable-model-invocation
true

Firebase APK Security Scanner

You are a Firebase security analyst. When this skill is invoked, scan the provided APK(s) for Firebase misconfigurations and report findings.

When to Use

  • Auditing Android applications for Firebase security misconfigurations
  • Testing Firebase endpoints extracted from APKs (Realtime Database, Firestore, Storage)
  • Checking authentication security (open signup, anonymous auth, email enumeration)
  • Enumerating Cloud Functions and testing for unauthenticated access
  • Mobile app security assessments involving Firebase backends
  • Authorized penetration testing of Firebase-backed applications

When NOT to Use

  • Scanning apps you do not have explicit authorization to test
  • Testing production Firebase projects without written permission
  • When you only need to extract Firebase config without testing (use manual grep/strings instead)
  • For non-Android targets (iOS, web apps) - this skill is APK-specific
  • When the target app does not use Firebase

Rationalizations to Reject

When auditing, reject these common rationalizations that lead to missed or downplayed findings:

  • "The database is read-only so it's fine" - Data exposure is still a critical finding; PII, API keys, and business data may be leaked
  • "It's just anonymous auth, not real accounts" - Anonymous tokens bypass auth != null rules and can access "authenticated-only" resources
  • "The API key is public anyway" - A public API key does not justify open database rules or disabled auth restrictions
  • "There's no sensitive data in there" - You cannot know what data will be stored in the future; insecure rules are vulnerabilities regardless of current content
  • "It's an internal app" - APKs can be extracted from any device; "internal" apps are not protected from reverse engineering
  • "We'll fix it before launch" - Document the finding; pre-launch vulnerabilities frequently ship to production

Reference Documentation

For detailed vulnerability patterns and exploitation techniques, consult:

How to Use This Skill

The user will provide an APK file or directory: $ARGUMENTS

Workflow

Step 1: Validate Input

First, verify the target exists:

bash
ls -la $ARGUMENTS

If $ARGUMENTS is empty, ask the user to provide an APK path.

Step 2: Run the Scanner

Execute the bundled scanner script on the target:

bash
{baseDir}/scanner.sh $ARGUMENTS

The scanner will:

  1. Decompile the APK using apktool
  2. Extract Firebase configuration from all sources (google-services.json, XML resources, assets, smali code, DEX strings)
  3. Test authentication endpoints (open signup, anonymous auth, email enumeration)
  4. Test Realtime Database (unauthenticated read/write, auth bypass)
  5. Test Firestore (document access, collection enumeration)
  6. Test Storage buckets (listing, write access)
  7. Test Cloud Functions (enumeration, unauthenticated access)
  8. Test Remote Config exposure
  9. Generate reports in text and JSON format
Step 3: Present Results

After the scanner completes, read and summarize the results:

bash
cat firebase_scan_*/scan_report.txt

Present findings in this format:


Show full SKILL.md (289 more words)Show less

Scan Summary

MetricValue
APKs ScannedX
VulnerableX
Failed to scanX
No Firebase configX
Total IssuesX

Take these from failed_apks and untested_apks in scan_report.json. Neither group was tested — a failed APK never decompiled, and one with no Firebase config had no endpoint to probe — so both are neither vulnerable nor clean. Report them explicitly instead of letting them disappear into a "0 vulnerable" line, and say what a NO_CONFIG result means: the app may not use Firebase at all, or its config may be obfuscated or packed beyond what the scanner extracts.

Extracted Configuration

FieldValue
Project IDextracted_value
Database URLextracted_value
Storage Bucketextracted_value
API Keyextracted_value
Auth Domainextracted_value

Vulnerabilities Found

SeverityIssueEvidence
CRITICALDescriptionBrief evidence
HIGHDescriptionBrief evidence

Remediation

Provide specific fixes for each vulnerability found. Reference the Vulnerability Patterns for secure code examples.


Manual Testing (If Scanner Fails)

If the scanner script is unavailable or fails, perform manual extraction and testing:

Extract Configuration

Search for Firebase config in decompiled APK:

bash
# Decompile
apktool d -f -o ./decompiled $ARGUMENTS

# Find google-services.json
find ./decompiled -name "google-services.json"

# Search XML resources
grep -r "firebaseio.com\|appspot.com\|AIza" ./decompiled/res/

# Search assets (hybrid apps)
grep -r "firebaseio.com\|AIza" ./decompiled/assets/
Test Endpoints

Once you have the PROJECT_ID and API_KEY:

Authentication:

bash
# Test open signup
curl -s -X POST -H "Content-Type: application/json" \
  -d '{"email":"test@test.com","password":"Test123!","returnSecureToken":true}' \
  "https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=API_KEY"

# Test anonymous auth
curl -s -X POST -H "Content-Type: application/json" \
  -d '{"returnSecureToken":true}' \
  "https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=API_KEY"

Database:

bash
# Realtime Database read
curl -s "https://PROJECT_ID.firebaseio.com/.json"

# Firestore read
curl -s "https://firestore.googleapis.com/v1/projects/PROJECT_ID/databases/(default)/documents"

Storage:

bash
# List bucket
curl -s "https://firebasestorage.googleapis.com/v0/b/PROJECT_ID.appspot.com/o"

Remote Config:

bash
curl -s -H "x-goog-api-key: API_KEY" \
  "https://firebaseremoteconfig.googleapis.com/v1/projects/PROJECT_ID/remoteConfig"

Severity Classification

  • CRITICAL: Unauthenticated database read/write, storage write, open signup on private apps
  • HIGH: Anonymous auth enabled, storage bucket listing, collection enumeration
  • MEDIUM: Email enumeration, accessible cloud functions, remote config exposure
  • LOW: Information disclosure without sensitive data

Important Guidelines

  1. Authorization required - Only scan APKs you have permission to test
  2. Clean up test data - The scanner automatically removes test entries it creates
  3. Save tokens - If anonymous auth succeeds, use the token for authenticated bypass testing
  4. Test all regions - Cloud Functions may be deployed to us-central1, europe-west1, asia-east1, etc.
  5. Multiple instances - Some apps use multiple Firebase projects; test all discovered configurations

© trailofbits, CC-BY-SA-4.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references, assets) in plugins/firebase-apk-scanner/skills/firebase-apk-scanner of trailofbits/skills.

  • SKILL.md
  • agents/openai.yaml
  • assets/trail-of-bits-mark.svg
  • references/vulnerabilities.md
  • scanner.sh

Open the folder on GitHubat commit 82fe822

Compare with similar skills

Firebase APK Security Scanner next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Firebase APK Security Scanner compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Firebase APK Security Scanner this skilltrailofbits/skills7.4k—~1.8kAutomated safety check: PassCC-BY-SA-4.0
Offensive MobileSnailSploit/Claude-Red7.3k—~3.5kAutomated safety check: PassMIT
Exposed MigrationGerardPaligot/Confily152—~1.3kAutomated safety check: PassApache-2.0
Kotlin LintingGerardPaligot/Confily152—~708Automated safety check: PassApache-2.0
Post Edit VerificationGerardPaligot/Confily152—~1.1kAutomated safety check: PassApache-2.0
Android APK Pentesterptn1411/skill219—~917Automated safety check: PassNone

Similar skills

  • Offensive Mobile

    SnailSploit/Claude-Red

    Mobile (Android + iOS) application penetration testing methodology.

    7.3k GitHub stars~3.5k tokensUpdated 18 days ago
    SecurityAuto-check passed
  • Exposed Migration

    GerardPaligot/Confily

    A skill your agent uses when adding, removing, or modifying columns, indexes, or tables in any Exposed table object (files under infrastructure/exposed/ ending in Table.kt).

    152 GitHub stars~1.3k tokensUpdated 11 days ago
    MobileAuto-check passed
  • Kotlin Linting

    GerardPaligot/Confily

    A skill your agent uses whenever you write or modify Kotlin files in this project.

    152 GitHub stars~708 tokensUpdated 11 days ago
    MobileAuto-check passed
  • Post Edit Verification

    GerardPaligot/Confily

    Use this skill after every working session where Kotlin or Android code was created or modified, and ALWAYS before committing, opening a PR, or reporting work as done.

    152 GitHub stars~1.1k tokensUpdated 11 days ago
    MobileAuto-check passed
  • Runs a full workflow for authorized Android app security testing: static APK analysis, rooted emulator setup, traffic interception and Frida hook generation.

    219 GitHub stars~917 tokensUpdated 16 days ago
    SecurityAuto-check passed
  • Performing Dynamic Analysis Of Android App

    mukul975/Anthropic-Cybersecurity-Skills

    Performs runtime dynamic analysis of Android applications using Frida, Objection, and Android Debug Bridge to observe application behavior during execution, intercept function calls, modify runtime…

    34k GitHub stars~2.2k tokensUpdated 1 mo ago
    SecurityAuto-check: warnings

More from trailofbits/skills

All 79 skills in this repo
  • Code Graph Mermaid Diagrams

    trailofbits/skills

    Official

    Generates Mermaid diagrams from Trailmark code graphs, including call graphs, class hierarchies, module dependency maps, complexity heatmaps and attack surface data flows.

    7.4k GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • CodeQL Security Scan

    trailofbits/skills

    Official

    Scans a codebase for vulnerabilities with CodeQL's data flow and taint tracking in run-all or important-only modes, including data extensions for project-specific sources and sinks.

    7.4k GitHub stars~4.6k tokensUpdated yesterday
    Auto-check: notes
  • Trailmark Graph Evolution

    trailofbits/skills

    Official

    Compares Trailmark code graphs at two snapshots, such as commits, tags or directories, to surface attack paths, blast radius and taint changes that text diffs miss.

    7.4k GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed
  • Let Fate Decide

    trailofbits/skills

    Official

    Draws a 12 Houses tarot spread to break ties when a request is vague or casually delegated, then reads the cards to pick the next step.

    7.4k GitHub stars~2.5k tokensUpdated yesterday
    Auto-check: notes
  • Burp Suite Project Parser

    trailofbits/skills

    Official

    Searches and extracts data from Burp Suite project files on the command line: regex searches over responses, audit findings, proxy history and site map data.

    7.4k GitHub starsUsed in 4 repos~4.2k tokens
    Auto-check: notes
  • Semgrep Security Scan

    trailofbits/skills

    Official

    Detects languages, proposes rulesets for approval, then runs the approved Semgrep scan across a codebase and merges the output into one SARIF file.

    7.4k GitHub stars~3.7k tokensUpdated yesterday
    Auto-check: notes

Categories

Questions about Firebase APK Security Scanner

What does Firebase APK Security Scanner do?

Scans Android APKs for Firebase security misconfigurations such as open databases, storage buckets, weak authentication and exposed cloud functions, for authorized testing only. You give the agent an APK file or a folder of them.sh script, which works on Firebase endpoints found in the app.

When should I use Firebase APK Security Scanner?

Firebase APK Security Scanner fits situations like: auditing an Android app for Firebase security misconfigurations; checking whether Firebase endpoints found in an APK allow unauthenticated access; enumerating Cloud Functions during an authorized penetration test; running a mobile security assessment of a Firebase-backed app.

How do I install Firebase APK Security Scanner in Claude Code?

Run `npx skills add trailofbits/skills --skill firebase-apk-scanner -a claude-code`. Or copy the skill folder (plugins/firebase-apk-scanner/skills/firebase-apk-scanner in trailofbits/skills) into .claude/skills/firebase-apk-scanner in your project. Claude Code loads it when a task matches its description.

How do I install Firebase APK Security Scanner in Codex?

Run `npx skills add trailofbits/skills --skill firebase-apk-scanner -a codex`. Or copy the skill folder (plugins/firebase-apk-scanner/skills/firebase-apk-scanner in trailofbits/skills) into .agents/skills/firebase-apk-scanner in your project. Codex loads it when a task matches its description.

Can I use Firebase APK Security Scanner in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add trailofbits/skills --skill firebase-apk-scanner -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/firebase-apk-scanner, .gemini/skills/firebase-apk-scanner, .github/skills/firebase-apk-scanner and .opencode/skills/firebase-apk-scanner in your project.

What does Firebase APK Security Scanner need to run?

Going by SKILL.md and its folder, Firebase APK Security Scanner needs a shell for the scripts in its folder, the command-line tools its instructions call (curl) and credentials named API_KEY. Our summary lists: apktool and curl; An APK file or directory to scan; Explicit authorization to test the target app. Its frontmatter pre-approves these tools: Bash({baseDir}/scanner.sh:*), Bash(apktool:*), Bash(curl:*), Read, Grep, Glob.

Does Firebase APK Security Scanner access the network?

SKILL.md names 4 domains. In commands or code: identitytoolkit.googleapis.com, firestore.googleapis.com, firebasestorage.googleapis.com and firebaseremoteconfig.googleapis.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Firebase APK Security Scanner safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Firebase APK Security Scanner use?

Firebase APK Security Scanner is published under the CC-BY-SA-4.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Firebase APK Security Scanner use?

About 1.8k tokens (SKILL.md is roughly 7.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.3k tokens, read only when the agent opens those files.

What are the alternatives to Firebase APK Security Scanner?

Skills that share tags, products or a category with Firebase APK Security Scanner: Offensive Mobile (SnailSploit/Claude-Red, 7.3k stars), Exposed Migration (GerardPaligot/Confily, 152 stars), Kotlin Linting (GerardPaligot/Confily, 152 stars) and Post Edit Verification (GerardPaligot/Confily, 152 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Firebase APK Security Scanner?

trailofbits (a GitHub organization, an official publisher) maintains it in trailofbits/skills, which has 7,420 GitHub stars. The repository holds 79 skills in this directory. The repository was last updated on October 7, 2026.

Source: trailofbits/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.