DEV Community

gen tang
gen tang

Posted on Originally published at finshield.finogeeks.club

Agent security from data access to execution boundaries

Protect the Entire Process from Reading to Output

AI brings scattered information into context, then generates new content or actions. Data protection needs both to restrict initial access and to manage the combined information and its eventual destination.

Let retrieval permissions inherit the enterprise's existing authorization

When connecting a knowledge base, document ownership, sensitivity levels and access permissions need to be retained. Retrieval should be filtered according to the current user or task identity, rather than relying only on blanket authorization when data is imported. When employees leave, roles change or document permissions change, indexes and caches should also be updated promptly to prevent old permissions from remaining in AI applications for long periods.

Provide the minimum context sufficient for the task

Analyzing a customer issue may not require a complete identity-card number, and summarizing contract terms may not require every attachment. Enterprises can reduce exposure through field reduction, redaction, summaries and authorized data views. For Agents that read local files, they should also establish clear workspaces and restrict access to unrelated information through directory traversal or auxiliary scripts.

Output checks and destination checks need to work together

Sensitive-information identification can detect particular fields but cannot independently determine all business secrets. Enterprises should also control which models and external services can be accessed, check recipients, and retain a review step for highly sensitive tasks. For binary attachments, images and encrypted traffic, controls should correspond to actual detection coverage. One text-detection capability must not be used to describe all data channels.

Minimizing data exposure requires simultaneous management of access scope, contextual content and transmission destinations.

Sources: [11] OWASP; [14] NIST. See References for full citations.

Provide Agents with a Secure, Controllable Execution Environment

When Agents can run code, start programs or operate the desktop, enterprises need clear file, system, network and resource boundaries. The execution environment translates authorization requirements into actual restrictions.

Constrain actual actions at the operating-system layer

File reads and writes, process creation, desktop interaction and network connections are ultimately executed by the operating system. Applying policies to execution identities and system mechanisms can technically constrain out-of-scope operations. Behavioral requirements in prompts remain valuable, but should work with system-level permissions to help Agents understand boundaries and select permitted paths.

Isolation should also account for task completion

Enterprises need to provide sufficient legitimate working space: input directories, writable output directories, necessary dependencies and permitted services. If there are only denial rules, Agents are prone to repeated attempts, and employees may relax all permissions to finish the task. Explainable denial information and clear alternative paths help work proceed while constraints remain in place.

Manage task lifecycles and resource use

Tasks that run for long periods or create child processes should have time and resource constraints, with explicit handling for reclaiming execution units after cancellation. Network permissions should be configured per task and checked for actual enforcement. Different operating systems provide different control mechanisms, so enterprise deployments should combine protection and monitoring according to platform capabilities.

A trusted execution environment should let permitted tasks complete smoothly and impose actual constraints on out-of-scope actions.

Sources: [13] Microsoft; [17] Finogeeks / FinShield. See References for full citations.


Source: Agent-Era Enterprise Information Security Governance Whitepaper, Shenzhen Finogeeks Technology Co., Ltd., November 2026. Sections from Chapter 3.

Top comments (0)