Skip to content

Parasitizing local models: abusing browser-embedded language models for post-exploitationLiving off the Local Model: Abusing Browser-Embedded Language Models for Post-Exploitation

arXiv: 其他 AI 安全论文· arXiv:2611.25086· William Fleshman, Joseph LucasArmy Cyber Institute; NVIDIAIndexed by this site · 4 days ago· Originally publishedSelected Attacks· Its place in the scan record →SelectedAttention38

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors demonstrate using the system's built-in interpreter to drive Chrome's built-in Gemini Nano for post-exploitation: bypassing the download threshold, it completed the simulated operation in 41 of 50 trials given a plan.

Threat modelThe attacker has already gained host access as a regular user through phishing and other means, and wishes to perform post-exploitation (reconnaissance, semantic search, staging, etc.) without generating traffic to an LLM provider, and can only use what is already on the host: the OS's built-in interpreter, the Chrome binary, and the on-device model (or download a model using techniques disclosed in the paper). This attacker is excluded by Chrome's existing threat model (the VRP does not handle bugs that depend on existing access).

Questions
Browsers are beginning to ship with on-device small models preinstalled by vendors (such as Chrome's Gemini Nano), with inference entirely local and no network traffic. The authors examine whether an attacker who has already compromised a host can use it as a living-off-the-land post-exploitation engine, and whether existing defenses cover this path.
Methods
The authors use PowerShell or a standard-library-only Python script to drive Gemini Nano via CDP or a localhost page calling the Prompt API; they satisfy or bypass the one-time user activation gate with synthetic clicks or by copying the model files; then they build an agent with a tool-calling loop constrained by a JSON schema, and measure capabilities on public datasets and in one simulated action.
Experiments and results
Synthesizing clicks or copying the model directory plus Local State is enough to enable the model; credential triage F1 0.77 (hard negatives), Enron PII detection F1 0.92, Imagenette top-1 98.0%, BFCL tool calling 0.86; with a given numbered plan, 41 of 50 trials completed the simulated operation, while open-ended goals were only 60% (n=20).
Limitations and future work
The authors note that the small model's error rate is the main limitation, and that the detection signals are suggestive and not validated on production logs. Experiments were conducted on a single laptop, on Ubuntu 24.04/WSL2 and Windows 11; the multi-step action was a single scenario, and the open-ended goal trials had n=20.
Experimental setupGemini Nano · CredData、Enron corpus et al. · F1、precision et al.
Evaluated models
Gemini Nano
Benchmarks
CredDataEnron corpusImagenetteBerkeley Function-Calling Leaderboard (BFCL)
Metrics
F1precisionrecalltop-1 accuracytool-calling accuracyoperation success rate
AI summaryand selection rationaleResearchers from the Army Cyber Institute and NVIDIA demonstrate in a paper that Chrome's built-in Gemini Nano can be repurposed into an offline post-exploitation engine. Attackers need only the operating system's built-in interpreter to drive the model via the Chrome DevTools Protocol or a local web page; the one-time user activation check before model download can be satisfied with simulated clicks, or bypassed by copying the model files from an existing profile, and the related report was marked Won't Fix by Google. Measurements show the model achieves 0.93 recall and 0.65 precision in identifying credential files on the CredData balanced set, F1 0.92 on Enron email personal data detection, top-1 98.0% on Imagenette image classification, and 86% overall accuracy on BFCL tool calling; in an end-to-end simulated operation, the model read a sticky-note password from a webcam image, unlocked an encrypted archive, and staged an SSH private key, succeeding 41 times in 50 trials when given a numbered plan.

Researchers from the Army Cyber Institute and NVIDIA demonstrate in a paper that Chrome's built-in Gemini Nano can be repurposed into an offline post-exploitation engine. Attackers need only the operating system's built-in interpreter to drive the model via the Chrome DevTools Protocol or a local web page; the one-time user activation check before model download can be satisfied with simulated clicks, or bypassed by copying the model files from an existing profile, and the related report was marked Won't Fix by Google. Measurements show the model achieves 0.93 recall and 0.65 precision in identifying credential files on the CredData balanced set, F1 0.92 on Enron email personal data detection, top-1 98.0% on Imagenette image classification, and 86% overall accuracy on BFCL tool calling; in an end-to-end simulated operation, the model read a sticky-note password from a webcam image, unlocked an encrypted archive, and staged an SSH private key, succeeding 41 times in 50 trials when given a numbered plan.

Why it was selectedThe paper fully demonstrates the attack chain that turns a browser's built-in model into an offline post-exploitation tool; enterprises can refer to its policy configurations and host detection signals for defense.

Related events and news

1 events · 1 news mentions

News that mentions this paper

大模型安全周报:单步合规检查挡不住智能体跨步骤组合危害

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors study whether an attacker can use a browser-preinstalled on-device model (Chrome Gemini Nano) as a post-exploitation engine with no network traffic.

    Core question: can an on-device language model preinstalled by a browser vendor be abused by an attacker who has already compromised the host as a living-off-the-land (LotL) post-exploitation tool, and can defenders observe it.

    • Scenario and motivation: Chrome downloads a 2–4 GB multimodal model, Gemini Nano, to desktop and exposes it to web pages through the Prompt API; Edge and Windows are also introducing similar on-device Phi models. The authors argue that these already-installed, vendor-signed, offline-running models are exactly the tools attackers want to exploit.
    • Shortcomings of existing methods: the authors state that previous malicious use of LLMs relied on remote APIs, required revocable credentials, and produced network traffic to known endpoints that could be monitored; on-device models remove both dependencies.
    • Threat model:
      • Attacker goal: perform adaptive post-exploitation (reconnaissance, semantic search, staging, etc.) as an ordinary user, without producing traffic to LLM service providers.
      • Knowledge and capability: use only interpreters already on the host from the OS, the Chrome binary, and the on-device model (or download models using the technique disclosed in the paper).
      • Victim system: an ordinary user's desktop host (Chrome on Windows 11 or Ubuntu 24.04/WSL2).
      • The authors note that this attacker is excluded by Chrome's threat model: the VRP does not handle bugs that depend on existing user access, and the consequences fall to organizational policy and endpoint monitoring.
    • What the paper proposes: an agent framework that drives Gemini Nano using only system-provided interpreters, methods for satisfying/bypassing two user-activation thresholds, measurements of the model's capability on post-exploitation tasks, an end-to-end simulated operation demonstration, and mitigation and detection recommendations for defenders.
  2. What related research exists?

    Related work falls into four groups: LotL techniques, LLM attacks and local model abuse, Gemini Nano and browser model attacks, and browser agent benchmarks.

    Living off the Land (LotL)

    • CISA and partners (2024)—published guidance on identifying and mitigating LotL techniques; LOLBAS Project (2025)—catalogs Windows binaries, scripts, and libraries that can be abused.
    • Barr-Smith et al. (2021)—a systematic survey of LotL use in Windows malware; MITRE ATT&CK (MITRE 2025) covers related techniques such as T1059 and T1218.

    LLM attacks and local model abuse

    • Deng et al. (2024)—PentestGPT, evaluating LLMs as penetration testing assistants; Cohen, Bitton, and Nassi (2024)—adapting worm techniques to the GenAI assistant ecosystem.
    • Oesch et al. (2026)—propose Living off the LLM, using models hosted by Ollama to demonstrate an attacker exploiting the victim's self-deployed model infrastructure. The paper states this is the closest work to theirs, with the difference that this paper studies a vendor-preinstalled browser model that the user may be unaware of.

    Gemini Nano and browser model attacks

    • Weizman (2026)—CVE-2026-0628, a low-privilege extension hijacking Chrome's Gemini Live panel to access the camera, microphone, screenshots, and local files.
    • Eshed (2026)—RSAC 2026 talk showing how web pages and extensions can abuse the same Gemini model and API; the paper notes that its scope is extensions and web-based attacks, not LotL use.
    • Manikhouth (2026)—the availability and response speed of on-device APIs can leak the device's hardware tier; Gu et al. (2025)—measurement of timing leaks in hosted LLM APIs.

    Browser/desktop agent benchmarks

    • Xie et al. (2024)—OSWorld, evaluating agents that operate the desktop via screenshots and accessibility data; the paper states that its own agent design is similar but uses a much smaller model.

    Baselines and benchmarks: The paper has no compared attack-method baseline; capability evaluation uses the public datasets CredData (Samsung 2021), Enron corpus (Klimt and Yang 2004, labels from Liquid AI's on-device PII detector), Imagenette (Howard 2019), and BFCL (Patil et al. 2025). The authors position this paper as extending the Living off the LLM idea from self-deployed models to vendor-preinstalled browser built-in models that the user may be unaware of.

  3. How does the paper address this problem?

    Use the system's built-in interpreter to drive Gemini Nano via CDP or a localhost page, bypass the activation gate, and then use a tool-calling loop constrained by a JSON schema to execute post-exploitation tasks.

    Overall approach: the attacker writes only an interpreter script, launches (possibly headless) Chrome on the victim host and connects to a page, and drives the on-device Gemini Nano through the Prompt API; a responseConstraint JSON schema constrains the model's output into tool calls, forming an agent loop.

    Gaining model access

    • CDP channel: the script launches Chrome with a remote debugging port and a dedicated profile directory, connects over a loopback WebSocket to the page's DevTools endpoint, and uses Runtime.evaluate to call availability(), create a session, and send prompts; the Linux client implements WebSocket with Python's socket module, and the Windows client uses PowerShell's .NET ClientWebSocket.
    • No-CDP channel: place a page on localhost and open it with a normally launched Chrome to access the model via JavaScript; the user activation gesture is satisfied with OS-level input injection (XTest on Linux, Win32 SendInput on Windows), and the page treats it as a trusted click.
    • Bypassing the download threshold: if a profile has already downloaded the model, copying the OptGuideOnDeviceModel directory and that profile's Local State file to a new profile allows direct use; copying only the model directory does not bypass it. The authors state that both bypasses were disclosed to Google, and the reports were marked Won't Fix.

    From model to agent

    • Loop structure: the harness maintains a single session throughout, so the model can see historical tool results; each step constrains the model's output with a responseConstraint schema containing free-text rationale, an action chosen from an enum of tool names, and its parameters; on parse failure it requests a retry (which may occur when the context window is full).
    • Tool set: custom tools written in PowerShell or Python, including file operations (create, read, write, append, list directory), arbitrary command execution, screenshots, image processing, raw keyboard and mouse operations, and GUI operations via the accessibility tree.

    Three design choices for small models

    • GUI via the accessibility tree: the authors found that locating controls from screenshots was unreliable for the model, which often misjudged positions while reporting high confidence, so on Windows they use UI Automation to list the foreground window's controls and click them by name.
    • Image analysis in a separate session: the session context window is only 9,216 tokens, so image description is done in a separate session, with intermediate results written to disk using the append_file tool.
    • System prompt favors the command line: when both the command line and GUI are feasible, the model is guided to use the command line; the harness can also require the operator to confirm each action step by step.

    Capability measurement and action demonstration

    • Capability evaluation: scored against ground truth on public datasets — CredData credential triage (file-level detection rather than verbatim extraction), Enron email PII detection (labels from Liquid AI's on-device PII detector), Imagenette image classification (visual input), and BFCL single-turn category tool calling (judged by the official AST checker).
    • Simulated operation: six tools (webcam_capture, parse_image, list_dir, read_file, extract_archive, stage_file), with the goal of reading the password on a sticky note from a desktop photo, extracting a 7z whose filenames are encrypted, and finding the one of five files containing an SSH private key and staging it; comparing two presentation modes: an open-ended goal versus a given numbered plan (the harness maintains a step list as working memory).
  4. What experiments did the paper conduct?

    Measured activation thresholds, three data-analysis capabilities, tool-calling accuracy, and one multi-step simulated operation; with a given plan, 41 of 50 trials succeeded.

    Experimental Setup

    • Model under test: Chrome's built-in Gemini Nano (the paper states Chrome currently uses Nano version 3), accessed via the Prompt API.
    • Platform: A single laptop (RTX 2000 Ada GPU 8GB VRAM, 32 threads), Ubuntu 24.04 on WSL2 with Chrome 156, and Windows 11 with Chrome 157, standard non-privileged user, Chrome sandbox enabled; about 1.4 s/prompt when the GPU is available, about 3.7 s/prompt with CPU fallback, with identical output.
    • Datasets: CredData (a 500-file balanced set for credential triage; soft negatives are public library source code from the same repositories with no secrets), Enron corpus (PII labels from Liquid AI's on-device detector), Imagenette validation set (10 classes, 250 images, 25 per class), BFCL single-turn categories (Simple 400, Multiple 200, Irrelevance 240, 840 items total).
    • Metrics and criteria: precision, recall, F1 for triage/detection tasks (against ground truth); top-1 accuracy for image classification; accuracy as judged by the official BFCL AST checker for tool calling; completion rate for the action demonstration.
    • Sample sizes: n=20 trials for open-ended goals; n=50 trials for the given numbered plan.

    Main Results

    Swipe horizontally to read the table

    TaskDatasetMetricValue
    Credential triage (hard negatives)CredDataF1 (precision 0.65 / recall 0.93)0.77
    Credential triage (soft negatives)CredData+libF1 (precision 0.90 / recall 0.93)0.91
    Credential category classificationCredDatamicro-F10.68
    PII whether personal data is presentEnronF10.92
    PII sensitive subsetEnronF10.74
    PII classification by typeEnronmicro-F10.68
    Image classificationImagenettetop-10.98

    (According to Table 2)

    • The authors state that hard negatives (files containing secret-shaped decoys) are especially difficult for the small model; the model rarely misses real secrets but mislabels decoys such as cryptographic API calls and redaction placeholders.
    • PII classification by type is 0.77–0.92 for names, emails, and phone numbers; the authors describe the financial and government identifier categories as lower confidence due to sparse labels.
    • Image classification recall is no lower than 0.92 per class, and the errors are semantically reasonable confusions (per the authors).

    Tool-Calling Accuracy

    • Single function: When given one function schema, the proportion that correctly fill parameters and call is 0.90 (n=400, Table 3).
    • Multiple functions: The proportion that correctly select and call from multiple functions is 0.92 (n=200).
    • Irrelevant queries: The proportion that correctly decline to answer when no function applies is 0.75 (n=240); the rest of the time it fabricates a plausible call; the three categories combined are 0.86 (n=840).

    Multi-Step Simulated Action

    • Given numbered plan: The model completed the entire action in 41 of 50 trials; in 2 trials it went through the whole chain but mistakenly staged todo.txt as the file containing the key, and in 7 trials it exhausted the step budget—after inspection, the authors found that the model erred when parsing the password from the image and repeated that step after decryption failed; all 7 eventually recovered the correct password but ran out of budget.
    • Open-ended goals: Only 60% of trials completed (n=20); the authors state that the model executes each step reliably but plans poorly across steps, fails to recognize that found credentials should be staged, and spends the step budget on redundant actions.
    • The authors' interpretation: The browser's built-in model is an unreliable autonomous planner but a reliable executor of an operator-given plan; throughout the action there was no network egress when reasoning, and model calls and computation were all on-device.

    Activation Gate and Stealth

    • Gate results (Table 1): An existing model profile can create a session directly whether headed or headless; for a new profile without a gesture, create() reports NotAllowedError; a single CDP synthetic click or OS-level synthetic click triggers the download; copying the model directory plus Local State works, while copying only the model directory does not. The authors state that the gate and policy results were confirmed consistent on both platforms.
    • Stealth: The authors state that no observable network traffic occurred in the trials; a more fully featured harness was flagged by Windows Defender (because its screenshot and mouse-movement capabilities resemble PowerShell Empire), while the action-oriented small harness was not detected.

    Other Ablations and Analysis

    • Enterprise policies (Table 4): BuiltInAIAPIsEnabled=false and GenAILocalFoundationalModelSettings=1 can block both the CDP and page driving methods simultaneously; RemoteDebuggingAllowed and DeveloperToolsAvailability block only the CDP method; none of the four is enabled by default.
    • The authors state that these policies have costs: they disable legitimate built-in AI features and internal web applications built on them.
  5. What are some points that can be further explored?

    The authors note that the small model's error rate is the main current limitation and that the detection signals are not validated on production logs; the experiments are limited to a single device, two platforms, and a single scenario.

    Limitations and Future Directions Noted by the Authors

    • Small-model error rate: the Risks and Implications section states that "the main limitation at present is the error rate of small models"; the authors expect this to improve with version iterations, and believe that improvements vendors make for benign uses will benefit malicious uses at no cost.
    • Detection signals unvalidated: the three host signals given in the Detection section (process lineage, local listening, anomalous model file location) are explicitly described by the authors as "proposed signals, not validated on production logs."
    • Platform recommendations: the authors recommend that browser vendors expose model session events through enterprise reporting, prompt users about model use as they do for camera and microphone, and bind downloaded models to the profile that downloaded them (Mitigations and Detection).
    • Organizational governance recommendations: the authors recommend that organizations make an explicit trade-off about on-device models as they do for PowerShell and WMI—disable them if not needed, and otherwise monitor the host signals described in the paper (Mitigations and Detection).

    Scope of Experimental Coverage

    • The only model tested is Chrome's Gemini Nano; Edge's Phi model and Windows' Phi Silica are mentioned only in the introduction and were not tested.
    • The experimental platforms are Ubuntu 24.04/WSL2 (Chrome 156) and Windows 11 (Chrome 157) on a single laptop; the authors state that the threshold and policy results are consistent across the two platforms.
    • Capability evaluation covers four public datasets (CredData, Enron, Imagenette, BFCL single-turn categories); the multi-step action demonstration is a single scenario, with n=20 for open-ended goals and n=50 for given plans.
    • The paper does not report the number of repetitions for each capability evaluation, nor agreement with human annotation (the Enron PII labels come from Liquid AI's on-device detector).
    • Defense evaluation consists of qualitative results for four Chrome enterprise policies (Table 4) and one observation of a Windows Defender detection; the paper does not evaluate defenses under adaptive attacks.
  6. Summarize the main content of the paper

    The authors demonstrate turning Chrome's built-in Gemini Nano into an offline post-exploitation agent using only the system's built-in interpreter, and measure its capabilities, demonstrate end-to-end actions, and give defensive recommendations.

    An attack paper: it studies whether an on-device model preinstalled by a browser vendor can be used by an attacker who has already compromised the host as a living-off-the-land post-exploitation engine.

    • Problem: Previous malicious use of LLMs relied on remote APIs, which have credentials that can be revoked and traffic that can be monitored; on-device models such as Chrome's Gemini Nano remove both dependencies and are excluded by Chrome's threat model (the VRP does not handle bugs that depend on existing user access).
    • Method: The attacker writes only a PowerShell or standard-library Python script and calls the Prompt API via CDP or a localhost page; the one-time user activation gate can be satisfied with a single synthetic click, or bypassed by copying an existing profile's model directory plus the Local State file (the authors state this was disclosed and Google marked it Won't Fix); then a tool-calling loop constrained by a JSON schema drives the model, with three designs for the small model (GUI via the accessibility tree, image analysis in a separate session, system prompt biased toward the command line).
    • Capabilities: CredData credential triage F1 0.77 (hard negatives)/0.91 (soft negatives), Enron PII detection F1 0.92, Imagenette top-1 98.0%, BFCL tool calling combined 0.86 (n=840).
    • Action demonstration: Given a numbered plan, 41 of 50 trials completed the full chain of "read the password from the sticky note→decrypt the 7z→triage files→stage the SSH private key"; open-ended goals only 60% (n=20). The authors accordingly describe the model as an unreliable autonomous planner and a reliable plan executor.
    • Conclusion and implications: The authors argue that this capability is not unique to Chrome, that any platform that preinstalls a local model on a general-purpose endpoint creates the same kind of asset, and that model improvements will benefit attackers as well; they recommend that organizations explicitly decide whether to enable on-device models and monitor host signals such as process lineage (the authors note these signals are not validated on production logs), and recommend that vendors inform users about model use and bind the model to the profile that downloaded it.

Related papers

Read originalarxiv.org