Practical technical guides / Recent development: PolicySniff, GPU timing reveals approval settings (12 November 2026)

A Neighbor on the Same GPU Can Tell Whether Your Agent Asks Before Acting

PolicySniff (12 November 2026) inferred an agent approval setting at 94.17 percent balanced accuracy by timing a shared A100. Enforce approvals outside the model.

By Sandeep Belgavi · Published 2026-11-14

PolicySniff (12 November 2026) inferred an agent approval setting at 94.17 percent balanced accuracy by timing a shared A100. Enforce approvals outside the model.

A setting you never sent anywhere

Many agents carry their approval policy in the system prompt: ask before a consequential tool call, or act directly. Operators often treat that setting as confidential, restricting access to prompts and responses, on the reasoning that an attacker who knows which deployments act without confirmation knows where prompt injection pays. A paper posted on 12 November 2026 shows the setting can leak without anyone reading a prompt or a response.

Weimin Fu, Minghao Shao, Zeng Wang, Qiying Li, Yuntao Liu, Johann Knechtel, Ozgur Sinanoglu, Muhammad Shafique, Ramesh Karri and Xiaolong Guo present PolicySniff (arXiv 2611.16158v1, "Inferring Agent Policy States through Shared-GPU Execution"). A co-resident process that shares the agent's GPU times only its own kernels while the agent processes a task, and infers which of two known approval settings is deployed. Their summary sentence is the lesson: "Behavioral compliance does not imply configuration confidentiality."

What was measured, under which conditions

The native experiments ran separate processes on one NVIDIA A100, either the whole card or one Multi-Instance GPU (MIG) instance, with Qwen3-30B-A3B-Instruct-2507, a sparse mixture-of-experts model, on an eager runtime where each selected expert runs as separate GPU work. The attacker:

  • knows the two candidate settings and the task;
  • profiles both settings on the shared GPU beforehand to build references;
  • then times its own kernels with CUDA events while the agent runs, without hardware performance counters, profiler access or NVML telemetry.

The policy text is already in the prefix cache before capture, so the attacker observes processing of a task suffix that is identical under both settings. Even so, the policy context changes which experts the router selects, and that changes the timing pattern the neighbor sees. In a frozen, blinded coverage study the attack identified the deployed setting at 94.17 percent balanced accuracy on its primary estimand. It reached 88.82 percent on tasks where both settings lead to the same decision, and 91.98 percent where they differ, so the leak is not just the visible difference between asking and acting. In one blinded campaign the decoder classified 47 of 48 groups correctly.

The authors are explicit about the conditions. The exposure assumes known candidate implementations, references for the exact task built on the shared GPU, known request order and grouping, and offline calibration. Observation is invasive: continuous probing slowed the victim by a median factor of 4.71. All measurements are on the authors' own research testbeds.

Mitigations the paper reports, and what they cover

  • Deny co-residency. Denying untrusted processes execution on the GPU or MIG instance that serves the agent removes the sharing condition the timing attack needs. In their measurements, a timing process on a sibling MIG instance observed no activity mode, consistent with MIG isolation recommended in earlier work on time-slicing attacks. The authors restrict this to the time-slicing channel they measured; separate replay experiments on buffer contention and power show why other observables should be assessed separately.
  • Change the execution feature that carries the signal. Profiling the fused Marlin MoE kernels of stock vLLM 0.30.0, every one of 360 decode steps issued the same 216-kernel launch signature. That is a hint that fused execution removes this particular variation, with a caveat the authors state: the profile covers decode, while the attack observes prefill. On an FPGA model, padding to constant work suppressed the evaluated decoders at a cost of 107.87 percent more active cycles.
  • Move the policy out of the model. Enforce the approval rule in an external reference monitor at the tool boundary, so knowing the prompt's setting tells an attacker nothing about what the system will execute.

What to do if you serve agents on shared GPUs

Treat approvals as enforcement, not as configuration secrecy. The approval decision for a consequential action should be made by code outside the model: a gate on the refund tool that requires a confirmation token, not a sentence in the prompt asking the model to ask. Then the prompt's wording is not a security boundary, and inferring it gains an attacker little. This is the change with the broadest benefit, because it also protects against prompt injection that talks the model out of asking.

