Password Attacks

5 min read966 words

Password Attacks Tools

Password security is a fundamental part of cybersecurity. Password auditing tools help security professionals evaluate password strength, identify weak credentials, test password storage mechanisms, and improve authentication security.

This section covers password auditing and authentication testing tools for authorized security assessments and controlled lab environments.

What You'll Learn

  • Understand password security and common attack techniques.
  • Learn the difference between online and offline password attacks.
  • Evaluate password strength and complexity.
  • Understand password hashing and salting.
  • Audit password hashes in controlled environments.
  • Learn about wordlists and password-cracking strategies.
  • Improve password storage and authentication defenses.

Tools Covered

ToolDescription
John the RipperAudit password hashes using supported cracking and analysis methods.
HashcatPerform password recovery and auditing against supported hash formats using CPU or GPU resources.
HydraTest authentication security across supported network services in authorized environments.
MedusaPerform modular login testing against supported network services.
NcrackAudit network authentication services within an approved testing scope.
CeWLGenerate wordlists from publicly accessible website content.
CrunchGenerate custom wordlists using specified character sets and length constraints.
CUPPGenerate personalized password-audit wordlists from supplied information.
SecListsProvide collections of wordlists for security testing, including password and username lists.
OphcrackAudit certain Windows password hashes using rainbow-table techniques.
MimikatzA Windows security research tool used to examine credential-handling weaknesses in controlled environments.
hashidHelp identify possible hash types from a hash string.
name-that-hashSuggest likely hash algorithms based on a supplied hash value.

Types of Password Attacks

1. Dictionary Attack

Tests candidate passwords from a wordlist against a password hash or an authorized authentication interface.

2. Brute-Force Attack

Systematically tries combinations from a defined character set. The time required depends on the password length, character set, and verification speed.

3. Rule-Based Attack

Applies transformations to candidate passwords, such as capitalization changes or appended numbers.

4. Credential Stuffing

Tests previously exposed username-password combinations against other services. This is a threat to understand and defend against, not a technique to use against accounts without explicit authorization.

5. Password Spraying

Tests a small number of common passwords across multiple accounts. It can trigger account lockouts and must only be simulated in an authorized environment.

6. Offline Hash Auditing

Tests candidate passwords against captured password hashes without repeatedly contacting the authentication service.

Learning Path

  1. Password Fundamentals — Understand password strength, entropy, and authentication.
  2. Hash Identification — Learn to distinguish password hashes from other encoded or hashed data.
  3. Wordlists — Explore SecLists, CeWL, and Crunch.
  4. Hash Auditing — Practice John the Ripper and Hashcat with lab-generated hashes.
  5. Authentication Testing — Understand Hydra, Medusa, and Ncrack in controlled labs.
  6. Defensive Measures — Learn rate limiting, multi-factor authentication, password managers, and secure password storage.

Basic Examples

Use only hashes you generated yourself or obtained from an explicitly authorized lab.

Identify a Possible Hash Type

hashid '5f4dcc3b5aa765d61d8327deb882cf99'

Hash identification is probabilistic. A hash's appearance alone may not establish its algorithm.

Audit a Lab Hash with John the Ripper

john --wordlist=/path/to/wordlist.txt lab-hashes.txt

Display John the Ripper Results

john --show lab-hashes.txt

Inspect Available Hashcat Modes

hashcat --help

Choose a mode only after confirming the hash format used in your lab.

Generate a Small Lab Wordlist

crunch 4 6 abc123 -o lab-wordlist.txt

This generates combinations from the specified character set for a controlled exercise. Wordlist size increases rapidly with the number of characters and maximum length.

Understanding Password Hashing

Password hashing transforms a password into a stored representation that can be verified without storing the original password directly.

AlgorithmSecurity Guidance
MD5Unsuitable for password storage because it is fast and cryptographically broken for many uses.
SHA-1Not recommended for password storage.
SHA-256Useful for many integrity applications but generally too fast on its own for password storage.
bcryptA password-hashing algorithm with a configurable work factor.
scryptA password-hashing function designed to impose memory and computational costs.
Argon2idA modern password-hashing option designed to resist GPU and memory-based attacks.

For new applications, use a well-maintained password-hashing library with Argon2id or another suitable password-hashing algorithm, configured according to current security guidance.

Defensive Measures

  • Use long, unique passwords for every account.
  • Store passwords with a dedicated password-hashing algorithm and unique salts.
  • Enable multi-factor authentication where possible.
  • Implement rate limiting and appropriate login-abuse detection.
  • Avoid revealing whether a username or password was specifically incorrect.
  • Monitor suspicious login attempts.
  • Never store passwords in plaintext or reversible formats.
  • Use a password manager to create and store strong credentials.

Prerequisites

  • Basic Linux terminal knowledge.
  • Understanding of authentication and account security.
  • Familiarity with hashing and wordlists.
  • A local lab containing test accounts or generated hashes.

Practice and Safety

Perform password auditing only on your own credentials, lab-generated hashes, or systems for which you have explicit written authorization. Do not attempt to access other people's accounts or use leaked credentials against real services.

Next Steps

After completing password attacks, continue to:

  • Exploitation — Learn to validate security weaknesses in controlled labs.
  • Web Security — Study application vulnerabilities and defensive controls.
  • Network Tools — Strengthen your understanding of network services and authentication.

Ugenz Academy — Learn • Build • Protect • Grow.

Keep learning. Keep building. Keep growing.

© 2026 Ugenz Academy