> This page is for Building secure agent workspaces with NVIDIA OpenShell Reference Architecture.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/reference-architectures/llms.txt.

# Security And Governance Model

On top of the enterprise managed-workspace baseline, the security posture has three layers: **controls at the workspace perimeter, enforcement around the agent runtime** and **signed-policy governance**. Runtime enforcement includes OS-level process, filesystem and network controls alongside trusted credential/action mediation; signed-policy governance provides controlled authoring, release, verification and audit. Each layer adds enforcement the others cannot provide on their own. These layers decompose into control families enterprises already operate — least privilege, separation of duties, network segmentation, secrets management, and tamper-evident audit — applied here to autonomous agents rather than introduced as a novel security model.

**The three layers map to the Phase I / Phase II maturity model:** Phase I provides controls at the workspace perimeter; Phase II adds enforcement around the agent runtime within the selected execution environment, together with signed-policy governance. Both phases retain the Phase 0 managed-workspace baseline. The specific controls in each layer are summarized below:

![Secure Agent Workspace Security Envelope: three layers, each necessary](/reference-architectures/_fern-files/_img/ea0e989a71659970373aa8c60f9963d90701270c6e53c89e5e0dda6755552732.webp)

The Secure Agent Workspace security envelope. Each layer is necessary; strip any one and the others stop being sufficient. A published data-classification policy is a precondition to turning autonomous agents on.

## Control Surface — Contracts, Implementation and Integration Boundaries

The control surface decomposes into six areas, grouped as two **structural control points** — the workspace and the runtime, where enforcement physically happens — and four **cross-cutting contract surfaces** consumed across them. The named contracts in parentheses below — **signed policy bundle**, **runtime verifier**, **projection into runtime controls**, **credential mediation**, and **common audit** — describe policy authoring, signing, and distribution to runtime-enforcement layers as a universal pattern applicable across vendors and enterprises; identity / delegation is consumed from enterprise IAM rather than owned. Each area names what Secure Agent Workspace implements, what it consumes from enterprise IAM and platform layers, and what remains an integration dependency — so partner contributions know where to plug in without redefining the contract surfaces. An independent infrastructure watchdog, where selected, contributes to workspace containment and the common identity, policy and audit contracts. Its policy authority and response ownership must be explicit; adding a device does not create a separate source of agent authority.

**Table 6: Control Surface Contracts**

<table>
  <thead>
    <tr>
      <th>Control area</th>

      <th>Reference requirement / mapping</th>

      <th>Consumed from enterprise IAM / platform</th>

      <th>Integration dependency</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      **Structural control points** — where enforcement physically happens
    </tr>

    <tr>
      <td>**Workspace control**</td>

      <td>Workspace provisioning and lifecycle operations (see :doc:`What Is Secure Agent Workspace <what-is-secure-agent-workspace>`); perimeter detection; operator kill switch</td>

      <td>OS image base layer; access broker; enterprise PKI for image signing</td>

      <td>Platform management / virtualization; CMDB / provisioning portal</td>
    </tr>

    <tr>
      <td>**Runtime control**</td>

      <td>Runtime sandbox, policy enforcement, credential mediation and routed inference; validate operation and protocol coverage</td>

      <td>Centrally authored and signed baseline filesystem, network and egress policy, mapped to the selected runtime's supported controls</td>

      <td>Validated isolation and process, filesystem and network enforcement mechanisms</td>
    </tr>

    <tr>
      **Cross-cutting contract surfaces** — consumed across the structural points
    </tr>

    <tr>
      <td>**Signed-policy control** (signed policy bundle + runtime verifier)</td>

      <td>Policy authoring and signing; trusted verification and activation; request authorization; controlled distribution and rollback</td>

      <td>Enterprise PKI for signing roots</td>

      <td>Controlled policy-distribution service and release repository; upstream signed-policy framework when adopted</td>
    </tr>

    <tr>
      <td>**Credential mediation**</td>

      <td>Credential mediation and provider authorization; external placement where required by the guest-compromise threat model</td>

      <td>Enterprise secret store</td>

      <td>Provider-specific credential adapters; protected key custody and independently administered proxy where required</td>
    </tr>

    <tr>
      <td>**Audit / revocation control** (common audit)</td>

      <td>Correlated audit from all active security layers, normalized to the selected OCSF schema; revocation integrated with execution, sessions and downstream authority</td>

      <td>Enterprise SIEM; SSO revocation endpoint</td>

      <td>OCSF schema version alignment; SIEM correlation rule pack</td>
    </tr>

    <tr>
      <td>**Identity / delegation control**</td>

      <td>Trusted workspace, agent and task binding; provider-specific credential issuance/rotation and delegation enforcement</td>

      <td>Enterprise SSO / OIDC IdP; group membership; access-broker session</td>

      <td>Enterprise identity/delegation integration; explicitly selected attestation provider</td>
    </tr>
  </tbody>
