Chrome's Gemini Nano model helps a simulated attacker stage a key

In short

The idea: living off the land, with a model

"Living off the land" is attacker slang for using tools already on the victim's computer, such as PowerShell or Python, so that nothing new has to be downloaded and security software sees only normal-looking programs. The authors add a new tool to that list. Chrome now downloads a 2 to 4 GB multimodal model, Gemini Nano, to desktops and exposes it to web pages through the Prompt API; the model runs on the device. Microsoft Edge and Windows are adding similar local models, the paper says.

For an attacker this has three appeals, the authors argue: the model is already installed and signed by the vendor, there is no API key for a provider to revoke, and because inference happens on the device there is no network traffic to the model for defenders to watch.

How they reached the model

Our plain-English summary of the paper's technique. A short script, written in Python or PowerShell, launches Chrome with a remote-debugging port and its own profile folder, opens a page, and uses it to send prompts to the model. If the model is not yet in that profile, Chrome wants a user gesture, a click, before it will start the download. The authors report two ways round that check:

They also found the debugging port is not required: the same model can be reached from a page served on localhost and opened in a normal Chrome. A fresh profile with no click correctly refused (NotAllowedError).

Because a model this small plans poorly, the harness does the bookkeeping. It forces the model's reply into a fixed JSON format naming a tool and its arguments, runs the tool, and feeds the result back. The context window holds only 9,216 tokens, so images are described in a separate session and intermediate results are written to disk.

What the model can do

The authors ran the model on public datasets, on a laptop with an 8 GB GPU, using Chrome 156 on Ubuntu under WSL2 and Chrome 157 on Windows 11, as a normal non-elevated user. A prompt took about 1.4 seconds on the Windows GPU and about 3.7 seconds on the CPU.

Source: the paper's Tables 2 and 3. F1 balances how many real items the model finds (recall) against how many of its flags are right (precision); 1.0 is perfect. The authors call the model "a far-cry from large frontier models" but good enough to help an attacker. It over-flags decoys, and when no function fits a request it invents a plausible call in the remaining quarter of cases (our arithmetic from the 75%).

The simulated operation

The scenario: a webcam photo of a desk shows a sticky note with the password of a header-encrypted 7z archive. Inside are five files, four harmless (book notes, a budget, a resume, a to-do list) and one holding an SSH private key. The model had six tools: capture a webcam image, parse an image, list a folder, read a file, extract the archive, and stage a file. The "webcam" tool injected a synthetically generated image.

Of the 9 failures in the planned version, 2 got as far as identifying the key but staged the to-do file instead of the server notes; 7 ran out of steps because the model misread the password from the image and retried, though all 7 eventually found the right one. The authors conclude it is "an unreliable autonomous planner, but a reliable executor of an operator supplied plan."

How can defenders spot a misused browser model?

No network traffic was produced by the model in the trials. The authors say a fuller version of their harness, with screenshot capture and mouse control, was flagged by Windows Defender because it resembled the PowerShell Empire toolkit, while a smaller, task-specific harness was not. This is one product and one harness, our note, not a general finding.

On defences, Chrome's enterprise policies can help. Setting BuiltInAIAPIsEnabled to false makes every built-in AI API report the model as unavailable, and GenAILocalFoundationalModelSettings set to 1 blocks the download and deletes an existing model. The two debugging policies stop only their DevTools-based harness, not model use in general. None of the four is on by default, and the first two switch off legitimate built-in AI features. The authors also propose, but did not validate against production logs, three host signals: Chrome launched by a script host with a non-default profile folder, a loopback listener held by the parent script, and model files appearing in a profile that never downloaded them. They suggest browsers show model use to users, as they do for camera and microphone, and tie the model to the profile that downloaded it.

Limits

Terms in plain English

Our wording:

Where things stand

The authors expect the model's error rate to fall as Chrome's Nano improves, and argue that improvements made for ordinary features carry over to an attacker. They say the pattern is not specific to Chrome, and recommend treating on-device models as a dual-use capability like PowerShell, with a deliberate decision to enable or disable them. The paper has not yet been reviewed, and we have not seen a response from Google beyond the "Won't Fix" status the authors report.

Sources

Sources

Related stories

More from Teach the Bot

All stories from Teach the Bot