Skip to content

Commit c65dcb8

Browse files
committed
fix password policy check
1 parent 0e19d6d commit c65dcb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/agent/checks.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ checks:
444444
- "Enable with: sudo dpkg-reconfigure -plow unattended-upgrades"
445445
# Check if auto-upgrades is enabled
446446
- file: /etc/apt/apt.conf.d/20auto-upgrades
447-
includes: 'APT::Periodic::Unattended-Upgrade\s+"0"'
447+
includes: 'APT::Periodic::Unattended-Upgrade\\s+"0"'
448448
remediation:
449449
- Enable automatic security updates
450450
- Edit /etc/apt/apt.conf.d/20auto-upgrades
@@ -537,13 +537,13 @@ checks:
537537
- Configure minimum length in /etc/security/pwquality.conf with 'minlen=8'
538538
- Do NOT set complexity requirements per NIST SP 800-63B
539539
- file: /etc/login.defs
540-
includes: "PASS_MIN_LEN\s+[0-7]([^0-9]|$)"
540+
includes: "PASS_MIN_LEN\\s+[0-7]([^0-9]|$)"
541541
remediation:
542542
- Set PASS_MIN_LEN to at least 8 in /etc/login.defs
543543
- Do NOT enforce password aging or complexity per NIST guidelines
544544
windows:
545545
- output: net accounts
546-
includes: "Minimum password length\s*:\s*[0-7]([^0-9]|$)"
546+
includes: "Minimum password length\\s*:\\s*[0-7]([^0-9]|$)"
547547
remediation:
548548
- "Set minimum password length to 8: 'net accounts /minpwlen:8'"
549549
- Or configure via Group Policy Editor (gpedit.msc)

0 commit comments

Comments
 (0)