Shared responsibility model for security

Updated at:

Alibaba Cloud and customers share responsibility for ACS Agent Sandbox security. Alibaba Cloud secures the platform - infrastructure, runtime, and control plane - while customers secure their network policies, credentials, storage permissions, and the code that runs inside the sandbox.

General principles of shared responsibility

Important

ACS Agent Sandbox runs AI-generated code that is untrusted by default. Its security relies on the collaboration between the Alibaba Cloud platform and customers. Alibaba Cloud provides strong isolation and governance capabilities (prevention), but customers must configure these capabilities correctly and take responsibility for the risk that the code inside the sandbox may be subject to prompt injection or abuse.

  • Alibaba Cloud is responsible for: the security of the Agent Sandbox platform itself, including the underlying infrastructure, the container/sandbox runtime, the ACS control plane, and the security and updates of platform add-ons. In other words, "the sandbox system itself is secure."

  • Customers are responsible for: the security configurations and business security on top of the platform, including network policies, storage permissions, credential management, business images, and the security of the behavior of the code that runs inside the sandbox. In other words, "how to use the sandbox securely."

  • Shared responsibilities: items that require collaboration between both parties, such as verification of network isolation effectiveness, security incident response, and compliance auditing.

Layered responsibility division

Before you design and deploy your applications, make sure that you understand the security responsibility boundaries between your organization and Alibaba Cloud. The following figure shows the shared responsibility model for the security of ACS Agent Sandbox clusters.

Shared responsibility model for security of ACS Agent Sandbox

The following table divides the technology stack into layers from bottom to top and identifies the party responsible for each layer:

Layer

Typical content

Alibaba Cloud responsibilities

Customer responsibilities

Infrastructure layer

Physical data centers, network, storage hardware, host machines, and KVM virtualization

All

—

ACS control plane

API Server, Controller Manager, Scheduler, ACS control plane infrastructure

All

—

Agent Sandbox platform add-ons

Security and updates of add-ons such as ack-agent-sandbox-controller, ack-sandbox-manager, sandbox-gateway, Poseidon, egress-gateway, ack-agent-identity, and Container Storage Interface (CSI) plugins

Component security, vulnerability fixes, and version updates

Promptly upgrade to the add-on versions that contain security fixes

Sandbox runtime

Container runtime isolation, sandbox OS, and Container Runtime Interface (CRI) configuration

Runtime isolation capabilities and sandbox OS security baseline

—

Network configuration

Virtual Private Cloud (VPC), vSwitch, security groups, TrafficPolicy, and SecurityProfile

Provides the capabilities (Poseidon/egress-gateway)

Rule configuration, CIDR planning, and isolation effectiveness

Credentials and identity

Agent Identity system, Key Management Service (KMS), RAM Role, and Role-Based Access Control (RBAC)

Provides the credential injection and replacement mechanism and key hosting capabilities

CredentialProvider/AgentRole configuration, least privilege, and API Key management

Storage

CSI dynamic mounting, and Object Storage Service (OSS) and File Storage NAS (NAS) integration

Provides CSI capabilities and temporary token authentication

readOnly/subPath configuration, least privilege of OSS credentials, and assumption of the risk of privileged containers

Observability and response

Audit Webhook, Prometheus, Agentic SOC, and Agent Security Center

Provides detection and response product capabilities

Integration configuration, alert rules, and incident response

Business applications

Agent application code, Skill/Tools/MCP Server, business data, business images

—

All (application security, supply chain, data, images, and security of the code inside the sandbox)

Alibaba Cloud responsibilities (Security of the Cloud)

Alibaba Cloud is responsible for the security of the Agent Sandbox platform itself:

  1. Infrastructure security: physical security of data centers, network infrastructure, the KVM virtualization layer, and security hardening of host machines.

  2. Container and sandbox runtime security: sandbox isolation mechanisms (agent-sandbox sandbox isolation), the sandbox OS security baseline, and CRI configuration security.

  3. ACS control plane security: the security, high availability, and access control of Kubernetes API Server, Controller Manager, Scheduler, and the ACS control plane infrastructure.

  4. Platform component security and updates: vulnerability fixes and security updates for platform add-ons such as ack-agent-sandbox-controller, ack-sandbox-manager, sandbox-gateway, Poseidon, egress-gateway and traffic-extension, ack-agent-identity, and CSI plugins.

  5. Security capability delivery: provides customers with correct implementations of security capabilities such as network isolation (vSwitch, security groups, TrafficPolicy, and SecurityProfile), credential injection (Agent Identity), storage isolation (CSI readOnly/subPath), and observability (Audit Webhook and Prometheus).

Customer responsibilities (Security in the Cloud)

Customers are responsible for the security of how they use the platform capabilities and their own business. The following sections break down these responsibilities by security domain.

