Limit Maximum SSH Authentication Attempts
ID: file-limit-max-auth-attempts
Severity: unknown
Author: pussycat0x
Tags: audit,config,file,ssh
Description
Section titled “Description”Limiting maximum SSH authentication attempts reduces the risk of brute-force attacks by restricting failed login attempts, enhancing security against unauthorized access
YAML Source
Section titled “YAML Source”id: file-limit-max-auth-attempts
info: name: Limit Maximum SSH Authentication Attempts author: pussycat0x severity: unknown description: | Limiting maximum SSH authentication attempts reduces the risk of brute-force attacks by restricting failed login attempts, enhancing security against unauthorized access remediation: | Set MaxAuthTries 3 in /etc/ssh/sshd_config to limit SSH authentication attempts and restart the SSH service. reference: - https://vishalraj82.medium.com/hardening-openssh-security-37f5d634015f - https://www.tenable.com/audits/items/CIS_Amazon_Linux_2_v3.0.0_L1.audit:82ddb0bcc7ddfddaae3ec0b408ffb225 metadata: verified: true tags: audit,config,file,ssh
file: - extensions: - all
matchers: - type: word words: - "#MaxAuthTries"# digest: 4a0a0047304502206f0493702f8043cb02ad1472a60f137ef35f1bfc7bd62a34e35cdda982b7584c02210083005bde958818ce51bcf1bdbaa526cab0bef5ca48821a501d3851e9156db1b4: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-limit-max-auth-attempts.yaml"