SV-269164r1050046_rule
V-269164
SRG-OS-000366-GPOS-00153
ALMA-09-009700
CAT I
10
Install AlmaLinux and TuxCare package-signing keys on the system and verify their fingerprints match vendor values.
$ curl https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux-9 -o /etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
$ curl https://repo.tuxcare.com/tuxcare/RPM-GPG-KEY-TuxCare -o /etc/pki/rpm-gpg/RPM-GPG-KEY-TuxCare
$ rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux-9
$ rpm --import https://repo.tuxcare.com/tuxcare/RPM-GPG-KEY-TuxCare
Using the steps listed in the Check, confirm the newly imported keys show as installed on the system and verify their fingerprints match vendor values.
Confirm AlmaLinux and TuxCare package-signing keys are installed on the system and verify their fingerprints match vendor values.
The keys are stored as "RPM-GPG-KEY-AlmaLinux-9" and "RPM-GPG-KEY-TuxCare" inside the "/etc/pki/rpm-gpg/" directory.
List GPG keys installed on the system using the following command:
$ rpm -q --queryformat "%{SUMMARY}\n" gpg-pubkey
TuxCare (Software Signing Key) <packager@tuxcare.com> public key
AlmaLinux OS 9 <packager@almalinux.org> public key
If the AlmaLinux and TuxCare GPG keys are not installed, this is a finding.
List key fingerprints of installed GPG keys using the following commands:
$ gpg -q --keyid-format short --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
pub rsa4096/B86B3716 2022-01-18 [SC]
Key fingerprint = BF18 AC28 7617 8908 D6E7 1267 D36C B86C B86B 3716
uid AlmaLinux OS 9 <packager@almalinux.org>
sub rsa4096/C9BA6CAA 2022-01-18 [E]
$ gpg -q --keyid-format short --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-TuxCare
pub rsa4096/8D50EB66 2023-03-06 [SC]
Key fingerprint = FAD7 8590 81D0 738B 7A82 8496 D07B F2A0 8D50 EB66
uid TuxCare (Software Signing Key) <packager@tuxcare.com>
sub rsa4096/A9C70659 2023-03-06 [E]
If either "/etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9" or "/etc/pki/rpm-gpg/RPM-GPG-KEY-TuxCare" key files are missing, this is a finding.
Compare key fingerprints of installed AlmaLinux and TuxCare GPG keys with fingerprints listed at
https://almalinux.org/security/
https://docs.tuxcare.com/enterprise-support-for-almalinux/#gnupg-keys
If the key fingerprints do not match, this is a finding.
V-269164
False
ALMA-09-009700
Confirm AlmaLinux and TuxCare package-signing keys are installed on the system and verify their fingerprints match vendor values.
The keys are stored as "RPM-GPG-KEY-AlmaLinux-9" and "RPM-GPG-KEY-TuxCare" inside the "/etc/pki/rpm-gpg/" directory.
List GPG keys installed on the system using the following command:
$ rpm -q --queryformat "%{SUMMARY}\n" gpg-pubkey
TuxCare (Software Signing Key) <packager@tuxcare.com> public key
AlmaLinux OS 9 <packager@almalinux.org> public key
If the AlmaLinux and TuxCare GPG keys are not installed, this is a finding.
List key fingerprints of installed GPG keys using the following commands:
$ gpg -q --keyid-format short --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
pub rsa4096/B86B3716 2022-01-18 [SC]
Key fingerprint = BF18 AC28 7617 8908 D6E7 1267 D36C B86C B86B 3716
uid AlmaLinux OS 9 <packager@almalinux.org>
sub rsa4096/C9BA6CAA 2022-01-18 [E]
$ gpg -q --keyid-format short --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-TuxCare
pub rsa4096/8D50EB66 2023-03-06 [SC]
Key fingerprint = FAD7 8590 81D0 738B 7A82 8496 D07B F2A0 8D50 EB66
uid TuxCare (Software Signing Key) <packager@tuxcare.com>
sub rsa4096/A9C70659 2023-03-06 [E]
If either "/etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9" or "/etc/pki/rpm-gpg/RPM-GPG-KEY-TuxCare" key files are missing, this is a finding.
Compare key fingerprints of installed AlmaLinux and TuxCare GPG keys with fingerprints listed at
https://almalinux.org/security/
https://docs.tuxcare.com/enterprise-support-for-almalinux/#gnupg-keys
If the key fingerprints do not match, this is a finding.
M
5664