feat: 集成 LLVM IR 混淆体系、Route 2 全量合规与系统调用调度加固

- defender: 扩展 IGDispatch/IGArchiveGuard/IGAntiHook/IGObjCBaseline/IGResolve,支持 Route 2 静态库桥接 (IGThreadID.c) 与防重签名检测
- llvm_passes: 新增 IGObfuscator LLVM IR 插件源码(控制流平坦化、字符串加密、间接跳转/调用、不透明常量/字段、MBA、函数外提、基本块拆分、反 Hook 序言)
- tools & config: 新增 Xcode 归档编译/链接包装器、LLVM 自愈工具链 (ig_toolchain_resolver)、IPA 审计门禁、崩溃符号还原及最新 ig_llvm_policy.json(文件级匹配 + 3.0 全业务 Handler 平坦化)
- tests & docs: 补齐 M0~M3、Pass 单测及系统调用调度/Route 2/LLVM 方案文档;.gitignore 忽略 *.bc 与 .obfuscate_extraction_cache.json
This commit is contained in:
shenlei
2026-11-24 15:00:07 +09:00
parent 1094cc2760
commit 704ee66834
106 changed files with 27487 additions and 286 deletions
@@ -0,0 +1,70 @@
{
"rules": [
{
"caller": "__isJailbreak",
"symbol": "_fopen",
"destination": "_IG_dispatch_fopen",
"expected_count": 6
},
{
"caller": "_SignalHandler",
"symbol": "_getpid",
"destination": "_IG_dispatch_getpid",
"expected_count": 1
},
{
"caller": "+[UMInternalUtil Value2]",
"symbol": "_getpid",
"destination": "_IG_dispatch_getpid",
"expected_count": 1
},
{
"caller": "__initializeAvailabilityCheck",
"symbol": "_fopen",
"destination": "_IG_dispatch_fopen",
"expected_count": 1
},
{
"caller": "__initializeAvailabilityCheck",
"symbol": "_dlsym",
"destination": "_IG_dispatch_dlsym",
"expected_count": 10
},
{
"caller": "__ZZZL25swift_voucher_needs_adoptP9voucher_sENKUlvE_clEvENUlPvE_8__invokeES2_",
"symbol": "_dlsym",
"destination": "_IG_dispatch_dlsym",
"expected_count": 1
},
{
"caller": "__ZZZN5swift19_swift_tsan_acquireEPvENK3$_0clEvENUlS0_E_8__invokeES0_",
"symbol": "_dlsym",
"destination": "_IG_dispatch_dlsym",
"expected_count": 1
},
{
"caller": "__ZZZN5swift19_swift_tsan_releaseEPvENK3$_0clEvENUlS0_E_8__invokeES0_",
"symbol": "_dlsym",
"destination": "_IG_dispatch_dlsym",
"expected_count": 1
},
{
"caller": "__ZZZN5swift31swift_task_escalateBackdeploy56EPNS_9AsyncTaskENS_11JobPriorityEENK3$_0clEvENUlPvE_8__invokeES4_",
"symbol": "_dlsym",
"destination": "_IG_dispatch_dlsym",
"expected_count": 1
},
{
"caller": "__ZZZN5swift45swift_task_exitThreadLocalContextBackdeploy56EPcENK3$_0clEvENUlPvE_8__invokeES2_",
"symbol": "_dlsym",
"destination": "_IG_dispatch_dlsym",
"expected_count": 1
},
{
"caller": "__ZZZN5swift46swift_task_enterThreadLocalContextBackdeploy56EPcENK3$_0clEvENUlPvE_8__invokeES2_",
"symbol": "_dlsym",
"destination": "_IG_dispatch_dlsym",
"expected_count": 1
}
]
}