Defeating Slow-and-Low Threats via Diffusion Model-based Generative Inference

Seyed Mohammad Mehdi Mirnajafizadeh (Wayne State University), Prashant Khanduri (Wayne State University), DaeHun Nyang (Ewha Womans University), Rhongho Jang (Wayne State University)

23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 2 · Smart Pipes, Smarter Learning

Overview

Modern internet infrastructure relies heavily on Content Delivery Networks (CDNs) to act as the primary shield against volumetric and application-layer attacks. Positioned at edge servers, these systems must inspect and filter massive volumes of traffic with ultra-low latency. Because of strict memory constraints, CDNs typically maintain very short flow measurement windows—often just a few seconds. This operational constraint creates a critical vulnerability: attackers can launch sophisticated slow-and-low attacks that deliberately remain under the radar by spreading activity over extended periods with minimal traffic volume. Traditional detection mechanisms struggle to identify these threats because they lack scalable per-packet behavioral monitoring and cannot effectively evaluate flows from partial, incomplete observations.

Watch on YouTube · Slides

Visual summary for Defeating Slow-and-Low Threats via Diffusion Model-based Generative Inference by Seyed Mohammad Mehdi Mirnajafizadeh, Prashant Khanduri, DaeHun Nyang, Rhongho Jang
Visual summary for Defeating Slow-and-Low Threats via Diffusion Model-based Generative Inference by Seyed Mohammad Mehdi Mirnajafizadeh, Prashant Khanduri, DaeHun Nyang, Rhongho Jang

Key moments

  1. 0:00 Introduction and background on slow-and-low attacks
  2. 2:04 Challenges in existing flow monitoring and detection systems
  3. 4:18 Overview of SketchVision architecture and eBPF components
  4. 6:33 Flow painting mechanism and the sketch universe data structure
  5. 8:38 Machine learning pipeline: diffusion-based denoising and forecasting
  6. 11:34 Experimental results and early detection performance
  7. 15:02 Conclusion and summary of SketchVision benefits

Defeating Slow-and-Low Threats via Diffusion Model-based Generative Inference

Speakers: Seyed Mohammad Mehdi Mirnajafizadeh (Wayne State University); Prashant Khanduri (Wayne State University); DaeHun Nyang (Ewha Womans University); Rhongho Jang (Wayne State University)

Conference: USENIX NSDI

YouTube: https://www.youtube.com/watch?v=2yG6Owox4_Y

Overview

Modern internet infrastructure relies heavily on Content Delivery Networks (CDNs) to act as the primary shield against volumetric and application-layer attacks. Positioned at edge servers, these systems must inspect and filter massive volumes of traffic with ultra-low latency. Because of strict memory constraints, CDNs typically maintain very short flow measurement windows—often just a few seconds. This operational constraint creates a critical vulnerability: attackers can launch sophisticated slow-and-low attacks that deliberately remain under the radar by spreading activity over extended periods with minimal traffic volume. Traditional detection mechanisms struggle to identify these threats because they lack scalable per-packet behavioral monitoring and cannot effectively evaluate flows from partial, incomplete observations.

To solve this systems-ML dilemma, the researchers introduce SketchVision, a novel framework designed for deployment at CDN edge servers. SketchVision integrates an eBPF (Extended Berkeley Packet Filter) based data plane running directly within the Linux kernel with a GPU-accelerated user-space AI pipeline. By transforming per-packet temporal relationships into compact 2D geometric representations called flow paintings, SketchVision efficiently tracks tens of thousands of concurrent flows under tight memory bounds. When suspicious activity is flagged, the system employs a dual-guided diffusion model to denoise the shared-memory sketches and a forecaster to predict mature flow states from early partial observations, enabling proactive mitigation before attacks can succeed.

This work matters because it bridges a major gap between high-speed packet processing constraints and data-hungry deep learning architectures. By reframing packet-level flow analysis as a computer vision and image restoration problem, SketchVision demonstrates how generative models—specifically conditional U-Nets trained with diffusion processes—can be adapted to overcome extreme data corruption and partial visibility in high-throughput network environments.

Background

▶ Watch: Introduction and background on slow-and-low attacks (0:00)

In the landscape of network security and systems architecture, traffic anomalies are broadly divided into two categories: bursty/volumetric attacks and slow-and-low attacks. Bursty attacks generate massive traffic volumes over short durations (typically under 5 seconds, with over 50% activity rates), making them trivial to capture within standard CDN observation windows. Conversely, slow-and-low attacks—encompassing data exfiltration, Command and Control (C2) communication, Denial of Service (DoS), bot activity, and surveillance—generate sparse traffic spread across 40 seconds or more.

