Manuscript Offprint

arXiv:2608.25431

Here is a GIFT: Enforcing User Data Isolation in LLM Serving via GPU Information Flow Tracking

Jiacheng Shi, Xunjie Wang, Cheng Tan, Jinyu Gu

Abstract

LLM serving frameworks process large volumes of user data—often containing sensitive information—on shared infrastructure. Ensuring isolation between users who share the same serving framework (on CPUs) and LLM operators (on GPUs) is critical for privacy protection.

This paper presents GIFT, a GPU Information Flow Tracking system that enforces user data isolation in LLM serving with minimal overhead. Moreover, the design of GIFT is non-intrusive and allows CPU-side serving frameworks to evolve freely. It rests on two key insights. First, encryption-as-isolation leverages the observation that CPU components only orchestrate data flow, not content manipulation; thus, per-user encryption can provide isolation without modifying serving logic. Second, GPU kernels exhibit limited and predictable information flows, enabling static flow analysis. GIFT precomputes information flow rules for each kernel and uses decoupled flow tracking, avoiding instrumentation or GPU stalls.

Furthermore, we extend GIFT to GIFT-CC, which integrates confidential computing to protect against untrusted operating systems and hypervisors (LLM service providers). Implemented on vLLM and DistServe, GIFT and GIFT-CC enforce user data isolation with a 4~10.7% throughput overhead while maintaining the same latency level.

1 Introduction

Large Language Models (LLMs) have become increasingly integrated into users' daily activities. For example, they assist with drafting emails, answering questions, generating code, and powering personal assistants across both consumer and enterprise applications [7,15,17,3,40,41][7, 15, 17, 3, 40, 41]. As these models handle sensitive tasks, they increasingly observe and process private user data—ranging from personal schedules and medical inquiries to proprietary business documents.

This growing need to handle sensitive data raises fundamental concerns about data leakage and information exposure control. For example, OpenAI temporarily took ChatGPT offline in 2023 due to a caching system bug that allowed some users to see chat titles and histories from other active users [24]. More recently, in 2025, people found that ChatGPT content had appeared in Google search results [8]. These issues are not surprising given the rapid evolution of LLM serving systems—bugs and vulnerabilities [11, 9, 12, 34, 31, 35, 4, 27, 23, 37] are inevitable, and they may lead to unintended data disclosure.

Indeed, an attacker can exploit vulnerabilities in LLM serving systems (e.g., vLLM)—such as CVE-2025-24357 [9]—to perform remote code execution and leak sensitive user data, for example, the contents in the KV cache. This new family of attacks (details in §2.2) enables the attacker to access other users' private conversations without triggering traditional security mechanisms, as the data theft occurs entirely within GPUs. These incidents expose a critical question: how can serving frameworks reliably enforce user data isolation while evolving rapidly?

The canonical approach to prevent information from propagating from a source to unintended outputs is Information Flow Tracking (IFT), also known as taint tracking [91, 60, 55, 56, 69, 94, 108, 118]. However, applying traditional IFT to LLM serving introduces two challenges:

  1. Complex and fast-evolving LLM systems. Today’s LLM serving frameworks are complex, implemented across multiple languages—typically a mix of Python, CUDA, and C++ or Rust. Moreover, they evolve rapidly, with new features and techniques emerging frequently. For example, vLLM [1] and SGLang [116] have 7.5K and 5K commits in the last year. Traditional IFT is difficult to implement in such sophisticated systems and struggles to remain compatible with rapidly evolving codebases.

  2. High runtime overhead. Conventional GPU IFT incurs significant overhead [68], which is incompatible with the high-throughput, low-latency requirements of production LLM serving. Ensuring efficient IFT without degrading model serving performance is a major obstacle.

In this paper, we present GIFT (GPU Information Flow Tracking), a new IFT design that tracks the flow of user data throughout LLM serving. GIFT is the first IFT system for LLM serving that achieves strong isolation guarantees—(a) enforcing user data isolation, (b) preserving the flexibility to evolve the serving framework, and (c) achieving this with minimal performance impact.

GIFT builds on two key observations. First, in LLM serving, the CPU does not manipulate the data directly—instead, the GPU handles all data processing (data-plane)—while the CPU controls the computation by issuing GPU kernels.

(control-plane), as shown in Figure 1. This separation means the CPU can operate on opaque data, focusing only on placing the right data at the correct GPU memory locations. Second, for serving workloads, GPU kernels are predefined and contain few branches. As a result, their information flows can be analyzed ahead of time and tracked at runtime efficiently.

Based on the first observation, GIFT adopts encryption-as-isolation. In LLM serving, the CPU side executes complex and rapidly evolving codebases—such as PyTorch (2.4M lines of code) and Transformers (615K)—that are difficult to secure and often contain many bugs and vulnerabilities; for example, PyTorch has 18 reported CVEs and a number of vulnerabilities are identified in popular serving frameworks [88]. When compromised, an attacker could easily extract user data from CPU memory. Hardening such frameworks is challenging due to their size and evolution rate. GIFT instead encrypts all user data with per-user keys and stores only ciphertext in CPU memory. A small, trusted component decrypts the data immediately before transferring it to the GPU. This approach decouples security from complex frameworks, allowing them to evolve while guaranteeing that any CPU-side data exposure reveals only ciphertext.

Based on the second observation, GIFT introduces a new IFT design that combines static flow analysis and decoupled flow tracking. Traditional IFT mechanism instruments programs to track data propagation, but this is prohibitively expensive in LLM serving, where GPU kernels are highly optimized and performance-critical. Instead, GIFT analyzes each GPU kernel offline to identify its possible information flows and derive corresponding IFT rules—deterministic logic dictating how the flow tracking metadata should be updated for that kernel. During runtime, GIFT executes these rules on the CPU in a decoupled manner and then detects unauthorized data flows without instrumenting the executing kernel or incurring instruction-level overhead on GPU.

GIFT’s design is general and applicable to various serving frameworks. To demonstrate this, we implement GIFT on two popular LLM serving systems: vLLM [1] and DistServe [117]. Furthermore, we extend GIFT to operate under a stronger threat model where the underlying system software, including the OS and hypervisor, is untrusted. This extension, called GIFT-CC, leverages hardware confidential computing and is also implemented on both vLLM and DistServe, which can isolate user data from the service providers.

Our evaluation across multiple LLM models shows that GIFT adds negligible latency overhead and incurs at most a 5% throughput reduction under fully saturated serving workloads. GIFT-CC, which integrates confidential computing hardware, introduces up to a 7% throughput overhead compared to non-confidential baselines. In experiments with speculative decoding, GIFT-CC experiences up to a 10.7% throughput drop, largely due to the additional CPU–GPU communication overhead introduced by NVIDIA's confidential computing interface.

Figure

Figure 1. Control/data plane separation in serving systems.

In summary, we make the following contributions: 1) GIFT: The first user data flow tracking approach designed for LLM serving systems; 2) GIFT-CC: An extension of GIFT that leverages confidential computing for a stronger threat model; 3) Real implementation and extensive evaluation demonstrate negligible performance overhead.

References (70)

  • Taming throughput-latency tradeoff in LLM inference with sarathiserve
  • Orthogonal security with cipherbase
  • CURE: A security architecture with customizable and resilient enclaves
  • The design and implementation of a verification technique for GPU kernels
  • Gpuverify: a verifier for GPU kernels
  • KLEE: unassisted and automatic generation of high-coverage tests for complex systems programs
  • Evaluating Large Language Models Trained on Code
  • The-x: Privacy-preserving transformer inference with homomorphic encryption, 2022
  • Formal analysis of GPU programs with atomics via conflict-directed delay-bounding
  • Understanding data lifetime via whole system simulation
  • Dytan: a generic dynamic taint analysis framework
  • Strongbox: A GPU TEE on arm endpoints
  • Puma: Secure inference of llama-7b in five minutes, 2023
  • Dp-forward: Fine-tuning and inference on language models with differential privacy in forward pass
  • Taintdroid: An information-flow tracking system for realtime privacy monitoring on smartphones
  • A highly capable language model locally on your phone, 2024
  • snpu: Trusted execution environments on integrated npus
  • Sigma: Secure gpt inference with function secret sharing
  • A concurrent dynamic analysis framework for multicore hardware
  • Lest we remember: cold-boot attacks on encryption keys
  • Iron: private inference on transformers
  • GPU taint tracking
  • Practical taint-based protection using demand emulation
  • BlackBox: A container security monitor for protecting containers on untrusted operating systems
  • Inktag: secure applications on an untrusted operating system
  • PARALLELGPUOS: A concurrent os-level GPU checkpoint and restore system using validated speculation (opens arXiv in a new tab)
  • Telekine: Secure computing with cloud gpus
  • Ryoan: A distributed sandbox for untrusted computation on secret data
  • Heterogeneous isolated execution for commodity gpus
  • Shadowreplica: efficient parallelization of dynamic data flow tracking
  • iguard: In-gpu advanced race detection
  • Multi-language dynamic taint analysis in a polyglot virtual machine
  • Efficient memory management for large language model serving with pagedattention
  • Infinigen: Efficient generative inference of large language models with dynamic KV cache management
  • Verifying GPU kernels by test amplification
  • Fast inference from transformers via speculative decoding
  • Scalable smt-based verification of GPU kernel functions
  • GKLEE: concolic verification and test generation for gpus
  • Encrypted databases made secure yet maintainable
  • Demystifying rce vulnerabilities in llm-integrated apps, 2024
  • Honeycomb: Secure and efficient GPU executions via static validation
  • Securing ai inference in the cloud: Is cpu-gpu confidential computing ready? In 2024 IEEE 17th International Conference on Cloud Computing (CLOUD), pages 164–175, 2024
  • Dynamic taint analysis for automatic detection, analysis, and signature generation of exploits on commodity software
  • Parallelizing security checks on commodity hardware
  • Splitwise: Efficient generative LLM inference using phase splitting
  • LIFT: A low-overhead practical information flow tracking system for detecting security attacks
  • Language models are unsupervised multitask learners
  • Declassification: Dimensions and principles
  • ACAI: extending arm confidential computing architecture protection from cpus to accelerators (opens arXiv in a new tab)
  • Pipellm: Fast and confidential large language model services with speculative pipelined encryption
  • LLaMA: Open and Efficient Foundation Language Models
  • Stealthdb: a scalable encrypted database with full SQL query support
  • Graviton: Trusted execution environments on gpus
  • CAGE: complementing arm CCA with GPU extensions
  • Characterizing network requirements for GPU API remoting in AI applications (opens arXiv in a new tab)
  • Loongserve: Efficiently serving long-context large language models with elastic sequence parallelism
  • Building GPU tees using CPU secure enclaves with gevisor
  • Taint-enhanced policy enforcement: A practical approach to defeat a wide range of attacks
  • On protecting the data privacy of large language models (llms): A survey, 2024
  • Qwen2.5 Technical Report
  • A survey on large language model (llm) security and privacy: The good, the bad, and the ugly
  • Orca: A distributed serving system for transformer-based generative models
  • Cloudvisor: retrofitting protection of virtual machines in multi-tenant cloud with nested virtualization
  • OPT: Open Pre-trained Transformer Language Models
  • Pipa: pipelined profiling and analysis on multi-core systems
  • SGLang: Efficient Execution of Structured Language Model Programs
  • Distserve: Disaggregating prefill and decoding for goodput-optimized large language model serving
  • Tainteraser: protecting sensitive data leaks using application-level taint tracking
  • Enabling rack-scale confidential computing using heterogeneous trusted execution environment
  • Converting transformers to polynomial form for secure inference over homomorphic encryption, 2023