By first boot of the freshly installed Debian OS, most of the software are outdated especially related to security matters. Hence, one must ensures the operating system is up-to-date as soon as possible. This guide shows you how to update Debian OS during first boot.
These are the identified threats related to Debian Software.
When the operating system is freshly installed using the Debian ISO, most of the software are outdated including security related patches. This is due to the ISO did not pick up the latest updates during its creation.
Services in Debian OS does not perform self-restart after an apt-update. Hence, they're operating using the old and vulnerable settings.
Kernel updates with security matters requires a hard-restart to have the new patches operating correctly.
Here are the list if actions to counter the issues.
For starter, one must add the following into the /etc/apt/source.list
for pulling the security updates from Debian Security team:
deb http://security.debian.org/ [CODENAME]/updates main contrib non-free
Then, perform an immediate apt-update && apt-upgrade
to it either via updated local proxy server or over the network depending on your level of paranoia. This should counter T14 threat.
To counter T15 threat, one can install needrestart
package which is the following command:
$ apt install needrestart -y
This package runs a service restart after apt updates and upgrades automatically.
To counter T16 threat, one must design the Debian OS deployment in a way that there is no center point of failure. This includes traffic diversion to partnered system while the existing entering to restart and then restores the connection.
This also means orchestrating the operating system in a cluster modes.
Although livepatch solution is available, a kernel update is always requiring a restart since not all kernel components are built in module mode. Built-in kernel can only be updated via restart. Also, hardened Debian OS usually lacks a bunch of software here and there so it can cripple the system if livepatch is not operated in a very detailed and surgical manner.
That's all for hardening Debian by updating outdated Software in Fresh Debian OS.