The Center for Internet Security (CIS) is an independent group that publishes hardening guides for a wide range of products, including Ubuntu. The CIS benchmarks for Ubuntu 24.04 LTS contain a large number of recommendations for how to configure an Ubuntu system for maximum security. Canonical has developed the Ubuntu Security Guide (USG) tool in order to simply the process of applying the recommendations and then checking to see whether the system is still in compliance with the benchmark.
When running USG, applying the remediation scripts to a failed CIS benchmark finding, it still fails. For example, the entire GNOME3 hardening. Tried both the scripts, as well as the GUI dconf-editor, to no avail.
I need to install this via Terraform.
Is there an image that doesn’t require the faff of set up?
A user data script could automate the setup steps every time, but repeating setup multiple times a day doesn’t sound ideal, an actual image would be best.
that was the audit result from :
usg audit “profile” i.e usg audit cis_level1_server or usg audit cis_level2_server
after the auditing was done, it shows the result is saved in both xml and html in :
/var/lib/usg/
as for the the “Running aide --init…” run forever, yeah thats because its create a database of checksum etc of every file in your system (assuming you havent set which directory to be skipped). Open another ssh and run ps, you will see it running for a long times.
On my 1 vcpu ,2 gb ram test server with 32gb storage newly installed ubuntu 24.04, it took like around 90+ mins.