Commit Graph
6 Commits
Author SHA1 Message Date
shenleiandClaude Opus 4.8 c4c9a6925a test(defender): 固化处置链宿主基线 + 真机验证协议(docs/19),修越狱聚合回归
P0 验真:真机验证前先把「检测→分级→数据毒化」闭环做成可复现宿主绿灯。

新增:
- tests/fixtures/poison_host.c + tests/test_poison_policy.py:poison/policy/
  anti_jailbreak 闭环自测 19/19(poison 恒等+坏key+不可逆、policy 分级+去重+
  mask一致、jailbreak 反向零误报+400+401),集成进 unittest 套件。
- docs/19_DISPOSITION_CHAIN_DEVICE_VERIFICATION.md:真机验证协议——R(非越狱)/
  J(越狱)两组、D1–D7 用例、验收门槛(反向零毒化为开毒化前提)、边界与进度。

修复(接越狱探针进 ig_defender_scan 聚合器时埋下的回归):
- test_defender_host.py SOURCES 漏 anti_jailbreak/IGAntiJailbreak.c → 链接缺符号。
- defender_host.c:reasons[] 由 256 扩到 512(400/401 越界漏计);clean 断言排除
  越狱文件命中(macOS 自带 Unix userland,按 iOS 标准宿主本身即“越狱”,非真实误报)。

全套 63 项宿主/工具测试通过。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-12 22:35:35 +09:00
shenleiandClaude Opus 4.8 599e1da5ce feat(defender): 可集成静态库 + readoor 接入方案(检测→分级→数据毒化闭环)
在 iOSGuard 侧产出可集成产物与接入文档,不修改 readoor 代码。

- defender/: anti_hook/anti_frida/anti_debug/anti_jailbreak 探针 + syscall 直发、
  policy 分级层、poison 数据依赖毒化、dispatch/resolve/call_bridge 等子模块
- poison: 三副本冗余、无分支掩码;健康恒等、毒化破坏 key(替代 if-exit 处置)
- policy: STRONG/MEDIUM/WEAK 分级,守误报底线,仅 DETECTED 参与、组合命中才毒化
- anti_jailbreak: IGSyscall 直发 svc 检测越狱文件(400)/沙盒逃逸(401),绕 libc hook
- tools/build_defender_lib.sh: 一键交叉编译打包 libIGDefender.a(arm64) + umbrella 头
- docs/18_READOOR_DEFENDER_INTEGRATION.md: 精确到文件/bridging/替换点/代码片段
- docs/05-17 + evidence + tests + macho_guard/static_sdk_redirect 工具链

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-12 22:16:47 +09:00
shenandshen ff0aee7f47 fix(docs): resolve ASan injection overflow, correct signing order & slots, remove non-public ptrace, fix ObjC desync, and harden VMP 2026-11-09 06:25:35 -08:00
shenandshen 2191da06fa fix(docs): fix signing sequence, Mach-O padding underflow, ObjC ASLR types, VMP bounds, and refine M1 scope 2026-11-09 06:09:14 -08:00
shenandshen 948e62c22f docs: add comprehensive specification for eight core subsystems 2026-11-09 06:00:17 -08:00
shenandshen 0ea02d50d2 Initial commit: iOSGuard architecture and implementation plans 2026-11-09 05:53:26 -08:00