5 Password Attacks and the Defence for Each
Brute force: 6 of 6 guesses through, then 2 of 6 once the lockout was on.
Video #282 ยท How it works, by example
Steps in the video
Files
- attacks.py (51 lines)
- login.py (41 lines)
- run.py (24 lines)
- server.py (28 lines)
Tested with
Python 3.12.15
What this does not show
Every user, password and list is a made-up toy for defence teaching; thresholds and hash cost are toy values, far below real guidance.
Sources
- https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html
- https://cheatsheetseries.owasp.org/cheatsheets/Credential_Stuffing_Prevention_Cheat_Sheet.html
- https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html
- https://pages.nist.gov/800-63-4/sp800-63b.html
- https://www.ncsc.gov.uk/collection/passwords/updating-your-approach
Learning IT by Example.