Skip to content

Commit

Permalink
Implement rule 5.3.3.2.5 Ensure password maximum sequential character…
Browse files Browse the repository at this point in the history
…s is configured
  • Loading branch information
alanmcanonical committed Dec 16, 2024
1 parent dfdd193 commit a7f716b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/pam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ rules:
- accounts_password_pam_lcredit
- accounts_password_pam_maxclassrepeat
- accounts_password_pam_maxrepeat
- accounts_password_pam_maxsequence
- accounts_password_pam_minclass
- accounts_password_pam_minlen
- accounts_password_pam_ocredit
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
documentation_complete: true


title: 'Ensure password maximum sequential characters is configured'

description: |-
The <tt>pwquality maxsequence</tt> option sets the maximum length of monotonic character
sequences in the new password. Examples of such sequence are 12345 or fedcb. The
check is disabled if the value is 0.
Note: Most such passwords will not pass the simplicity check unless the sequence is
only a minor part of the password.
rationale: |-
Use of a complex password helps to increase the time and resources required to
compromise the password. Password complexity, or strength, is a measure of the
effectiveness of a password in resisting attempts at guessing and brute-force attacks.
<br /><br />
Password complexity is one factor of several that determines how long it takes to crack
a password. The more complex the password, the greater the number of possible
combinations that need to be tested before the password is compromised.
severity: medium

platform: package[pam]

template:
name: accounts_password
vars:
variable: maxsequence
operation: less than or equal

0 comments on commit a7f716b

Please sign in to comment.