KSC13 For Linux PoC Guide
KSC13 For Linux PoC Guide
Kaspersky
30.08.2021
Changelog
This version is made for Kaspersky Security Center 13 for Linux and Kaspersky Endpoint Security for Linux 11.2.
Contents
Introduction ...................................................................................................................................................................3
Who should use this guide? ......................................................................................................................................3
About Kaspersky Security Center for Linux ...............................................................................................................3
Prepare the environment ..............................................................................................................................................4
Review the hardware and software requirements .....................................................................................................4
Download required files .............................................................................................................................................4
Setup and deploy ..........................................................................................................................................................5
Install MariaDB server ...............................................................................................................................................5
Install Kaspersky Security Center for Linux ...............................................................................................................8
Install and configure Kaspersky Security Center Web Console ..............................................................................10
Deploy Kaspersky protection for managed devices ................................................................................................15
Capability scenarios ....................................................................................................................................................28
File Threat Protection ..............................................................................................................................................28
Web Threat Protection .............................................................................................................................................30
Network Threat Protection .......................................................................................................................................31
Behavior Detection ..................................................................................................................................................33
Device Control .........................................................................................................................................................35
Useful information .......................................................................................................................................................37
Appendix A: POC success criteria ..............................................................................................................................38
Introduction
Who should use this guide?
This guide is built to help you quickly deploy and configure Kaspersky Security Center for Linux for evaluation1. It
guides you through the process of Kaspersky Security Center for Linux installation and configuration and
Kaspersky Endpoint Security for Linux deployment. It also demonstrates protection capabilities for Linux devices.
This document is intended for use by Kaspersky presales engineers and 3rd parties willing to evaluate Kaspersky
Security Center for Linux.
Kaspersky Security Center Linux enables the administrator to install Kaspersky security applications on devices on
a corporate network, remotely run scan and update tasks, and manage the security policies of managed
applications. The administrator can use a detailed dashboard that provides a snapshot of corporate device
statuses, detailed reports, and granular settings in protection policies.
• Create a hierarchy of Administration Servers to manage the organization's network, as well as networks at
remote offices or client organizations.
• The client organization is an organization whose anti-virus protection is ensured by the service provider.
• Create a hierarchy of administration groups to manage a selection of client devices as a whole.
• Manage an anti-virus protection system built based on Kaspersky applications.
• Perform remote installation of applications by Kaspersky and other software vendors.
• Perform centralized deployment of license keys for Kaspersky applications to client devices, monitor their
use, and renew licenses.t
• Receive statistics and reports about the operation of applications and devices.
• Receive notifications about critical events during the operation of Kaspersky applications.
• Perform inventory of hardware connected to the organization's network.
• Centrally manage files moved to Quarantine or Backup by security applications, as well as manage files for
which processing by security applications has been postponed.
Feature comparison between the product for Windows and Linux OS is available in Online Help.
1 If you need to deploy Kaspersky Security Center for Linux in production environment, then please refer to Online Help.
Prepare the environment
Review the hardware and software requirements
Administration Server, Database Server, Web Console Server and Network Agent:
https://support.kaspersky.com/KSCLinux/13/en-US/96255.htm .
Note that MariaDB Server versions other than 10.3 are unsupported
Kaspersky Endpoint Security for Linux: Hardware and software requirements (kaspersky.com).
Information about ports used by Kaspersky Security Center 13 for Linux is specified in Online Help.
How to download and install MariaDB Server is described during the deployment step.
Setup and deploy
Main installation scenario is described in Online Help. However, in purpose of this guide we will cover the following
main steps:
2. Installation instructions specific for your Linux Distro will appear. For Ubuntu 18.04 and a repository in UK run
the following commands in terminal:
sudo mysql_secure_installation
7. The next step is to configure MariaDB server. Create a backup copy of the my.cnf file:
Open /etc/mysql/my.cnf in any text editor. In this guide vim is used, but it requires some knowledge of
management commands. If you want to use vim, then it is necessary to install it first by executing the
following command:
sudo apt-get install vim
Configure the following parameters 2(modify existing or add new if they’re missing):
sort_buffer_size=10M
join_buffer_size=100M
join_buffer_space_limit=300M
join_cache_level=8
tmp_table_size=512M
max_heap_table_size=512M
key_buffer_size=200M
innodb_buffer_pool_size=<value>
innodb_thread_concurrency=20
innodb_flush_log_at_trx_commit=0
innodb_lock_wait_timeout=300
max_allowed_packet=32M
max_connections=151
The value of the "innodb_buffer_pool_size” must be no less than 80 percent of the expected KAV
database size. In this guide 6500M is used. It is completely enough for quick testing purposes.
Note that depending on the MariaDB server version the my.cnf file may contain different
sections. You should add the lines to the [mysqld] section.
Save and close the modified file and restart mariadb.service by the following command:
SELECT @@optimizer_switch
\g
\q
After completing these steps, you successfully installed and configured MariaDB Server.
2. Install Kaspersky Security Center for Linux by executing the following command in the terminal:
systemctl status
kladminserver_srv.service
After completing these steps, you successfully installed Kaspersky Security Center.
3. Run the following command to start Kaspersky Security Center 13 Web Console installation:
Enter credentials.
After completing these steps, you successfully install Kaspersky Security Center 13 Web Console and performed
initial configuration of the Administration Server.
1. Add the Kaspersky Endpoint Security for Linux management plug-in to Kaspersky Security Center 13 Web
Console.
2. Create installation packages for both Network Agent and Kaspersky Endpoint Security for Linux.
3. Create and run remote installation tasks for Network Agent and Kaspersky Endpoint Security for Linux.
4. Create and configure tasks for Kaspersky Endpoint Security for Linux.
5. Create an administration policy for Kaspersky Endpoint Security for Linux.
1. To add the Kaspersky Endpoint Security for
Linux management plug-in to Kaspersky
Security Center 13 Web Console click
CONSOLE SETTINGS – WEB PLUG-INS.
2. In the appeared window click + Add from file.
Click + Add.
16. Prior to Kaspersky applications deployment prepare a Linux device to remote deployment. Do the following:
• Make sure that sudo is installed on the target Linux device.
• Test the device configuration:
o Check whether you can connect to the device through an SSH client (such as PuTTY).
If you cannot connect to the device, open the /etc/ssh/sshd_config file and make sure
that the following settings have the respective values listed below:
PasswordAuthentication no
ChallengeResponseAuthentication yes
Save the file and restart the SSH service by using the sudo service ssh restart
command.
o Disable the sudo password for the user account under which the device is to be connected.
Use the visudo command in sudo to open the sudoers configuration file. In the file you
have opened, specify the following: username ALL = (ALL) NOPASSWD: ALL. This file
is processed in the “top-to-bottom” order, therefore add this new line to the end of the file. In
this case, username is the user account, which is to be used for the device connection using
SSH.
o Save the sudoers file and then close it.
o Connect to the device again through SSH and make sure that the Sudo service does not
prompt you to enter a password; you can do this using the sudo whoami command.
After completing these steps, you successfully deployed Kaspersky protection in your network.
Capability scenarios
File Threat Protection
In this scenario we will demonstrate File Threat Protection of Kaspersky Endpoint Security 11 for Linux.
Evaluation steps:
Expected results:
The EICAR test virus file will be deleted by a File Threat Protection On-Access Scan as soon as it’s downloaded.
Instructions:
Go to https://www.eicar.org/?page_id=3950 and
try to download the eicar.com file.
Check that the file has been downloaded and
that it’s been deleted after downloading.
After completing these steps, you have successfully demonstrated File Threat Protection of Kaspersky Endpoint
Security 11 for Linux.
Evaluation steps:
Expected results:
Access to the malicious web-page will be blocked by the Web Threat Protection component.
Instructions:
https://www.kaspersky.com/test/wmuf
https://www.kaspersky.com/test/aphish_h
After completing these steps, you have successfully demonstrated that Kaspersky Endpoint Security 11 for Linux
can protect your computer from the web threats.
Evaluation steps:
Expected results:
The Network Threat Protection component will detect the network attack and block the attacking computer.
Instructions:
1. Open the Kaspersky Security Center Web
Console and switch to the DEVICES –
POLICIES & PROFILES section.
• For Windows: download and install the Nmap utility. Ncat is included in the distribution package of Nmap
• For Linux: download and install Ncat from the following link https://nmap.org/download.html or you can
install the Netcat utility via a terminal, e.g. for Ubuntu execute the following command:
4. On the protected computer open terminal and run the following command with elevated rights:
nc -l 80 > umids_Test.Eicar.Ban.pcap
5. On the attacker host in the Command Prompt open a folder with Ncat (it is in the nmap installation folder) and
run the following command:
Ncat 10.0.0.3 80 < umids_Test.Eicar.Ban.pcap
where umids_Test.Eicar.Ban.pcap is the test file to be transferred to the protected host. If the file is not
in the same folder as Ncat, then you should specify the full path to the file.
For Kaspersky employees: request the umids_Test.Eicar.Ban.pcap file from [email protected].
After completing these steps, you have successfully demonstrated that Kaspersky Endpoint Security 11 for Linux
can detect and block network attacks.
NB: if you performed this attack from the Kaspersky Security Center host, it may be blocked on the protected
host, so there it may be delay in the event appearing on Kaspersky Security Center.
Behavior Detection
In this scenario we will demonstrate that Kaspersky Endpoint Security 11 for Linux can detect and block malicious
activity by using behavior detection.
Evaluation steps:
For Kaspersky employees: request a test file for this scenario from [email protected] .
Expected results:
The Behavior Detection task will detect and delete the test file.
Instructions:
1. Open the Kaspersky Security Center Web
Console and switch to the DEVICES –
POLICIES & PROFILES section.
Device Control
In this scenario we will demonstrate how to restrict certain types of devices on managed computers using
Kaspersky Endpoint Security 11 for Linux.
Evaluation steps:
Expected results:
Use of CD/DVD drive will be blocked by Kaspersky Endpoint Security 11 for Linux.
For most cases it is common to show the restriction for USB devices, however in a cloud environment it is
easier to demonstrate the Device Control functionality for CD/DVD drives. The process of demonstration is
the same for USB devices and other types of devices.
Instructions:
After completing these steps, you have successfully demonstrated that Kaspersky Endpoint Security 11 for Linux
can block access to forbidden types of devices.
Useful information
1. Online Help is the main source of information.
2. Kaspersky Security Center page on the Kaspersky website. On the Kaspersky Security Center page on the
Kaspersky website, you can view general information about the application, its functions, and features.
3. The Knowledge Base is a section on the Kaspersky Technical Support website. On the Kaspersky Security
Center 13 Linux page in the Knowledge Base, you can read articles that provide useful information,
recommendations, and answers to frequently asked questions on how to buy, install, and use the
application. Articles in the Knowledge Base may provide answers to questions that relate both to
Kaspersky Security Center as well as to other Kaspersky applications. Articles in the Knowledge Base may
also contain Technical Support news.
4. If your question does not require an immediate answer, you can discuss it with Kaspersky experts and
other users in our community. In the community, you can view discussion topics, post your comments, and
create new discussion topics.
5. If you cannot find a solution to your problem, contact Technical Support.
Appendix A: POC success criteria
# Task Success criteria Notes
1. Prepare environment
1.1. Review the requirements POC environments meets all the imposed
requirements
1.2. Download required files All required installation files are downloaded.
2.3. Install Kaspersky Security You can successfully log into Kaspersky
Center Web Console Security Center Web Console. Basic
configuration is performed without errors in
accordance with the guide instructions.
2.4. Deploy Kaspersky protection Network Agents for Linux and Kaspersky
Endpoint Security for Linux are installed on
the target devices
3. Capability scenarios