SV-260575r1044770_rule
V-260575
SRG-OS-000105-GPOS-00052
UBTU-22-612020
CAT II
10
Configure Ubuntu 22.04 LTS to use multifactor authentication for access to accounts.
Add or modify the following line in the "/etc/pam.d/common-auth" file:
auth [success=3 default=ignore] pam_pkcs11.so
Add or modify the following line in the "/etc/ssh/sshd_config" file:
PubkeyAuthentication yes
Verify that the "pam_pkcs11.so" module is configured by using the following command:
$ grep -i pam_pkcs11.so /etc/pam.d/common-auth
auth [success=3 default=ignore] pam_pkcs11.so
If "pam_pkcs11.so" is commented out or is missing, this is a finding.
Verify the sshd daemon allows public key authentication by using the following command:
$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH 'pubkeyauthentication'
/etc/ssh/sshd_config:PubkeyAuthentication yes
If "PubkeyAuthentication" is not set to "yes" or is commented out or missing, or if conflicting results are returned, this is a finding.
V-260575
False
UBTU-22-612020
Verify that the "pam_pkcs11.so" module is configured by using the following command:
$ grep -i pam_pkcs11.so /etc/pam.d/common-auth
auth [success=3 default=ignore] pam_pkcs11.so
If "pam_pkcs11.so" is commented out or is missing, this is a finding.
Verify the sshd daemon allows public key authentication by using the following command:
$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH 'pubkeyauthentication'
/etc/ssh/sshd_config:PubkeyAuthentication yes
If "PubkeyAuthentication" is not set to "yes" or is commented out or missing, or if conflicting results are returned, this is a finding.
M
5594