Enable and disable protection

Updated at:
Copy as MD

Install the Agent Security Center defense plugin in your Agent runtime environment to enable runtime security protection. The plugin detects and blocks security threats such as prompt injection attacks and malicious URL access in real time. This topic describes the supported products and how to install the defense plugin, disable protection, or uninstall the plugin.

Overview

The Agent Security Center defense plugin monitors your Agent as it runs, automatically detects and blocks threats such as prompt injection attacks and malicious URL access, and reports the Agent's asset information to Agent Security Center.

Supported products

You can install the defense plugin to enable runtime protection for OpenClaw, Hermes Agent, Claude Code, Codex, Cursor, Qoder, QoderWork, and other supported products. For a complete list of products that support asset onboarding and runtime protection, see Supported Agent products.

Install the defense plugin

The defense plugin supports manual and automatic installation. The following table compares the two methods.

Comparison item

Manual installation

Automatic installation

Trigger

Manually initiate installation for a specific product or an individual Agent in the console.

The system automatically installs the plugin after you turn on the automatic protection switch.

Target Agents

Existing Agents. You can install the plugin in batches by product with one click or install it for an individual Agent. For Agents that Agent Security Center has not detected, copy the installation command and run it on the server where the Agent is deployed.

Agents added after you turn on the switch.

Use cases

Enable protection for existing Agents, or install the plugin for Agents for which one-click batch installation failed or that have not been detected.

Continuously enable protection for newly added Agents without installing the plugin manually for each Agent.

You can use both methods together: first manually install the plugin to protect existing Agents, and then turn on automatic installation to protect Agents added later.

Manual installation

Manual installation supports the following two methods:

  • Install by product: On the Access Management page, install the defense plugin for Agents of a specific product. You can use one-click batch installation or copy the installation command and run it on the server where the Agent is deployed.

  • Install by Agent: On the Agent Details page, install the defense plugin for an individual Agent that Agent Security Center has detected.

Install by product

  1. Access the Agent Security Center - Agent Overview page. In the upper-left corner of the page, select the region where the assets to be protected are located: Chinese Mainland or Outside Chinese Mainland.

  2. In the Integrated Product section, click Added to open the Access Management page.

  3. In the Integrated Products section, if the target product is connected but protection is not enabled, click Enable Protection Now on the product card.

    Note

    If the target product is not connected, search for it in the All Supported Products section, click Add in the upper-right corner of the product card, and complete the configuration. For detailed steps, see Defense plugin.

  4. Authorize the role (first time only): On the Service Authorization page, click Authorize.

    Note

    The system automatically creates the AliyunServiceRoleForSasAI service-linked role for Agent Security Center and attaches the AliyunServiceRolePolicyForSasAI permission policy. This allows Agent Security Center to access resources in other cloud services.

  5. On the Enable Real-time Protection page, select an installation method:

    • One-Click Batch Install: Automatically install the defense plugin for Agents of this product that Agent Security Center has detected. The installation is expected to complete within 10 minutes after the task is submitted. You can close this window. Agent assets are automatically synchronized after installation completes.

    • Manual Installation: Use this method for Agents for which one-click batch installation failed or that Agent Security Center has not detected.

      1. Copy the installation command, log on to the server where the Agent is deployed, run the command, and follow the prompts to complete the installation.

      2. Restart gateway components if required: Some products require restarting components such as the Agent gateway during installation. Evaluate the impact on your business in advance and follow the instructions on the page. For example, installing the plugin for OpenClaw restarts OpenClaw Gateway.

      3. After installation completes, the Agent's data is automatically synchronized to Agent Security Center.

      Important
      • The installation command expires. Check the Execute Installation Command section for the Expiration Time. Obtain a new command after it expires.

      • The installation command contains a key used for access. Keep it secure, and do not publish or share the complete command.

Install by Agent

  1. Access the Agent Security Center - Agent Overview page. In the upper-left corner of the page, select the region where the assets to be protected are located: Chinese Mainland or Outside Chinese Mainland.

  2. In the relationship graph on the Agent Overview page, click the central AGENTS icon to open the Agent Details page. Switch to the List view.

  3. Search for the target Agent. In its Security Protection column, click the Enable protection icon icon.

  4. In the protection plugin dialog box, click Install Now.

