Aqbeż għall-kontenut

System hardening

Applied to information security, hardening means improving the security of a system by reinforcing its configuration or its structure.

CyberElements Bastion relies on the Debian operating system for the Mediation Controller and Edge Gateway servers. This chapter sets out the recommendations for reinforcing the configuration of those servers.

The settings proposed must be adapted to the operational context, to the deployed architecture and to operational constraints. For each recommendation, three courses of action are possible:

  • apply it as proposed;
  • adapt the recommended values where the context warrants it;
  • set it aside where its technical value is slight or incompatible with the operational context, subject to justification.

Information

For a deployment as a virtual machine or OVA, the recommendations concerning the BIOS, UEFI, hyper-threading or hardware components belong to the hosting infrastructure and must be handled in the hypervisor hardening procedures.

Where the servers are supplied as an OVA, some recommendations may already be preconfigured. Others depend on the deployment environment.

Unless stated otherwise, each recommendation applies to both server roles. The review of applied recommendations must be carried out after initial installation, after any major update and as part of regular configuration audits; that general principle is not repeated for each recommendation.

Warning!

Some recommendations in this chapter (notably configuring a GRUB password and the boot hardening options) belong by nature to the "reserved for support/project" category: they must not be applied without prior validation in a representative environment.

Summary

# Recommendation Page Mediation Controller Edge Gateway
R1 Minimal Debian installation Installation
R2 Debian version and security maintenance Installation
R3 Appropriate disk partitioning Installation
R4 Removal of unnecessary packages installed by default Installation
R5 Review of active services and listening ports Installation
R6 Integrity check of packages and APT repositories Installation
R7 Controlled automation of Debian security updates Installation
R8 Management of local accounts and restriction of the root account Accounts
R9 Privileged administration with sudo Accounts
R10 Local authentication policy (libpam-pwquality, pam_faillock) Accounts
R11 Control of permissions and sensitive files File system
R12 Hardening of configuration files and sensitive directories File system
R13 sysctl parameters for system and network hardening Kernel and network
R14 Disabling or controlling IPv6 Kernel and network
R15 Advanced boot and kernel hardening (kernel options) Kernel and network
R16 Password on the GRUB boot loader Kernel and network
R17 Hardening and review of scheduled tasks Integrity
R18 Customisation of the system banner Integrity
R19 Integrity check of system files with debsums Integrity
R20 Integrity baseline with AIDE Integrity
R21 Configuration of the system logging service Logs and time
R22 Protection and rotation of logs Logs and time
R23 Protection of command histories and administration traces Logs and time
R24 Time synchronisation with NTP Logs and time

Unless stated otherwise on the page concerned, these twenty-four recommendations apply to both server roles, Mediation Controller and Edge Gateway.