mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-09 04:03:16 +08:00
32 lines
1.2 KiB
YAML
32 lines
1.2 KiB
YAML
id: file-disable-empty-password
|
|
|
|
info:
|
|
name: Disable SSH Empty Password
|
|
author: pussycat0x
|
|
severity: unknown
|
|
description: |
|
|
Allowing empty passwords in SSH poses a severe security risk, enabling unauthorized access, brute-force attacks, and potential system compromise. It should always be disabled to prevent unauthorized logins.
|
|
remediation: |
|
|
Set PermitEmptyPasswords no in /etc/ssh/sshd_config to disable empty password logins and restart the SSH service.
|
|
reference:
|
|
- https://vishalraj82.medium.com/hardening-openssh-security-37f5d634015f
|
|
- https://docs.datadoghq.com/security/default_rules/xccdf-org-ssgproject-content-rule-sshd-disable-empty-passwords/
|
|
metadata:
|
|
verified: true
|
|
tags: audit,config,file,ssh
|
|
|
|
file:
|
|
- extensions:
|
|
- all
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "# This is the sshd server system-wide configuration file"
|
|
|
|
- type: word
|
|
words:
|
|
- "PermitEmptyPasswords no"
|
|
negative: true
|
|
# digest: 4b0a00483046022100b68a6b67b0ed2869a552a177efc9f6f92048f5c724d25661e8d2166017121cbb022100fa9829590f091a29d2d8e8f8146958370f5fd2ed4dad9e57e6cf48f8dc6dc69b:922c64590222798bb761d5b6d8e72950 |