|
1 | 1 | documentation_complete: true |
2 | 2 |
|
3 | | -title: Ensure Password History Is Enforced for the Root User |
| 3 | + |
| 4 | +title: "Verify that 'use_mappers' is set to 'pwent' in PAM" |
4 | 5 |
|
5 | 6 | description: |- |
6 | | - The <tt>enforce_for_root</tt> option enforces password history for the root user. |
7 | | - Enable the <tt>enforce_for_root</tt> setting in <tt>/etc/security/pwhistory.conf</tt> |
8 | | - to require the <tt>root</tt> user to use a password that has not been used recently. |
| 7 | + The operating system must map the authenticated identity to the user or |
| 8 | + group account for PKI-based authentication. |
| 9 | +
|
| 10 | + Verify that <tt>use_mappers</tt> is set to <tt>pwent</tt> in |
| 11 | + <tt>/etc/pam_pkcs11/pam_pkcs11.conf</tt> file with the following command: |
| 12 | +
|
| 13 | + <pre>$ grep ^use_mappers /etc/pam_pkcs11/pam_pkcs11.conf |
| 14 | +
|
| 15 | + use_mappers = pwent</pre> |
9 | 16 |
|
10 | 17 | rationale: |- |
11 | | - Requiring users not to reuse their passwords make it less likely that an attacker will be |
12 | | - able to guess the password or use a compromised password. |
| 18 | + Without mapping the certificate used to authenticate to the user account, |
| 19 | + the ability to determine the identity of the individual user or group will |
| 20 | + not be available for forensic analysis. |
| 21 | +
|
| 22 | +severity: low |
| 23 | + |
| 24 | +references: |
| 25 | + srg: SRG-OS-000068-GPOS-00036 |
| 26 | + |
| 27 | +ocil_clause: 'use_mappers is not uncommented or configured correctly' |
13 | 28 |
|
14 | | -identifiers: |
15 | | - cce@rhel8: CCE-86734-1 |
16 | | - cce@rhel9: CCE-86742-4 |
17 | | - cce@rhel10: CCE-87591-4 |
| 29 | +ocil: |- |
| 30 | + Verify that <tt>use_mappers</tt> is set to <tt>pwent</tt> in |
| 31 | + <tt>/etc/pam_pkcs11/pam_pkcs11.conf</tt> file with the following command: |
18 | 32 |
|
19 | | -severity: medium |
| 33 | + <pre>$ grep ^use_mappers /etc/pam_pkcs11/pam_pkcs11.conf |
20 | 34 |
|
21 | | -platform: package[pam] |
| 35 | + use_mappers = pwent</pre> |
22 | 36 |
|
23 | 37 | template: |
24 | 38 | name: lineinfile |
25 | 39 | vars: |
26 | | - text: "enforce_for_root" |
27 | | - regex: '^[\s]*enforce_for_root\b' |
28 | | - path: "/etc/security/pwhistory.conf" |
| 40 | + text: "use_mappers = pwent" |
| 41 | + regex: '^[\s]*use_mappers[\s]*=[\s]*pwent\b' |
| 42 | + path: /etc/pam_pkcs11/pam_pkcs11.conf |
| 43 | + oval_extended_definitions: |
| 44 | + smartcard_configure_cert_checking |
0 commit comments