The Unattended-upgrades package allows for automatic security updates to be installed on Linux systems.
sudo apt install unattended-upgrades
sudo dpkg-reconfigure --priority=low unattended-upgrades