blob: 50543ca337e854d56a277bb2cc34aecf1c52a072 [file] [log] [blame]
Dmitry Teselkinbf79ba42018-09-27 13:56:38 +03001# CIS 5.4.1.2 Ensure minimum days between password changes is 7 or more (Scored)
2#
3# Description
4# ===========
5# The PASS_MIN_DAYS parameter in /etc/login.defs allows an administrator to
6# prevent users from changing their password until a minimum number of days
7# have passed since the last time the user changed their password. It is
8# recommended that PASS_MIN_DAYS parameter be set to 7 or more days.
9#
10# Rationale
11# =========
12# By restricting the frequency of password changes, an administrator can
13# prevent users from repeatedly changing their password in an attempt to
14# circumvent password reuse controls.
15#
16# Audit
17# =====
18# Run the following command and verify PASS_MIN_DAYS is 7 or more:
19#
20# # grep PASS_MIN_DAYS /etc/login.defs
21# PASS_MIN_DAYS 7
22#
23# Verify all users with a password have their minimum days between password
24# change set to 7 or more:
25#
26# # egrep ^[^:]+:[^\!*] /etc/shadow | cut -d: -f1
27# <list of users>
28# # chage --list <user>
29# Minimum number of days between password change: 7
30#
31# Remediation
32# ===========
33# Set the PASS_MIN_DAYS parameter to 7 in /etc/login.defs :
34#
35# PASS_MIN_DAYS 7
36#
37# Modify user parameters for all users with a password set to match:
38#
39# # chage --mindays 7 <user>
40#
41# Notes
42# =====
43# You can also check this setting in /etc/shadow directly. The 5th field
44# should be 7 or more for all users with a password.
45#
46parameters:
47 linux:
48 system:
49 login_defs:
50 PASS_MIN_DAYS:
51 value: 7
52