State-of-the-art flow monitoring systems face three fundamental hurdles in detecting these stealthy threats:

  1. Lack of Scalable Flow Behavior Monitoring: Traditional systems assume unbounded memory, storing granular per-packet features in massive hash tables. In real-world line-rate deployments where edge traffic has surged from 10,000 to 50,000 flows per second over the last decade, this approach is infeasible. Alternative systems use selective monitoring, tracking only a subset of traffic, which inadvertently creates blind spots.
  2. Evasion of Coarse-Grained Detection: Most modern defenses rely on aggregated flow-level statistics, such as packet size and inter-packet delay distributions. While resource-efficient, these coarse metrics overlook packet-level temporal dependencies and metadata. Attackers easily forge these distributions to mimic benign traffic while masking malicious behavior.
  3. The Partial View Problem: Machine learning models are typically trained offline on complete flow data, but online detection must operate on incomplete, dynamic flows. Relying on hard timeouts or static heuristics results in high false-positive rates or delayed detection, which is fatal against slow-and-low patterns that defy simple thresholding.

Key Findings

▶ Watch: Overview of SketchVision architecture and eBPF components (4:18)

The primary discovery of this research is that spatial-temporal flow representations, when corrupted by the inevitable memory collisions of bounded sketching data structures, can be successfully cleaned and projected forward using generative diffusion models. Key findings and benchmark results include:

  • Superior Early Detection: When evaluated on early flow observations restricted to the first 150 packets, SketchVision achieves a 93% F1 score using only 20% of total flow observation data. In contrast, traditional packet-level and flow-level machine learning baselines fail due to their lack of temporal behavior monitoring and forecasting mechanisms.
  • Robustness Under Memory Constraints: By evaluating performance across varying packet-to-pixel ratios ($K$ ranging from 1 to 16 in the sketching memory configuration), the authors demonstrated that even under extreme memory pressure ($K = 16$), where visual sketches suffer severe noise and distortion, the diffusion model successfully recovers meaningful underlying signals for the majority of attack categories.
  • Comprehensive Threat Coverage: The framework was trained and benchmarked across 19 distinct slow-and-low attack types plus benign traffic (totaling 20 flow classes), proving its ability to deliver unified multiclass recognition across diverse threat vectors.
  • Pipeline Latency Profile: Operating on an edge server testbed, the individual component latencies break down as follows: 100 milliseconds for the diffusion denoiser, 11 milliseconds for the flow forecaster, and 14 milliseconds for the multiclass CNN classifier, yielding a total inference pipeline latency of 140 milliseconds supporting up to 2,000 flows per second.

Technical Deep Dive

▶ Watch: Flow painting mechanism and the sketch universe data structure (6:33)

SketchVision's architecture combines kernel-space data plane engineering with a user-space generative AI pipeline.

1. Vision-Based Behavioral Sketching ("Flow Painting")

Instead of counting packets in standard memory-intensive tables, SketchVision encodes per-flow behavior into a shared 2D memory space called the sketch universe.

  • For each incoming packet belonging to flow $f$, two independent hash functions map the packet to a base coordinate point in the 2D grid.
  • Subsequent packets are encoded relative to this base point using polar coordinates: radius $r$ captures average packet inter-arrival times, and angle $\theta$ captures individual packet timing.
  • Packet metadata is mapped into a 24-bit RGB pixel value.

Because multiple flows share this memory space, pixel collisions and noise are inevitable. During detection, the system crops the specific region associated with a candidate flow and passes the noisy image to the ML pipeline.

2. Dual-Guided Diffusion Denoising

Standard diffusion models take an anchor image, progressively add Gaussian noise during a forward process, and learn to reverse that exact sequence. SketchVision modifies this paradigm to handle memory collision noise.

  • The authors observe that collision noise from interfering background flows converges toward a Gaussian distribution via the central limit theorem.
  • The diffusion denoiser—built on a conditional U-Net architecture using the OpenAI codebase—is trained via a dual-guided strategy. During the reverse diffusion phase, the model is trained to jointly learn flow dynamics and semantics, directly reconstructing clean flow images from Gaussian-corrupted sketch inputs across all stages of flow progression.

3. Generative Flow Forecasting

