A brute-force attack is an automated attempt to gain access by systematically trying many password or key combinations until one succeeds.