[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109704":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":14,"forks30d":14,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":33,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":14,"starSnapshotCount":14,"syncStatus":37,"lastSyncTime":38,"discoverSource":39},109704,"iOS-NOIR","arnold117\u002FiOS-NOIR","arnold117","No-jailbreak iOS privacy, entitlement, sandbox & telemetry forensic auditor (inspired by Verlintas\u002FNOIR)",null,"Python",328,60,1,0,3,7,82,9,63.06,"MIT License",false,"main",true,[25,26,27,28,29,30,31,32],"audit","forensics","ios","osint","privacy","pymobiledevice3","security","telemetry","2026-11-06 07:58:04","2026-11-23 09:52:28","\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fbanner-en.png\" alt=\"iOS-NOIR Banner\" width=\"100%\">\n\u003C\u002Fp>\n\n# iOS-NOIR\n\n**English · [简体中文](README.zh-CN.md)**\n\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-2ea44f.svg)](LICENSE)\n[![Platform: macOS (Tested)](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPlatform-macOS%20(Tested)-blue.svg)](#)\n[![No Jailbreak Required](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FJailbreak-Not%20Required-brightgreen.svg)](#)\n\n**Turn \"What is my iPhone silently leaking?\" into a reproducible, evidence-graded forensic report — without jailbreaking.**  \n**把「这台未越狱的 iPhone 到底在暗中泄露什么」变成一份带三级证据标注的可复现底层取证报告。**\n\n📊 **Sample Standalone Interactive Report (7-Tab HTML, synthetic data):** [`report\u002Fios-noir-sample-report.html`](report\u002Fios-noir-sample-report.html) *(fictional `com.example.*` apps; download & open in any browser)*\n\n> 💡 **Acknowledgements \u002F 致敬**  \n> - **Architecture & CLI Flow:** Inspired by [**Verlintas\u002FNOIR**](https:\u002F\u002Fgithub.com\u002FVerlintas\u002FNOIR) (the local-first Android privacy auditor over `adb`).  \n> - **Evidence Tiering, 5-Layer Persistent Identity Chain & Standalone HTML Report:** Inspired by [**RootSir\u002Fclaude-ios-privacy-analysis**](https:\u002F\u002Fgithub.com\u002FRootSir\u002Fclaude-ios-privacy-analysis).\n\n---\n\n## ⚖️ Three-Tier Evidence Grading (证据分级标准)\n\nFollowing the forensic rigor of [`RootSir\u002Fclaude-ios-privacy-analysis`](https:\u002F\u002Fgithub.com\u002FRootSir\u002Fclaude-ios-privacy-analysis), **iOS-NOIR** explicitly distinguishes between static configuration evidence, kernel capability entitlements, and behavioral inference:\n\n- 🟢 **`【实锤 \u002F VERIFIED】`**: Directly extracted from Apple-signed `Entitlements`, `Info.plist` static whitelists (`LSApplicationQueriesSchemes`, `NSExceptionDomains`), `ubiquity-kvstore-identifier`, or live `HouseArrest` sandbox filesystem enumeration.\n- 🟠 **`【机制实锤 \u002F CAPABILITY】`**: The app holds an Apple-signed privileged entitlement (`unrestricted-voip-regulatory`, `HotspotHelper`, `multipath`) granting kernel-level bypass capabilities; actual trigger frequency depends on server push\u002Fruntime state.\n- 🟣 **`【推断 \u002F INFERRED】`**: Cross-app identity correlation inferred from shared `App Groups` (`group.*`), shared `Keychain Access Groups`, and embedded risk\u002Fattribution SDK endpoints (`shuzilm.cn`, `id6.me`, `miaozhen.com`).\n\n---\n\n## 🔍 Core Findings & The 5-Layer Persistent Identity Chain\n\nWhy does turning off `Allow Apps to Request to Track (IDFA)`, connecting to a VPN, and reinstalling an app still fail to prevent cross-app device tracking on stock iOS? **iOS-NOIR** audits 10+ blind spots and maps the **5-Layer Persistent Device Identity Chain**:\n\n### 🧬 5-Layer Persistent Identity & VPN-Bypass Chain\n1. **Layer 1 — Uninstall- & New-iPhone-Proof iCloud KVS (`ubiquity-kvstore-identifier`)** `【实锤】`: Writes tracking tokens into your private iCloud key-value store that automatically restore even after app uninstallation or migrating to a brand-new iPhone.\n2. **Layer 2 — Uninstall-Proof Shared Keychain (`keychain-access-groups`)** `【实锤】`: iOS Keychain items persist across app uninstalls and are shared across apps signed by the same developer Team ID.\n3. **Layer 3 — Cross-App Collusion Pools (`com.apple.security.application-groups`)** `【实锤】`: Shared local storage containers (`group.*`) survive uninstallation as long as *any single sister app* from the same corporate family remains installed.\n4. **Layer 4 — Hardcoded Carrier Phone-Number Gateways (`cmpassport.com`, `wostore.cn`, `id6.me`, `189.cn`)** `【实锤】`: Apps that hardcode carrier one-tap-login gateways in their ATS configuration. This kind of authentication runs over cellular data, even while you're on Wi-Fi, so the carrier can identify your phone number (`MDN`) straight from the SIM.\n5. **Layer 5 — GPS-Free Physical BSSID Hooks (`HotspotHelper` + its `network-authentication` background mode, & `multicast`)** `【机制实锤】`: System-level hooks that wake food-delivery\u002Fpayment apps whenever iOS scans Wi-Fi networks, feeding them nearby router MAC addresses (`BSSID`).\n\n### 🚨 Additional Hidden Backdoors Exposed\n- **Regulatory Unrestricted Silent VoIP Wakeups (`unrestricted-voip-regulatory`)** `【机制实锤】`: Detects super-apps (e.g., WeChat, QQ, DingTalk) holding Apple's undocumented regulatory exemption to wake dead background processes via silent PushKit payloads without displaying a CallKit UI.\n- **App-List Probing (`LSApplicationQueriesSchemes`) & URL Scheme Hijacking (`CFBundleURLSchemes`)** `【实锤】`: Uncovers apps hardcoding up to **280+ URL schemes** to probe whether you have VPN clients (`shadowrocket`), crypto wallets, or luxury car apps installed — plus detects **URL Scheme collisions** (e.g., 4 apps simultaneously hijacking `tc:\u002F\u002F` TON Connect or 18 apps hijacking `prefs:\u002F\u002F`).\n- **USB \u002F Wi-Fi Sandbox (`HouseArrest`) & System AFC Root Database Exposure (`AfcService`)** `【实锤】`: Audits apps exposing their `\u002FDocuments` container over USB\u002FWi-Fi without FaceID (catching exposed `.kdbx` password vaults and bank statements) AND checks unauthenticated `AFC` root exposure of `\u002FMediaAnalysis\u002FMediaAnalysis.sqlite` (Apple Live Text OCR index of all photos\u002Fscreenshots) and `\u002FPhotoData\u002FPhotos.sqlite`.\n- **ATS Exception Endpoints (`NSExceptionDomains`) & LAN\u002FCar Protocol Probes (`NSBonjourServices`)** `【实锤】`: Extracts domains where developers explicitly downgrade HTTPS (uncovering `jspatch.com` hot-patching backdoors and `shuzilm.cn` DNA fingerprinting), plus local mDNS probes (`_shadowrocket._tcp`, `_x5_gw._tcp`) and automotive\u002Fhardware accessory protocols (`com.bmw.a4a1`, `com.ford.sync.prot0`, `com.facebook.stella`).\n- **Kernel `.ips` Diagnostic Black-Box Forensics (`bug_type 145\u002F202` & `usedImages`)** `【实锤】`: Parses iOS kernel `.ips` logs to expose **Flash-Write Monsters** that blew through their own 24-hour disk-write limit, ranked by how many times over that limit they went (on the author's iPhone: Alipay 10.0×, Bilibili 5.8×, Xiaohongshu 4.3×, QQ 3.5×, Taobao 2.6×, WeChat 1.3×; WeChat wrote the most, 17.18 GB in 18.7 h, but it also has the highest limit), CPU guillotine kills, and embedded binary SDKs (`TMXBehavioSec` behavioral biometrics inside background notification extensions, custom QUIC stacks) without jailbreaking.\n\n### 📝 Updates (2026-11-06)\n- `network-authentication` is the background mode an app must declare to register as a Wi-Fi Hotspot Helper (all 4 apps on the author's iPhone that declare it also hold `HotspotHelper`), so it now sits with Layer 5's Wi-Fi hooks. Layer 4 is now based on hardcoded carrier phone-number gateways.\n- URL scheme collisions now count only *different* apps claiming the same scheme; an app declaring its own scheme twice used to be counted as a collision.\n- `.ips` disk-write reports are now ranked by how far each process went over its own limit (limits differ between processes). The written amounts are the real recorded figures, unchanged.\n- The sample report now uses synthetic data.\n\n---\n\n## 🚀 Quick Start \u002F 快速上手\n\n> ⚠️ **Platform Note:** Currently tested and verified on **macOS** (where Apple's `usbmuxd` runs natively). **Windows and Linux have not been tested yet** (and may require additional iTunes \u002F `usbmuxd` driver setup).\n\n### 1. Install Dependencies\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Farnold117\u002FiOS-NOIR.git\ncd iOS-NOIR\npython3 -m venv .venv\nsource .venv\u002Fbin\u002Factivate\npip install -r requirements.txt\n```\n\n### 2. Connect Your iPhone via USB\nPlug in your iPhone, unlock the screen, and tap **\"Trust This Computer\"**.\n\n### 3. Run Full Audit (Terminal + Standalone 6-Tab HTML Report)\n```bash\n# Run full audit (outputs JSON, domains, and interactive bilingual HTML report to noir-out\u002F)\npython ios_noir.py scan\n\n# Run in English terminal mode + redacted mode for safe sharing on X\u002FTwitter\u002FHN\npython ios_noir.py scan --lang en --redact\n\n# Open the generated interactive HTML report (includes top-right 🇨🇳 中文 \u002F 🇺🇸 English switch)\nopen noir-out\u002Fios-noir-report.html\n```\n\n### 4. Run Live Privacy Radar (Real-Time TCC \u002F Sensor \u002F IDFA Sniffer)\n```bash\n# Monitor real-time permission preflights, camera\u002Fmic probes, and IDFA requests for 30s\npython ios_noir.py radar --duration 30\n```\n\n---\n\n## 🛡️ Built-In Countermeasures (`shields\u002F`)\n\n1. **VPN-Free Kernel Encrypted DNS Shield ([`shields\u002FiOS-NOIR-System-Shield.mobileconfig`](shields\u002FiOS-NOIR-System-Shield.mobileconfig))**  \n   Uses Apple's native `com.apple.dnsSettings.managed` payload. AirDrop it to your iPhone to block trackers and encrypt DNS over HTTPS at the OS kernel level **24\u002F7 without keeping a VPN connected or draining battery**. Automatically yields when you turn on Shadowrocket\u002FClash and resumes the moment VPN disconnects.\n2. **1-Click Shadowrocket \u002F Surge Overlay Module ([`shields\u002Fios_noir_shield.module`](shields\u002Fios_noir_shield.module) & [`shields\u002Fios_noir_shield.conf`](shields\u002Fios_noir_shield.conf))**  \n   Non-destructive overlay module for **Shadowrocket \u002F Surge \u002F Loon \u002F Clash** (won't overwrite your main proxy config). Import directly in Shadowrocket (`Config -> Modules -> +`) via URL:\n   ```text\n   https:\u002F\u002Fraw.githubusercontent.com\u002Farnold117\u002FiOS-NOIR\u002Fmain\u002Fshields\u002Fios_noir_shield.module\n   ```\n   Blocks carrier silent-auth gateways (`cmpassport.com`, `wostore.cn`, `id6.me`), cross-app DNA fingerprinting (`shuzilm.cn`), hot-patch backdoors (`jspatch.com`), behavioral biometrics (`online-metrix.net`), and major ad-tech telemetry.\n\n---\n\n## 🔬 Methodology & Limitations (方法论与局限性声明)\n\n1. **FairPlay DRM Boundary on Stock iOS:** Binaries on non-jailbroken iPhones are FairPlay-encrypted. `iOS-NOIR` performs whole-device entitlement\u002Fplist\u002Fsandbox\u002Fsyslog forensics without decrypting IPA Mach-O code sections. For function-level Ghidra decompilation of decrypted IPAs, combine `iOS-NOIR` with [`RootSir\u002Fclaude-ios-privacy-analysis`](https:\u002F\u002Fgithub.com\u002FRootSir\u002Fclaude-ios-privacy-analysis).\n2. **Capability (`【机制实锤】`) ≠ Continuous Runtime Trigger (`【实锤】`):** Holding an Apple-signed entitlement proves the kernel capability is unlocked, whereas actual trigger frequency is governed by server-side policies.\n3. **Static ATS Domains ≠ Active Packet Capture:** Domains listed in `NSExceptionDomains` are developer-declared exceptions in `Info.plist`; some may be legacy or conditional endpoints.\n\n---\n\n## 📜 Credits & License\n\n- **Inspired by:** [Verlintas\u002FNOIR](https:\u002F\u002Fgithub.com\u002FVerlintas\u002FNOIR) & [RootSir\u002Fclaude-ios-privacy-analysis](https:\u002F\u002Fgithub.com\u002FRootSir\u002Fclaude-ios-privacy-analysis)\n- **Powered by:** [doronz88\u002Fpymobiledevice3](https:\u002F\u002Fgithub.com\u002Fdoronz88\u002Fpymobiledevice3) & [Textualize\u002Frich](https:\u002F\u002Fgithub.com\u002FTextualize\u002Frich)\n- **Author:** Arnold · PGP: `C3D9 CA55 2798 2586 BB20  F2DB 7B25 BE32 527E FEA1`\n- **License:** [MIT](LICENSE)\n","iOS-NOIR 是一款无需越狱即可对 iOS 设备进行隐私、权限、沙盒与遥测行为取证审计的开源工具。它通过 pymobiledevice3 与设备通信，静态解析 Entitlements、Info.plist、App Groups、Keychain 访问组及 iCloud KVS 标识符，并基于三级证据标准（实锤\u002F机制实锤\u002F推断）生成带溯源标注的 HTML 报告。支持 macOS 平台，强调可复现性与 forensic-grade 严谨性。适用于隐私合规评估、移动安全研究、应用上架前自检及数字取证场景。",2,"2026-11-24 04:37:12","CREATED_QUERY"]