Join our Newsletter — 33% off our NHI Course
Authentication, Authorisation & Trust

Mask Attack

← Back to Glossary
By NHI Mgmt Group Updated October 17, 2026 Domain: Authentication, Authorisation & Trust

A mask attack is a password guessing method that uses a known pattern to narrow the search space, such as a corporate naming convention or a suspected password structure. Attackers use it to speed offline cracking. Defenders reduce risk with unique passwords, MFA, breached-password checks, and blocking predictable password patterns.

How mask attacks work

A mask attack is a targeted password guessing method that narrows the candidate space by using a known pattern, such as fixed prefixes, character positions, or an expected password structure. That makes offline cracking faster than broad brute force because the attacker tests far fewer possibilities.

Its value to an attacker comes from prediction. If an organisation reuses familiar naming conventions, seasonal changes, keyboard patterns, or format rules, the mask becomes a shortcut to the most likely guesses. The technique is especially effective when password hashes are stolen and can be tested offline without account lockouts or rate limits.

Why mask attacks are dangerous

Mask attacks are dangerous because they turn password habits into a search strategy. Even when a password is not outright weak, predictable structure can make it far easier to recover if the underlying hash is exposed. The more uniform a workforce's password style becomes, the more useful pattern-based guessing becomes.

They also reduce the defender's margin for error. A password policy that allows complex but guessable patterns can still leave accounts exposed, especially when users rely on company names, years, seasons, repeated symbols, or adjacent keyboard sequences. When that happens, the attacker does not need to guess every password, only the most probable format.

How organisations reduce exposure

Exposure is reduced first by removing predictability. Unique passwords, breached-password screening, and strong password policy enforcement make pattern-based guessing less productive. MFA helps limit damage even if a password is recovered, because the attacker still needs a second factor to complete access.

Defenders should also look at where the password data lives and how it is protected. Strong hashing, salting, and hardened credential storage do not prevent a mask attack by themselves, but they raise the cost of offline cracking and give security teams more time to detect compromise. For broader identity controls around authentication strength and password policy, see NIST SP 800-63 Digital Identity Guidelines.

Detection and response after suspected cracking

Mask attacks are often invisible at the password store level because the cracking happens offline after hashes are stolen. That means defenders usually detect the problem indirectly, through unusual sign-ins, privilege changes, impossible travel, or evidence that a password pattern was reused in multiple accounts. If a breach is suspected, the review should focus on which hashes, accounts, and authentication records may have been exposed.

Post-incident response should treat the event as an identity compromise risk, not just a password issue. Resetting only the obvious account is often insufficient if the same pattern was reused elsewhere. Use NIST SP 800-53 Rev 5 Security and Privacy Controls to anchor authentication, logging, and account review controls, and consult MITRE ATT&CK Enterprise Matrix to map credential access and follow-on movement after a crack succeeds.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-63 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-63Digital Identity GuidelinesDefines phishing-resistant authentication and password strength guidance for account protection.
Recommendation — Adopt stronger authenticators and password controls that reduce pattern-based guessing.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementCovers how authenticators are created, stored, changed, and protected from misuse.
AU-6 — Audit Record Review, Analysis, and ReportingSupports detection of suspicious authentication activity and post-crack compromise review.
Recommendation — Harden authenticator lifecycle controls and reject weak or predictable password patterns. Review authentication logs for abnormal sign-ins and follow-on account abuse.

Practitioner Guidance

Why practitioners should care: Mask attacks exploit human predictability, so the real control problem is not password length alone, it is whether users can create structurally guessable secrets that survive offline cracking. Security teams should assume attackers will test patterns first, not random strings.

What to watch for: Focus on repeated password structures across users, evidence of breached-password reuse, and any sign that stored credentials were exposed and could be cracked offline. A narrow set of password patterns can create a disproportionate risk across many accounts.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 17, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org