Security · Common Attacks
Brute Force
Cheat sheet · https://pcornel.dk/topic.php?topic=4946
Answer
A brute-force attack tries many passwords or keys until one works. Account lockout, rate limiting, MFA, long passwords and blocking exposed services like RDP and SSH defend against it.
Remember
- Lockout and rate limiting slow attacks.
- MFA stops most brute force.
- Exposed RDP and SSH attract constant attempts.
First checks
Get-WinEvent -FilterHashtable @{LogName='Security';Id=4625} | group {$_.Properties[5].Value} | sort Count -Desc | select -First 5— failed logons per accountjournalctl -u sshd | grep Failed | awk '{print $(NF-3)}' | sort | uniq -c | sort -rn | head— SSH failures per IP- Lockout/rate limit settings — controls
Verify in this order
guesses → one account → lockout/alert
Where it usually breaks
First mismatch in signal/report → evidence preservation → scoping/analysis → containment → eradication → recovery → validation/lessons learned; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4946