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:
@@ -6,7 +6,9 @@
|
||||
#include "IGAntiDebug.h"
|
||||
#include "syscall/IGSyscall.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#if IG_DIAGNOSTIC_STRINGS
|
||||
# include <stdio.h>
|
||||
#endif
|
||||
|
||||
int ig_anti_debug_check(IGFindingSink sink, void *ctx) {
|
||||
int traced = ig_sys_is_debugged();
|
||||
@@ -15,8 +17,10 @@ int ig_anti_debug_check(IGFindingSink sink, void *ctx) {
|
||||
__builtin_memset(&f, 0, sizeof(f));
|
||||
f.status = IG_DETECTED;
|
||||
f.reason = IG_REASON_DEBUGGER_ATTACHED;
|
||||
#if IG_DIAGNOSTIC_STRINGS
|
||||
snprintf(f.subject, sizeof(f.subject), "kinfo_proc.p_flag&P_TRACED");
|
||||
snprintf(f.evidence, sizeof(f.evidence), "直发 sysctl 检出进程被调试器跟踪");
|
||||
#endif
|
||||
if (sink) sink(&f, ctx);
|
||||
return 1;
|
||||
}
|
||||
@@ -25,8 +29,10 @@ int ig_anti_debug_check(IGFindingSink sink, void *ctx) {
|
||||
__builtin_memset(&f, 0, sizeof(f));
|
||||
f.status = IG_UNAVAILABLE;
|
||||
f.reason = IG_REASON_DEBUGGER_ATTACHED;
|
||||
#if IG_DIAGNOSTIC_STRINGS
|
||||
snprintf(f.subject, sizeof(f.subject), "kinfo_proc.p_flag&P_TRACED");
|
||||
snprintf(f.evidence, sizeof(f.evidence), "sysctl 查询失败,无法判定");
|
||||
#endif
|
||||
if (sink) sink(&f, ctx);
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user