On-Device AI Audit
Do Android apps marketed as "on-device" AI actually keep user data on the phone?
Role
Solo Researcher
Duration
Ongoing
Tech Stack
7 technologies
About This Project
"On-device AI" has become a privacy promise. Apps tell users their prompts, voice, and documents are processed locally, offline, privately. On-Device AI Audit is an independent measurement study that checks those claims: when an Android app says its AI runs on the phone, what actually happens to the user's prompts, audio, and anything derived from them? And what makes it fall back to the cloud without saying so?
The first pass is static. ondevice-scan, a Python CLI, takes an APK or a package name and produces one schema-validated JSON record per app. It covers the claim the app makes, the inference SDKs and model files it ships, the cloud SDKs it links, the URLs it downloads from, and the Data Safety declaration it publishes. Each app gets a verdict. A claim_conflict, where the marketing and the static evidence disagree, makes an app a candidate for dynamic testing. It is a lead, not a finding.
The dynamic pass runs candidates on instrumented Pixel phones, sending synthetic canary prompts while traffic, files on disk, and inter-process surfaces are captured with tools like Frida, HTTP Toolkit, and PCAPdroid. Three device setups separate the app from the platform: a control phone without Gemini Nano, a stock phone with Nano available through AICore, and the same phone with AICore turned off. An app that answers locally on one and quietly reaches a server on another has a fallback path, and the canary in the request body is the proof.
The proof standard is deliberately strict. Network metadata is only a screening signal. Prompt egress is claimed only when a decrypted canary appears in a captured request. The study is look-don't-touch: only synthetic data is sent, and no other user's data is observed. Every finding about a named vendor goes through coordinated disclosure with a 90-day window and a publication gate that allows only statements the evidence can verify.
Key Features
- ◆ondevice-scan: a Python CLI that takes an APK or package name and emits one JSON record per app, validated against a published schema
- ◆A staged static pipeline: fetch, manifest, bundled model files, inference SDKs, cloud SDKs, download URLs, the Play Data Safety declaration, and the marketing claim itself
- ◆Every app gets a static verdict (local_possible, cloud_present, or claim_conflict), and a conflict only marks it for dynamic testing, never as a finding
- ◆Dynamic runs on instrumented Pixel devices with synthetic canary prompts while traffic, files on disk, and inter-process surfaces are captured
- ◆Three device setups to separate app behavior from platform behavior: a control phone without Gemini Nano, a stock phone with Nano through AICore, and the same phone with AICore disabled
- ◆Three axes measured per app: prompt egress, data at rest, and local attack surface that other apps on the device can reach
- ◆Known-local and known-cloud control apps to prove the method sees what it should before it is pointed at anything else
Challenges
Setting a proof standard that holds up: DNS, SNI, and traffic volume are only screening signals, and prompt egress counts only when a decrypted canary appears in a captured request body
Not misreading the platform: Gemini Nano lives in the system AICore service, not the APK, so a missing model file proves nothing on its own
Catching silent cloud fallback, where an app runs locally on a phone that supports it and quietly switches to a server on one that does not
Publishing responsibly: wording limited to verifiable observations, a publication gate every named vendor must clear, and a 90-day coordinated disclosure window
Outcomes
- ✓Scanner, record schema, and publication gate built and tested, with pilot control apps selected and verified
- ✓Planned scope: a static corpus of 150 to 200 apps and full dynamic runs on 15 to 20 of them
- ✓An arXiv preprint is planned first, followed by a full paper with the complete disclosure log
- ✓Code to be released under MIT and the dataset under CC BY 4.0
Tech Stack
Want to talk about this project?
Questions, collaboration, or overlapping research: send a raven.
Get in Touch