Reverse Shield

io.github.GuardBee由 GitHub 账号 GuardBee 发布v0.7.0更新于 Nov 7, 2026

Audits shipped apps for how easily they can be reverse engineered

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

审计你自己发布的构建产物(Web 包、Electron、APK/IPA、原生二进制)有多容易被逆向,并给出 A–F 评级。

可以做什么
  • 扫描构建产物或目录(APK、AAB、IPA、.app、Electron/ASAR、JAR、ELF/Mach-O/PE/.NET、JS 包、source map)并给出分级问题清单
  • 扫描线上站点自身的脚本,检查随包发布的 source map、开发包、密钥和内部主机
  • 读取项目构建配置,以统一 diff 形式给出加固建议,不写入文件
  • 列出完整检查目录,说明每项问题泄露了什么以及如何修复
  • 与基线对比,使 CI 只对新增暴露失败
适用场景
适用于你发布客户端应用或二进制、想在发布前了解逆向者能免费获得什么,或在 CI 中拦截新增暴露。它面向你自己的产物,而非第三方应用。
运行要求
通过 npx 以 Node.js 本地进程运行;无需账号、API 密钥或环境变量。除 scan_url 外均离线运行,scan_url 需要网络访问以抓取目标站点自身脚本。仅支持桌面端。
安装前请注意
遥测默认关闭;设置 GUARDBEE_TELEMETRY=1 会把服务器、工具、成功状态、耗时和文件路径等短参数值发送给第三方。报告可能包含产物中的凭据,应视为敏感信息。suggest_fixes 只返回 diff、不写文件,但应用补丁前请先审阅。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Reverse Shield,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@guardbee/mcp-reverse-shield

🇬🇧 English | 🇹🇷 Türkçe | 🇨🇳 中文

[npm version] [npm downloads] [License: MIT]

An MCP server that tells you how much your shipped app gives a reverse engineer for free.

