ThreeLevelCollision
Stub, hash, and homograph collisions are different threats
Mechanism
Distinguishes three collision classes and assigns specific defenses: (1) Stub Collision (Namespace exhaustion) -> Defended by full-hash verification. (2) Hash Collision (Cryptographic failure) -> Defended by SHA-256 entropy. (3) Homograph Collision (Semantic spoofing) -> Defended by Social Uptake and Reputation. A collision that cannot be resolved at its own level applies FailClosed.
Invariants
- L1 Defense: Stub match is NOT verification. Full hash check is mandatory.
- L3 Defense: Equivalence is decided by Content, not Handle. A 'spoofed' pattern is simply a different pattern with zero reputation.
Preconditions
- Sema Hashing Algorithm (SHA-256) is secure
Postconditions
- Appropriate verification logic applied
- Threat level identified
Failure modes
- Stub Confusion: Relying on 4-char stub (#a1b2) for security instead of convenience.
- Homograph Attack: Malicious actor mints a pattern with a trusted Handle but malicious Definition (social engineering).
- Pre-image Attack: Theoretical break of SHA-256 (renders Level 2 defense void).
Where this came from
—
Builds on
- Equivalence references
- FailClosed references
Identity
- Ref:
ThreeLevelCollision#11d6 - Hash: sema:ThreeLevelCollision#mh:SHA-256:11d62af6f35377784694f7fc381b41369cd99da2b7480c3fe33ef8132a77f88f
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository