Skip to content
Kandaro
Book a demo

EDR

Early access

What the agent collects

What a Linux machine sends to Kandaro out of the box and where each kind of record comes from.

Two starting points

The agent picks what it collects from the machine's role: a desktop or laptop if it has a graphical sign-in, otherwise a server. A server sends more, because more of what runs on it matters. The groups a machine belongs to can change this. An admin opens a group under SOC → Groups and changes what it collects on its Settings tab.

Logs

WhatRead fromOn
Sign-ins: logins, SSH sessions and the use of sudo and su, with the user name and the address they came from.The system journalBoth
Services starting and stopping, and kernel messages such as a USB device being plugged in.The system journalBoth
Warnings and errors that any program writes to the journal.The system journalDesktop or laptop
Everything at information level and above that any program writes to the journal.The system journalServer
Programs that start and changes to security settings (listed below).The Linux audit systemBoth
Web server request logs: the visitor’s address, the page asked for and the browser type./var/log/nginx/*.logServer
Web server request logs, as above./var/log/apache2/*.logServer
Web server request logs, as above./var/log/httpd/*logServer

Programs decide what they write to the journal and to their own logs. Whatever they put there, a user name or an address for instance, is collected as written.

Programs and changes to security settings

Kandaro adds its own rules to the Linux audit system, next to any you already have, and reads the result. On both kinds of machine they record:

  • Every program that starts, for every user: the program, its arguments, the user and the program that started it.
  • Changes to accounts, groups, sudo rules and login policy.
  • Changes to scheduled tasks, services and other files that run by themselves.
  • Kernel modules being loaded and removed.
  • Changes to the audit setup itself.
  • A user becoming root, one program reading another’s memory, and file systems being mounted.

So a command someone types in a terminal is recorded as a program start, with its arguments. Network connections are not recorded out of the box: that takes the more detailed rules or Kandaro's own kernel sensor, and both are off unless a group turns them on.

File changes

The agent watches a list of files and folders that attackers change to come back or to gain rights. When one changes, it sends the path, size, owner, permissions and a fingerprint of the file. It does not send what is in the file. A full comparison runs once a day on a desktop and every 12 hours on a server.

  • On every machine: /etc/cron.d, /etc/crontab, /etc/systemd/system, /etc/systemd/user, /etc/xdg/autostart, /etc/profile.d, /etc/sudoers.d, /etc/ssh, /etc/ld.so.preload, /root/.ssh/authorized_keys.
  • On a server, also: /etc, /usr/bin, /usr/sbin, /bin, /sbin, /boot, /usr/local/bin, /usr/lib/systemd/system.

Inventory and config checks

Every hour, and whenever packages change, the agent sends a list of what the machine is: the system and hardware, installed packages, listening ports, network interfaces, local account names and services. It also checks the machine's security settings against hardening guidelines and sends which checks pass and fail. Keep machines healthy shows where both appear.

Always sent

Whatever the settings, the agent sends what Kandaro needs to run it: the machine's name, system version and addresses, the agent's own version and health, and counts of what it sent and what it had to drop.

Only when an admin asks

An admin can ask a machine a question during an investigation, such as which programs are running or which connections are open, and can approve a snapshot of those answers for a case. See live lookups. A snapshot holds no files.

Masked on the machine

Passwords, private keys and access tokens that the agent recognises are masked on the machine before anything is stored or sent, in program arguments too. It works by recognising known forms, so a secret in an unusual form can get through.

What is stored, and for how long

Every event goes through the detection rules. By default only the events that matter for security are stored afterwards; a group of machines can be set to store everything, or alerts only. Stored events are kept for up to 90 days and then deleted automatically. The events a case points to are kept with the case. The inventory and the results of the config checks are kept while you use Kandaro.

See it on the machine

sudo kandaro-agent sent lists what this machine sent in the last 14 days: which kind of record, from which source, how many and how large. It shows counts and sizes, never contents. sudo kandaro-agent config show shows the settings in use, with secrets removed.