SSH (Secure Shell) runs on TCP port 22 and provides encrypted remote access to systems. Nmap identifies it as ssh. Banner grabbing reveals the SSH server software and version, which helps narrow down the OS and potential vulnerabilities.
SSH itself is well-designed, but weak credentials, key reuse, and misconfigured access controls are frequent findings. Older versions of OpenSSH and Dropbear have known exploits. Passwordless root login or overly permissive authorized_keys files can give direct shell access.
Enumerate the server version, supported authentication methods, and key exchange algorithms. Try common credential pairs and check for username enumeration (CVE-2018-15473 in older OpenSSH). If keys are found elsewhere on the target, test them here.
Enumeration
SSH banners, algorithms, auth methods, keys, and user enum guides
SSH Authentication Method Enumeration
SSH Banner and Version Enumeration
SSH Client Flags for Fast Enumeration and Compatibility Checks
SSH Host Key Fingerprinting and Key Reuse
SSH User Enumeration
Detect valid system usernames via SSH timing attacks and error-based responses using tools like Metasploit, ssh-audit, and custom timing scripts.
Vulnerability Discovery
Guides on finding weak SSH configs and version-based CVEs
SSH Version-Based Vulnerability Check
SSH Weak Authentication Configuration
Exploitation
Guides for SSH auth attacks, key testing, and legacy crypto access
SSH Auth Attack Surface Discovery
SSH Key-Based Authentication Testing
SSH Legacy Crypto Login Compatibility
SSH Password Credential Attacks
Covers brute-forcing and credential stuffing SSH logins using tools like Hydra and Medusa to gain unauthorized shell access via weak or default passwords.
SSH Terrapin Attack (CVE-2023-48795)
Exploiting the Terrapin attack to downgrade SSH session security by manipulating sequence numbers during handshake negotiation.
SSH User Enumeration Exploitation
Exploit SSH user enumeration vulnerabilities to identify valid system accounts via timing attacks and response analysis, enabling targeted credential attacks.
Post-Exploitation
SSH keys, agents, configs, and backdoor auditing guides
SSH Agent Socket Discovery
SSH Authorized Keys ForcedCommand and Wrapper Audit
SSH Config and Known Hosts Enumeration
SSH Private Key Discovery and Passphrase Cracking
Locate SSH private keys on compromised hosts, extract them, and crack passphrases offline using John the Ripper or Hashcat to enable lateral movement.
Lateral Movement
SSH pivoting via keys, agents, credential reuse, and tunneling
SSH Agent Hijacking for Lateral Movement
SSH Credential Reuse Validation
Validates reused SSH credentials across internal hosts to identify lateral movement paths via password/key reuse in networked environments.
SSH Lateral Movement with Harvested Keys
Techniques for moving laterally through networks using harvested SSH private keys, covering key discovery, agent hijacking, and hop chaining.
SSH Port Forwarding and Tunneling
Persistence
Guides on maintaining SSH access after initial compromise
SSH Persistence Techniques
Explores SSH-based persistence methods including authorized_keys manipulation, config backdoors, and rogue SSH daemons to maintain long-term access.
Data Exfiltration
SSH and SCP data transfer, tunneling, and timing tactics