# Living off the Local Model: Abusing Browser-Embedded Language Models for Post-Exploitation

Gemini Nano in Chrome can be abused from the host for post-exploitation

William Fleshman, Joseph Lucas · arXiv · 2026-11-18

- **Problem** Until now, LLM-enabled intrusions relied on remote APIs, which let providers revoke credentials and give defenders traffic to watch.
- **Method** The authors drive Gemini Nano from a host script that launches Chrome with a remote-debugging port and clears the one-time user-activation check with a synthetic click.
- **Results** With an explicit plan, the model completed the simulated operation end-to-end without user interaction, while an open-ended goal succeeded in only 60% of trials.

![Figure 2: A simulated cyber operation, driven end-to-end by the on-device model. From a webcam photo of the desk the model readsthearchivepasswordoffthestickyn…](https://refivu.com/papers/cc11723b-a01f-4ed7-af46-3a3fa7856062/figures/figure-716e04c8bb2668cb552f68711cd8cc97.png?thumb=512)

**Figure 2** : A simulated cyber operation, driven end-to-end by the on-device model. From a webcam photo of the desk the model readsthearchivepasswordoffthestickynote(parse\_image),unlocksanencryptedarchive(extract\_archive),triages the five extracted files, and copies out the one holding an SSH private key (stage\_file).

[Original paper](https://arxiv.org/abs/2611.25086v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · William Fleshman, Joseph Lucas · Living off the Local Model: Abusing Browser-Embedded Language Models for Post-Exploitation · Original paper figure · Extracted the figure area from page 4 of the original PDF.

## Why remote model APIs leave traces

LLM-enabled intrusions have so far relied on remote APIs, and that reliance creates two weak points for an attacker. The provider can revoke the credentials, and the traffic to well-known endpoints gives defenders something to watch. Small models remove both weak points, because the model runs on the endpoint itself.

Microsoft Edge and Windows offer comparable local Phi models, so the pattern is not specific to Chrome. The authors ask whether an attacker can drive such a model, already installed on the host, from the host itself.

## Getting past the model gate

The core idea is that the model sits behind a one-time user-activation check, and an attacker can clear that check without a human present. A page reads availability as unavailable, downloadable, downloading or available, and it creates a session only after it has prompted the availability check. If the model is downloadable, the first origin to use the API starts the download only after a user gesture, and later use needs no further gesture.

The attacker's script launches Chrome with a remote-debugging port and a dedicated profile directory, then connects to the page over a loopback WebSocket. The Windows client does this with PowerShell and .NET's ClientWebSocket, while the Linux client implements the WebSocket in Python with the socket module. Since Chrome 136 the remote-debugging flag is disabled for the default profile, so a separate profile directory is needed, which the authors treat as no obstacle under their threat model.

On a fresh profile, a synthetic mouse press sent through the debugging protocol, or an OS-level input event, starts the model download. A fresh profile with no gesture returns NotAllowedError, so the check does work, but a single synthesized click clears it. Copying the OptGuideOnDeviceModel directory together with Local State into a new profile gives a working model with no download or gesture.

## How the harness turns replies into actions

The core idea is to force every model reply into one JSON shape, so a simple loop can run whichever tool the model picks. The harness keeps one session open for the whole task, so each new tool result becomes part of the conversation history. Each reply carries a free-text rationale, an action taken from an enumeration of tool names, and the arguments that action needs.

When a reply still fails to parse, which can happen once the context window is full, the harness asks for a retry.

The tools cover file operations, command execution, screenshot capture, image processing, keyboard and mouse input and GUI actions. For GUI work the harness lists the named controls of the foreground window through UI Automation and clicks one by name, because the model misjudged control positions read from screenshots. The session holds only 9,216 tokens, so image analysis runs in a separate session and intermediate results are written to disk with append\_file.

The system prompt also steers the model toward command-line tools whenever both options exist, and an operator can require confirmation of each action.

## Finding credentials and personal data

The authors frame credential triage as file-level detection, since an attacker with host read access only has to find the files that hold credentials. The drop in precision comes from decoys such as placeholder values and variable references, because the model over-tags realistic decoys like cryptographic API calls.

Sorting flagged files into credential categories reached a micro-averaged F1 of 0.68. On the Enron corpus, personal-data detection reached F1 0.92 for any personal data and F1 0.74 for the sensitive subset. The labels came from a separate on-device PII detector, so these scores measure agreement with that detector rather than with human annotation.

Per-type PII classification reached micro-averaged F1 0.68, strongest on names, email addresses and phone numbers, while the sparse financial and government-identifier types are reported as lower confidence.

## Image classification and tool calling

On Imagenette the model classifies images through its vision input, using a validation set of 250 images with 25 per class. It reached 98.0% top-1 accuracy, and per-class recall never fell below 0.92. Its errors were semantically plausible confusions, which suggests the misses are close calls rather than random ones.

Tool calling was tested on the BFCL single-turn categories with the official abstract-syntax-tree checker, where each item needs exactly one JSON call or an abstention. Accuracy was 0.90 on simple items and 0.92 on multiple-function items, so the model picks and fills functions well when a function applies. Its weak spot is irrelevance, where it abstained correctly only 75% of the time and otherwise invented a plausible-looking call.

Across all three settings the overall accuracy was 0.86, which the authors judge good enough for post-exploitation use, though well short of large frontier models.

## Running the simulated operation

The authors chained the primitives into one scenario in which a password on a sticky note unlocks an archive, and one of its five files holds an SSH private key. The model reads the password from a webcam image, extracts the header-encrypted 7z archive, reads each file and stages the one with the key. The decisive factor turned out to be how the goal was stated.

With an open-ended goal, the model completed the operation in only 60% of trials. It executed each step reliably but planned poorly, failing to recognise when a found credential should be staged and spending its budget on redundant actions. Of the other nine trials, two staged todo.txt instead of the server notes, and seven exhausted the step budget while repeatedly parsing the password.

All seven eventually recovered the correct password, so the authors read the model as an unreliable autonomous planner but a reliable executor of an operator's plan.

## Speed and what defenders could see

On a headed Windows host, the first prompt paged roughly 3GB of model weights into GPU memory, and each prompt then took roughly 1.4 s. Headless Chrome and WSL2, which fell back to the CPU, took around 3.7 s per prompt. The outputs were identical between GPU and CPU runs, so the fallback changes speed rather than results.

The trials produced no network traffic, so a security product sees only the agent's on-host behaviour and the harness itself. A feature-rich harness with screenshot and mouse capabilities was flagged by Windows Defender, because it resembled PowerShell Empire. The smaller, operation-focused harness evaded detection, and it is easy to write on the fly instead of transferring over the network.

## Policies and host-level signals

Two enterprise policies govern the model itself: BuiltInAIAPIsEnabled set to false, and GenAILocalFoundationalModelSettings set to 1. Both stop the page route and the CDP route, but they also break legitimate built-in AI web apps or delete the model. The two debugging policies, RemoteDebuggingAllowed and DeveloperToolsAvailability, block only the DevTools-based harness, so they shouldn't be relied on as a control.

Detection has to rely on host telemetry, and the authors list three groups of signals. The first is process lineage: Chrome launched by a script host with a non-default user data directory, often headless, where a remote-debugging switch is a strong extra indicator. The third is model files out of place, such as OptGuideOnDeviceModel or Local State in a profile that never downloaded the model.

The authors offer these as proposed signals, not as ones validated against production logs.

## Limitations

The main limit the authors state is the small model's error rate, which they expect to improve as Nano versions advance. Experiments ran on one laptop, on Ubuntu 24.04 under WSL2 with Chrome 156 and on Windows 11 with Chrome 157. The authors do not benchmark the model against large frontier models, and credential triage was scored at file level rather than on verbatim extraction of secrets.

The proposed detection signals remain unvalidated against production logs.

## Paper info

- **Authors**: William Fleshman, Joseph Lucas
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-18
- **Added**: 2026-11-20
- **Updated**: 2026-11-18
- **Version**: v1
- **arXiv**: 2611.25086
- **Category**: cs.CR · cs.AI · cs.CL
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.25086v1) · [PDF ↗](https://arxiv.org/pdf/2611.25086v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Browsers now ship local language models to ordinary endpoints. Google includes Gemini Nano in Chrome to enable productivity features such as summarization, with inference running entirely on the device. These browser-embedded models provide new living-off-the-land opportunities for attackers, each instance a potential post-exploitation engine already installed, signed by the vendor, and invisible to network monitoring. The Gemini model is multimodal, capable of processing files, analyzing screenshots, or conversing with an attacker. We show that it can be driven from the host using only interpreters that ship with the operating system and find that the one-time user-activation check before the model is downloaded is easily satisfied with a simulated click or bypassed entirely.We measure and report the current model's ability to identify credentials on the host, detect PII in email, classify images, and call custom tools. We combine these capabilities and use the model to carry out a simulated cyber operation: reading a password from a webcam image, unlocking an encrypted archive, triaging the contents, and staging a private key for exfiltration, end-to-end without user-interaction.

## Quote from the paper

William Fleshman, Joseph Lucas (2026). Living off the Local Model: Abusing Browser-Embedded Language Models for Post-Exploitation. arXiv:2611.25086v1. https://arxiv.org/abs/2611.25086v1

**BibTeX**

```
@misc{fleshman2026living,
  title = {{Living off the Local Model: Abusing Browser-Embedded Language Models for Post-Exploitation}},
  author = {William Fleshman and Joseph Lucas},
  year = {2026},
  eprint = {2611.25086},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.25086v1}
}
```

## Other paper commentary

- [Auditing black-box clinical prediction models with a large language model through queries alone: a blinded test with planted flaws](https://refivu.com/en/papers/42b571d7-f993-4ac8-853f-382abfa8b6e5-auditing-black-box-clinical-prediction-models-with-a.md)
- [When Does Continual Pre-Training Help? A Controlled Study of Dialectal Adaptation for Québec French](https://refivu.com/en/papers/ee9d59b6-07ec-4342-88ad-e01decce0c64-when-does-continual-pre-training-help-a-controlled.md)
- [ForecastGym: A Live, Controlled, and Replayable Benchmark for Forecasting Agents](https://refivu.com/en/papers/572afde2-c460-4040-b538-3f0f36b7b4db-forecastgym-a-live-controlled-and-replayable-benchmark-for.md)
- [Learning through Discernment: when a small language model learns from user feedback on the job, and when it decays](https://refivu.com/en/papers/abd047d8-b03e-463c-ae87-fea894fdeedf-learning-through-discernment-when-a-small-language-model.md)
- [Grading Executable Legal Rules Against Independent Records: Transitional Provisions and Korean SME Status](https://refivu.com/en/papers/4760a9f8-e21f-4e81-906f-5d389381d6f4-grading-executable-legal-rules-against-independent-records.md)
- [Same Model, Different People: Numerical Execution Contracts and the Reproducibility of Fairness Audits](https://refivu.com/en/papers/10499ef9-8cce-4911-8d65-2015e1e6911f-same-model-different-people-numerical-execution-contracts.md)
- [Auditing Learned Dynamics in Weather Models](https://refivu.com/en/papers/7aceaa3b-5a74-4803-87bb-b10902d4883e-auditing-learned-dynamics-in-weather-models.md)
- [Phantom Success, Silent Failure: Auditing the Success Checkers of Simulated Manipulation Benchmarks](https://refivu.com/en/papers/ec974270-0a0e-4523-9bc1-38df02a7e16b-phantom-success-silent-failure-auditing-the-success-checkers.md)
- [ShadowTransfer: A Geographic Transfer Benchmark for Overhead Shadow Detection](https://refivu.com/en/papers/326aa314-6183-4693-bef4-f44dd36dea16-shadowtransfer-a-geographic-transfer-benchmark-for-overhead.md)
- [Equal Steps, Unequal Curvature: Where Muon's Update Goes Wrong](https://refivu.com/en/papers/fb6483b8-4d92-41c0-9d58-f42a67ef93b2-equal-steps-unequal-curvature-where-muon-s-update.md)
- [Chain-of-Thought Hidden States Reveal Task-Solving Directions for Direct Answers](https://refivu.com/en/papers/8a23f0af-7204-4d01-8549-f9ad8f063856-chain-of-thought-hidden-states-reveal-task-solving.md)
- [On Evaluating User Simulators for Interactive Agents](https://refivu.com/en/papers/163eec3e-1ab6-43cf-8cb9-cb7e7b3c23ab-on-evaluating-user-simulators-for-interactive-agents.md)

## Terms in this paper

- [Accuracy](https://refivu.com/en/terms/1995c0cd6282-accuracy)
- [Image classification](https://refivu.com/en/terms/e15c43f3bb32-image-classification)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/cc11723b-a01f-4ed7-af46-3a3fa7856062-living-off-the-local-model-abusing-browser-embedded)