To overcome the partial view problem, SketchVision pairs its denoiser with a forecaster. Once a noisy sketch is denoised, the forecaster takes the partial observation and generates the predicted mature state of the flow. By iteratively adding Gaussian noise to partially observed training flows and optimizing loss functions across the progression timeline, the model learns to anticipate how a sparse, slow-moving flow will look upon completion.

4. Classification and Mitigation

The completed, denoised, and forecasted image is fed into a multiclass CNN (Convolutional Neural Network) classifier. Based on the recognition output, the kernel-space ACL Table enforces proactive security policies to drop or block malicious flows immediately.

Experimental Setup & Results

▶ Watch: Experimental results and early detection performance (11:34)

The experimental evaluation was conducted on a high-performance edge server testbed equipped with:

  • CPU: 64 CPU cores
  • Memory: 1 Terabyte of DRAM
  • Accelerator: NVIDIA A100 GPU (utilized for model training and inference)
  • Software Stack: Prototype implemented with an eBPF kernel module, a user-space XTP agent bridging kernel sketches to the AI pipeline, a conditional U-Net diffusion denoiser, and a multiclass CNN classifier.

Headline Results

  • Early Detection Benchmark: Restricted to evaluating flows using their first 150 packets, SketchVision achieved a 93% F1 score at the 20% flow observation mark, significantly outperforming unassisted packet-level and flow-level ML baselines.
  • Denoising Fidelity: Passing raw sketches directly to the classifier resulted in near-random predictions due to memory collision noise. Integrating the diffusion denoiser restored classification performance back to near-optimal accuracy.
  • Stress Testing Memory Limits: Even at the most aggressive memory compression setting ($K = 16$), where packet-to-pixel mappings are heavily distorted, the diffusion model successfully recovered underlying behavioral signals for the vast majority of attack vectors.

Practical Implications

▶ Watch: Conclusion and summary of SketchVision benefits (15:02)

For infrastructure teams and CDN deployers, SketchVision proves that integrating kernel-space dataplanes (eBPF/XTP) with generative AI models is feasible for defending against advanced network threats. By trading off raw compute (using a 140ms total inference pipeline) for strict memory bounding, operators can maintain line-rate visibility without allocating unlimited RAM to hash tables.

However, practical adoption comes with distinct tradeoffs and limitations noted by the speakers:

  • Inference Latency: At 140 milliseconds total pipeline latency supporting up to 2,000 flows per second, the system is explicitly tailored for slow-and-low threats where relaxed latency tolerances are acceptable. It is not currently designed to replace sub-millisecond data-plane filters for ultra-high-volume volumetric attacks.
  • Hardware Dependencies: While eBPF operates efficiently in the Linux kernel, the current diffusion-based denoising and forecasting pipeline relies on an NVIDIA A100 GPU. Deploying this architecture widely across distributed edge locations requires optimizing or accelerating off-the-shelf diffusion models for edge hardware.

Key Takeaways

  • The Slow-and-Low Blind Spot: CDNs with short flow observation windows struggle to detect stealthy, low-volume attacks that span extended timeframes and evade coarse-grained statistical metrics.
  • Flow Painting via Sketching: SketchVision maps packet-level temporal relationships and metadata into compact 2D geometric pixel representations within a shared kernel memory space (sketch universe).
  • Overcoming Memory Collisions with Diffusion: Using a conditional U-Net diffusion model trained via a dual-guided strategy, the system successfully strips away background memory-sharing noise from cropped flow sketches.
  • Predictive Flow Forecasting: Generative forecasting bridges the gap between partial online observations and completed flow states, enabling accurate classification long before a slow-and-low attack finishes execution.
  • Proven Early Detection Performance: SketchVision achieves a 93% F1 score using only 20% of flow observation data (up to 150 packets), outperforming traditional packet-level and flow-level ML baselines.
  • Systems-ML Tradeoffs: The 140ms inference pipeline successfully trades compute overhead for strict memory bounds, supporting up to 2,000 flows per second on edge hardware.

About the Speaker(s)

The research presented was a collaborative effort involving academic researchers from Wayne State University and Ewha Womans University. The presentation was delivered by Seyed Mohammad Mehdi Mirnajafizadeh, a researcher at Wayne State University, alongside co-authors Prashant Khanduri, DaeHun Nyang, and Rhongho Jang, focusing on the intersection of networking systems, eBPF kernel telemetry, and generative machine learning models for network security.

Reviews

→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)

All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)