2025-08-20 17:53:58 +05:30
id : weak-password-complexity
2025-07-28 19:34:39 +09:00
info :
name : Linux Password Complexity Not Enforced
author : songyaeji
severity : high
2025-08-20 17:53:58 +05:30
description : |
The system did not enforce password complexity policies. This allowed weak passwords to be used, increasing the risk of unauthorized access through brute-force or dictionary attacks.
2025-07-28 19:34:39 +09:00
reference :
2025-07-30 02:23:34 +09:00
- https://isms.kisa.or.kr/main/csap/notice/
2025-07-30 03:06:52 +09:00
metadata :
verified : true
2025-08-28 23:41:32 +05:30
tags : linux,local,audit,kisa,compliance,local
2025-07-28 19:34:39 +09:00
self-contained : true
2025-08-20 17:53:58 +05:30
2025-07-28 19:34:39 +09:00
code :
- engine :
2025-08-20 17:53:58 +05:30
- sh
2025-07-28 19:34:39 +09:00
- bash
source : |
cat /etc/security/pwquality.conf 2>/dev/null || true
- engine :
2025-08-20 17:53:58 +05:30
- sh
2025-07-28 19:34:39 +09:00
- bash
source : |
grep pam_pwquality.so /etc/pam.d/system-auth /etc/pam.d/common-password 2>/dev/null || true
2025-08-20 17:53:58 +05:30
2025-07-28 19:34:39 +09:00
matchers :
2025-08-20 17:53:58 +05:30
- type : regex
part : code_1_response
name : password-quality
regex :
- 'minlen\s*=\s*[0-7]' # Password length < 8 characters
- 'dcredit\s*=\s*0' # No digit requirement
- 'ucredit\s*=\s*0' # No uppercase requirement
- 'lcredit\s*=\s*0' # No lowercase requirement
- 'ocredit\s*=\s*0' # No special character requirement
condition : or
2025-07-28 19:34:39 +09:00
- type : word
part : code_2_response
2025-08-20 17:53:58 +05:30
name : pam
2025-07-28 19:34:39 +09:00
words :
- "pam_pwquality.so"
2025-08-20 17:53:58 +05:30
2025-07-30 03:06:52 +09:00
- type : word
2025-07-28 19:34:39 +09:00
part : code_2_response
words :
2025-07-30 02:23:34 +09:00
- "enforce_for_root"
2025-08-21 12:45:03 +00:00
negative : true
2025-08-29 10:06:03 +00:00
# digest: 4a0a00473045022100c590d02bcda1018fc91528e71c3697ea8aa7d605e1b2980e9c67a4f1e0ed51fb0220494670f4487078a52c1fae89b39bdca73a6055d5bae5f7049afce07cda8c6ff8:922c64590222798bb761d5b6d8e72950