EDR
Early accessRemove the agent
Remove the agent from the Console with two admins' approval, or on the machine with its uninstall token. Either way, an attacker with admin rights on the machine can't quietly switch it off.
Remove it from the Console
On the machine's Settings tab, under Remove Kandaro from this machine, say why and choose Propose removal. Nothing happens yet: two different admins approve it under SOC → Approvals, each confirming it's them, and the one who proposed it may be one of them. No case and no uninstall token are needed.
Once both have approved, the machine checks that the removal really comes from Kandaro, stops the agent, deletes its keys and the events it hadn't sent yet, and uninstalls it. It then leaves your list of machines, marked as retired. A machine that is off at that moment removes itself when it comes back, within a day. Settings and logs stay on Linux and Windows machines, as with an uninstall by hand (below).
Remove it on the machine
On the machine itself, removing the agent needs that machine's uninstall token. Then follow the steps for its system.
1. Get the uninstall token
Each machine has its own. An admin finds it on the machine's Settings tab in the Console under Uninstall token, after confirming it's them; showing it is recorded in your audit log. Use this token to stop or remove Kandaro on this machine (the installer or “kandaro-updater check-uninstall” asks for it). It works only on this machine. Keep it to yourself.
2. Remove the agent from Linux
Save the token in a file only root can read, then run the installer with --uninstall. Dashes and spaces in the token don't matter. The one-paste install deletes the installer afterwards, so download it again first, as Install step by step describes, with your organisation's download key.
# 1. Paste the machine's uninstall token when asked, then press Enter
sudo sh -c 'umask 077 && IFS= read -r t && printf %s "$t" > /root/uninstall-token'
# 2. Remove the agent, its repository entry and key
sudo bash install.sh --uninstall --uninstall-token-file /root/uninstall-tokenThis removes the package, Kandaro's repository entry and its signing key, and releases the hold on the package. Without the right token the removal stops, the agent keeps running and nothing is changed.
No installer at hand? The package manager removes the package itself, with the same token check. On a machine installed with Kandaro's repository it leaves the repository entry behind, and that holds a download key, so delete it too or use the installer.
# Debian or Ubuntu
sudo KANDARO_UNINSTALL_TOKEN_FILE=/root/uninstall-token apt remove kandaro-agent
# Red Hat, Alma, Rocky or Amazon Linux
sudo KANDARO_UNINSTALL_TOKEN_FILE=/root/uninstall-token dnf remove kandaro-agentRemove the agent from Windows
Save the token in a file only administrators can read. In a PowerShell prompt opened with Run as administrator, let the agent check the token:
& 'C:\Program Files\Kandaro\Agent\bin\kandaro-updater.exe' check-uninstall --data-dir C:\ProgramData\Kandaro\Agent --token-file C:\ProgramData\kandaro-uninstall-token.txtThen, within 10 minutes, remove Kandaro Agent under Settings → Apps → Installed apps, or with your device management. After 10 minutes the permission runs out and the agent refuses to stop again. Run as SYSTEM, from Intune or Group Policy, the same two steps work without a prompt; ask us for a ready removal script. Settings and data stay in C:\ProgramData\Kandaro\Agent; delete that folder as an administrator to remove them too.
Remove the agent from macOS
Save the token in a file only root can read, then run the removal script:
sudo "/Library/Application Support/Kandaro/Agent/lib/uninstall.sh" --token-file /root/uninstall-tokenAdd --purge to delete the agent's settings and data too. Remove the settings profile from your device management afterwards, since it holds the install token.
What stays on a Linux machine
Settings, data and logs stay in /etc/kandaro/agent, /var/lib/kandaro and /var/log/kandaro/agent, so a reinstall picks up where it left off. To delete them too, add --purge to the installer's --uninstall. Events that were still waiting to be sent are deleted with them.
What the machine already sent stays in Kandaro for its usual period (What the agent collects).
Planned work
Open a maintenance window on the machine's Settings tab first. For the time you choose, from 15 minutes to 4 hours, stopping or removing Kandaro on that machine doesn't raise a tamper alert. You still need the uninstall token, and Kandaro still records what happened.
A machine that is gone
- Retire a machine that was reinstalled, scrapped or sold, from its page in the Console. It stops counting as one of your machines. If it comes back it doesn't uninstall itself; it just stops.
- Revoke a machine whose key may be in the wrong hands, such as a stolen laptop or a copied disk image. Kandaro stops trusting it, and the machine has to be installed again to come back.
Moving a machine to another organisation
Stop the agent, then run sudo kandaro-agent reset-identity. It wipes the machine's identity, its unsent records and its state, so nothing collected for the first organisation is sent under the second. It asks for the uninstall token (--uninstall-token-file) and refuses while the agent runs or while the machine is cut off the network by an approved action. Then enrol the machine again with a new install token.