Reverse-engineering MCPs now let an agent take an app it has no source for — a web bundle, an Electron app, an APK, an iOS app, a game, a native or .NET binary — and explain how a feature works, down to the binary. This package is the other side of that: point it at your own build artifact and it reports what such a tool (or a person with jadx, ILSpy, Il2CppDumper, Hopper or the browser's devtools) would get without any effort, with the fix for each — and suggest_fixes turns those fixes into a diff against your build config.

Telemetry is off by default. With GUARDBEE_TELEMETRY=1 it sends the server, tool, success, duration and short parameter values such as a file path; longer strings and fields like content, token or password are replaced with a placeholder. See @guardbee/mcp-telemetry.

Claude ──► reverse-shield ──► your build artifact / live site              │              ├─ web       source maps (shipped, inline, publicly reachable), unminified / dev bundles, keys, internal hosts, WebAssembly debug info and names              ├─ electron  fuses (RunAsNode, --inspect, NODE_OPTIONS, ASAR integrity), unpacked app code, code inside app.asar              ├─ android   APK and AAB: debuggable, R8/ProGuard missing, signing scheme, backup, plain React Native bundle, unstripped .so              ├─ ios       IPA and .app: Debug-configuration builds, development profiles, plain React Native bundle, .dSYM in the bundle, the executable              ├─ engines   Unity (IL2CPP metadata, Mono assemblies), PyInstaller, Java/Spring Boot JARs, Flutter (Dart obfuscation)              ├─ native    debug info, symbols, get-task-allow, hardened runtime, signing, PIE/NX/RELRO/canary (ELF, Mach-O, PE)              ├─ secrets   keys in everything above: dex, resources.arsc, plists, config files, Hermes bytecode, .so and executables              └─ .NET      obfuscation missing, embedded PDB, leaked build paths

Everything runs locally and offline (except scan_url), with its own parsers for ASAR, the Electron fuse wire, binary AndroidManifest (AXML), DEX, ELF, Mach-O (including universal binaries and code signatures) and PE/.NET metadata — no apktool, jadx or binutils needed.

What it flags

CheckSeverityTargetWhat it gives away
sourcemap_embeds_sourcecriticalwebFull original source via sourcesContent
sourcemap_shipped / sourcemap_inline / sourcemap_publicly_reachablehighwebOriginal file paths and structure
eval_devtool_bundlehighwebDev bundle with each module's path
bundle_secretper key typeallA working credential in client code, an app package or a binary
wasm_debug_infohighwebWebAssembly with DWARF: source files, lines, types
unminified_bundle / dev_build_framework / wasm_name_sectionmediumwebReadable code / framework dev runtime / named WebAssembly functions
sourcemap_reference / internal_endpointlowwebWhere the map lives / localhost, private IPs, staging hosts
electron_fuse_run_as_node / electron_fuse_inspect_argshighelectronNode runtime or debugger inside the signed app
electron_app_unpackedhighelectronApp code as an editable folder
electron_fuse_node_options / _asar_integrity_off / _load_outside_asarmediumelectronCode injection and ASAR tampering
apk_debuggablecriticalandroidDebugger attach and run-as into app data
apk_no_obfuscation / apk_js_bundle_plaintext / apk_unsignedhighandroidjadx output with real names / readable RN bundle / no tamper evidence
apk_allow_backup / apk_v1_only_signaturemediumandroidData pulled via backup / Janus-style repackaging
native_debug_info / native_debuggable_entitlementhighnativeSource-level debug data / lldb attach
native_symbols_not_stripped / native_no_hardened_runtime / native_injection_entitlement / native_unsignedmediumnativeNamed functions / dylib injection / patched copies run
native_no_pie / native_no_nxmediumnativeExploit-friendly fixed addresses / executable stack
native_no_relro / native_no_stack_canary / native_adhoc_signed / native_build_path_leaklownativeHardening gaps and build-host details
ios_debug_build / ios_js_bundle_plaintext / ios_dsym_shippedhighiosUnoptimised code with full symbols and preview stubs / readable RN bundle / full DWARF symbols in the bundle
ios_development_profilemediumiosDebugger attach on registered devices
unity_il2cpp_metadata / unity_mono_assemblieshighenginesEvery class, method and string of the game / C# scripts via dnSpy
flutter_not_obfuscatedhighenginesDart class and method names for blutter / reFlutter
hermes_names_not_minifiedmediumenginesReact Native function names in Hermes bytecode for hermes-dec / hbctool
python_pyinstaller_bundle / java_not_obfuscatedhighenginesDecompilable .pyc files / Java classes with original names
dotnet_not_obfuscated / dotnet_embedded_pdbhigh.NETILSpy/dnSpy output close to the original source

list_checks returns the full catalog with fixes. Every result carries an A–F grade: F when anything critical (or several high findings) is exposed, A when nothing is.

How the trickier checks decide

  • R8/ProGuard: reads class descriptors from every classes*.dex and looks at classes under your application id (and under the packages of components your manifest names, for .debug-style ids). Dozens of descriptive class names with almost no one- or two-letter names means R8 did not run.
  • .NET obfuscation: reads the metadata #Strings heap. Known obfuscator markers (ConfuserEx, Dotfuscator, SmartAssembly, …) pass immediately; otherwise an assembly passes when at least 10% of its identifiers are one- or two-letter names, bare numbers or non-ASCII junk. Checked against an Obfuscar build (21%, passes) and 400 unobfuscated NuGet assemblies (383 flagged; the other 17 are resource-only assemblies with too few names to judge).
  • Private keys: only reported when base64 key material follows the PEM header — crypto libraries bundled into apps carry the header as a string constant.
  • Credentials outside JavaScript: Android dex strings, the resources.arsc / resources.pb string pool (where strings.xml and google-services values end up), assets/ and res/raw/; iOS plists (GoogleService-Info.plist) and the executable; JSON/plist/.env/properties/YAML files in an ASAR, a JAR (Spring Boot application.properties) or a build folder; Hermes bytecode, .so libraries and native/.NET binaries by their printable strings. Only fixed-format keys are matched there, as in bundles. A Google/Firebase API key in an Android or iOS package is reported as medium: those ship by design and must be restricted to the app's package name or bundle id.
  • Repeats: one key in 30 chunks is one finding (“also in 29 other files”), and long lists of unminified files collapse into one.
  • iOS Debug builds: Xcode 16 puts a Debug build's code in <App>.debug.dylib next to __preview.dylib; either one in a bundle means the Debug configuration was shipped.
  • Unity: IL2CPP's global-metadata.dat is flagged only when its standard header is intact (protected builds encrypt it); a Mono Assembly-CSharp.dll goes through the .NET name check.
  • PyInstaller: the CArchive cookie is searched across the whole file (on macOS the archive sits in its own section before the code signature); PyArmor and Nuitka builds are noted, not flagged.
  • Flutter: reads the identifiers in the AOT snapshot (libapp.so, App.framework/App). --obfuscate renames everything the program defines to two- or three-letter names while the Dart VM's own names stay, so a snapshot passes when at least 10% of its identifiers are that short. Checked against one program built both ways with the Dart SDK's gen_snapshot: 1% without the flag, 31% (unstripped) and 37% (stripped) with it. Fewer than 200 identifiers is a note, not a verdict.
  • WebAssembly: custom sections only — .debug_* (DWARF), name (function names) and sourceMappingURL; the code itself is not judged.
  • Live URLs: only the site's own scripts are read. Platform-served code (HubSpot /hs/hsstatic/, WordPress /wp-includes/) and open-source libraries (jQuery, Bootstrap, polyfills, vendor bundles) are skipped, and a reachable map whose sources are all dependencies is not reported. Internal hosts count only when they point into the site (private IPs, .internal/.corp/.lan, its own staging hosts); the localhost URLs frameworks ship are ignored. A Google browser key is reported as medium (restrict it to the site's referrers), and a Supabase anon key is not reported, since the browser is meant to hold it (a service_role key still is).
  • React Native with Hermes: reads the bytecode's string table and function headers. Metro's minifier renames functions to one- or two-letter names; without it hermes-dec and hbctool print the source's names back. A bundle passes when at least 15% of its named functions have names that short. Checked against one bundle (lodash + zod + app code) compiled with hermesc -O both ways: 1% unminified, 57% minified. Function names are read only for bytecode version 98 (hermes-compiler on npm), the layout that was checked; other versions, and bundles with fewer than 50 named functions, are a note, not a verdict.

Quick start

json
{  "mcpServers": {    "guardbee-reverse-shield": {      "command": "npx",      "args": ["-y", "@guardbee/mcp-reverse-shield"]    }  }}

Then ask your agent: “How easy is it to reverse engineer ./release/MyApp.app? Fix what you can in the build config.”

bash
npx @guardbee/mcp-reverse-shield scan ./dist --fail-on=highnpx @guardbee/mcp-reverse-shield scan ./app/build/outputs/apk/release/app-release.apknpx @guardbee/mcp-reverse-shield scan "/Applications/My App.app" --format=jsonnpx @guardbee/mcp-reverse-shield scan https://app.example.com --format=sarif > reverse-shield.sarifnpx @guardbee/mcp-reverse-shield scan ./build/MyApp.ipanpx @guardbee/mcp-reverse-shield suggest . --format=patch | git apply   # review first: suggest . prints the same as text

Tools

ToolPurpose
scan_artifactScan a file or directory: APK, AAB, IPA, iOS or macOS .app, Electron folder, app.asar, JAR, ELF/Mach-O/PE/.NET binary, JS bundle, source map, or a build output folder (Unity and Python builds included). Optional ignore and baseline
suggest_fixesRead the project's build config (Vite, webpack, Next.js, Angular, CRA, Android Gradle and manifest, React Native, electron-builder / Forge, .NET project files, Flutter) and return the changes as unified diffs. Never writes files
scan_urlFetch a live page, check its same-site bundles, follow sourceMappingURL and probe <bundle>.map (third-party scripts are not fetched)
list_checksThe check catalog with what each finding gives away and how to fix it

Directories are walked including dist/, build/ and out/ (that is the point); node_modules, VCS and cache folders are skipped, and a macOS .app or Electron folder found inside is scanned as one unit — its fuses, its ASAR and its own executable, not the bundled third-party frameworks.

guardbee.yml:

yaml
reverse-shield:  fail-on: high  max-files: 5000  baseline: .reverse-shield-baseline.json  exclude:    - "vendor/"  ignore:                       # accepted exposures: a rule id, or rule:path-substring    - bundle_secret:firebase-config.js

CI and baselines

Record what the current release exposes, then let CI fail only on what a change adds:

bash
npx @guardbee/mcp-reverse-shield scan ./dist --update-baseline          # writes .reverse-shield-baseline.jsonnpx @guardbee/mcp-reverse-shield scan ./dist --baseline=.reverse-shield-baseline.json --fail-on=high# Compared to baseline (grade C → D): 1 new, 2 fixed, 4 unchanged

Findings are matched by check and location, with bundler content hashes (index-BvL4J5f8.js, 7321-dd7cb90a7de65945.js) normalised, so a rebuild does not make old findings look new. SARIF results carry baselineState (new / unchanged).

The repository ships a composite action that scans, uploads SARIF, writes a job summary and exposes grade / new-findings outputs:

yaml
- uses: GuardBee/guardbee-mcp/.github/actions/reverse-shield@main  with:    target: dist    fail-on: high    baseline: .reverse-shield-baseline.json

Library use

@guardbee/mcp-reverse-shield/scan exports the scanners (scanUrl, scanPath, analyzeJavaScript, …) without the MCP server, for tools that embed reverse-shield:

ts
import { scanUrl } from "@guardbee/mcp-reverse-shield/scan";
const result = await scanUrl("https://example.com/", { maxScripts: 15, timeoutMs: 8_000 });console.log(result.grade, result.findings);

Limits

  • Obfuscation is judged from names, not control flow: a build that only renames passes, and string encryption or control-flow flattening is not measured.
  • Web checks look at what is shipped; they cannot tell whether a key is meant to be public (some, like Firebase web keys, are restricted server-side). Rotate or restrict it, then accept it with an ignore entry (bundle_secret:firebase-config.js).
  • Strings are read from dex and resource tables by their structure, from other binaries as printable runs; a key split across string constants, encrypted or assembled at runtime is not found (that is the point of doing so, but it only slows a reverse engineer down).
  • Native hardening checks (PIE/NX/RELRO/canary) are exploit-mitigation signals rather than reverse-engineering ones; they are reported low/medium for that reason.
  • App Store IPAs are FairPlay-encrypted on distribution; the scanner reads the IPA you export (development, ad hoc or App Store export before Apple encrypts it), which is what a jailbroken device would also yield.
  • suggest_fixes edits the common shapes of each config; unusual layouts (computed webpack configs, Gradle convention plugins) get no diff, and Forge and Flutter get instructions rather than a patch. Always review before applying.

License

MIT

来源:packages/reverse-shield/README.md,提交 952a0bf

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

7
  1. v0.7.0最新Nov 7, 2026
  2. v0.6.1Nov 3, 2026
  3. v0.6.0Nov 3, 2026
  4. v0.5.0Nov 1, 2026
  5. v0.4.0Oct 31, 2026
  6. v0.3.1Oct 30, 2026
  7. v0.2.0Oct 29, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分