Skip to content

类别:protector 保护器 ​

protector

protector 类别检测 应用保护/加固 SDK,尤其是 RASP(Runtime Application Self-Protection)方案。与 packer 不同,protector 通常不重打包 dex,而是注入 SDK 做运行时保护。

🎯 什么是保护 SDK ​

保护器(protector)做这些事:

  • 反调试:检测 ptrace、调试器附加。
  • 反 Hook:检测 Frida、Xposed、Substrate。
  • 反 Root:检测 Magisk、SuperSU。
  • 环境检测:模拟器、虚拟机、多开。
  • 代码完整性:校验 dex/so 是否被篡改。
  • 运行时拦截:在关键 API 上插桩,阻止恶意调用。

典型形态:APK 里塞入一个 so 库(如 libAppGuard.so),在 Application.attachBaseContext 里加载,hook 关键路径。

📋 规则分布 ​

文件类型文件规则数子文档
APKapk/protectors.yara20APK 保护器
DEXdex/protectors.yara31DEX 保护器
ELFelf/protectors.yara33ELF 保护器
RESres/protectors.yara1RES 规则

🏢 主要保护 SDK ​

SDK规则说明
Verimatrixverimatrix、verimatrix_arm64/_a~_c视频流保护出身
Virboxvirbox_apk、virbox_elf深思维
Vkeyvkey_apk、vkey_elf
Appdomeappdome_dex、appdome_elf/_a/_b云端加固
FreeRASPfree_rasp_old、free_rasp_new、free_rasp_dex、free_rasp_dart开源 RASP
AhnLabahnlab_v3_engine韩国
Ahopeahope_appshield
MetaFortressmetafortressELF
WhiteCryptionwhitecryption_dex/_a、whitecryption_elf/_a代码加密
Zimperiumzimperium_zdefend、z9、zcloud、zshield移动安全厂商
Denuvodenuvo_apk、denuvo_elf游戏反篡改
Google IntegritygoogleIntegrityProtectionPlay Integrity
MSA SDKmsa_sdk移动安全联盟
RootBeerrootbeer(dex/elf)反 Root 库(也归 anti_root)
其它vguard、appdefence、dpt_shell、build38、shield_sdk、bshield、alibaba_sec、bureau、haiyun、oppo_protect、bugsmirror、tongfu_shield、venustech、dexprotectx、eversafe、appcamo、easyprotector、protectt、nhn_appguard...

完整清单见各子文档。

🔍 检测特征举例 ​

保护 SDK 的 so 库通常有特征导出符号或字符串:

yara
rule verimatrix : protector {
  strings:
    $sym = "Verimatrix"
    $lib = "libvkey.so"
  condition:
    is_apk and ($sym or $lib)
}

📊 finding 示例 ​

json
{
  "tag": "protector::verimatrix_arm64",
  "category": "protector",
  "description": "Detects app protection/shielding SDKs",
  "source": "app.apk!lib/arm64-v8a/libvkey.so",
  "identifier": "verimatrix_arm64",
  "confidence": "medium"
}

source 含 .so → ELF 匹配,置信度 medium。

🆚 packer vs protector ​

维度packerprotector
做什么加密/重打包 dex注入 RASP SDK
改结构是(dex 变壳)否(dex 结构基本不变)
关注点还原真实代码运行时防护
典型360 加固、梆梆Verimatrix、Appdome

两者常 同时存在:加固的 APK 往往也套保护 SDK。APKiD 会分别报告两类 finding。

🔗 与 anti_root 的关系 ​

部分库(如 rootbeer、ahnlab_v3_engine、flutterjailbreakdetection)的 tag 是 anti_root 而非 protector——因为它们专做 Root 检测,是 protector 的子集。详见 anti_root 类别。

📍 相关 ​

基于 GPL & Commercial 双重许可发布