🛠️SSH
Theory
The SSH protocol (Secure Shell) is used to login from one machine to another securely. It offers several options for strong authentication, as it protects the connections and communications security and integrity with strong encryption. This connection can be used for terminal access, file transfers, and for tunneling other applications.
Enumeration
Authentication type
It is possible to enumerate the allowed authentication types with the following command:
Banner Grabbing
Useful to get basic information about the SSH server such as its type and version.
Server's public SSH key
Weak Cipher Algorithms
Some auditing tools can help to quikly find the target version and which algorithms are available on the server in order to give recommendations to the customer.
SSH fuzzing
Fuzzing the SSH service could help to find vulnerabilities. The automated fuzzing is simple but not very targeted so it usually takes a lot of time and could miss some results. The custom and the manual approach is more effective but it takes time to familiarize yourself with the target. Here is an example of a custom fuzzing : Fuzzing the OpenSSH daemon using AFL.
Attacks
Weak cryptographic keys
Authentication bruteforcing
User enumeration
Password Bruteforcing
Some common ssh credentials here and here.
Private key Bruteforcing
Resources
Last updated
Was this helpful?