Chuyển đến nội dung
Skillpedia
Bảo mật8.0k · #12678

firebase-apk-scanner

Skill này làm gì

Quét gói ứng dụng Android để tìm cài đặt Firebase làm lộ dữ liệu hoặc tính năng, như cơ sở dữ liệu mở, bucket lưu trữ và hàm không xác thực. Dành cho người kiểm thử bảo mật có quyền kiểm thử ứng dụng.

Khi nào nên dùng

  • ✓Khi người kiểm thử bảo mật có quyền kiểm tra backend Firebase của một ứng dụng Android.
  • ✓Khi kiểm toán viên muốn kiểm tra cài đặt xác thực Firebase trong ứng dụng di động.
  • ✓Khi người kiểm thử muốn xem những Cloud Function nào ứng dụng để lộ mà không cần đăng nhập.

Liên kết skill

https://github.com/trailofbits/skills/blob/main/plugins/firebase-apk-scanner/skills/firebase-apk-scanner/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/trailofbits/skills/blob/main/plugins/firebase-apk-scanner/skills/firebase-apk-scanner/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi có giấy phép kiểm thử bằng văn bản cho ứng dụng Android này. Hãy kiểm tra cơ sở dữ liệu và lưu trữ Firebase xem có truy cập mở không.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill trích xuất thông tin Firebase từ file APK, rồi kiểm tra các endpoint tìm được xem có cấu hình sai phổ biến không. Nó báo những gì bị lộ và mức nghiêm trọng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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:

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:

{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 scan_report.json (and scan_report.txt for the narrative) in the exact directory it printed as Results saved to:. Do not use a firebase_scan_* glob: it also matches every earlier scan in the current directory.

The scanner exits nonzero after writing its report when no APK could be tested (every APK failed to decompile or had no Firebase config). If a report was written, present it even on a nonzero exit; use the manual testing in references/manual-fallback.md only when no report exists.

State what the scanner did not cover: it probes Cloud Functions only in us-central1, and tests auth, Cloud Functions and Remote Config only for the first project ID and API key it extracted.

Present findings in this format:


Scan Summary

Metric Value
APKs Scanned X
Vulnerable X
Failed to scan X
No Firebase config X
Total Issues X

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_CONF

Câu hỏi thường gặp

Tôi có thể dùng nó cho mọi ứng dụng không?

Không. Skill chỉ dành cho nghiên cứu bảo mật được ủy quyền, và không nên dùng trên ứng dụng bạn không có quyền kiểm thử.

Nó có hoạt động với ứng dụng iPhone không?

Không. Nó chỉ dành cho file APK của Android.

Tôi có thể kiểm thử dự án Firebase production không?

Skill nói không kiểm thử dự án Firebase production nếu không có quyền bằng văn bản.

Chi tiết

Mô tả gốc của tác giả

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.

repo: trailofbits/skills

Độ phổ biến

Sao GitHub
8.0k
Vị trí xếp hạng
#12678
Giấy phép
CC-BY-SA-4.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự