AI Engineer NYC 2026 Online Talks
Your GPU Neighbor Can Hear Your Model — Branislav Brzak, Stealthium
Loading slides…
Read the talk
Your GPU Neighbor Can Hear Your Model
Branislav Brzak traces an H100 timing side channel from reads of an attacker’s own memory to model and workload fingerprints, then shows what changes across NVLink and what operators can observe.
From a talk by Branislav Brzak
At a glance
Ideas worth remembering
MIG partitions compute and memory, but GPU-wide memory barriers can still change the latency of another tenant’s reads of its own memory.
Token tempo reveals decoding speed; within-token timing structure adds architectural information when similar speeds make models hard to distinguish.
The demonstrated workload inference depends on speculative decoding: differing draft acceptance changes step timing without exposing the actual generated text.
The separate-GPU NVLink experiment preserves enough tempo information for a useful model fingerprint, although layer detail falls below the noise.
Tenant placement, inter-GPU communication requirements and monitoring of repeated GPU probes are separate operator decisions.
A GPU-wide barrier slows reads in another slice
MIG isolates compute resources, memory capacity, bandwidth quotas and faults. It also partitions the L2 cache: one instance cannot evict another instance’s cache entries. The remaining connection is a GPU-wide memory barrier, or membar. A barrier issued by one instance affects every L2 partition on the card. Consequently, a tenant can experience slightly slower reads of its own memory while another tenant is busy.
The probe turns that slowdown into a repeated measurement: load from a small buffer owned by the attacker, time the load, and repeat every five microseconds. No step requires a read from the victim’s memory. Brzak credits the researchers behind Behind Bars at USENIX Security for both this probing primitive and the underlying MIG memory-barrier leak.
How much does the neighboring workload change the measurement? The slide shows medians of 715.9 ns idle and 719.1 ns while serving Qwen3-8B, labeling the gap about 3 ns; the spoken account says microseconds. That small shift is useful because the attacker records a time series, preserving when slowdowns occur and how they repeat. The signal comes from the structure of those measurements, beyond the difference between two medians.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Token rhythm gives speed; peaks within tokens give structure
With an eight-billion-parameter model running on the victim slice, the trace shows one burst of GPU activity per generated token. Frequency analysis of the attacker’s latency measurements finds a fundamental at 81 Hz: the recurring token-generation cycle corresponds to 81 tokens per second. Harmonics accompany it because the work inside each token has its own structure, rather than forming one smooth pulse.
What does that structure look like inside a token? The demonstrated time-domain trace contains 39 bumps. Green peaks mark layer invocations; orange peaks mark additional processing between layers. The distinction matters: counting every visible bump as a model layer would overestimate depth. The trace connects two scales of observation—the spacing between tokens and the repeated work within each token.
Token rate is useful but ambiguous. Two eight-billion-parameter models in the comparison decode only 1.6% apart in speed. A tempo measurement can narrow the possibilities while leaving those models nearly indistinguishable. The next step therefore looks for the layer-related structure within the timing signal.
A fold-and-average procedure brings out recurring peaks. Across 22 traces, the resulting count lies a mean distance of only 0.028 from an integer. Brzak uses this near-integer result as evidence that the pattern follows discrete model operations: a fixed hardware frequency divided by varying token rates would not generally land so close to whole numbers. The observed counts correspond to model depth plus one to three extra peaks, retaining the distinction between layers and other processing.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Fit candidate depths without a labeled training set
The depth estimator is a small best-fit procedure, described as fewer than 30 lines of code. It checks candidate depths from 16 through 48, measures how strongly each candidate’s expected signature appears in the recorded trace, and selects the strongest fit. It needs no labeled training set. Tempo and harmonic structure supply the evidence used to compare candidates.
How decisive is that comparison? In the presented eight-billion-parameter example, the 36-layer candidate wins clearly over competing depths. Because the procedure fits a structural signature rather than looking up a previously labeled trace, Brzak proposes that it can estimate depth for unseen models, including proprietary or unreleased ones. Recovering depth alone does not supply the name of an unknown model; it reveals an architectural property that can help fingerprint it.
The estimator also produces a confidence value. In the reported testing, the only two incorrect answers were the two least confident ones. Confidence therefore helped identify the uncertain fits in that test, although the recording does not establish a confidence threshold that operators could apply universally.
Related models make the task harder. The comparison includes Llama 3 8B, Llama 3.1 8B and DeepSeek’s R1-Distill Llama 8B, all sharing a 32-layer backbone. Their common architecture preserves much of the timing signature, so depth alone cannot separate them. Brzak reports a median per-layer latency shift of only 1.6 nanoseconds and says the classifier nevertheless distinguishes the models. This is the demanding case: the broad structural fingerprint stays similar while the distinguishing timing differences become very small.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Speculative decoding makes text categories affect timing
The next experiment keeps the timing channel and changes the question: is the model producing prose, code, JSON or a retrieval response? It issues a verdict every half second using the preceding five seconds of measurements. Of 40 verdicts, 31 are correct; majority voting correctly identifies all four complete responses in the demonstration. Comparing the predictions with the actual workload would show both the short-window mistakes and why a response-level vote can still succeed.
This result depends on speculative decoding, enabled for the experiment and described here as an opt-in feature in vLLM. Speculative decoding drafts tokens and accepts some number of them at each step. Text predictability changes how many drafts are accepted; that changes step timing. The probe observes this timing consequence and uses it to infer a workload category. It still does not read the generated text.
The tests span 11 configurations, including dense and mixture-of-experts models, with BF16 and FP8 precision. The workload-dependent signature appears throughout, but its strength varies sharply: the reported spread ranges from 70.2% in one configuration to 0.9% in another. Prose runs fastest in 10 of the 11 configurations. That repeated ordering helps explain why category inference can work, while the wide variation cautions against expecting the same separation everywhere.
The inference thus has two useful conditions: an attacker already has information about the model, and speculative decoding is active. Under those conditions, acceptance behavior adds another source of timing variation. The demonstrated workload classification should not be extended to ordinary decoding configurations without that mechanism.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Move to another GPU and the token rhythm survives
The second setup removes the shared physical die. An eight-H100 server connects its GPUs through an NVSwitch fabric. The victim runs tensor parallel inference across GPUs 0 and 1; the attacker runs on GPU 2. Peer access is an intended feature used by multi-GPU jobs. This tests a different deployment arrangement from MIG: in the setup described, MIG’s isolation rules prevent the peer communication needed for tensor parallelism.
The attacker now pointer-chases memory located on GPU 0 over NVLink, timing each hop from GPU 2. An idle hop takes about 890 nanoseconds; during victim activity, measured latency climbs to as much as 300 microseconds. What survives the extra distance? In the three half-second captures described, token bursts remain visible enough to count by eye, while the layer-related detail falls below the noise.
The topology below answers why a separate GPU is still close enough to observe the workload: the probe reaches memory on a GPU participating in the victim’s job. The victim’s two-GPU placement and the attacker’s remote access are separate relationships; the diagram does not imply that the attacker reads the victim’s allocated data.
With five models served under otherwise identical conditions, the remote method achieves 79.2% classification accuracy against a 20% chance baseline. Its failures follow the missing information: two eight-billion-parameter models decoding only 3 Hz apart blur together when tempo is the principal remaining fingerprint. The stronger MIG trace had additional within-token structure to help separate such cases. Losing detail weakens the attack without removing its useful signal.
Remote probing on the same NVSwitch-connected server
Read the diagram as text
- Victim inference job. victim — Tensor parallel execution across two GPUs.
- GPU 0. server — Participates in inference and hosts the memory reached by the remote probe.
- GPU 1. server — Also participates in the victim’s tensor parallel job.
- GPU 2: attacker. server — Runs the pointer chase and measures remote-access latency.
- Victim inference job → GPU 0: Executes part of the tensor parallel job.
- Victim inference job → GPU 1: Executes part of the tensor parallel job.
- GPU 2: attacker → GPU 0: Times pointer-chase accesses over NVLink / NVSwitch.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
The probing workload has a GPU-visible signature
The attack is quiet in transferred data but conspicuous in its execution pattern. In Brzak’s demonstration, Stealthium’s kernel monitoring catches a single kernel relaunched about 3,000 times, repeatedly accessing the same 40 KB of memory. Only 1 KB returns to the CPU. Those observations fit the probe’s purpose: repeated access creates timing measurements, so a large conventional output is unnecessary.
Brzak reports detection in under 600 milliseconds, with fewer than 50 tokens of the response produced. That is a result for Stealthium’s demonstrated monitoring and alert pipeline, not an established detection guarantee for every variant. The useful operational detail is the combination of repeated kernel launches, a fixed small memory region and little CPU-bound output: GPU execution behavior exposes activity that output-volume monitoring alone could miss.
The closing recommendations address three distinct decisions:
- Tenant placement. Avoid placing an untrusted tenant’s MIG slice beside a sensitive model. Placement controls whether the attacker gains the proximity used by the first experiment.
- Communication needs. MIG rules out peer-to-peer communication in the arrangement discussed, while tensor parallel inference uses inter-GPU communication. The tested NVLink arrangement retains a timing fingerprint but loses usable layer detail; that tradeoff does not make it free of leakage.
- GPU observation. Monitor workloads where the probe runs. Kernel launches and memory-access behavior provide evidence of repeated timing probes even when very little data returns to the CPU.
The recording ends by returning credit to Behind Bars. Its memory-barrier primitive supplies the starting point; these experiments develop what model-serving activity can reveal through it and through a separate NVLink probe. Physical memory isolation remains useful, but the timing of shared hardware operations needs its own examination.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Full transcript
Loading transcript…