Add ACSC Essential Eight and ISM Official profiles for Ubuntu 22.04 and 24.04#14821
Draft
ndfivegn wants to merge 2 commits into
Draft
Add ACSC Essential Eight and ISM Official profiles for Ubuntu 22.04 and 24.04#14821ndfivegn wants to merge 2 commits into
ndfivegn wants to merge 2 commits into
Conversation
unattended-upgrades is the Debian/Ubuntu equivalent of dnf-automatic. This rule provides the automatic-patching capability needed by the ACSC e8 and ISM Official profiles on Ubuntu (where the dnf-automatic rules are not applicable). Uses the package_installed template; mapped to the apt component.
|
Hi @ndfivegn. Thanks for your PR. I'm waiting for a ComplianceAsCode member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
…nd 24.04 Brings the shared e8 and ism_o control files to the Ubuntu products (the first non-RHEL consumer). Each profile pulls e8:all / ism_o:all, unselects rules that target RHEL-only mechanisms (SELinux, RPM verify, dnf/yum gpgcheck, authselect, firewalld, system-wide crypto-policies, FIPS), and re-covers the same control areas with the Ubuntu equivalents that already exist as rules: AppArmor (ISM application control), ufw (ISM-1416 software firewall), apt authentication (ISM-1493 software register), sshd strong ciphers/macs/kex (ISM-1446 cryptography) and unattended-upgrades (ISM-1467/1483 latest release used). The ism_o profile is self-contained (selects e8:all and ism_o:all directly) rather than extending the e8 profile. Every e8/ism_o control covered on the RHEL/OL profiles is covered here. Profile comments cite the relevant ISM control text. Includes profile-stability fixtures for all four profiles.
b346635 to
da2248c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Adds
e8(ACSC Essential Eight) andism_o(ACSC ISM OFFICIAL) profiles to the ubuntu2204 and ubuntu2404 products. The shared control filescontrols/e8.ymlandcontrols/ism_o.ymlwere previously consumed only by RHEL-family products (rhel8/9/10, ol8/9/10); this is the first non-RHEL product to use them.The control files are unchanged. Each profile selects
e8:all/ism_o:all, unselects the rules that target RHEL-only mechanisms, and re-covers the same control areas with the Ubuntu equivalents that already exist as rules:package_apparmor_installed,all_apparmor_profiles_enforcedpackage_ufw_installed,service_ufw_enabled,ufw_default_incoming_ruleapt_conf_disallow_unauthenticated,apt_sources_list_officialsshd_use_strong_ciphers,sshd_use_strong_macs,sshd_use_strong_kexpackage_unattended-upgrades_installedThis also adds one new rule,
package_unattended-upgrades_installed(first commit), as the Debian/Ubuntu analogue ofpackage_dnf-automatic_installed. It uses thepackage_installedtemplate and is mapped to theaptcomponent.Commits:
package_unattended-upgrades_installedrule (+aptcomponent mapping).e8/ism_oprofiles (+ profile-stability fixtures).Rationale:
Provides ACSC Essential Eight and ISM OFFICIAL compliance scanning for Ubuntu LTS, matching the existing RHEL/OL coverage. This is a frequent request for Australian-government Ubuntu fleets that currently only have CIS/STIG profiles.
Control-coverage parity with the OL9 profiles was verified rule-by-rule: every e8/ism_o control that is covered on OL9 is also covered on Ubuntu via a mapped rule or its Ubuntu equivalent (0 unhandled gaps). The only controls not covered on Ubuntu are ones not covered on OL9 either (ISM-1277/1552, whose sole rule
openssl_use_strong_entropyhasplatform: RHEL8/OL8). Each Ubuntu adaptation is documented in the profile with the relevant ISM control text.Fixes: none / N/A
Review Hints:
./build_product ubuntu2204 ubuntu2404succeeds; both profiles appear inoscap info build/ssg-ubuntu2404-ds.xml.:all.tests/test_profile_stability.py(fixtures included) andbuild-scripts/verify_references.pyfor both products.products/ubuntu*/profiles/{e8,ism_o}.profile, and the newlinux_os/guide/system/software/updating/package_unattended-upgrades_installed/rule.yml.