Section 5.13

Forgery probability

Definition

Forgery probability is the probability that an attacker without the secret key gets a receiver to accept a message that no key holder authenticated. The term applies to a message authentication code §5.7 (MAC), which computes a short tag from a secret key and a message, and to a digital signature §5.14, computed with a private key and checked with a public key. The number depends on the attack assumed: how many genuine tags or signatures the attacker obtains, how many forged attempts the receiver checks, and the attacker’s computing power.

Where it fits

Main entry: Message authentication code (MAC) (§5.7).

The Message authentication code entry defines a forgery through the chosen-message attack: the attacker may obtain the genuine tag of any message it chooses, and wins if the receiver accepts a tag for a message the attacker never asked about. A genuine message sent again, a replay attack §1.26, is therefore not a forgery. That entry derives the bound q/2tq / 2^t for ideal tags, which look like independent random values to anyone without the key; tt is the number of tag bits compared and qq the number of forged attempts checked under one key. For a real MAC it adds a term that includes the chance of finding the key. Tag truncation §5.12, keeping only part of the tag, lowers tt.

A digital signature is checked with a public key, so an attacker tests candidate signatures on its own computer, unseen and uncounted. Its forgery probability is limited by the attacker’s computation and the difficulty of the scheme’s mathematical problem, not by a count of attempts.

Questions answered

When is q/2^t a useful approximation for guessing a t-bit tag?

For qq guessed attempts against a tag of tt bits, q/2tq / 2^t is a useful approximation of the chance that at least one attempt is accepted when guessing is the attacker’s best attack and qq is small compared with 2t2^t. A tag is the short value that a MAC (message authentication code) computes from a secret key and a message; qq counts the forged message-and-tag pairs that the receiver checks under one key. Four conditions must hold.

For example, a 32-bit tag with at most 2122^{12} failed checks per key gives 212/232=2−202^{12} / 2^{32} = 2^{-20}, about one in a million. NIST Special Publication 800-107 uses this example for HMAC §5.8 (hash-based message authentication code) [310].

The expression does not describe an attacker who need not guess: one who holds or can compute the key, replaces the key that the receiver trusts, learns the tag through a side channel §1.29 such as timing or power use, or reaches code that acts without verifying. Nor does it apply to digital signatures, whose guesses are checked offline with the public key.

Related entries: Tag truncation (§5.12), Entropy and min-entropy (§5.26), Message authentication code (MAC) (§5.7), Digital signature (§5.14), Constant-time comparison (§4.33), Side channel (§1.29), Pseudorandom function (PRF) (§15.1), Union bound (§15.42). Further reading: [66, 310].