Skills Explorer Add Skills

firebase-apk-scanner

An agent skill by trailofbits, from trailofbits/skills. Tags: analysis, android, cloud, mobile, security.

What it does

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.

Install

With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:

npx skills add trailofbits/skills --skill firebase-apk-scanner

Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):

git clone --depth 1 https://github.com/trailofbits/skills
cp -r skills/plugins/firebase-apk-scanner/skills/firebase-apk-scanner ~/.claude/skills/firebase-apk-scanner

Safety box score

Grade C, moderate risk: 44 of 100 risk points, rated 2026-10-15. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.

This skill is a shell-based APK scanner that decompiles Android apps and probes Firebase endpoints for Auth, Realtime Database, Firestore, Storage, Cloud Functions, and Remote Config issues. Its main risks are outbound network activity and automatic remote-side effects: it can create/delete test accounts and write/delete test data against live Firebase backends, while also saving extracted config and tokens to disk.

Category levels, from 0 (none) to 3 (high)
CategoryLevelWhy
Code & shell execution2 (moderate)`scanner.sh` is executable code that runs `apktool`, `curl`, `jq`, `grep`, `unzip`, `sed`, `awk`, and `strings` over user-supplied APKs.
Network access2 (moderate)It makes outbound requests to Google/Firebase APIs such as `identitytoolkit.googleapis.com`, `firestore.googleapis.com`, `firebasestorage.googleapis.com`, and `firebaseremoteconfig.googleapis.com`.
Filesystem reach1 (low)It writes reports under `firebase_scan_*`, decompiles APKs into a working directory, and removes only its own temp paths with `rm -rf "$DECOMPILED_DIR"` and `rm -rf "$dex_dir"`.
Secrets & credentials2 (moderate)The scanner extracts Firebase API keys/config and writes generated auth tokens to disk, e.g. `echo "ID_TOKEN:$id_token" >>"$result_file"` and copies `firebase_config.json` into results.
Privilege & persistence1 (low)The skill itself does not require sudo or system changes, but `scanner.sh` tells users to install dependencies with `brew install ...` or `sudo apt install ...`.
Instruction hijack surface0 (none)The files contain authorization caveats and testing guidance, but no instructions to ignore higher-level rules, fetch remote instructions, or hide actions from the user.
Irreversible actions3 (high)Running the scanner automatically creates/deletes remote Firebase accounts and writes/deletes test data without further confirmation, using endpoints like `accounts:signUp`, RTDB `PUT`, Firestore `POST`, and Storage upload/delete.
Transparency0 (none)All operational logic is visible in plain shell/Markdown; there are no binaries, packed payloads, or unpinned remote installers.

Before installing

Rated 2026-10-15 by an automated review of 6 files from the skill's repository.

Source

Repository
trailofbits/skills (all skills from this repository)
Path
plugins/firebase-apk-scanner/skills/firebase-apk-scanner/SKILL.md
Branch
main
Collection
firebase-apk-scanner
Updated
2026-09-19