A brute-force attack is a type of attack where the attacker tries to guess the password or key by trying every possible combination until they find the right one.