Skip to content
Kandaro
Book a demo

EDR

Early access

Install the agent

Open Add machines in the Console, pick the machine's system and follow its steps. On Linux that is one block to paste; on Windows and macOS an installer your device management can send out.

Before you start

  • EDR is switched on for your organisation. EDR is in early access. Kandaro switches it on for your organisation, on top of SOC, and sets up your first machines with you. See which part needs which.
  • You are an admin. Only admins make install codes and tokens and approve machines.
  • A supported system (see Supported systems) where you are an administrator.
  • The machine can reach Kandaro. It needs two addresses on port 443; see Network requirements.

How you get the agent

Open SOC → Machines and choose Add machines. Pick the machine's system, and the Console makes an install code: an install token for one machine, which works once, for 24 hours. Treat it like a password until you have used it. Your codes and tokens are listed under SOC → Install tokens, where you can also revoke one.

SystemWhat you installWhere it comes from
LinuxOne block you paste into a terminal. It downloads, checks and installs the agent.The Console, with the install code inside the block (below).
WindowsAn MSI, for one machine or for Intune and Group Policy.Ask us through Support: we send you the installer with an install code, and set up your first machines with you. See Install on Windows.
macOSA package and a settings profile for your device management.Ask us through Support: we send you the installer with an install code, and set up your first machines with you. See Install on macOS.

The Add machines page also has a Downloads list with every file of the newest version your organisation gets, and how to check each one. So does SOC → Updates. A file you open from the Console downloads through your signed-in session, so it needs no key. Installing on many machines at once? Deploy to many machines has a token for all of them and templates for your deployment tool.

Your download key

Kandaro's download address hands out nothing without a key, so only your machines get the agent. You rarely type one:

  • The install code opens the download for its own install. The Linux block and the deployment templates use it, and nothing else is needed.
  • Each machine has a key of its own once it is enrolled, and renews it by itself over its connection to Kandaro. Updates use that key.
  • Your organisation's download key is for downloading by hand, from a terminal, and for a machine that installs from Kandaro's package repository. Admins make one under Settings → Image access. When a download asks for a user name and password, the user name is kandaro and the password is the key.

Install on Linux

1. Copy the install block

On the Add machines page, pick Linux. The Console shows one block to paste. It holds the install code and the fingerprint of the key Kandaro signs the installer with. Tick Let Kandaro act on this machine first if Kandaro may isolate the machine, block on it or stop a program on it, each time only after an admin approves the action.

2. Paste it on the machine

Open a terminal on the machine as root, or as a user who may use sudo, paste the whole block and press Enter. With sudo you type your password once, before anything runs. The block then does this, and nothing else:

  1. Downloads the installer, its signature and Kandaro's signing key. The install code opens the download for this one install.
  2. Checks that the key has the fingerprint in the block and that the key signed the installer. Nothing runs before both checks pass.
  3. Runs the installer. It checks that the system and its chip are ones Kandaro tests, downloads the agent version the Console names for that chip, checks Kandaro's signature on it, installs it and enrols the machine.
  4. Deletes the install code and everything it downloaded. No package repository, key or password stays on the machine: the agent updates itself, in steps (Updates and versions).

The install code never appears in the list of running programs, and the block prints it nowhere. The block starts with a space, so most shells keep it out of their history; the code works once anyway. If a tool the block needs is missing, it stops before it changes anything and names the package to add.

The installer ends with the machine's name, the installed version, the agent's status line and, when the agent has logged it, the fingerprint of the machine's key. If something is in the way, it stops, says what and says that nothing was changed. Pasting a new block on a machine that already has the agent changes nothing.

3. Check that it arrived

The Console watches for the machine. Within a minute it joins by itself and shows under SOC → Machines marked new, so you can look it over. Nothing is collected before a machine has joined.

A token you make yourself under SOC → Install tokens can instead require an admin's approval. Then open the machine and compare the fingerprint under Identity with the one the installer printed, or the one the agent writes to the system journal while it waits (journalctl -u kandaro-agent). If they match, choose Approve and confirm with your passkey or authenticator app.

Not showing up? Run sudo kandaro-agent doctor on the machine; Troubleshooting explains each check.

Install step by step

To read the installer before it runs, or to choose its options yourself, use Advanced: check every file yourself on the Add machines page, or do the same here. Download three files: the installer, its signature and Kandaro's signing key. The download asks for your organisation's download key. Then compare the key's fingerprint with the one the Console shows next to the downloads. If they differ, stop and tell us.

Terminal
# 1. Download the installer, its signature and Kandaro's signing key.
#    curl asks for a password: paste your organisation's download key
curl -fsSL -u kandaro -O https://dl.kandaro.com/install.sh -O https://dl.kandaro.com/install.sh.asc -O https://dl.kandaro.com/kandaro.asc

# 2. Show the key's fingerprint. It must be the one the Console shows
gpg --show-keys kandaro.asc

# 3. Check that the installer was signed with that key
gpg --import kandaro.asc && gpg --verify install.sh.asc install.sh

The last command must report a good signature. Check a download explains the checks and what to do when one fails. Then run the installer from the file:

