DataGuard for Agent
DataGuard for Agent provides data call interception, sensitive data leak prevention, incident tracing, and log audit capabilities for cloud-based agents and endpoint agents. This topic describes the product positioning, capability boundaries, and usage.
Overview
DataGuard for Agent targets data access scenarios of endpoint agents. It uses policies to restrict non-compliant data access caused by AI hallucinations and malicious data access, intercepts tool access, high-risk operations, and sensitive data exfiltration at runtime, and retains complete logs for post-incident trace analysis and agent audit. This prevents autonomous AI execution from amplifying security vulnerabilities and attack risks, making the data operations of every agent trustworthy, controllable, and auditable.
Database scenarios are the core focus. Large-scale data access by agents introduces new data security challenges. Compared with traditional database security scenarios, agent-database interactions feature a high degree of automation, complex behavior chains, and rapid risk propagation, which require stricter security management standards. DataGuard for Agent centers on security control and targets compliance implementation, providing security management capabilities that cover the entire chain of agent data operations.
The policy engine automatically intercepts risky operations such as high-risk command execution, sensitive data leaks, prompt injection, AI supply chain poisoning, session hijacking, and tool abuse. This ensures that agents do not access resources beyond their permissions, leak credentials, or damage the system environment while executing tasks, and provides complete security alerting and audit log tracing capabilities.
Core capabilities
DataGuard for Agent is organized along the before, during, and after phases of agent data access, addressing four types of issues: unclear identities, unverified sources, uncontrolled behavior, and lack of post-incident evidence.
Capability | Issue addressed | Description |
Agent identity onboarding | Unclear agent identities and excessive permissions. | Registers a unique identity for each agent at onboarding, binds it to the owning tenant, grants least-privilege permissions, and verifies the token permission scope on every operation. For more information, see Product capabilities and protection concepts. |
Supply chain admission | Plugins and tools that carry malicious logic. | Statically scans plugin code before publication, unpacks and verifies plugins in a sandbox, and protects agent configurations and audit components at runtime. |
Runtime security interception | Privilege escalation, data leaks, and hijacking during execution. | Covers four rule categories: command and operation security, prompt injection protection, data protection, and permission control, with session-level risk control layered on top. For the specific operations that can be intercepted, see Security protection capability list. |
Agent audit | Inability to reconstruct attack chains after incidents. | Generates real-time alerts for interception events, fully records operations and tool calls, and supports evidence tracing by trace ID. |
Division of responsibilities with other security capabilities
On the agent data access chain, DataGuard for Agent, Agent DataGateway, and Security Audit provide layered control over Agent → data gateway → database, with clear boundaries and seamless integration.
Each product manages one layer with independent responsibilities: DataGuard for Agent manages the first layer, agent behavior logic (what an agent is allowed to do); Agent DataGateway manages the second layer, data ingress and egress (only standardized access is allowed, and access that bypasses the gateway is blocked and reported); Security Audit manages the third layer, full database audit and alerting (every operation is recorded). Identity and alerts are coordinated across the three layers to form a complete security chain for agent data access.
Quick start
DataGuard for Agent provides two onboarding forms based on where agents run. Select the form that matches your agent type:
Database agents: PolarDB Agent Express has DataGuard built in. After you create an application, DataGuard is disabled by default. Manually enable it and restart the application. For the procedure, see Connect to DataGuard.
Endpoint agents: Agents such as Qoder, Codex, Qoderwork, Qwenwork CN, and Cursor are connected by using a one-click installation command. Prepare the AccessKey pair of a dedicated RAM user in advance. For the procedure, see Connect to DataGuard.
Connecting endpoint agents requires creating and authorizing a RAM user. Have the account administrator prepare this in advance. Before you enable runtime interception, run in observe mode for a period of time to confirm that the rules match your actual business, and then switch to guard mode.