Password spraying is a method of attack where an attacker attempts to gain unauthorized access to multiple accounts by systematically trying common passwords. Unlike traditional brute force attacks that target a single account with multiple password attempts, password spraying targets many accounts with a few common passwords, reducing the risk of account lockout.