Ifraheem Tariq: Why Keeping Your Linux System Updated Matters

Illustration for: Ifraheem Tariq: Why Keeping Your Linux System Updated Matters

Linux has a reputation for being secure, and its design does help. But no operating system is safe if it is never updated. Software has bugs, some of those bugs are security vulnerabilities, and attackers actively look for machines that still run old, unpatched versions.

Why updates matter

When a vulnerability is discovered, it is usually given a public identifier called a CVE and described so that defenders can fix it. Unfortunately, the same description tells attackers exactly what to target. Once a fix has been released, every machine that has not installed it becomes an easy target. Many real-world attacks do not use clever new techniques at all. They simply scan the internet for systems missing a patch that has been available for months.

How updating works on Ubuntu and Debian

Linux distributions keep software in repositories and update it through a package manager. On Ubuntu or Debian, two commands do most of the work:

  • sudo apt update refreshes the list of available package versions.
  • sudo apt upgrade installs the newer versions.

Other distributions have their own equivalents, such as dnf on Fedora and pacman on Arch. The idea is the same: one tool updates the system and almost all of its applications together.

Automating it

Remembering to update is the hard part, so it is worth automating security fixes. Ubuntu includes a service called unattended-upgrades that installs security updates automatically in the background. We enabled it on the server that hosts this website, so that important fixes arrive without anyone having to log in.

A few cautions

  • Some updates, especially to the kernel, only take effect after a reboot.
  • Make backups first on important machines, because a rare update can break something.
  • Install software only from trusted sources. A package from an unknown website can contain malware, however up to date your system is.
  • Remove software you no longer use, since every installed program is a potential target.

The bottom line

Updating is not exciting, but it is one of the most effective defences available. It costs almost nothing, closes doors that attackers already know about, and takes only a few minutes. Make it a habit, or better still, make it automatic.

Featured image credit: original illustration created by the IAAA team for this post; no third-party artwork is used.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *