Install Smart Card Packages For Multifactor Authentication
An XCCDF Rule
Description
Configure the operating system to implement multifactor authentication by
installing the required package with the following command:
The pam_pkcs11
package can be installed with the following command:
$ sudo zypper install pam_pkcs11The
mozilla-nss
package can be installed with the following command:
$ sudo zypper install mozilla-nssThe
mozilla-nss-tools
package can be installed with the following command:
$ sudo zypper install mozilla-nss-toolsThe
pcsc-ccid
package can be installed with the following command:
$ sudo zypper install pcsc-ccidThe
pcsc-lite
package can be installed with the following command:
$ sudo zypper install pcsc-liteThe
pcsc-tools
package can be installed with the following command:
$ sudo zypper install pcsc-toolsThe
opensc
package can be installed with the following command:
$ sudo zypper install openscThe
coolkey
package can be installed with the following command:
$ sudo zypper install coolkey
Rationale
Using an authentication device, such as a CAC or token that is separate from
the information system, ensures that even if the information system is
compromised, that compromise will not affect credentials stored on the
authentication device.
Multifactor solutions that require devices separate from
information systems gaining access include, for example, hardware tokens
providing time-based or challenge-response authenticators and smart cards such
as the U.S. Government Personal Identity Verification card and the DoD Common
Access Card.
- ID
- xccdf_org.ssgproject.content_rule_install_smartcard_packages
- Severity
- Medium
- References
- Updated
Remediation - Shell Script
# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ] && { ! grep -q s390x /proc/sys/kernel/osrelease; }; then
SMARTCARD_PACKAGES=( "pam_pkcs11" "mozilla-nss" "mozilla-nss-tools" "pcsc-ccid" "pcsc-lite" "pcsc-tools" "opensc" "coolkey")
for PKGNAME in "${SMARTCARD_PACKAGES[@]}"
Remediation - Ansible
- name: Set smartcard packages fact
set_fact:
smartcard_packages:
- pam_pkcs11
- mozilla-nss
- mozilla-nss-tools