SSH Key-Based Authentication - Disabled
ID: file-ssh-key-auth-disabled
Severity: unknown
Author: pussycat0x
Tags: audit,config,file,ssh
Description
Section titled “Description”SSH key-based authentication is disabled, allowing password-based logins, which increases the risk of brute-force attacks and unauthorized access.
YAML Source
Section titled “YAML Source”id: file-ssh-key-auth-disabled
info: name: SSH Key-Based Authentication - Disabled author: pussycat0x severity: unknown description: | SSH key-based authentication is disabled, allowing password-based logins, which increases the risk of brute-force attacks and unauthorized access. remediation: | Enable SSH key-based authentication by adding the public key to ~/.ssh/authorized_keys and disabling password authentication in /etc/ssh/sshd_config (PasswordAuthentication no). reference: - https://vishalraj82.medium.com/hardening-openssh-security-37f5d634015f - https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server metadata: verified: true tags: audit,config,file,ssh
file: - extensions: - all
matchers: - type: word words: - "PasswordAuthentication yes"# digest: 4a0a00473045022100b43f27c7d5657e32da83477f0570e82071941a304b3e85cd5bf69f363b018e6d02206f4ea207f22e9a085e59213202084b3e5b5d71ad5283e34bf28da0cd9a3ca8f6:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "file/audit/ssh/file-ssh-key-auth-required.yaml"