Endpoint Agent Components: HCP and HBS¶
The LimaCharlie endpoint agent is made of two components. They have different names, live in different places, and are upgraded in different ways. This page explains which is which, maps the names you see on a host (rphcp, hcp.log, hcp_hbs_status.json) to each component, and points to the upgrade procedure for each.
The Two Components at a Glance¶
| On-disk agent (HCP) | Over-the-air core (HBS) | |
|---|---|---|
| Full name | Host Common Platform | Host-Based Sensor |
| What it is | The service installed on the host | The sensor logic that the service loads |
| Where it comes from | The installer you run on the host | The LimaCharlie cloud, after the service connects |
| What it does | Identity, cryptography, and transport to the cloud | Telemetry collection, sensor commands, detection and response capabilities |
| How often it changes | Rarely | Frequently |
| Who picks the version | Whoever installs or upgrades the service on the host | The organization's sensor version setting and the lc: version tags |
| How to upgrade it | Service Upgrades | Versioning & Upgrades |
The documentation uses "on-disk agent" and "over-the-air core" for these components. HCP and HBS are the names the agent itself uses, in its file names and log lines, and occasionally in the release notes.
The On-Disk Agent (HCP)¶
The on-disk agent is the executable that the installer places on the host and registers with the operating system's service manager. Once installed, it is named rphcp:
| Platform | Binary | Service |
|---|---|---|
| Windows | C:\Program Files\limacharlie\rphcp.exe (C:\Windows\System32\rphcp.exe on sensors older than 5.2.1) |
rphcpsvc |
| macOS | /usr/local/bin/rphcp |
launchd daemon com.refractionpoint.rphcp |
| Linux | /bin/rphcp |
limacharlie |
On macOS the installer also adds RPHCP.app and the system extension com.refractionpoint.rphcp.extension.
The on-disk agent is responsible for:
- Identity: it enrolls with the installation key and stores the sensor's identity on disk.
- Cryptography and transport: it opens and maintains the connection to the LimaCharlie cloud.
- Loading the over-the-air core: it receives the core from the cloud and runs it.
The same binary is also the command-line tool used to install, upgrade, uninstall and health-check the service. See the Agent CLI & Environment Reference.
Because this component only changes when someone replaces the binary, a host keeps the on-disk agent version it was installed with until a service upgrade is performed.
The Over-the-Air Core (HBS)¶
The over-the-air core is the component that makes the agent a sensor. It collects telemetry, runs sensor commands, and delivers the detection and response capabilities on the endpoint.
It is not installed as its own service and has no installer. The on-disk agent receives it from the LimaCharlie cloud and loads it, so you will not find a separate HBS process or service on the host. The cloud decides which version each sensor runs, based on the version selected for the organization and on the lc:latest, lc:stable and lc:experimental sensor tags.
This is the component that changes when a new endpoint agent version is rolled out from the web interface or the API. No installer is downloaded again and nothing is reinstalled on the host.
Names You See on a Host¶
| Name | Component | What it is |
|---|---|---|
rphcp, rphcp.exe, rphcpsvc, com.refractionpoint.rphcp |
On-disk agent (HCP) | The installed binary and its service. |
hcp.log |
On-disk agent (HCP) | The connection log. It records how far the connection to the cloud got. See Sensor Not Connecting. |
hcp.dat, hcp_conf.dat, hcp_hbs_config.dat |
On-disk agent (HCP) | Identity and configuration files written at install time. |
hcp_hbs_status.json |
Over-the-air core (HBS) | Status file with the sensor ID, organization ID, version and uptime. |
File locations for each platform and sensor version are listed under Local Files.
Upgrade Paths¶
Each component has its own upgrade path. Upgrading one does not upgrade the other.
Upgrading the Over-the-Air Core (HBS)¶
This is the routine upgrade, and it is driven from the cloud:
- Set the sensor version for the whole organization, to a version label or to a specific version.
- Tag individual sensors with
lc:latest,lc:stableorlc:experimentalto stage a rollout or to follow a release channel.
See Versioning & Upgrades for the procedure, the version labels, and the recommended staged rollout.
Upgrading the On-Disk Agent (HCP)¶
This upgrade replaces the installed service binary. It is needed less often, typically for a fix or a feature that lives in the service itself. There are three ways to do it:
- Run the installer script on the host with its upgrade option.
- Run a downloaded sensor binary on the host with
-u. - Task the sensor from the cloud with the
upgrade_corecommand (beta).
See Service Upgrades for all three, including how to pin a version and how the automatic rollback works.
Commands with core in their name act on the on-disk agent
The sensor commands upgrade_core, restart_core and repair_core_config upgrade, restart and repair the installed service (HCP). They do not change the version of the over-the-air core (HBS), which is managed only through the organization's sensor version and the lc: tags.
Which Component Do I Need to Upgrade?¶
| Situation | Upgrade |
|---|---|
| A new endpoint agent release is available and you want its fixes and features | Over-the-air core: Versioning & Upgrades |
| You want to test a release on a few hosts before a wider rollout | Over-the-air core, with the lc:latest tag: Versioning & Upgrades |
A feature or command states a minimum version that your installed service does not meet, such as -u, upgrade_core or restart_core |
On-disk agent: Service Upgrades |
| A release note or support asks for the installed service to be replaced | On-disk agent: Service Upgrades |
Related Pages¶
- Versioning & Upgrades: upgrade the over-the-air core
- Service Upgrades: upgrade the on-disk agent
- Agent CLI & Environment Reference: options, environment variables and local files of the on-disk agent
- Uninstallation
- Troubleshooting