Network layer

  • Security groups and vSwitch: configure an independent enterprise security group (in-group isolation + port matrix), and use an independent vSwitch for sandbox workloads, and do not place them on the same vSwitch as the cluster control plane.

  • Use network policies in combination: use the enhanced-traffic-policy mode to obtain the full L4 + L7 traffic governance capabilities.

  • Default deny + whitelist allow: TrafficPolicy (L4) denies all intranet access by default and allows only the necessary external access through a whitelist. When you configure it, first allow system components such as CoreDNS, API Server, manager, gateway, and agent-identity to avoid unintended blocking caused by deny-all.

  • Intranet and metadata isolation: block the Elastic Compute Service (ECS) metadata service and intranet Classless Inter-Domain Routing (CIDR) blocks to prevent credential theft and lateral movement.

  • Cluster-wide baseline: use GlobalTrafficPolicy as a cluster-wide fallback and strictly block the metadata service.

  • Fine-grained L7 egress control: use SecurityProfile to configure domain name whitelists, blocking management paths such as /admin and /console (to prevent SSRF) and non-standard ports (to prevent audit bypass).

  • HTTPS traffic governance: enable Transport Layer Security (TLS) termination so that encrypted traffic is also governed by SecurityProfile.

  • Inbound governance: restrict Ingress to allow access only from the CIDR blocks of the governance components; enable the separation of control plane and data plane traffic (SandboxGateway); and apply inbound traffic authentication at the gateway layer as needed. Prefer JSON Web Token (JWT)-based dynamic token authentication (E2B-Traffic-Access-Token) over static Access Tokens.

  • Audit trail: enable Audit Webhook to make security incidents traceable.

Credentials and identity layer

  • Keep credentials out of the sandbox: use Agent Identity credential injection instead of plaintext credentials. Keep only placeholders inside the sandbox, and replace them with the real credentials at the gateway layer.

  • Least privilege + per-instance dynamic narrowing: use Security Token Service (STS) + RAM Roles for Service Accounts (RRSA) temporary credentials for Alibaba Cloud API credentials. The RAM policy of CredentialProvider must be a subset of the role permissions. Use template variables or functions to dynamically narrow the scope down to the declared Bucket/subPath for each sandbox instance.

  • Credential reliability: set failStrategy to Block so that requests are blocked when credential retrieval fails. Apply for sufficient STS API quotas in advance to avoid injection failures caused by insufficient quotas.

  • API Key management: key isolation, periodic rotation, usage monitoring, and timely cleanup.

  • Disable sensitive injection: set automountServiceAccountToken: false and enableServiceLinks: false, and sanitize or override the Kubernetes environment variables.

Storage layer

  • Read-only first: set readOnly: true for shared storage by default.

  • Tenant isolation: use subPath to isolate the data subdirectories of different tenants.

  • Use Agent Identity for OSS authentication: use Agent Identity (RRSA + STS) uniformly for OSS credentials, dynamically narrow the scope with template functions, and replace static AccessKeys. No Secret is required for a PV that uses Agent Identity. otherOpts must include -o sigv4 -o region=<region-id>. For <region-id>, refer to the ACS product Regions description.

  • Encrypted transmission: use the HTTPS internal endpoint to access OSS.

  • Assumption of the privilege risk: CSI dynamic mounting requires privileged containers and hostPath. Customers must recognize and assume this additional risk, and enable it only when it is truly required.

Business and application security

  • Business image security: make sure that the image content does not contain any credentials, and ensure supply chain security.

  • Security of the code inside the sandbox: be responsible for the security of the behavior of the Agent code that runs inside the sandbox and of Skill/Tools/MCP Server. You must assume that the code inside the sandbox may be subject to prompt injection attacks.

  • Business data security: classification, encryption, and access control of business data.

  • Disable host namespace sharing: keep hostNetwork / hostPID / hostIPC at the default value false to prevent the sandbox from snooping on the host network, processes, and IPC, and avoid lateral probing after an escape.

  • Keep the strongly isolated sandbox runtime: use the platform default microVM/secure container runtime to run untrusted code. Do not replace it with ordinary containers that share the kernel or downgrade the isolation level. Do not enable privileged, do not add dangerous capabilities (such as SYS_ADMIN and NET_RAW), and do not mount hostPath.

  • AI-specific security baseline: enroll Agent applications in the periodic scanning of Agent Security Center, and pay attention to Gateway binding addresses, plaintext passwords, Skill whitelists, and unauthorized access.

  • Real-time runtime protection: deploy runtime guardrails for production Agents to intercept prompt injection and malicious command execution in real time.

  • Incident response plans: pre-configure emergency response plans for scenarios such as cryptomining inside the sandbox, STS credential abuse, reverse shells, and data exfiltration.

  • Defense-in-depth synergy: three-layer collaboration among ACS Agent Sandbox (baseline), Agent Security Center (runtime), and Agentic SOC (threat response).

Shared responsibilities

The following items must be completed through collaboration between Alibaba Cloud and customers:

Item

Alibaba Cloud side

Customer side

Verification of network isolation effectiveness

Provides isolation capabilities and implementation documentation

Verifies based on the documentation that the isolation rules are actually effective (for example, connectivity verification after a scale-out)

Security incident response

Provides detection and response products (Agentic SOC, Agent Security Center) and platform-side handling capabilities

Integrates logs, configures alert rules and playbooks, and performs business-side handling

Compliance auditing

Provides auditing capabilities (Audit Webhook, K8s audit logs, VPC flow logs)

Collects, retains, and audits logs to meet its own compliance requirements

Vulnerability collaboration

Fixes vulnerabilities of platform components and releases updates

Upgrades components in a timely manner and fixes business-side vulnerabilities