The Segmented Nerd

· Josh Green

AI Workloads in the Datacenter: The Segmentation Problem Nobody Has Solved Yet


GPU clusters and inference endpoints communicate differently than web application tiers. Standard microsegmentation assumptions break. Here's what changes and where to start.

AI Workloads in the Datacenter: The Segmentation Problem Nobody Has Solved Yet

The standard microsegmentation model was designed around web application tiers. A frontend cluster, an application tier, a database tier. Each tier is isolated from the others. Traffic between tiers is explicitly permitted on the ports the application needs. Everything else is denied. The model is well-understood, the tooling is mature, and the policy is relatively stable.

GPU clusters and AI workloads break several of the assumptions this model rests on. The traffic patterns are different. The connectivity requirements are different. The data access model is different. And the operational culture of the teams running these workloads — often data science and ML engineering teams with limited security operations background — tends to produce environments where network access was never seriously thought about.

This isn’t a theoretical problem. AI infrastructure in enterprise datacenters is now where the model registries live, where training data lives, where fine-tuned models get stored before they’re deployed to production. It’s a high-value target for exfiltration, and it’s often the least segmented part of the datacenter because the people who stood it up were optimizing for throughput and flexibility, not for access control.

What makes AI workload traffic patterns different

A web application tier has predictable traffic: HTTP/HTTPS to a fixed set of downstream services, database connections on a known port, maybe some internal service mesh traffic. The connection count is bounded, the destinations are known, and the volume is relatively constant.

GPU cluster traffic during a training run looks nothing like this. The inter-node communication for distributed training — the all-reduce operations that synchronize gradient updates across GPUs — generates high-volume, low-latency mesh traffic between every node in the cluster simultaneously. This often runs over RDMA or high-speed InfiniBand fabrics specifically because the latency requirements are incompatible with normal IP networking overhead. The traffic is massive in volume, dense in connection count, and time-sensitive in ways that standard firewall rules don’t handle well.

The implication for segmentation is that the intra-cluster communication — the traffic between GPU nodes that’s doing the actual training — typically can’t be segmented at the same granularity as web application traffic without imposing unacceptable latency. The practical approach is to treat the cluster as a single trust boundary and segment aggressively at the cluster perimeter, rather than trying to apply fine-grained rules to the intra-cluster fabric.

Inference workloads are different again. An inference endpoint serves model outputs in response to API requests. The traffic pattern looks more like a web application — request/response, bounded destination set, predictable port usage — but the value of what it’s serving (a production model that may have taken months and significant compute budget to train) makes it a higher-value target than a typical application tier.

The segmentation gap: GPU clusters as one big trust zone

What you typically find when you audit AI infrastructure is that the entire GPU cluster was deployed as a single flat network segment, with broad internal access and limited external controls. This made sense for the initial deployment: the team needed high throughput, they needed flexibility to reconfigure training jobs, and they didn’t want firewall rules slowing down the inter-node communication they depended on.

The problem is that “flat internal access” in an AI cluster means that anything that can reach one node in the cluster can potentially reach all of them, all the shared storage, and the model registry. If a training job is compromised — through a malicious dataset, a supply-chain attack on a training library, or a vulnerability in the job orchestration system — the blast radius is the entire cluster plus everything the cluster can reach on the broader network.

The gap is usually not inside the cluster (where the flat model is a defensible trade-off) but at the cluster boundary. What can reach the cluster from outside it? What can the cluster reach outside of itself? In most deployments the answers are “more than you’d expect” and “also more than you’d expect.”

Data pipelines that ingest training data from external sources often run with broad outbound access — the team needed to pull data from multiple sources and didn’t want to maintain an explicit allowlist. Model registries are often accessible from the entire corporate network rather than from a specifically authorized set of systems. Orchestration APIs are reachable from developer workstations because the ML engineering team needs to submit and monitor jobs.

What policy needs to cover: inference, training, model registries, data pipelines

The segmentation model for AI infrastructure is better organized around the lifecycle of a model than around network topology, because the lifecycle maps directly to the access control questions.

Training: the systems running training jobs need access to training data (read), the model registry (write, to save checkpoints and final weights), and the inter-node communication fabric (read/write, unrestricted within the cluster). They should not need broad outbound internet access — data should be pre-staged, not pulled live during training. They should not need access to production inference infrastructure.

Inference: production inference endpoints need access to the model registry (read, to load the model at startup or on update) and to their downstream API callers. They should not need access to the training cluster, to raw training data, or to developer workstations. The inference endpoint’s network reach should be as narrow as a web application tier’s.

Model registry: this is the highest-value store in the AI infrastructure. It holds every trained model the organization has produced. Its access policy should be the most restrictive of any component: write access from training jobs, read access from inference systems, and administrative access from a specifically authorized set of human operators. Everything else should be denied.

Data pipelines: data ingestion pipelines typically need outbound access to wherever training data comes from (external APIs, object storage, internal data lakes) and write access to the training data store. They should not have access to the model registry, to inference endpoints, or to the training cluster directly — data should be staged and the training job should read it, not have the pipeline write directly into the cluster.

The first three segmentation rules for an AI cluster

If you’re starting from a flat, unsegmented AI infrastructure deployment, the highest-value first steps are boundary rules rather than intra-cluster rules. These three DFW rules applied at the cluster perimeter give you most of the blast radius reduction with a fraction of the operational complexity of full microsegmentation.

Rule one: restrict inbound access to the training cluster to authorized sources only. The authorized sources are the job submission system (which submits training jobs), the model registry (which the cluster writes to and reads from), and the data store (which the cluster reads training data from). Developer workstations, corporate network segments, and monitoring systems that don’t need direct cluster access should not be in the allow list. This rule alone contains the blast radius of a compromised developer workstation or a phishing attack that lands on corporate infrastructure.

Rule two: restrict outbound access from the training cluster to the same set. A compromised training job that tries to establish a callback to an external command-and-control server should not be able to reach the internet from the cluster. If your training data is properly staged, there’s no legitimate reason for a training job to initiate outbound connections to the internet during the run. Deny it, and instrument the deny rule — a training job trying to reach external hosts is worth investigating.

Rule three: isolate the model registry from general network access. Only the training cluster and production inference endpoints should be able to reach the model registry. Corporate network segments, developer workstations, and anything else that “might need to query models sometimes” should not have standing access — if someone needs to access the registry for administrative purposes, that should go through an explicitly authorized management path, not through broad network reachability.

These three rules don’t solve every AI security problem. They don’t address supply chain attacks on training libraries. They don’t prevent a compromised training job from exfiltrating data to the model registry rather than externally. But they close the most common lateral movement paths — the ones where a compromise on one part of the corporate network becomes a compromise of the AI infrastructure because there was nothing stopping the pivot.

The teams building AI infrastructure aren’t ignoring security out of carelessness. They’re making trade-offs under time pressure, and security isn’t always at the top of the trade-off list when you’re trying to get a training job running before a deadline. The job for security engineers isn’t to impose rules that break the workflows ML teams depend on — it’s to find the boundary rules that meaningfully reduce exposure without touching the intra-cluster communication that those teams built for performance reasons. Those boundary rules are where to start.


vdefend · micro-segmentation · lateral-movement · ai-security