UNPACK Refactored Platform ArchitectureUNPACK 模块化商业级平台架构

Modular CLI & Flask Studio Blueprints on top of Core Intelligence, Multi-Provider AI, SQLite Workspaces, 3-Engine Dispatch, 10-Step DEX Repair, and Multi-Format Reporting.

模块化 CLI 与 Flask Studio 蓝图架构,向下统一驱动核心静态情报、多模型 AI、SQLite 工作区、三引擎调度、10 步 DEX 修复与多格式合规审计报告。

CLI / Studio → Intelligence → Dispatcher → 3 Engines → Deep Invoke → 10-Step Repair → Analysis → Reporting & SQLite
Modular CLI (src/unpack/cli/) 18 + 10 CMD scan · inspect · dump · repair · verify · vmp · xref report · pipeline · guide · doctor · ai(4) · workspace(6) UNPACK Studio (src/unpack/studio/) 7 VIEWS Flask Blueprints · API v1 · SSE Jobs · Security Headers 3-Pane DEX Disasm · Repair Diff · zh/en · Dark/Light Shared Contracts logging_config · utils/fs.py i18n (zh/en) · core/pipeline.py Core Intelligence Layer Zero-device static analysis · 24 packers · ELF/DEX inspection · Multi-provider AI Scanner + Signatures 24 vendors × 6 weighted dims ApkInspector + Native ELF Manifest · Signing · SO risk · IOC AI Analyzer (7 Providers) OpenAI · Claude · Gemini · Ollama Doctor + Guided Planner Preflight · Offline/Device routes Strategy Dispatcher (core/dispatcher.py) Protection level + Runtime /proc fingerprint + Priority fallback + Skip reasons Memory > Frida > eBPF DumpOptions Memory Engine RECOMMENDED Zero injection · Anti-Frida immune Multi-PID child enumpgrep -P VDEX / OAT / CDEXAndroid 5+ Sliding DEX-in-DEXanon rw-p Smart wait + dd 4KBhost parse Root /proc/pid/mem · 31/31 PASS Frida Engine 5 STRATEGIES DBI hooks · Jailed-USB check · 7 anti-detect S1Memory scan + strict header check S2ART DexFile::OpenCommon / OpenMemory S3ClassLoader mCookie traversal S4SO dump via dlopen / android_dlopen_ext S5ClassLinker::DefineClass (FART-style) 7 ANTI-DETECT: maps·sig·thr·port·TracerPid·cls·time eBPF Engine KERNEL-LEVEL APEX libdexfile.so + libart.so uprobes APEX Library DiscoveryAndroid 10+ readelf FUNC Filterskip UND/0x0 bpftrace -l Verifysafe offset /proc/pid/mem Helperzero inject Root + Kernel 5.4+ + bpftrace Active Invocation & CodeItem Merge --deep MODE Frida Path: ClassLinker hook + method resolve + CodeItem harvest | Frida-Free Path: App Exerciser + Component Trigger + Rescan 10-Step DEX Repair Pipeline + Integrity Verifier (repair/) Streaming SHA-256 Dedup · Repair Diff · jadx/JEB Ready 1. CDEX 2. Magic 3. Size 4. Sections 5. Trunc 6. Map 7. Align 8. Debug 9. NOP 10. SHA1+Adler Post-Unpack Analysis & Reconstruction (analysis/ · export/ · repack/) DexInspector + Disasm XRef + IOC Index VMP Classification APK Repack Multi-DEX Reassemble FART Export Multi-Format Audit Reports (core/reporting/) HTML5 Interactive · Markdown · JSON · SARIF 2.1.0 Deduplicated findings · Risk score · CI/CD Code Scanning ready Persistent Workspaces (core/workspace_store.py) SQLite Projects · Samples · Pipeline Runs · AI Analyses SHA-256 auto-relocate · Snapshot-only mode · JSON Bundle I/O LEGEND CLI / Scanner / Memory / Reporting Studio / Dispatcher / AI / Workspaces Frida Engine eBPF / 10-Step Repair Analysis / Deep

Modular CLI & Studio模块化 CLI 与 Studio

  • src/unpack/cli/ — 18 top-level commands + ai (4) + workspace (6) + shared formatting18 个顶级命令 + ai(4) + workspace(6) 与 Rich 格式化器
  • src/unpack/studio/ — Flask Blueprints, services, bounded jobs, security headersFlask 蓝图、服务层、有界任务池与安全响应头中间件
  • src/unpack/i18n.py — Split EN/ZH catalogs with 100% key parity拆分式中英双语目录,100% 键位对齐

Core Intelligence & Storage核心情报与持久化层

  • core/signatures.py & scanner.py — 24 packers × 6 weighted dimensions24 厂商特征库与 6 维加权评分
  • core/reporting/ — Quality, Audit, HTML5, Markdown, SARIF 2.1.0质量评估、去重审计、HTML5/MD/SARIF 渲染器
  • core/ai_engine.py & workspace_store.py — 7 LLM providers + atomic SQLite workspaces7 大模型引擎与原子事务 SQLite 工作区

Hardened Engines & Infra安全加固引擎与基础设施

  • engines/base.py — Typed DumpOptions & unavailable_reason contract类型化 DumpOptions 与 unavailable_reason 契约
  • logging_config.py & utils/fs.py — Structured logging, streaming SHA-256, atomic JSON, filename sanitization结构化日志、流式 SHA-256、原子写 JSON 与文件名清洗
  • core/pipeline.py — Unified planner shared between CLI and StudioCLI 与 Studio 共享的引导式流水线规划器