Unrestricted SSH Access from Non-Whitelisted IPs
ID: file-ssh-unrestricted-nonwhitelist
Severity: unknown
Author: pussycat0x
Tags: audit,config,file,ssh
Description
Section titled “Description”SSH access is not restricted to specific IP addresses, allowing connections from any source. This increases the risk of unauthorized access and brute-force attacks.
YAML Source
Section titled “YAML Source”id: file-ssh-unrestricted-nonwhitelist
info: name: Unrestricted SSH Access from Non-Whitelisted IPs author: pussycat0x severity: unknown description: | SSH access is not restricted to specific IP addresses, allowing connections from any source. This increases the risk of unauthorized access and brute-force attacks. remediation: | Restrict SSH to specific IPs in /etc/ssh/sshd_config by setting ListenAddress <trusted-IP> and restarting the SSH service. reference: - https://vishalraj82.medium.com/hardening-openssh-security-37f5d634015f - https://www.cyberciti.biz/tips/howto-openssh-sshd-listen-multiple-ip-address.html metadata: verified: true tags: audit,config,file,ssh
file: - extensions: - all
matchers: - type: word words: - "#ListenAddress"# digest: 4a0a00473045022065771ef7cf458bc76abc58c0e2640f8a63ac7dd04f2f10eaffa252e1974fba0f022100f4be80a705aa942650d077d3da0c9639e5b2180181a96bbae70f343b86d79b34: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-ip-whitelist.yaml"