Re tee

From dslsdzc/rev-skills · View interactive version

Re tee is an AI agent skill from the GitHub repository dslsdzc/rev-skills. TEE/TrustZone 逆向:OP-TEE 架构、可信应用(Trusted App)、secure storage、SMC 接口与设备密钥。 触发词:TEE、TrustZone、OP-TEE、可信应用、Trusted App、secure world、SMC、安全存储、secure storage、设备密钥

How to use this skill

Skill file

TEE / TrustZone 逆向(OP-TEE / Trusted App / secure storage)

何时使用 / 何时不用

工具准备

静态分析(镜像解析/反编译)免沙箱;主机侧动态(跑 client、hook ioctl)按 [[re-analyze/platform-tips]] 最高原则进沙箱;secure world 内动态不做(见坑 3),默认以静态 + 主机侧观察为主。

反编译工作台([[re-ghidra]] / [[re-ida]],ARM64)

固件提取工具链([[re-fw-extract]])

python3(二进制解析/脚本)

参考实现(OP-TEE 官方开源,理解结构用)

frida / 主机侧观察([[re-frida]])

操作步骤

按顺序执行,每步产物(镜像定位、头结构标注、命令号表)记录证据路径 + sha256(见 [[re-triage]]),供报告引用。

  1. 架构定位(world 划分 / SMC / TEE OS 入口):
  1. OP-TEE 结构(core 与 TA 分离、.ta 格式):
  1. TA 分析(入口 / 命令分发 / secure storage):
  1. 主机侧调用面(ioctl / client 库,两头夹逼):
  1. 厂商差异处理(自定义 TEE,泛化):

跨域联合

常见坑与陷阱

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.