Agent installation

Linux Agent Features

Linux agent supports:

  • agent management through configuration in the iBatyr Monitor web console;

  • taking screenshots:

  • changing the format and degree of compression of screenshots;

  • application attributes - window names and icons;

  • tracking time spent in applications;

  • keylogger (X11 and low-level);

  • accounting for connecting USB devices;

  • ability to block USB devices (create white and black lists);

  • local or remote login and logout events (including ssh connections);

  • recording the history of entering shell commands (bash, zsh);

  • Print interception (CUPS);

  • remote control;

  • Desktop video recording;

  • recording the history and time of site visits in Firefox, Chrome and Vivaldi;

  • tracking clipboard contents;

  • agent management functions on the command line;

  • tracking system logs and managing monitoring rules through the agent config;

  • module for capturing images from ;

  • file operations: definition of actions with files, support for monitoring rules (black and white control lists);

  • creating shadow copies of files when intercepting file operations;

  • ability to block sites;

  • interception of shell sessions in the form of text or gif file;

  • support for SNAP browser packages;

  • interception channels:

    • email clients Thunderbird, Akonadi, Evolution, Geary, P7-Office.Organizer;

    • Telegram (desktop application);

    • VK mail (chat rooms and files);

    • VK Teams (chat rooms and files);

    • bitrix (chat rooms and files in web and desktop applications);

    • Nextcloud and Owncloud (downloadable and uploadable files);

    • One Drive (downloadable and uploadable files);

    • Yandex Disk (downloadable and uploadable files);

  • DLP module;

  • STARTTLS support;

  • network interception:

    • outgoing tcp and ssl/tls sessions;

    • sending SMTP mail;

    • IMAP mail;

    • POP3 mail;

    • POST requests.

  • tracking ports, including non-standard ones;

  • setting up port monitoring rules;

  • distribution package for the Portage package manager in Gentoo.

Installation

Warning

For full agent operation, disable SELinux.

  1. Download the script to install the agent: in the Control Panel section → Computers → Download Agent select the version for Linux. When downloading, the IP address of the machine on which it is downloaded (usually the server address) will automatically be added to the name of the script.

  2. Copy the script to the target machine:

wget http://10.10.0.1/agent-install-[10.10.0.1].sh

Here 10.10.0.1 is an example of a server IP address.

  1. Run the installer:

sudo bash /path/to/agent-install-[10.10.0.1].sh 10.10.0.1

Here /path/to/agent-install-[10.10.0.1].sh is the full path to the script and its name; 10.10.0.1 — IP address of the iBatyr Monitor server where the installed agent will transfer data.

Note

By default, port 443 is used to communicate between the agent and the server. It may not be specified in the agent installation command. If the agent’s communication port with the server is has been changed, specify it in the agent installation command:

sudo bash /path/to/agent-install-[10.10.0.1].sh 10.10.0.1 new_port

Here new_port is the new port number.

After installing the agent, reboot the machine.

Additional server address

Starting from agent version 0.8.0-master, you can specify one or more additional servers for event transmission, which will be used if the main server is unavailable.

To specify an additional server:

  1. Open the scela file

sudo nano /etc/scelarc
  1. Add the address and port of the backup server after the server line:

server2 = 192.168.0.3
port2 = 4334

If you do not specify a port number, the default will be 443.

Update

Starting from version 0.7.46, the Linux agent supports the function of updating to a new version upon command from the server.

To update the agent:

  1. In the Control Panel → Computers section, select the desired computer.

  2. From the Perform Action menu item, select Update to latest version.

The agent will be updated to the latest version located on the server.

Removal

There are several ways to remove an agent:

  • On the machine on which it is installed, run the command:

    sudo /usr/share/ibatyr/agent uninstall
    
  • on the machine on which it is installed, contact the installer:

    sudo bash agent-install.sh uninstall
    
  • in the web interface of the iBatyr Monitor server in the Control Panel section → Computers.