CYBER LIBRARY
Explore the bootcamp
Security essentialsBeginner

Brute-force attacks

Try candidates until a valid secret or answer is found.

3 min readUpdated 12 Oct 20267 connections
Markdown

The idea

Brute force searches a set of possibilities rather than relying on a clever shortcut. Against accounts, rate limits, monitoring, and authentication design influence whether repeated attempts are practical. Against a stolen password verifier, an attacker may test guesses offline without contacting the service. Password length, unpredictability, and suitable password hashing matter in that case. The feasibility of exhaustive cryptographic key search depends on the key space and attacker resources.

In practice

An attacker tests common passwords against a stolen password database. The service’s online lockout policy cannot directly stop those offline guesses.

A common misunderstanding

A fast general-purpose hash is not automatically a suitable password-storage function. Password hashing is designed to make guessing more expensive.

Check your understanding

Why do online and offline guessing require different defenses?

Think it through: Offline guessing bypasses the application’s request controls, so the stored verifier’s design becomes especially important.

Count the guesses an attacker can actually make

A fictional membership service faces repeated password attempts. Online guesses pass through the service, so rate limits, authentication design, monitoring, and account recovery behavior affect feasibility. If password verifiers are stolen, guesses can happen elsewhere without sending requests to the service. The same password can therefore face very different testing conditions.

The candidate set matters as much as the nominal character space. People often choose predictable words or patterns, so an attacker need not enumerate every possible string in order. A password's apparent complexity does not guarantee unpredictability. Password managers and supported authentication alternatives can help users avoid relying on memorable patterns.

Stored verifiers need a password-specific design. A fast general hash allows many candidate checks, while a suitable password-hashing scheme deliberately makes each check more costly under its parameters. Unique salts also prevent treating identical passwords as identical stored records under the intended scheme. These controls do not make weak passwords impossible to guess, but change the economics.

Compare two defensive plans

For a paper exercise, describe an online login endpoint and a stolen dummy verifier dataset. Identify which defenses still apply in each case. Explain why an account lockout cannot directly limit offline computation and why password hashing does not replace online abuse controls.

Use synthetic passwords only in an isolated learning environment. When reporting a real exposure, avoid testing real users' credentials against unrelated services. A useful assessment states the attack conditions and prioritizes improvements to storage, authentication, monitoring, and recovery as appropriate. The goal is to make unauthorized guessing impractical while keeping legitimate users able to regain access safely.

Keep exploring

GO TO THE SOURCE

References & further reading

Original explanations, with primary references for deeper study.

NIST: Cryptographic Standards and GuidelinesOWASP: Password Storage
EXPLORE THIS IDEA’S CONNECTIONS

A small part of a bigger picture.

6 notes · 8 connections
100%
Brute-force attacks · depth 1
Drag to pan · Pinch or use +/− to zoom · Click to preview · Double-click to read
Browse notes as a list (6)
FOLLOW ANOTHER THREADExplore the rest of the library
Start with a concept. Follow its connections.
Detection & responseAbuse Elevation Control MechanismElevation-control abuse bypasses or misuses mechanisms governing privileged execution.Making change happenAcceptance criteriaDefine observable conditions for a deliverable to be accepted.Security essentialsAccess controlUnderstand subjects, resources, permissions, and enforcement through a shared-drive example, including how access changes over time.Detection & responseAccess Token ManipulationAccess token manipulation changes or adopts operating-system security contexts.Risk & resilienceAccount Access RemovalAccount access removal disrupts legitimate users by changing, deleting, or restricting their identities.Evidence & investigationAccount DiscoveryAccount discovery enumerates identities available in a system or environment.Detection & responseAccount ManipulationAccount manipulation changes identity settings to preserve or expand access.Adversarial thinkingAcquire InfrastructureInfrastructure acquisition obtains domains, servers, or other resources used to support operations.Adversarial thinkingActive ScanningActive scanning probes target infrastructure to learn reachable services or weaknesses.Security essentialsAdversary in the middleAn intermediary may observe or alter a communication path.Security essentialsAESA symmetric block cipher whose safe use depends on its mode and implementation.Making change happenAgile deliveryUse short feedback cycles to adapt toward a useful outcome.