Skip to content

Commit 2f15fa7

Browse files
committed
DLPX-86530 CIS: delphix user lockout after failed login attempts
PR URL: https://www.github.com/delphix/delphix-platform/pull/564
1 parent 86f4395 commit 2f15fa7

4 files changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Name: Delphix faillock failure counter
2+
Default: yes
3+
Priority: 0
4+
Auth-Type: Primary
5+
Auth:
6+
[default=die] pam_faillock.so authfail audit deny=5 unlock_time=900 onerr=fail
7+
Auth-Initial:
8+
[default=die] pam_faillock.so authfail audit deny=5 unlock_time=900 onerr=fail
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Name: Delphix faillock account lockout (preauth)
2+
Default: yes
3+
Priority: 1024
4+
Auth-Type: Primary
5+
Auth:
6+
required pam_faillock.so preauth silent audit deny=5 unlock_time=900 onerr=fail
7+
Auth-Initial:
8+
required pam_faillock.so preauth silent audit deny=5 unlock_time=900 onerr=fail
9+
Account-Type: Primary
10+
Account:
11+
required pam_faillock.so
12+
Account-Initial:
13+
required pam_faillock.so
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Name: Delphix password history
2+
Default: yes
3+
Priority: 1024
4+
Password-Type: Primary
5+
Password:
6+
requisite pam_pwhistory.so remember=5 use_authtok
7+
Password-Initial:
8+
requisite pam_pwhistory.so remember=5 use_authtok

files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,15 @@
503503
when:
504504
- variant is regex("external-.*")
505505

506+
#
507+
# CIS hardening (DLPX-86530): account lockout on failed logins via pam_faillock
508+
# and password-reuse history via pam_pwhistory. The profile files dropped under
509+
# /usr/share/pam-configs/ are auto-enabled (Default: yes); this call composes
510+
# them into /etc/pam.d/common-{auth,account,password}. Runs after the CRA
511+
# enable above so both stacks compose consistently.
512+
#
513+
- command: /usr/sbin/pam-auth-update --package
514+
506515
#
507516
# Increase login timeout to give support more time to interact with CRA via the console.
508517
#

0 commit comments

Comments
 (0)