Terminal, as an admin
sudo bash install.sh

It asks for your download key and the install code (nothing shows while you paste) and adds Kandaro's signed package repository, with Kandaro's key trusted for that repository only. The repository keeps a download key in a file only root can read; once the machine is enrolled, the agent puts the machine's own key there. The installer holds the package, so the operating system's own updates leave it alone and Kandaro updates it in steps.

With --no-repo it adds no repository: it installs the version your update channel names, after checking Kandaro's signature on that choice and on the package, and the install code opens the download by itself. That is what the one-paste block does. The installer runs only from a file: it refuses to run when it is piped straight into a shell, because then nobody could have checked it first.

To install the package file yourself instead, use Install the package by hand instead on the Add machines page. Pick the package type and the chip, download the file from there and check it as Check a download describes. The page then shows the commands to install it. Kandaro still keeps the agent up to date by itself.

Options

Add an option after install.sh, for example sudo bash install.sh --no-repo --dry-run.

OptionWhat it does
--channel stable|earlyThe release channel to follow. The default is stable.
--no-repoAdd no package repository: install the version your channel names, after checking Kandaro’s signature on that choice and on the package. The agent then updates itself.
--version X.Y.ZInstall exactly this version from its download folder, after checking its signature. No package repository is added.
--download-key-file FILERead your organisation’s download key from a file only root can read, instead of asking for it. Without a repository the install token opens the download by itself.
--token-file FILERead the install token from a file only root can read, instead of asking for it. The file is deleted once the agent has its own copy.
--no-enrollInstall without a token. The machine is not enrolled and the agent does not run.
--endpoint HOST[:PORT]The Kandaro address the agent connects to, if yours differs from the default.
--proxy URL|noneReach Kandaro through this proxy, now and when the agent runs. Without it, the installer uses the https_proxy variable when one is set.
--response on|offWhether Kandaro may act on this machine once an admin approves an action. The default is off.
--os-updatesLet the operating system’s own updates upgrade the agent. By default the package is held and Kandaro updates it in stages.
--allow-untestedInstall on a version of a supported system family that Kandaro does not test.
--dry-runPrint every step and change nothing. It still downloads the signing key, to check it.
--uninstallRemove the agent. See Remove the agent.

The install token is never an option: on a command line it would show in the list of running programs. The installer asks for it, or reads it from --token-file. A token file must be owned by root and writable only by root, in folders only root can write (so not /tmp or your home folder). The package refuses any other token file.

--response on lets Kandaro act on this machine, for example cut it off the network, once an admin approves an action. That choice stays on the machine: Kandaro can never turn it on from outside. Change it later with sudo kandaro-agent response on or off. Kandaro also needs your organisation's permission before it acts (when Kandaro carries out actions).

The agent picks what it collects from the machine's role: a desktop if it has a graphical sign-in, otherwise a server. What the agent collects lists both.

Groups and settings

Groups decide what your machines collect and how the agent behaves on them. Every machine is in the default group, and a machine can be in several groups. When their settings disagree, the group with the higher priority number wins. Admins create groups under SOC → Groups.

A group's page shows its machines, its settings history and how the latest settings change is rolling out: to a few test machines first, then more, then everyone. A step pauses by itself when too many machines refuse the change, and an admin can pause, resume, cancel or roll back a change there. A machine's Settings tab shows the settings in use on it and which group each one came from.

To change what a group collects, open the group and its Settings tab: the logs it sends (network connections are off unless you turn them on), the files it watches, the audit rules and how much processor, memory and disk the agent may use. Each form shows Kandaro's defaults for the machine's role. Review and publish says the change in plain words, how many machines it reaches and how many need a newer agent first, then rolls it out in the same steps. Skipping the test steps asks for your passkey or authenticator code. See What the agent collects.

Updates

The agent updates itself, in stages. Updates and versions covers the choices, your own order, holds and what happens when an update fails.

Uninstall

Removing the agent needs that machine's uninstall token. Remove the agent has the steps.

Already run Wazuh agents?

You can keep them. Under SOC → Wazuh agents, Wazuh 4.x agents send their logs to Kandaro instead of a Wazuh manager. Their logs go through your detection rules and can be searched in SOC → Hunt, next to your other machines. This is a supported way in for as long as you want to keep Wazuh, not only a step towards the Kandaro agent.

To set it up, an admin turns the route on and makes an enrolment password, confirming each with their second factor. The page shows the address and ports to use and the lines to change in the agent's configuration. Each agent joins with the password and waits for an admin's approval, unless the password approves agents at once. A password can be limited to address ranges, expires after at most 365 days and can be revoked.

What this route can't do. Machines on this route send logs only: no Kandaro telemetry, no response actions, no prevention. Events in flight while the service restarts can be lost. That also means no inventory, config checks or vulnerability findings for those machines. Each Wazuh agent shares one key with Kandaro, so someone who steals it can send made-up logs as that agent: cut off any agent you no longer trust.

Run a Wazuh manager you want to keep? Connect it as a source instead, as Connect your sources describes.