Skip to content
Security
Command

/scan-apk

Scans Android APKs for Firebase security misconfigurations

From plugin
trailofbits-skills
7.9k8 skills30 agents8 commands1 MCP
> /plugin marketplace add trailofbits/skills

Command definition

scan-apk.md
description: Scans Android APKs for Firebase security misconfigurations
argument-hint: "<apk-file-or-directory>"
allowed-tools: Bash Read Grep Glob

Scan APK for Firebase Misconfigurations

**Arguments:** $ARGUMENTS

Parse the APK file or directory from the arguments. If empty, ask the user for the path.

This command is the entry point for a Firebase APK scan. The `firebase-apk-scanner` skill sets `disable-model-invocation: true`, so it cannot be invoked as a skill from here. Read its workflow file and follow it directly.

Resolve the plugin root, then confirm the skill's workflow and scanner are present. The `ls` echoes the expanded absolute paths, which is how you learn the value to use below:

ls "${CLAUDE_PLUGIN_ROOT}/skills/firebase-apk-scanner/SKILL.md" \
   "${CLAUDE_PLUGIN_ROOT}/skills/firebase-apk-scanner/scanner.sh"

If that fails (under Codex `CLAUDE_PLUGIN_ROOT` is unset, so the paths collapse to `/skills/...`), search for the plugin instead:

find ~/.claude ~/.codex . -path '*/plugins/firebase-apk-scanner/skills/firebase-apk-scanner/scanner.sh' -print -quit 2>/dev/null

Strip the trailing `/skills/firebase-apk-scanner/scanner.sh` to get the root. If neither resolves, **stop** and report the paths searched — do not continue with an empty root.

Then read `<root>/skills/firebase-apk-scanner/SKILL.md` and carry out its workflow against the parsed path. Within that workflow, `{baseDir}` is `<root>/skills/firebase-apk-scanner`, so `{baseDir}/scanner.sh` is the scanner confirmed above. `$ARGUMENTS` appears throughout that file as literal text, not a shell variable — substitute the path you parsed above wherever it occurs, and never run a command with a bare `$ARGUMENTS` still in it.

Read more
@trailofbits
Ships withtrailofbits-skills

Trail of Bits skills and plugins for AI-assisted security analysis, testing, and development. Install this marketplace in Claude Code or Codex, or import it into your ChatGPT workspace marketplace.

7.9k95 skills30 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
7.9k
Star history of trailofbits/skills on GitHub, a chart by star-history.com

Other commands on trailofbits-skills.

git-cleanup

git-cleanup

Command

Safely analyzes and cleans up local git branches and worktrees, categorizing them as merged, squash-merged, superseded, or active…

audit

audit

Command

Audit a file, directory, or whole repo for insecure default configuration: fallback secrets, default credentials, fail-open…

More commands from other plugins.

deslop-reborn

deslop-reborn

Command

One iteration of the IronClaw Reborn de-slop loop — take ONE Reborn crate, fan out parallel review sub-agents (thermo-nuclear…

ironclaw12d13k
@nearai@nearaiInstall Command
arsenal

arsenal

Command

Show which external bug-bounty tools are installed on this machine and print install hints for the missing ones. Curated from…

@awarexone@awarexoneInstall Command
arsenal

arsenal

Command

Show which external bug-bounty tools are installed on this machine and print install hints for the missing ones. Curated from…

@shuvonsec@shuvonsecInstall Command