</table>

## Baseline and Phase I Workspace Controls

* Require a distinct elevated-autonomy entitlement, separate from standard developer access.
* Require enterprise SSO and access-broker login. No alternative path. The broker is the trust boundary.
* Use short-lived sessions with browser-driven re-auth.
* Run agent tools inside the managed workspace. Approved unattended-agent modes are explicitly permitted in Secure Agent Workspace and explicitly not approved on the local laptop.
* Use approved workspace images and profiles only, provisioned through the portal; no user-owned images or out-of-band execution-domain creation.
* Allowlist enterprise-service access at the network boundary. Default-deny for non-allowlisted destinations.
* Apply standard enterprise workload protection, including EDR where supported, to the selected execution environment. Validate protection and telemetry across the workspace and its hosting platform. These baseline controls support both phases and do not replace Phase II enforcement around the agent runtime.
* Require human review before writing to systems of record.
* Log workspace lifecycle, access and session activity.

Publishing a data-classification policy is a precondition before turning autonomous agents on.

## Phase II Agent Runtime Controls

These are the required attributes of the runtime enforcement layer, stated independent of implementation. They form a stacked model: in-sandbox containment (reference implementation [NVIDIA OpenShell](https://build.nvidia.com/openshell) — open-source) and a separate credential / authorization proxy. The requirement is the attributes below, not a specific product.

* **Kernel-level in-sandbox containment** covering all agent operations — not just shell tool calls, but hooks, MCP servers, and skills.
* **Deny-by-default egress**, enforced at the platform network boundary (Phase I) and inside the sandbox (Phase II).
* **Credential proxy and isolation.** A trusted mediator outside the agent process authorizes requests and injects provider credentials. Record whether raw credentials enter a supervisor, guest or external service; agent-process isolation does not imply guest-root isolation. Validate provider scope, token lifetime, audit and revocation. Where controls must survive guest compromise, place them outside that guest with an independently enforced request path.
* **Routed inference.**
* **Filesystem and process controls** — writes confined to the workspace; reads outside the workspace denied by default; writes to configuration, hook, and MCP files denied regardless of path, since they convert into persistent code execution.
* **Signed policies** and controlled release channels.
* **OCSF-compatible audit logs** to SIEM.
* Incident response runbook.
* Rollback path for runtime, connector and policy releases.
* **Identity and delegation enforcement.** Bind authenticated agent and task evidence to the delegation's resources, actions, duration and approval mode; a sandbox-wide active-task pointer alone is insufficient when processes can outlive a task. Child delegations must narrow effective parent authority. Verify actual provider-token semantics, replay handling, and revocation of pending, cached and child authority.

Prompt-injection validation. Test the selected model, blueprint and application path using composed inputs, relevant modality ablations and benign controls. Record the model version, saved test assets, preprocessing and modality order, output contract, generated result and downstream enforcement outcome. Measure legitimate task completion, false blocks and operating cost alongside attack success. Distinguish failure to reproduce an exact attack target from evidence of general safety. Use these tests during qualification and regression testing; they do not require exhaustive modality combinations for every production request.

Enforcement validation. Exercise prohibited and permitted operations through the deployed request path, including generated code and child processes. Record inspection mode, protocol coverage, encrypted-traffic exceptions and policy-prover coverage. Audit-only inspection records violations without blocking them. A formal check establishes only the properties represented in its model; unsupported or inconclusive results are not passes. Prove that deployed controls enforce the approved boundary and preserve required human review independently of model behavior.

## Threat Model — What If the In-VM OS Is Compromised?

Model capability informs risk assessment but is not a security boundary. Models can fail under adversarial inputs or take unintended actions. Assess the combined exposure from model behavior, code and tool access, data sensitivity, network reach, privileges and isolation, without relying on the model to honor the policy. Enterprises may define an approved model-capability range for a deployment as a risk-management choice; that range is not a security boundary.

If an exploit gains root or kernel control inside a workspace guest, which controls remain trusted? Distinguish that event from compromise of the worker host, hypervisor or management plane. Guest hardening and monitoring reduce risk but do not make in-guest enforcement reliable after the guest kernel is compromised.

**Table 7: Threat Model — Residual Controls by Compromise Level**

| Compromise level                                                                                        | Phase I residual control                                                                                                                                                                    | Phase II residual control                                                                                                                                                                                                                         |
| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Agent-level compromise — prompt injection, scope creep, or other **lethal-trifecta** vectors            | Network-boundary allowlist; human review of writes; OCSF audit                                                                                                                              | Phase I controls plus runtime restrictions and credential/action mediation, while their enforcement components remain trusted                                                                                                                     |
| Unprivileged user-space exploit inside the agent process                                                | Workspace process limits; network-boundary allowlist                                                                                                                                        | Sandbox process and syscall scoping; credential proxy still holds secrets                                                                                                                                                                         |
| Root-on-OS inside the workspace (kernel CVE / LPE, or direct local privilege such as passwordless sudo) | Independently enforced perimeter controls and external telemetry; operator termination, rebuild and appropriate identity/credential revocation. In-guest EDR and telemetry may be impaired. | Only additional controls whose enforcement and administration remain outside the compromised guest. Policy signatures authenticate artifacts but do not prevent bypass of a compromised in-guest enforcer; treat exposed credentials accordingly. |
| Hypervisor / control-plane compromise                                                                   | Depends on platform-provider controls and the declared trusted computing base; ordinary VM isolation does not protect against its own compromised hypervisor or management plane            | Same; separately qualified confidential-computing or independent-enforcement profiles may protect specific assets and paths                                                                                                                       |

Confidential compute is an optional protection profile for supported workloads and threat models. Attestation and TEEs can protect selected data and code in use from components excluded from the trusted computing base. They do not replace sandboxing, delegated authorization, availability controls or secure I/O. Confidential inference and a confidential agent workspace are separate deployment decisions; this design details the inference option (see [Confidential Computing Inference Profile](./confidential-computing-inference-profile)).

**Optional DPU enforcement and offload profile.** A DPU may host selected network, telemetry or storage controls where supported. Specify the protected paths and management trust, and distinguish hardware offload from independently administered enforcement. Record the trusted mapping between each workspace, its network attachments and active infrastructure policy; changes follow controlled release and authorization. A NIC/SmartNIC label does not establish an independent compute boundary, and DPU presence alone does not establish Phase II. A host-trusted offload profile does not provide independent enforcement against host compromise. Qualify any separately administered DPU path, including policy binding, bypass denial and failure behavior, before claiming that property.

Independent watchdog profile. In addition to the DPU-profile requirements above, validate protected telemetry, detection and enforcement behavior during workspace worker-host compromise, monitor loss and recovery. Declare which operations the watchdog can stop and which still depend on runtime, service or operator controls. An out-of-band monitor adds protection only for the paths and actions it actually governs.

**Operational responses for the in-VM-rooted case:**

* **Per-workspace kill switch.** Exposed through the lifecycle API to stop or delete the assigned execution instance, deny network access and terminate broker sessions. Verify the selected profile's actual termination paths. For DPU paths, verify denial across the assigned attachments and established forwarding state. Record network quarantine, process termination and downstream-authority revocation as separate outcomes. Measure detection-to-decision and decision-to-enforcement time for the selected workload and topology; neither network quarantine nor a stopped process reverses an operation already accepted by an upstream service.
* **Application session and token revocation.** Revoke delegated authority and deny new mediated requests within a declared, measured propagation bound. Cover pending approvals, queued writes, child authority, cached credentials and live connections. Revoke or rotate provider credentials and sessions where supported. Treat credentials accessible during guest compromise as exposed; external proxy placement reduces that exposure only when its trust and request paths remain intact. Termination cannot recall completed upstream side effects.
* **Periodic image refresh and rebuild.** Recreate the selected execution domain from approved images, with explicit handling of retained state and credentials; rebuilding the guest alone does not remove persistence in shared storage or upstream systems.
* **Centralized SSO revocation.** SSO entitlement for the affected user can be revoked at the identity broker layer.
* **Telemetry.** Independently collected platform events corroborate runtime events; validate schema normalization, correlation and loss detection. Include DPU health and supported network telemetry where used, correlated through trusted workspace-to-infrastructure mappings. Hardware counters do not establish which agent action was authorized or executed. Correlate runtime and watchdog events with the trusted workspace, agent/task, sandbox instance and policy revision. Retain detection, enforcement, quarantine and release evidence outside the affected workload; validate claimed attestation separately from ordinary audit-log export.