Automatic installation

  1. Access the Agent Security Center - Agent Overview page. In the upper-left corner of the page, select the region where the assets to be protected are located: Chinese Mainland or Outside Chinese Mainland.

  2. In the Protection Status section, turn on the Automatic Protection switch.

  3. After you turn on the switch, the system automatically installs the defense plugin for newly added Agents.

    Note

    After you turn off the switch, the plugin is no longer automatically installed for newly added Agents. You must install it manually.

Verify the installation status

On the Agent Details page, switch to the List view. Protection is active if the target Agent's Security Protection column shows the Protected icon icon. For more information, see Security protection plugin installation status.

Note

To enable real-time protection for self-managed Kubernetes clusters or third-party container clusters, see Real-time protection for container applications.

Uninstall the defense plugin or disable protection

  1. Access the Agent Security Center - Agent Overview page. In the upper-left corner of the page, select the region where the assets to be protected are located: Chinese Mainland or Outside Chinese Mainland.

  2. In the relationship graph on the Agent Overview page, click the central AGENTS icon to open the Agent Details page.

  3. Switch to the List view. In the target Agent's Security Protection column, click the Disable protection icon icon.

  4. In the protection plugin dialog box, select an option:

    • Disable Protection: Temporarily disable protection. The plugin remains on the server and can be re-enabled at any time.

    • Uninstall Now: Completely remove the defense plugin. To restore protection, you must perform the installation procedure again.

Troubleshoot plugin installation failures

The following are common installation failure scenarios and troubleshooting suggestions. OpenClaw-related scenarios apply only to OpenClaw.

  • sudo: unknown user

    • Error messages: sudo: unknown user <username> and sudo: error initializing audit plugin sudoers_audit.

    • Possible causes:

      • The sudo configuration references a user that does not exist, possibly because the username format is invalid or the user has been deleted.

      • The sudoers audit plugin failed to initialize, possibly because of the sudo version or PAM configuration.

    • Troubleshooting:

      • Check /etc/sudoers and the configuration files under /etc/sudoers.d/ for invalid user references.

      • Verify that the user exists by running id <username>.

    • Solution: Try repairing the sudoers configuration or reinstalling the sudo package.

  • OpenClaw not detected

    • Error message: ERROR: No available openclaw detected (tried global / pnpm / docker).

    • Possible causes:

      • OpenClaw is not installed on the server, or the system PATH does not include the installation path.

      • OpenClaw is deployed using pnpm or Docker, but the installation script did not detect it correctly.

    • Troubleshooting:

      • If OpenClaw is installed globally, verify that the current environment can locate the OpenClaw executable. Run which openclaw to check the executable path, or run openclaw --version to check the version.

      • If OpenClaw is deployed using Docker, run docker ps | grep openclaw to verify that the container is running.

      • If OpenClaw is installed using pnpm, verify that the system PATH includes the pnpm global bin directory. Run pnpm bin -g to check the directory.

    • Solution: If OpenClaw is installed globally or using pnpm, add the OpenClaw executable path or the pnpm global bin directory to the system PATH, and then run the installation command again. If OpenClaw is deployed using Docker, first verify that the OpenClaw container is running correctly, and then run the installation command again.

  • OpenClaw Gateway process not found

    • Error message: openclaw-gateway process not found.

    • Possible causes:

      • The openclaw-gateway process is not running or is not installed.

      • The gateway process has crashed or exited unexpectedly.

      • The process name or path does not match the detection script.

    • Troubleshooting:

      • Check whether the OpenClaw CLI is available by running which openclaw. This command only verifies that the OpenClaw executable exists. It does not indicate that the gateway process is running.

      • Check the process status by running ps aux | grep '[o]penclaw-gateway'.

      • Check whether a related systemd service exists by running systemctl status openclaw-gateway.

      • Check the logs to determine whether the gateway failed to start. Run journalctl -u openclaw-gateway or check the application logs.

    • Solution: Run openclaw gateway restart to restart the gateway, or reinstall OpenClaw Gateway.

    If the issue persists, submit a ticket to contact technical support.

Billing

Agent Security Center starts charging for the defense plugin on August 25, 2026. For more information, see Agent Security Center defense capabilities official commercial billing announcement.