← Blog

An Agent Governance Framework

Recently I spent quite a lot of time working with agent security and governance of data that they touch. I had an hard time looking for something that defines how to securely run an agent in regulated environments (enterprises, medical clinics etc..).

So was born this post, with the objective of taking a general description of an autonomous agent and determine the exact security configuration required to deploy it safely.

All the following ideas are as much as possible technology agnostic, so you can use this document to mediate between technical people and others (managers , stakeholders, legals…).

I will make another article with a deep dive on Nvidia OpenShell.

Core Definitions

Sandbox: The isolated container where the agent process and its local commands/scripts execute.

Internal Systems & Scoped Resources: Company-hosted platforms inside Trusted network (e.g., Bitbucket, Jira, Confluence, internal databases/services), controlled per Scoped Resource—the smallest addressable unit (e.g., one Bitbucket repo and agent/* branch prefix, a Jira project/ticket, or a Confluence page).

External Network (Public Internet): Any network or service outside the organization's internal perimeter.

Environment & Data Scope: The Sandbox plus all reachable systems (LLM, MCPs, network routes). All reachable data counts toward the agent's Data Scope, grouped into 3 read tiers:

  • Public: Public web docs, open-source code.
  • Internal: Standard internal repositories, CI logs, internal docs.
  • Restricted: Proprietary / core-IP source code and highly sensitive internal artifacts, HR data, customer data.

Read vs. Write Operations: Reading brings data into the Environment; writing modifies state outside the Sandbox or sends data out. Dynamic web requests (e.g., GET with agent-constructed URLs/queries) count as writes because URLs can leak data, whereas navigating a fixed, static link tree is a read.

Blast Radius: The worst-case damage an agent can cause if it misbehaves up to the maximum permissions and quotas granted to it (e.g., corrupting state, leaking Restricted data to lower tiers, or spamming infinite PRs/comments).

Common attributes

Ephemeral Locked Runtime: The Sandbox is wiped after every run and uses pre-installed, locked dependencies only.

Prohibited Data & Secrets: Raw credentials, HR/personnel data, regulated/customer data, and financials are never exposed to the agent; credentials are brokered outside the prompt and Sandbox.

Approved LLMs by Default: Agents connect only to IT-approved Protected Cloud or on-premises Local LLMs (public AI services are prohibited).

No Outbound Web Writes: Unrestricted internet access and outbound writes to the External Network (including dynamic URL queries) are prohibited.

Execution Modes & Trust Assumptions

Execution Modes & Ownership

User-Initiated Agents (e.g., GitHub Copilot): Started directly by a human. Permissions inherit the user's identity and can only be narrowed; the triggering user is accountable for the output.

Autonomous Agents (Scheduled / Event-Driven): Primary focus of this document. They run under a dedicated machine identity:

  • Owning Team (Maintainer): Responsible for the agent's configuration and kill-switch.
  • Human Reviewer: Accountable when promoting final outputs into protected state.

Trust Assumptions & Accepted Residual Risks

Before diving into the next section, it is necessary to state two explicit assumptions:

Infrastructure & LLM Guarantees Hold: Container isolation, OS kernels, firewalls (0-days out of scope), Protected Cloud DPAs, and on-premises Local LLM servers are assumed to enforce their isolation guarantees.

Internal Systems Are Trusted Input: Content authored inside the organization's Internal Systems is treated as trusted against hostile prompt injection, unless ingested unvetted from an external source.

Configuration Flowchart (Collect-Along-the-Path)

Now that we have defined the building blocks we can understand the required configuration in order to minimize the blast radius of the agent even in the worst-case scenario.

Walk from left to right: collect every red requirement box along your path until you reach a blue final leaf, which completes your configuration on top of the Mandatory Baseline:

%%{init: {'flowchart': {'wrappingWidth': 280, 'nodeSpacing': 12, 'rankSpacing': 28}}}%%
flowchart LR
    Start(["Define<br/>Agent Goal"]) --> Q1

    subgraph S1 ["1. Network"]
        direction LR
        Q1{"1. Accesses Public<br/>Internet?"}
        L_Web["<b>Final: Public Web</b><br/>• <b>Read Scope</b>: Public tier only<br/>• <b>Network</b>: Static/whitelisted web read<br/>• <b>Internal Writes</b>: None (draft output only)"]
        M_Int["• <b>Network</b>: Internal Systems only"]
        Q1 -- "Yes" --> L_Web
        Q1 -- "No" --> M_Int
    end

    subgraph S2 ["2. Data Scope"]
        direction LR
        Q2{"2. Reads Restricted<br/>Tier?"}
        M_Conf["• <b>LLM</b>: On-prem Local LLM only<br/>• <b>Logs</b>: Restricted to the same confidentiality tier as input<br/>• <b>Write Target</b>: Restricted tier only"]
        Q2 -- "Yes" --> M_Conf
    end

    subgraph S3 ["3. Internal Writes"]
        direction LR
        Q3{"3. Writes to Internal<br/>Systems?"}
        L_RO["<b>Final: Sandbox-Only</b><br/>• <b>Internal Writes</b>: None (draft output only)"]
        M_Write["• <b>Write Scope</b>: Scoped Resource RBAC<br/>• <b>Limits</b>: Action limits (rate/step/loop caps)"]
        Q4{"4. Is the Write Reversible?<br/>(e.g., new PR branch, comment)"}
        L_Rev["<b>Final: Reversible Write</b><br/>• <b>Gate</b>: Automated checks + Human at merge"]
        L_Mut["<b>Final: State-Mutating Write</b><br/>• <b>Gate</b>: Rollback/Backup + Human pre-approval"]

        Q3 -- "No" --> L_RO
        Q3 -- "Yes" --> M_Write --> Q4
        Q4 -- "Yes" --> L_Rev
        Q4 -- "No" --> L_Mut
    end

    M_Int --> Q2
    M_Conf --> Q3
    Q2 -- "No" --> Q3

    classDef default fill:#ffffff,stroke:#334155,stroke-width:1px,color:#0f172a;
    classDef question fill:#f8fafc,stroke:#475569,stroke-width:1.5px,color:#0f172a;
    classDef collected fill:#fef2f2,stroke:#dc2626,stroke-width:1.5px,color:#7f1d1d,text-align:left;
    classDef finalLeaf fill:#eff6ff,stroke:#1d4ed8,stroke-width:1.5px,color:#1e3a8a,text-align:left;

    class Q1,Q2,Q3,Q4 question;
    class M_Int,M_Conf,M_Write collected;
    class L_Web,L_RO,L_Rev,L_Mut finalLeaf;
    style S1 fill:#f8fafc,stroke:#cbd5e1,stroke-dasharray: 4 4,color:#334155
    style S2 fill:#f8fafc,stroke:#cbd5e1,stroke-dasharray: 4 4,color:#334155
    style S3 fill:#f8fafc,stroke:#cbd5e1,stroke-dasharray: 4 4,color:#334155
Scroll horizontally to follow the diagram. Mermaid source

References & Policy Alignment

  • OWASP Top 10 for Agentic Applications (2026) & OWASP Agentic Governance: Mitigates Excessive Agency, Tool Misuse, and Unbounded Consumption via Scoped Resource RBAC, Action Limits, and reversibility gates (Questions 3 & 4), plus wiped ephemeral sandboxes (Section 1).
  • Simon Willison’s "Lethal Trifecta" (2025): Prevents data exfiltration (Private Data + Untrusted Web Input + External Reach) by treating dynamic web requests as writes (Section 1) and routing public web reads directly to Sandbox-Only (Question 1).
  • EU AI Act & NIST AI RMF: Enforces human accountability and deterministic verification at promotion boundaries (Section 2.1 & Question 4).
  • GDPR, ISO/IEC 42001 & ISO/IEC 27001: Enforces strict data residency, non-downgrading, and confidentiality-matched logging on Restricted resources (restricted logs + on-premises Local LLM in Question 2).

Previous post All posts →