# AIghtBet
[](LICENSE)
[](https://github.com/darkcodelabs/AIghtBet/actions/workflows/ci.yml)
[](#requirements)
[](#requirements)
[](#safety-and-limitations)
[](#understanding-the-results)
[](#project-status)
AIghtBet 是一款免 root 的移动 AI 取证工具包,用于验证手机所声称的 AI 行为是否属实。
它通过带来源记录的方式从 USB 连接的设备中获取 AI 包,分析插件加载器和
通信指标,运行基于金丝雀的受控网络实验,并生成
防篡改的证据以及可逆的禁用步骤。
因为“在设备上处理”只是一句声明,而非证据。
## 那么具体场景是什么?
每次运行都会生成一个独立的 `report.html`(打开时无需网络)以及
一个 Markdown 副本。两者均来自同一个确定性模型,因此绝不会出现差异。以下
是一次真实的运行结果:
- **立即在 GitHub 上阅读:** [`docs/evidence_sample/report.md`](docs/evidence_sample/report.md)
— 即 Markdown 副本,内联渲染了 Mermaid 图表以及相同的分析结果。
- **交互式 HTML:** [下载 `report.html`](https://github.com/darkcodelabs/AIghtBet/releases/download/sample-report-20260711/report.html)
— 一个完全独立的文件(字体、徽标、数据和 SVG 证据图全部内联),
可在任何浏览器中离线打开。作为发布资产而非被跟踪的二进制大对象提供。
## 它的功能
- **发现** AI Service Engine 以及更广泛的 OnePlus、OPPO、ColorOS、HeyTap 和
realme AI 包家族(跨 OxygenOS 各代版本)。
- **获取** 直接从设备获取基础和拆分 APK,记录固件标识、
设备端和本地哈希值、签名者证书以及包元数据。
- **分析** endpoint、标识符访问权限、网络出口、更新机制、TLS
固定、反调试、可执行文件加载行为以及选定的 CJK 字符串。
- **分类** 将“算法插件”加载器分类为原生代码、动态 dex、模型数据、
配置或未解析的类型。
- **测试** 使用伪造的高熵金丝雀和免 root 优先的流量捕获来测试 AI 功能。
- **报告** 为每一项声明提供证据标签,并生成可逆的关闭步骤。
没有任何生成式模型生成、评分或撰写分析结果。该分析是确定性
代码加上人工判断的结合:APK 工具、字节和字符串检查、网络捕获、
固定规则、哈希以及可审计的保管链。请参阅
[方法论](docs/METHODOLOGY.md) 以了解精确的边界。
## 文档
- [架构](docs/ARCHITECTURE.md) — 包结构和系统设计。
- [方法论](docs/METHODOLOGY.md) — 确定性分析、金丝雀、捕获路径和判定结论。
- [证据格式](docs/EVIDENCE_FORMAT.md) — 运行布局、来源和保管保证。
- [研究背景](docs/RESEARCH_CONTEXT.md) — 威胁模型、策略问题和前期工作。
- [禁用和恢复](docs/DISABLING.md) — 可逆控件和预期影响。
- [隐私请求](docs/PRIVACY_REQUESTS.md) — 访问、删除和撤回同意的模板。
- [贡献](CONTRIBUTING.md) — 开发和贡献指南。
- [安全](.github/SECURITY.md) — 负责任的使用和漏洞披露。
## 工作原理
```
flowchart LR
D["OnePlus device
USB, no root"] --> E["Enumerate
identity + AI packages"]
E --> P["Pull
APKs + provenance"]
P --> S["Static track
triage + plugin classification"]
P --> X["Dynamic track
canary + traffic capture"]
S --> R["Evidence run
labelled findings + custody"]
X --> R
R --> O["Report
disable steps + artifacts"]
```
这两个轨道回答了不同的问题:
| 轨道 | 问题 | 最强有力的支持性声明 |
|---|---|---|
| 静态取证运行 | 安装了什么,它能做什么,以及存在哪些 endpoint 或加载器? | 观察到的字符串和元数据;推断出的能力 |
| 动态金丝雀实验 | 受控的屏幕或音频内容是否会在 AI 功能调用期间离开设备? | 只有当金丝雀出现在携带 payload 的工件中时才能确认 |
## 快速开始
### 要求
- 一台装有 Homebrew 的 macOS 主机。
- Python 3.10 或更高版本。
- 一台通过 USB 连接的 OnePlus 设备,并启用了 USB 调试以进行设备端阶段。
### 安装并检查就绪状态
```
git clone https://github.com/darkcodelabs/AIghtBet.git
cd AIghtBet
./install.sh
source .venv/bin/activate
aightbet doctor
```
安装程序会配置 Android 和分析工具,创建虚拟
环境,安装 AIghtBet,最后以就绪检查结束。
### 运行静态取证流水线
```
aightbet run
```
这将执行枚举、获取、静态分诊、插件分类、禁用步骤
生成和报告。基础运行是离线的。依赖于网络的富化信息是可选的:
```
aightbet run --all-ai # acquire and analyze the wider AI stack
aightbet run --online # add DNS and RDAP endpoint attribution
aightbet run --translate # add cached deterministic CJK dictionary glosses
```
完成的运行将写入 `evidence/
/` 目录下。
## 选择工作流
### 单独的取证阶段
| 命令 | 用途 |
|---|---|
| `aightbet doctor` | 检查主机工具、Python 依赖项和设备就绪状态。 |
| `aightbet enumerate` | 记录设备身份,验证 OnePlus 标记,并发现 AI 包。 |
| `aightbet pull` | 拉取引擎或更广泛的堆栈,包括哈希、包元数据和签名者来源。 |
| `aightbet triage` | 检查拉取的 APK 中的 endpoint、标识符、技术手法和 CJK 字符串。 |
| `aightbet plugins` | 对引擎的算法插件加载器进行分类。 |
| `aightbet disable` | 生成感知版本且可逆的免 root 关闭步骤。 |
| `aightbet run` | 执行完整的静态取证流水线并创建报告。 |
在 OxygenOS/ColorOS 16 上,较旧的单一 `com.oplus.aiservice` 可能会被
特权 `com.oplus.aiunit` runtime 取代。发现过程涵盖这两代版本,并记录
选择了哪个包及其原因。
### 金丝雀网络实验
仅使用伪造的金丝雀。切勿在测试屏幕上放置真实密码、支付数据、
身份号码、API 密钥或私人信息。
```
aightbet build-canary --print-plan
aightbet build-canary --sideload
aightbet capture-setup --self-test
aightbet exfil --list-features
aightbet exfil --feature screen_recognition --proxy-host
```
金丝雀应用会在常规和 `FLAG_SECURE` 变体中渲染合成的测试值。
实验会预注册其试验次数和阈值,在显示前将金丝雀记录到保管库中,
触发选定的功能,捕获流量,并分配判定结论。
某些手势、麦克风流程和应用 UI 操作需要操作员参与。固定了 TLS 的
系统服务在免 root 设备上可能仅暴露 endpoint、时间和大小元数据。这
支持 **疑似** 或 **不确定**,但永远无法达到 **已确认**。
请参阅[方法论](docs/METHODOLOGY.md) 以了解设置、判定逻辑和捕获边界。
## 理解结果
AIghtBet 使用两组相关标签:
| 标签 | 含义 |
|---|---|
| **observed** | 工具在设备上、工件中或在线路上看到了该值。 |
| **vendor-stated** | OnePlus 策略、通知或设置界面做出了该声明。 |
| **inferred** | 从观察到的证据中推导出的人类可读的判断。 |
| **confirmed** | 从携带 payload 的工件中恢复了试验金丝雀。 |
| **suspected** | 时间和出站大小与触发器相关,但无法读取 payload。 |
| **inconclusive** | 无法获取相关 payload,通常是由于固定或 QUIC。 |
| **not-observed** | 在预注册的试验次数中,可读的 payload 中未包含金丝雀。 |
| **needs-operator** | 没有人工 UI 操作则无法可靠触发该功能。 |
重要的解释限制:
- APK 内部的 URL 或主机名并不能证明应用在 runtime 会与其联系。
- 网络出口附近的标识符获取器是一种推断出的能力,而不是已确认的流程。
- 时间相关的突发流量并不能证明屏幕内容已被传输。
- `not-observed` 仅在所需试验次数的 payload 可读时适用。
- 策略推导出的数据流边缘初始状态为 `hypothesized`,直到测试改变其状态。
## 证据和监管链
完整的静态运行会产生类似以下的结构:
```
evidence//
device.json
apks//
base-or-package.apk
provenance.json
pull_manifest.json
triage/*.triage.json
plugins/*.plugin.json
disable_steps.json
findings.json
report.md
report.html
evidence-map.svg # same map embedded in HTML and referenced by Markdown
iocs.json # defanged candidate-IOC ledger
iocs.stix2.json # canonical STIX 2.1 patterns
iocs.txt # one defanged candidate per line
manifest.json
custody.jsonl
tools.jsonl
run.log
```
动态运行还会在 `canary/`、`traffic/` 和 `exfil/` 下写入金丝雀、
捕获和相关性工件。每个已注册的工件都有一个 SHA-256 摘要。每个
ADB 命令和保管事件都会附加到一个 HMAC 加密的哈希链中,其密钥存储在
可共享的运行捆绑包之外。原始设备序列号从不被持久化;仅记录
其 SHA-256。
独立的 HTML 报告不会发出任何网络请求,并包含一个技术账本,
提供三种 IOC 格式的本地下载控件。指标在所有地方都被防篡改,
除了 STIX 模式之外,因为 STIX 模式要求规范值保持符合标准。
这些控制措施证明了工件的完整性和过程历史。它们本身
并不能证明静态能力被执行了,或者网络流包含了
特定类别的数据。请参阅[证据格式](docs/EVIDENCE_FORMAT.md)。
## 安全性与局限性
- 标准工作流不需要设备 root 权限。
- 安装用户 CA 会更改测试设备的信任配置;使用后请将其移除。
- 重新打包仅限于合适的用户应用,不适用于特权服务。
- `--rooted-test` 路径仅限于明确确认的已 root 测试设备。
- 包名、设置路径和功能可用性因设备、地区和 OTA 而异。
- 实时流量捕获和时间戳在不同运行之间自然会有所不同。确定性
适用于对固定输入的分析,而不是重现完全相同的实时网络流量。
## 禁用服务
AIghtBet 生成特定于包的说明,而不会自动应用它们:
```
aightbet disable
```
输出包含设备设置路径和可逆的 ADB 选项。在选择
方法之前请查看影响;禁用引擎可能会破坏屏幕分析、Mind Space、
AI Search 以及依赖于识别插件的功能。请参阅
[禁用和恢复](docs/DISABLING.md)。
## 研究资源
1. Privacy Policy Store \- OnePlus,访问于 2026 年 7 月 11 日,[https://www.oneplus.com/us/legal/privacy-policy-store](https://www.oneplus.com/us/legal/privacy-policy-store)
2. OnePlus Account Privacy Notice,访问于 2026 年 7 月 11 日,[https://uc-h5.oneplus.com/agreement/privacy-policy/account/oneplus/oversea/v20240815/index.html?language=en-US](https://uc-h5.oneplus.com/agreement/privacy-policy/account/oneplus/oversea/v20240815/index.html?language=en-US)
3. U.S. PRIVACY POLICY \- ONEPLUS,访问于 2026 年 7 月 11 日,[https://www.oneplus.com/us/legal/us-privacy-policy](https://www.oneplus.com/us/legal/us-privacy-policy)
4. Privacy Notice\_AI Service Engine\_1783737291075.txt
5. Serious Privacy Concerns with AI Features in OnePlus 13's Screen Recognition App,访问于 2026 年 7 月 11 日,[https://www.reddit.com/r/oneplus/comments/1i4r7y9/serious\_privacy\_concerns\_with\_ai\_features\_in/](https://www.reddit.com/r/oneplus/comments/1i4r7y9/serious_privacy_concerns_with_ai_features_in/)
6. OnePlus AI,访问于 2026 年 7 月 11 日,[https://www.oneplus.com/global/oneplus-ai](https://www.oneplus.com/global/oneplus-ai)
7. \[DEBLOAT\] OxygenOS 16 and remove useless AI : r/oneplus \- Reddit,访问于 2026 年 7 月 11 日,[https://www.reddit.com/r/oneplus/comments/1qdmxus/debloat\_oxygenos\_16\_and\_remove\_useless\_ai/](https://www.reddit.com/r/oneplus/comments/1qdmxus/debloat_oxygenos_16_and_remove_useless_ai/)
8. AI Service Engine Privacy Notice | PDF | Mobile App \- Scribd,访问于 2026 年 7 月 11 日,[https://www.scribd.com/document/796665957/Privacy-Notice-AI-Service-Engine-1732370136084](https://www.scribd.com/document/796665957/Privacy-Notice-AI-Service-Engine-1732370136084)
9. OnePlus AI Service Engine Privacy Notice | PDF | Mobile App \- Scribd,访问于 2026 年 7 月 11 日,[https://www.scribd.com/document/875753507/Privacy-Notice-AI-Service-Engine-1748432437573](https://www.scribd.com/document/875753507/Privacy-Notice-AI-Service-Engine-1748432437573)
10. AI Service Engine Privacy Notice | PDF \- Scribd,访问于 2026 年 7 月 11 日,[https://www.scribd.com/document/975823873/Privacy-Notice-AI-Service-Engine-1767008443323](https://www.scribd.com/document/975823873/Privacy-Notice-AI-Service-Engine-1767008443323)
11. AI features that has data stay on the device \- OnePlus Community,访问于 2026 年 7 月 11 日,[https://community.oneplus.com/thread/1994836805832146951](https://community.oneplus.com/thread/1994836805832146951)
12. Please let us which AI features are on-device only \- OnePlus Community,访问于 2026 年 7 月 11 日,[https://community.oneplus.com/thread/1932436379950645254](https://community.oneplus.com/thread/1932436379950645254)
13. OnePlus temporarily disables a major AI feature following allegations of censoring sensitive geopolitical terms \- PhoneArena,访问于 2026 年 7 月 11 日,[https://www.phonearena.com/news/oneplus-ai-writer-disabled\_id176423](https://www.phonearena.com/news/oneplus-ai-writer-disabled_id176423)
14. OnePlus AI,访问于 2026 年 7 月 11 日,[https://www.oneplus.com/us/oneplus-ai](https://www.oneplus.com/us/oneplus-ai)
15. More Privacy Concerns\!\!\!\!\!\! \- OnePlus Community,访问于 2026 年 7 月 11 日,[https://community.oneplus.com/thread/1870180491345264640](https://community.oneplus.com/thread/1870180491345264640)
16. My counterarguments to AI \- OnePlus Community,访问于 2026 年 7 月 11 日,[https://community.oneplus.com/thread/1708402838113091588](https://community.oneplus.com/thread/1708402838113091588)
17. realme P3 5G review: Where does this belong? ♂️,访问于 2026 年 7 月 11 日,[https://c.realme.com/global/post-details/1984075539133100032](https://c.realme.com/global/post-details/1984075539133100032)
18. Realme GT 7 Pro review: Software, performance \- GSMArena.com,访问于 2026 年 7 月 11 日,[https://www.gsmarena.com/realme\_gt\_7\_pro-review-2763p4.php](https://www.gsmarena.com/realme_gt_7_pro-review-2763p4.php)
19. USER MANUAL,访问于 2026 年 7 月 11 日,[https://cdn.iceshop.nl/objects/mmo\_139811805\_1773217589\_5199\_442237.pdf](https://cdn.iceshop.nl/objects/mmo_139811805_1773217589_5199_442237.pdf)
20. Screen Recognition: Creating Accessibility Metadata for Mobile Applications from Pixels \- Apple,访问于 2026 年 7 月 11 日,[https://docs-assets.developer.apple.com/ml-research/papers/screen-recognition-chi-2021.pdf](https://docs-assets.developer.apple.com/ml-research/papers/screen-recognition-chi-2021.pdf)
21. Screen Recognition: Creating Accessibility Metadata for Mobile Applications from Pixels,访问于 2026 年 7 月 11 日,[https://www.researchgate.net/publication/348486491\_Screen\_Recognition\_Creating\_Accessibility\_Metadata\_for\_Mobile\_Applications\_from\_Pixels](https://www.researchgate.net/publication/348486491_Screen_Recognition_Creating_Accessibility_Metadata_for_Mobile_Applications_from_Pixels)
22. realme GT 6T \- realme (Global),访问于 2026 年 7 月 11 日,[https://www.realme.com/global/realme-gt-6t](https://www.realme.com/global/realme-gt-6t)
23. AI Smart Loop Privacy Notice 2024 | PDF | Mobile App | Privacy,访问于 2026 年 7 月 11 日,[https://www.scribd.com/document/872308267/AI-Smart-Loop-Privacy-Notice-5](https://www.scribd.com/document/872308267/AI-Smart-Loop-Privacy-Notice-5)
24. OxygenOS 14.0 User Manual \- Support \- OnePlus (United States),访问于 2026 年 7 月 11 日,[https://service.oneplus.com/content/dam/support/user-manuals/common/OxygenOS\_14.0\_User\_Manual.pdf](https://service.oneplus.com/content/dam/support/user-manuals/common/OxygenOS_14.0_User_Manual.pdf)
25. How can I detect if the user has enabled a password or PIN? \- Stack Overflow,访问于 2026 年 7 月 11 日,[https://stackoverflow.com/questions/21613425/how-can-i-detect-if-the-user-has-enabled-a-password-or-pin](https://stackoverflow.com/questions/21613425/how-can-i-detect-if-the-user-has-enabled-a-password-or-pin)
26. \[DEBLOAT\] OxygenOS 16 and remove useless AI : r/oneplus \- Reddit,访问于 2026 年 7 月 11 日,[https://www.reddit.com/r/oneplus/comments/1qdmxus/debloat\_oxygenos\_16\_and\_remove\_useless\_ai/?tl=en](https://www.reddit.com/r/oneplus/comments/1qdmxus/debloat_oxygenos_16_and_remove_useless_ai/?tl=en)
27. AI VoiceScribe Privacy Overview | PDF \- Scribd,访问于 2026 年 7 月 11 日,[https://www.scribd.com/document/930618693/AI-VoiceScribe-Privacy-Notice](https://www.scribd.com/document/930618693/AI-VoiceScribe-Privacy-Notice)
28. Smart Notification Hiding Explained | PDF | Software | Information Technology \- Scribd,访问于 2026 年 7 月 11 日,[https://www.scribd.com/document/730253880/Smart-Notification-Hiding-Privacy-Notice](https://www.scribd.com/document/730253880/Smart-Notification-Hiding-Privacy-Notice)
29. OnePlus AI,访问于 2026 年 7 月 11 日,[https://www.oneplus.com/bg/oneplus-ai](https://www.oneplus.com/bg/oneplus-ai)
30. Oppo Find X8 Pro review: Software, performance \- GSMArena.com,访问于 2026 年 7 月 11 日,[https://www.gsmarena.com/oppo\_find\_x8\_pro-review-2766p4.php](https://www.gsmarena.com/oppo_find_x8_pro-review-2766p4.php)
31. Privacy Policy \- OnePlus (Global),访问于 2026 年 7 月 11 日,[https://www.oneplus.com/global/legal/privacy-policy](https://www.oneplus.com/global/legal/privacy-policy)
32. Serious Privacy Concerns with AI Features in OnePlus 13's Screen Recognition App,访问于 2026 年 7 月 11 日,[https://www.reddit.com/r/LinusTechTips/comments/1i4r61j/serious\_privacy\_concerns\_with\_ai\_features\_in/](https://www.reddit.com/r/LinusTechTips/comments/1i4r61j/serious_privacy_concerns_with_ai_features_in/)
33. OnePlus Removes AI Writing Feature After Reports of China-Focused Censorship | PCMag,访问于 2026 年 7 月 11 日,[https://www.pcmag.com/news/oneplus-removes-ai-writing-feature-to-fix-it-after-censorship-claims](https://www.pcmag.com/news/oneplus-removes-ai-writing-feature-to-fix-it-after-censorship-claims)
34. How do I disable all the AI junkware? \- OnePlus Community,访问于 2026 年 7 月 11 日,[https://community.oneplus.com/thread/1992342577336025092](https://community.oneplus.com/thread/1992342577336025092)
35. Do Not Sell or Share My Personal Information \- OnePlus,访问于 2026 年 7 月 11 日,[https://www.oneplus.com/us/legal/state-privacy-policy/do-not-sell-or-share-my-personal-information](https://www.oneplus.com/us/legal/state-privacy-policy/do-not-sell-or-share-my-personal-information)
## 项目状态
AIghtBet 是一项活跃的研究,而不是宣称每一个基于策略推导出的路径都会出现在
每一台 OnePlus 设备上。有用的结果可能是确认、有界限的否定结果,
或者是坦诚地声明无法检查 payload。该仓库保留了
这一区别,以便可以独立审查证据。
## 许可证
[MIT](LICENSE)。版权所有 (c) 2026 Cory Kennedy / DarkCode LLC。
## 作者
Corian (Cory) Kennedy ([@NoDataFound](https://github.com/NoDataFound)) / DarkCode LLC。