Password attacks can be done ethically or criminally. An ethical hacker is usually someone employed by a company to test the security of various account passwords, to lessen the probability of being hacked. On the other hand, a cyber-criminal performs a password attack to gain entry into systems for monetary or other incentives.
Different types of password attacks and how they work
Password attacks can be split into four different types: non-electronic accounts, active online attacks, passive online attacks, and offline attacks.
This is a non-technical attack that can be done without a great deal of technical knowledge.
Active Online Attack
Passive Online Attacks
How to Prevent a Password Attack
As the saying goes, using a combination of upper- and lower-case letters, numbers, symbols (and a retina scan, jk), might not protect you completely, but it goes a long way in deterring hackers.