AWS Security ChangesHomeSearch

AWS sagemaker: Restrict hostPath volumes in InferenceEndpointConfig

Service: sagemaker · 2026-11-18 · Security-related high

File: sagemaker/latest/dg/sagemaker-hyperpod-model-deployment-deploy-nvme.md · Type: authz

Summary

New section warning that the inference operator does not restrict which host paths a hostPath volume can use, so any user able to create an InferenceEndpointConfig can mount a node directory into a GPU pod; recommends limiting RBAC, using persistentVolumeClaim, dedicated model directories, and a ValidatingAdmissionPolicy.

Security assessment

Explicitly documents a concrete weakness in the operator (unrestricted hostPath mounting enabling node filesystem access/privilege escalation) and prescribes RBAC restriction, PVCs, and admission-policy enforcement — a privilege-escalation/authorization issue.

Evidence

+With `modelSourceType: kubernetesVolume`, the worker mounts the `kubernetes.volumes` entry named by `modelVolumeMount.name`. The inference operator mounts it read-only, but it doesn't yet restrict which host paths a `hostPath` volume can use. Any user who can create an `InferenceEndpointConfig` can mount a node directory into a GPU pod. To limit this risk:

Diff

diff --git a/sagemaker/latest/dg/sagemaker-hyperpod-model-deployment-deploy-nvme.md b/sagemaker/latest/dg/sagemaker-hyperpod-model-deployment-deploy-nvme.md
index c2f7066..93ee118 100644
--- a//sagemaker/latest/dg/sagemaker-hyperpod-model-deployment-deploy-nvme.md
+++ b//sagemaker/latest/dg/sagemaker-hyperpod-model-deployment-deploy-nvme.md
@@ -150,0 +151,15 @@ To configure KV caching and intelligent routing for improved performance, see [C
+### Restrict host path volumes
+
+With `modelSourceType: kubernetesVolume`, the worker mounts the `kubernetes.volumes` entry named by `modelVolumeMount.name`. The inference operator mounts it read-only, but it doesn't yet restrict which host paths a `hostPath` volume can use. Any user who can create an `InferenceEndpointConfig` can mount a node directory into a GPU pod. To limit this risk:
+
+  * Grant permission to create and update `InferenceEndpointConfig` resources only to trusted users.
+
+  * Use a `persistentVolumeClaim` for model storage where possible.
+
+  * If you use `hostPath`, use a dedicated model directory such as `/opt/dlami/nvme/hyperpod-inference/models/` with `type: Directory`. Don't mount system paths such as `/`, `/var/lib/kubelet` or the container runtime socket.
+
+
+
+
+To enforce these rules, use a Kubernetes admission policy, such as a `ValidatingAdmissionPolicy`, that rejects other `hostPath` values on `InferenceEndpointConfig` resources.
+