# An agent governance framework for enterprises

> Source: <https://luciobaiocchi.com/blog/agent-governance-security-framework>
> Published: 2026-12-05 09:58:45+00:00

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:

## References & Policy Alignment

- **[OWASP Top 10 for Agentic Applications (2026)](https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/) & [OWASP Agentic Governance](https://genai.owasp.org/resource/state-of-agentic-ai-security-and-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)](https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/):** 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](https://eur-lex.europa.eu/eli/reg/2024/1689/oj/eng) & [NIST AI RMF](https://www.nist.gov/itl/ai-risk-management-framework):** Enforces human accountability and deterministic verification at promotion boundaries (Section 2.1 & Question 4).
- **[GDPR](https://eur-lex.europa.eu/eli/reg/2016/679/oj/eng), [ISO/IEC 42001](https://www.iso.org/standard/42001) & [ISO/IEC 27001](https://www.iso.org/standard/27001):** Enforces strict data residency, non-downgrading, and confidentiality-matched logging on Restricted resources (restricted logs + on-premises Local LLM in Question 2).
