+SYS.2.3 Linux and Unix Clients
---+SYS.2.3.G1. Software from Third-Party Sources
---+SYS.2.3.G2. Exploitability of the Script Environment
---+SYS.2.3.G3. Dynamic Loading of Jointly Used Libraries
---+SYS.2.3.G4. Incorrect Configuration
---+SYS.2.3.A1 Authentication of Administrators and Users [User] (B)
---+SYS.2.3.A2 Selection of an Appropriate Distribution (B)
---+SYS.2.3.A4 Kernel Updates on Unix-Like Systems (B)
---+SYS.2.3.A5 Secure Installation of Software Packages (B)
---+SYS.2.3.A6 No Automatic Integration of Removable Drives [User] (S)
---+SYS.2.3.A7 Restrictive Granting of Access Rights for Files and Directories (S)
---+SYS.2.3.A8 Use of Techniques to Restrict the Rights of Applications (S)
---+SYS.2.3.A9 Secure Use of Passwords in the Command Line [User] (S)
---+SYS.2.3.A11 Preventing the Local Hard Drive From Becoming Overloaded (S)
---+SYS.2.3.A12 Secure Use of Appliances (S)
---+SYS.2.3.A14 Protection Against the Use of Unauthorised Peripheral Devices (H)
---+SYS.2.3.A15 Additional Protection Prior to Executing Undesired Files (H)
---+SYS.2.3.A17 Additional Prevention of Further Intrusion When Vulnerabilities Are Exploited (H)
---+SYS.2.3.A18 Additional Kernel Protection (H)
---+SYS.2.3.A19 Hard Disk or File Encryption (H)
---+SYS.2.3.A20 Disabling Critical SysRq Features (H)

SYS.2.3 Linux and Unix Clients

Introduction

In addition to Windows, Linux- and (less frequently) Unix-based operating systems are being installed on more and more clients. Examples of classic Unix systems include the BSD series (FreeBSD, OpenBSD, and NetBSD), Solaris, and AIX. Linux, on the other hand, constitutes a functional rather than a classic Unix system because the Linux kernel is not based on the original source code from which the various Unix derivatives have evolved. Since the configuration and operation of Linux and Unix clients are similar, Linux and Unix are jointly referred to in this module as "Unix clients" and "Unix-like".

Linux is free software that is developed by the open-source community. This means anyone can use, copy, distribute, or modify it. In addition, there are providers that consolidate and maintain distributions comprising the Linux kernel and various software components while offering additional services. Derivatives of the distributions Debian, Red Hat Enterprise Linux, or SUSE Linux Enterprise are often used. In addition, there are Linux distributions that are tailored to special purposes and devices. These include, for example, Qubes OS, which attempts to achieve a high level of security through virtualisation; LibreElec, for the use of home theatre PCs; or Kali Linux, a distribution specialised in security, computer forensics, and penetration testing. Clients can also boot live distributions without changing the operating systems installed on the clients. The market share of the Linux operating system on clients has increased in recent years. In special operational environments, various derivatives of "classic" Unix systems continue to be used. Typically, an IT system of this type is networked and operated as a client in a client-server network.

As the number of pre-selected software packages in standard installations of common Linux distributions or Unix derivatives increases, so does the number of potential targets for attacks. At the same time, however, Unix-like operating systems also offer extensive protection mechanisms.

Objective

The objective of this module is to protect information created, processed, stored, or sent on Linux and Unix clients. The requirements of the module mainly address Linux clients, but can be adapted generally to Unix clients.

Scoping and Modelling

Module SYS.2.3 Linux and Unix Clients must be applied to all clients on which Linux or Unix-based operating systems are used.

This module includes fundamental requirements for operating Unix-like clients. It substantiates the aspects addressed in module SYS.2.1 General Client and adds specific features of Unix systems. Although Apple's macOS is a Unix-like operating system, it is not addressed in this module. Related recommendations can be found in module SYS.2.4 macOS Clients.

This module only includes the actual operating system that is usually involved in a basic installation of a distribution. Software based on this, such as e-mail clients or office software, is not considered in this module. Corresponding requirements can be found, for example, in the modules of layer APP.1 Client Applications of the IT-Grundschutz Compendium.

This client module requires that, in addition to the administrator, only one unchanged person with an interactive user account be permanently active. Clients used by several persons consecutively or simultaneously require additional safeguards that are not addressed within the framework of this module.

Useful Resources

No further information is available for module SYS.2.3 Linux and Unix Clients.

1. Resumen

Título Estándar
SYS.2.3.A1 Authentication of Administrators and Users [User] (B)

Administrators MUST NOT log in as “root” during normal operations. For system administration tasks, “sudo” or an appropriate alternative with appropriate logging SHOULD be used. Multiple users SHOULD be prevented from logging into a client simultaneously.

SYS.2.3.A2 Selection of an Appropriate Distribution (B)

