FAQ

Updated at:

This topic provides answers to frequently asked questions about DataGuard for Agent, covering capability positioning, onboarding configuration, interception false positives, and AccessKey management.

Product and capabilities

How does DataGuard for Agent relate to Agent DataGateway and security audit?

The three services control different layers of the agent data access path without overlapping: DataGuard for Agent governs agent behavior logic, namely what an agent is allowed to do and whether it crosses boundaries at runtime; Agent DataGateway governs inbound and outbound data flows, allowing only standardized access; security audit provides full audit and alerting on the database side. The three layers work together to form a complete protection path. For more information, see Product capabilities and protection concepts.

What is the difference between observe mode and guard mode? Which one should I choose?

Observe mode only detects and records risky behavior without real-time interception. Guard mode detects risks and intercepts high-risk operations in real time. Records and alerts from both modes are shown in the console. For newly connected agents, run in observe mode first. After you confirm that the rules match your actual business and no obvious false positives occur, switch to guard mode. For the switching method, see Use the DataGuard console.

Which agents does DataGuard for Agent support?

For database agents, PolarDB Agent Express has DataGuard built in. For endpoint agents, Qoder, Codex, Qoderwork, Qwenwork CN, and Cursor are supported. For the onboarding methods of both forms, see Connect to DataGuard.

Interception and false positives

What do I do if a normal operation is intercepted?

First identify the rule that triggered the interception: view the matched policy of the alert in the Alert center, and then check the operation scope covered by the rule in Security protection capability list. Handle the issue based on the scenario:

  • The session is locked due to high risk: wait about 10 minutes for the risk score to decay automatically and the session to recover, or start a new session.

  • The same rule triggers false positives frequently: contact your security administrator to evaluate whether to add a whitelist for the specific scenario or adjust the rule threshold.

My agent suddenly cannot call tools. Is this a service failure?

In most cases, this is not a failure but a session that has triggered high-risk control. The system accumulates a risk score per session. If operations such as path traversal, sensitive file reads, and credential searches occur consecutively in the same session, the risk score rises quickly. When the score exceeds the threshold, the system locks all high-risk tools of the session (file reads and writes, shell execution, and network requests). During the lockdown, the agent can only perform conversational interactions. The risk score decays naturally over time, and the tools recover automatically after about 10 minutes. To confirm, view the alert whose rule ID is high-risk-session-lockdown in the Alert center.

Can I disable or adjust security rules on my own?

No. Security rules are maintained centrally by the product and take effect globally. Disabling or adjusting individual rules is not supported. If you confirm a false positive, contact your security administrator. To cover scenarios that preset rules do not include, create a custom policy through the AI-assisted workflow in Policy Management.

Onboarding and AccessKey management

Why must endpoint onboarding use a dedicated RAM user instead of the Alibaba Cloud account?

DataGuard authenticates endpoint agent identities by using AccessKey pairs. Using a dedicated RAM user meets the requirements of least-privilege authorization and credential isolation: the RAM user has only the permissions required for monitoring, and its AccessKey pair can be rotated independently without affecting the Alibaba Cloud account. Do not use the AccessKey pair of your Alibaba Cloud account.

Can I retrieve a lost AccessKey secret?

No. The AccessKey secret is displayed only once when it is created. It cannot be viewed or retrieved afterwards. If it is lost, create a new AccessKey pair for the RAM user. Store the AccessKey secret securely immediately after creation.

What do I do if an AccessKey pair is suspected of being leaked?

Immediately disable or delete the original AccessKey pair of the RAM user, create a new AccessKey pair, and rerun the installation procedure on the machine where the agent runs to complete initialization. The AccessKey secret is stored only in the operating system credential store and is never written to any configuration file, so no other configuration changes are required during rotation.

Does stopping monitoring delete the agent or its historical data?

No. Stopping monitoring only toggles the enablement status switch and does not physically delete anything. After monitoring is re-enabled, the agent enters monitoring again and is included in alert and log statistics.

What do I do if the agent does not appear in the console after endpoint installation?

After a plugin reports for the first time, it is automatically registered at the instance level and monitoring is enabled, with no manual claiming required. If the agent still does not appear in the console after installation, check the following items in order: the installation script ran successfully, the target agent has started, and the AccessKey pair of the machine is in the Enabled state.