Decide co-residency deliberately. If untrusted tenants can run code on the same GPU or the same MIG instance as an agent that serves sensitive workloads, you have the paper's precondition. Dedicated GPUs or MIG instances per trust domain remove it for the measured channel. Time-slicing one GPU between untrusted tenants keeps it, and other sharing modes need their own assessment.

Measure distinguishability on your runtime. You do not need the paper's attack to find out whether a configuration changes your serving profile. Run the same tasks under each setting, record per-request timings that a co-resident process could plausibly observe (kernel launch counts, prefill duration under fixed load), and test whether a simple classifier can tell the settings apart.

The companion example contains that last step as a small, standard-library harness. It takes labelled timing samples, computes a leave-one-out nearest-class-mean classifier, and reports balanced accuracy so unequal sample counts do not inflate it:

def balanced_accuracy(samples):
    labels = sorted({s for s, _ in samples})
    by = {l: [d for s, d in samples if s == l] for l in labels}
    correct = {l: 0 for l in labels}
    for setting, d in samples:
        means = {}
        for l in labels:
            xs = list(by[l])
            if l == setting:
                xs.remove(d)                      # leave this sample out of its own class mean
            means[l] = statistics.fmean(xs)
        guess = min(labels, key=lambda l: (abs(d - means[l]), l))
        correct[setting] += guess == setting
    return round(sum(correct[l] / len(by[l]) for l in labels) / 2, 3)

On synthetic timings with 2 milliseconds of noise and 200 samples per setting, it reports 0.522 for no difference, 0.603 for a 1 millisecond shift, 0.68 for 2 milliseconds and 0.847 for 4 milliseconds. These numbers only exercise the code. Two cautions apply to real use: a result near 0.5 means this simple test cannot separate the settings, not that no attack can, since PolicySniff used richer per-kernel features; and the timings you can collect yourself may not be the ones an attacker sees.

Collecting timings worth testing

The harness is only as good as the samples you feed it. A useful collection run on a staging copy of the serving stack:

  1. Fix the model, runtime version, batch settings and GPU partitioning to match production.
  2. Pick a few dozen representative tasks and run each one under every candidate setting, interleaved so drift in load or temperature does not line up with the setting.
  3. Record what a neighbor could plausibly observe on that deployment: prefill duration, kernel launch counts per request, and timing of a fixed probe kernel run alongside, not internal model state.
  4. Keep tasks paired across settings, so the test compares the setting and not the task.

If any measurement separates the settings clearly, assume a determined neighbor can do better, and rely on placement and enforcement rather than on the setting staying private.

How this fits with other agent controls

The same week's research brought a related lesson from another angle: a control only sees what crosses it. Here, the confidentiality control, restricting who reads prompts, is bypassed by a channel that never touches prompts. Listing which observers can see an agent's execution, including hardware neighbors, belongs in the same inventory as listing which actions a gateway can see.

What stays deterministic

  • The approval decision at the tool boundary, with its own tests and logs.
  • Tenant placement rules: which workloads may share a GPU or MIG instance with which.
  • The distinguishability check as a release test when you change the serving runtime or the policy wording.

Failure modes

  • Relying on prompt secrecy for any security property.
  • Assuming MIG closes every channel; the paper measured one channel and points to others.
  • Running the distinguishability check under different load from production, which can hide or exaggerate differences.
  • Treating a vendor kernel's constant launch signature as proof of constant timing.

Limits

This guide reports the paper's measurements; I did not reproduce them and had no A100 or MIG setup. The companion harness uses synthetic Gaussian timings. Whether your deployment is exposed depends on your runtime, your model's routing, and who can run code on your GPUs.

Primary references and authorship

Sources dated on or before 14 November 2026. Original explanation and synthetic examples by Sandeep Belgavi. Companion code: Sandeep-BA/agent-decision-lab/examples/python/approval_policy_timing_check. Views are my own and do not represent any employer, past or present.