An appropriate Unix derivative or Linux distribution MUST be selected based on the security requirements and intended purpose at hand. Support MUST be available for the operating system for the planned period of use. All the required application programs SHOULD be directly available as part of the distribution chosen. They SHOULD ONLY be obtained from third-party sources in exceptional cases. Distributions in which the operating system is compiled independently SHOULD NOT be used in production environments.

SYS.2.3.A4 Kernel Updates on Unix-Like Systems (B)

Clients MUST be rebooted promptly after the kernel of their operating system has been updated. If this is not possible, live kernel patching MUST be enabled as an alternative.

SYS.2.3.A5 Secure Installation of Software Packages (B)

If software requiring installation is to be compiled from source code, the software MUST ONLY be unpacked, configured, and compiled using an unprivileged user account. The software to be installed MUST NOT then be installed in the root file system of the operating system in question in an uncontrolled manner.

If the software is compiled from source text, the selected parameters SHOULD be documented appropriately. Based on this documentation, it SHOULD be possible to compile the software in a transparent and reproducible manner at any time. All further installation steps SHOULD also be documented so that the configuration can be reproduced quickly in emergencies.

SYS.2.3.A6 No Automatic Integration of Removable Drives [User] (S)

Removable drives SHOULD NOT be integrated automatically. The integration of removable drives SHOULD be configured in such a way that all files are marked as non-executable (mount option “noexec”).

SYS.2.3.A7 Restrictive Granting of Access Rights for Files and Directories (S)

It SHOULD be ensured that services and applications are only allowed to create, change, or delete the files assigned to them. In directories in which all users have write privileges (e.g. /tmp), the sticky bit SHOULD be set.

SYS.2.3.A8 Use of Techniques to Restrict the Rights of Applications (S)

In order to restrict the access rights of applications to files, devices, and networks, AppArmor or SELinux SHOULD be used. The solutions with the best protection provided by the respective Unix derivative or Linux distribution SHOULD be selected. The necessary applications SHOULD be regulated through whitelisting instead of blacklisting. Extensions regarding the restriction of rights SHOULD be used in enforcing mode or by means of appropriate alternatives.

SYS.2.3.A9 Secure Use of Passwords in the Command Line [User] (S)

Passwords SHOULD NOT be transferred to programs as parameters.

SYS.2.3.A11 Preventing the Local Hard Drive From Becoming Overloaded (S)

Quotas for users or services SHOULD be set that leave enough capacity for the operating system. In general, different partitions SHOULD be used for the operating system and data. Alternatively, mechanisms of the file system in use SHOULD also be used that only grant write privileges to the “root” user once an appropriate level of capacity has been reached.

SYS.2.3.A12 Secure Use of Appliances (S)

It SHOULD be ensured that appliances are characterised by a level of security similar to that of clients on standard IT systems. It SHOULD be documented how the corresponding security requirements are met when using an appliance. If it is not possible to unequivocally comply with the requirements, a declaration of conformity SHOULD be requested from the respective manufacturer.

SYS.2.3.A14 Protection Against the Use of Unauthorised Peripheral Devices (H)

It SHOULD only be possible to use peripheral devices if they are included in a centrally managed whitelist. Kernel modules for peripheral devices SHOULD only be loaded and enabled if the devices can be found on the applicable whitelist.

SYS.2.3.A15 Additional Protection Prior to Executing Undesired Files (H)

Partitions and directories for which users have write privileges SHOULD be mounted in such a way that no files can be executed (mount option “noexec”).

SYS.2.3.A17 Additional Prevention of Further Intrusion When Vulnerabilities Are Exploited (H)

The use of system calls SHOULD be restricted to the necessary minimum (e.g. by means of “seccomp”), particularly for exposed services and applications. The existing standard profiles and rules of SELinux and AppArmor, as well as of alternative extensions, SHOULD be checked manually and adapted as required to the security policy at hand. If necessary, new rules and profiles SHOULD be drawn up.

SYS.2.3.A18 Additional Kernel Protection (H)

Appropriate protective safeguards such as memory protection, file system protection, and role-based access control SHOULD be implemented with specially hardened kernels (e.g. grsecurity, PaX) to prevent exploitation of vulnerabilities and propagation in operating systems.

SYS.2.3.A19 Hard Disk or File Encryption (H)

Hard disks or the files stored on them SHOULD be encrypted. The related keys SHOULD NOT be stored on the same IT system. AEAD (Authenticated Encryption with Associated Data) procedures SHOULD be used for hard disk and file encryption. Alternatively, “dm-crypt” SHOULD be used in combination with “dm-verity”.

SYS.2.3.A20 Disabling Critical SysRq Features (H)

The SysRq functions that users may execute SHOULD be specified. In general, it SHOULD NOT be possible for users to trigger any critical SysRq functions.

1.1 Referencias

1.2 Requisitos identificados

1.3 Regulaciones relacionadas

2. Requisitos identificados

Requisitos
Fuente Requisito

3. Regulaciones relacionadas

Regulaciones
Fuente Regulación

Incidencias vinculadas