Skip to content
SkillScript-led1,353 tokens in use

firebase-apk-scanner

Decompiles Android APKs, extracts their Firebase configuration and probes the backend for open databases, storage, auth and functions.

8,319 stars on the repository CC-BY-SA-4.0trailofbits/skills · plugins/firebase-apk-scanner/skills/firebase-apk-scanner
/plugin marketplace add trailofbits/skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing firebase-apk-scanner costs

59tokens idle
1,353tokens in use
6,993tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Script-led

Script-ledMixedModel-led

Most of this skill is scripts, so it behaves much the same whichever model runs it.

This describes the skill's structure, how much of it is scripts. It does not say how well it works. Scripts: scanner.sh.

Touches

shelldeclared and detectednetworkdetectedwrites filesdetected

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Excellent
  • Frontmatter12/15
  • Structure23/25
  • Examples12/15
  • Output15/15
  • Size15/15
  • Resources7/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent
  • Runs shell commands−2

    does this on the machine, as the frontmatter declares

    SKILL.md, line 58
  • Reaches the network−10

    does this on the machine, and the frontmatter does not say so

    scanner.sh, line 70
  • Writes files−8

    does this on the machine, and the frontmatter does not say so

    scanner.sh, line 88

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity100
  • Maintenance52
  • Community64
  • Maturity32
  • Momentum40

Firebase APK Scanner runs a bundled shell script on one APK or a folder of them. The script decompiles each app with apktool, pulls the Firebase settings out of every place they can hide, and tests the backend for misconfigurations: authentication, Realtime Database, Firestore, Storage buckets, Cloud Functions and Remote Config.

The agent then reads the JSON and text reports and presents a summary, the extracted configuration, vulnerabilities with severity, and fixes. It is meant for authorized security research only, and it is set to run only when you invoke it.

What You Get

  • A scan summary with counts of vulnerable, failed and untested APKs
  • The extracted Firebase configuration: project ID, database URL, storage bucket, API key and auth domain
  • Findings graded critical, high, medium and low with brief evidence
  • Remediation advice for each finding, backed by a vulnerability patterns reference
  • A manual testing fallback for cases where the scanner writes no report

Common Use Cases

  • Mobile app security assessments of Firebase-backed Android apps
  • Checking an app you own for open database rules before release
  • Testing for open signup, anonymous auth and email enumeration
  • Enumerating Cloud Functions for unauthenticated access in an authorized penetration test

What Makes It Unique

Most mobile audit skills stop at reading configuration. This one goes on to test the live Firebase endpoints, and it reports what it could not test so that a failed or config-less APK is never shown as a clean result. It states its limits up front: Cloud Functions are probed only in us-central1, and auth, functions and Remote Config are tested only for the first project ID and key found. It also carries a list of rationalizations to reject, such as “the API key is public anyway”.

Under The Hood

The skill runs a 50 KB bundled shell script, scanner.sh, and is allowed to use apktool and curl. The script decompiles APKs, then sends requests over the network to the Firebase endpoints it extracted: it reads and writes test entries in databases and storage and removes them afterwards, tries signups, and probes functions and Remote Config. It writes report files to a results folder in the current directory. The skill is marked so that the model does not start it on its own, and it must only be pointed at apps you are authorized to test.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers