IT lexicon › Security › Herding attack

Herding attack

Security På svenska → Updated: 2026-10-14

An attack in which you publish a hash value first and later manufacture a message with any prefix you like that matches it.

John Kelsey and Tadayoshi Kohno described it in 2006 under the more marketable name of the Nostradamus attack. Picture someone publishing, in advance, the hash of their prediction of an election result. Once the result is known, they write the correct text and append a suffix that "herds" the hash chain to the value already published.

The tool is a diamond structure: a tree of intermediate states that collide in pairs and eventually meet at a single point. Building the tree costs more than an ordinary collision but far less than a preimage attack, and it can be done before the prefix is known. The attack applies to iterated Merkle–Damgård hashes, and shows that collision resistance alone is not a sufficient guarantee for commitment schemes.

← Back to the lexicon