Updated on 2026-09-07 GMT+08:00

Server Security Agent Overview

What Is a Server Security Agent?

A server security agent is a security client provided by HSS and installed on servers. It exchanges data between the servers and HSS, implementing security checks and protection for servers. If no agent is installed, HSS cannot be used.

Agent Working Principles

  1. Data collection: It collects information about server OSs, processes, software, open ports, and more.
  2. Detection and defense: It monitors abnormal behaviors, malicious programs, vulnerabilities, and risks on servers, and identifies and blocks intrusions in time.
  3. Execution: It receives and implements security policies, applies protection settings, performs scans, and runs fixing commands sent from the HSS console.
  4. Status synchronization: It synchronizes its own status, asset status, and task execution results to the HSS console.

Relationship Between the Process and Agent Status

  • The agent sends periodic heartbeat packets to the cloud server (typically every few minutes). If no heartbeat is received within the specified timeout period, the agent status changes to offline.
  • If an agent remains offline for an extended duration (for example, continuous offline status for 30 minutes, or at least 3 offline events detected within a 30-minute window), the system consolidates the offline alarm details and notifies users via SMS or email based on your notification settings.
  • You can view the agent status on the console. For details, see Checking Server Protection Status.
  • If the agent status is abnormal, you can rectify the fault by referring to How Do I Fix an Abnormal Agent?

OSs Supported by the Server Security Agent

Currently, some mainstream OSs are supported. For details, see OS Restrictions.

Agent installation on an unsupported OS may fail or incur compatibility issues, including but not limited to server exceptions, unstable performance, vulnerability scan failures, and false positives.

For stability and security purposes, you are advised to install the agent on supported OSs.

Processes of the Server Security Agent

  • Linux
    The account of the agent is root. Table 1 lists the running processes on a Linux server.
    Table 1 Agent running process on a Linux server

    Agent Process Name

    Function

    Path

    hostguard

    Detects security issues, protects the system, and monitors the agent.

    /usr/local/hostguard/bin/hostguard

    hostwatch

    Monitors the agent process.

    /usr/local/hostguard/bin/hostwatch

    upgrade

    Upgrades the agent.

    /usr/local/hostguard/bin/upgrade

  • Windows
    The account of the agent is system. Table 2 lists the running processes on a Windows server.
    Table 2 Agent running process on a Windows server

    Agent Process Name

    Function

    Path

    hostguard.exe

    Detects security issues, protects the system, and monitors the agent.

    C:\Program Files\HostGuard\HostGuard.exe

    hostwatch.exe

    Monitors the agent process.

    C:\Program Files\HostGuard\HostWatch.exe

    upgrade.exe

    Upgrades the agent.

    C:\Program Files\HostGuard\upgrade.exe

Differences Between the Server Security Agent, Container Security Agent, and Serverless Security Agent

The server security agent and container security agent are the same software deployed in different ways and used in different scenarios. They have the same code, communication mechanism, and detection capabilities.

The serverless security agent uses a coding system different from the one used by the other two. The detection capabilities of the serverless security agent are also different from them.

For details about the differences, see Table 3.

Table 3 Differences between the server security agent, container security agent, and serverless security agent

Category

Server Security Agent

Container Security Agent

Serverless Security Agent

Deployment location

It can be installed on ECSs, BMSs, third-party cloud servers, and on-premises IDC servers. One agent should be installed on each server.

It can be installed on container hosts (nodes). One agent should be installed on each node.

It can be installed on workload instances.

One agent should be installed on each workload instance.

Deployment mode

  • Command line (mandatory for the first installation)

    Log in to the server and run commands or a script to install the agent.

  • Installation on the console (account and password/key required)

    If there is already a server with an online agent in your VPC, you can install the agent on other servers on the console.

    The server with an online agent will be used to run the installation script. It can install the agent on other servers in the VPC after you provide your account and its password or key.

For details, see Installing the HSS Agent.

  • Dynamic deployment in a cluster

    After you configure the installation, DaemonSets will be automatically created in your cluster to install the agent on all nodes (or the nodes that match specified tags). The agent will also be automatically installed on the nodes newly added to your cluster. For details, see Installing the Container Security Agent.

  • Installation on an independent node

    Same as the agent installation on the server.

Inject a hostguard sidecar container template into a workload so that both the service container and hostguard container can run in the pod generated by the workload. The hostguard container can monitor and protect the service containers that coexist with it.

Detection capabilities

Its capabilities depend on the edition of the HSS quota bound to a server.

You are advised to use the basic, professional, premium, and web tamper protection editions.

For details about the capabilities provided by each edition, see Features.

Its capabilities depend on the edition of the HSS quota bound to a container.

The container edition is recommended. Only the container edition provides local image security scan, container firewall, container cluster protection, container escape detection, and cluster environment security check functions.

For details about the capabilities provided by the container edition, see Features.

Currently, the following protection capabilities are provided: asset stocktaking, container escape detection, process anomaly detection, and real-time process reporting.
NOTE:

Serverless security is in an open beta test (OBT) and free for now.

Scenario

Server protection

Container protection

Serverless asset protection