본문으로 건너뛰기
Skillpedia
모바일 앱6.5k · #14109

flutter

하는 일

이 가이드는 로직이 네이티브 라이브러리로 미리 컴파일된 Flutter 앱의 분석을 다룹니다. 자신의 앱 네트워크 보호를 점검해야 하는 개발자와 테스터를 위한 것입니다.

사용하는 경우

  • ✓Flutter 앱의 Java나 Objective-C 래퍼에 로직이 거의 보일 때.
  • ✓팀이 Flutter 앱의 인증서 고정을 테스트에서 우회할 수 있는지 확인하려는 경우.
  • ✓허가된 검토에서 Flutter 빌드에 포함된 URL이나 설정을 읽어야 할 때.

스킬 링크

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/mobile/flutter/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/mobile/flutter/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“우리 Flutter 앱은 인증서 고정을 적용하고 있습니다. 자체 빌드에 대한 허가된 테스트에서 이것이 유지되는지 확인해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 Flutter 빌드를 식별하고, 네이티브 라이브러리에서 내장된 주소와 설정을 검토하며, 앱 자체 네트워크 트래픽에서 고정이 강제되는지 테스트합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Flutter App Reversing Playbook

Flutter compiles Dart AOT to a native shared library (libapp.so / Flutter.framework). jadx / apktool show only the thin Java/ObjC shell and are useless for app logic. Use this playbook when static Android or iOS skills yield nothing but an empty Java wrapper.

Prerequisites

  • APK / IPA obtained (see mobile/android/SKILL.md Path 1 for APK pull).
  • Tools: reflutter (pip install reflutter), uber-apk-signer (download JAR from GitHub releases), adb + device or emulator, jadx (identification only), Burp Suite proxy.
  • For iOS: reFlutter also patches Flutter.framework; use objection patchipa or direct framework patching workflow.

Step 1: Identify a Flutter App

# Unzip APK, look for the telltale Flutter artifacts
unzip -o base.apk -d /tmp/apk-out/

ls /tmp/apk-out/lib/arm64-v8a/
# Flutter app: libflutter.so  libapp.so
# Present:     flutter_assets/   kernel_blob.bin (optional, debug)

# jadx shows only the Java bootstrap:
jadx -d /tmp/apk-java /tmp/base.apk
# Expect: ~1 class, LoadLibrary("app"), nothing useful

# Confirm with strings:
strings /tmp/apk-out/lib/arm64-v8a/libflutter.so | grep -i "flutter"
strings /tmp/apk-out/lib/arm64-v8a/libapp.so | grep -E "https?://"

Key tell: libapp.so size > 5 MB with no dex business logic; the kernel_blob.bin in flutter_assets/ indicates a debug/JIT build (rare in production; can extract Dart directly with dart_vm).

Step 2: reFlutter Workflow — Patch BoringSSL Pinning

reFlutter patches the ssl_crypto_x509_session_verify_cert_chain function in libflutter.so to always return true, bypassing all BoringSSL-based certificate validation (covers both custom pinning and system trust).

Flutter <= 3.23.x (hardcoded proxy IP)

# Patch: supply your Burp listener IP
reflutter base.apk

# reFlutter prompts for IP — enter your Burp machine IP (e.g. 192.168.1.100)
# Output: release.RE.apk (patched, unsigned)

# Sign with uber-apk-signer
java -jar uber-apk-signer.jar --allowResign -a release.RE.apk -o /tmp/

# Install on device
adb install /tmp/release.RE-aligned-signed.apk

# Configure Burp proxy listener on 0.0.0.0:8083 (reFlutter default port is 8083)
# Launch app — HTTPS traffic appears in Burp

Flutter >= 3.24.0 (no hardcoded proxy IP — breaking change)

Starting Flutter 3.24.0 (August 2024), the hardcoded proxy IP was removed from the patched BoringSSL stub. Traffic is no longer redirected to a fixed IP. Two options:

Option A: Device-level proxy

# Patch as above (no IP prompt in 3.24+)
reflutter base.apk
java -jar uber-apk-signer.jar --allowResign -a release.RE.apk -o /tmp/

# Install and configure device proxy manually:
# Android Settings → Wi-Fi → [SSID] → Proxy → Manual
# Host: <Burp-IP>  Port: 8080

# Or use TunProxy for non-proxy-aware processes:
adb install TunProxy.apk
# Launch TunProxy, set server to <Burp-IP>:8080, toggle VPN
# Then launch patched app

Option B: Per-app proxy injection via Frida

# Run patched APK + Frida script to redirect all socket connections
frida -U -f com.target.app -l proxy-redirect.js --no-pause
# proxy-redirect.js: hooks connect() syscall, redirects to Burp IP

iOS Flutter.framework patching

# Extract IPA
unzip target.ipa -d /tmp/ipa-out/
# Locate Flutter.framework
ls /tmp/ipa-out/Payload/TargetApp.app/Frameworks/Flutter.framework/Flutter

# reFlutter iOS (experimental — check reFlutter README for current support)
reflutter target.ipa
# Sign with codesign + adhoc or with valid mobileprovision
codesign --force --sign - /tmp/ipa-out/Payload/TargetApp.app/Frameworks/Flutter.framework/Flutter
# Repack + install with ios-deploy or Sideloadly

Step 3: BoringSSL Bypass Mechanism

reFlutter patches ssl_crypto_x509_session_verify_cert_chain to unconditionally return 1 (success). This function is the central chain verification entry point in BoringSSL (the TLS library embedded in libflutter.so) — no root CA, no pinning config, and no custom validator override this patch because the chain evaluation never runs.

Manual binary patch (if reFlutter fails on a specific version):

# Find the function offset in libflutter.so
r2 -A /tmp/apk-out/lib/arm64-v8a/libflutter.so
# In r2: afl~ssl_crypto_x509
# Or: /c ret  in data section near ssl_crypto_x509_session_verify_cert_chain

# Patch: overwrite function prologue with MOV W0, #1 / RET (AArch64)
# MOV W0, 1 = 20 00 80 52
# RET   
자주 묻는 질문

인증서 고정이란 무엇인가요?

앱이 예상된 인증서를 가진 서버에만 연결하도록 하는 검사이며, 많은 가로채기 시도를 막습니다.

Flutter 래퍼가 쓸모없는 이유는 무엇인가요?

가이드는 앱 로직이 네이티브 라이브러리에 있어 Java 래퍼에는 거의 아무것도 보이지 않는다고 말합니다.

누가 이 검사를 해야 하나요?

자신의 Flutter 앱을 작업하는 개발자와 테스터입니다.

상세 정보

작성자의 원본 설명

Flutter app reversing and SSL pinning bypass — reFlutter Dart-AOT patching, BoringSSL bypass, libapp.so static analysis in Ghidra/radare2, Dart snapshot dump, and iOS Flutter.framework notes.

repo: BitterSecurity/Decepticon

인기도

GitHub 스타
6.5k
순위
#14109
라이선스
Apache-2.0
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