FOR YOUR EYES ONLY // MODULE 08

ERROR DETECTION & RECOVERY

ESTIMATED: 25 MINUTES
OPERATIONAL BRIEF

Five error types can corrupt OTP messages. Knowing how to detect, locate, and recover from errors is essential to field operations.

8.1 Common Errors and Their Signatures

Errors in OTP operations fall into five distinct categories. Each has a characteristic signature that tells you what went wrong and how to recover.

Error Type 1: Page Mismatch

SYMPTOMDecryption produces total gibberish from the first digit.
CAUSEWrong pad page loaded.
RECOVERYTry adjacent pages. If none work, request retransmission via OOB channel with confirmation of page ID.

Error Type 2: Position Mismatch

SYMPTOMFirst N characters decode correctly, then gibberish.
CAUSEReceiver started at wrong position within the correct page. By coincidence, a short run of correct plaintext was produced.
RECOVERYTry nearby starting positions. A distinctive message header (known phrase) helps narrow the search quickly.

Error Type 3: Transcription Error in Ciphertext

SYMPTOMOne isolated character in the decoded plaintext is wrong. Surrounding characters are correct.
CAUSESingle digit error in the ciphertext (not the key).
RECOVERYThe error is in the digit string corresponding to that character. If the character is a 2-digit code, either digit could be wrong. A plausible English word context usually recovers the intent.

Error Type 4: Checkerboard Parsing Error

SYMPTOMCorrect characters followed by a cascade of wrong characters, often including nonsense letter combinations.
CAUSEAn escape digit was missed or a non-escape digit was treated as one.
RECOVERYTry decoding from the point of first wrong character, attempting both 1-digit and 2-digit interpretations at each step.
CRITICAL DISTINCTION

Errors 1–3 are isolated — they corrupt one position. Error 4 is cascading — it corrupts everything after the point of failure. This is the most dangerous error in hand operations.

Error Type 5: Off-by-One Key Position

SYMPTOMAll characters are wrong by a consistent mod-10 offset. (The difference between decoded digit and correct digit is the same value throughout.)
CAUSEKey stream was off by one position, or one key digit was skipped.
RECOVERYHard to detect without cribs. Use a known-plaintext start sequence to detect this class of error.

Error Propagation Analysis

The figure below illustrates the critical difference between mod-10 arithmetic errors (isolated, self-correcting) and checkerboard parsing errors (cascading, catastrophic).

-- TRAINING REFERENCE --
ERROR PROPAGATION ANALYSIS
MOD-10 VS CHECKERBOARD ERRORS — FIGURE 5
CASE A: MOD-10 ARITHMETIC ERROR
SCENARIO: ONE CIPHERTEXT DIGIT CORRUPTED IN TRANSMISSION
CIPHERTEXT 6 7 7 5 1ERROR 4 9 9 9 4
(correct is 6)
KEY DIGITS 4 4 7 1 9 3 8 2 0 1
PLAIN DIGITS 2 3 0 4 2 1 1 7 9 3
(correct is 7)
DECODED A B O A T / M
(correct is R)
Error is ISOLATED to one digit position.
A single ciphertext error corrupts one plaintext digit.
Adjacent characters are unaffected.
Context usually recovers intent (ABORT vs AB_T).
CONTAINED
Mod-10 errors do not propagate.
Each digit pair is fully independent.
No carry. No chain. No cascade.
CASE B: CHECKERBOARD PARSING ERROR
SCENARIO: ESCAPE DIGIT MISSED DURING DECODING
DIGIT STRING 3 8 0 0 1 7 9 2 1 7
CORRECT PARSE:
GROUPS 38 0 0 1 79 2 1
CHARS M E E T / A T
ERROR: OPERATOR MISSES ESCAPE DIGIT AT POSITION 1:
GROUPS 3MISSED 8 0 0 1 79 2 1
CHARS ? S E E T ? A T
3 treated as Row 1 (no match) → all subsequent chars misaligned
Error CASCADES through entire remaining message.
Every character after the missed escape is wrong.
Recovery requires finding the point of desync
and retrying both 1-digit and 2-digit interpretations.
CASCADING
Checkerboard parse errors propagate forever.
The escape mechanism is the vulnerability.
Strict L-to-R discipline is non-negotiable.
OPERATIONAL IMPLICATION
Mod-10 arithmetic errors: isolated, often self-correcting from context.
Checkerboard parsing errors: catastrophic, full message corruption.

The most critical skill to drill is escape-digit identification under fatigue and time pressure.
OTP-SC COURSE — FIGURE 5 — ERROR PROPAGATION — V1.0

8.2 Crib-Based Recovery

A crib is a known or expected piece of plaintext. If you expect the message to begin with READY or CONFIRM or a standard header, you can try to align your key stream to produce that output.

This is exactly what VENONA analysts did in reverse: they guessed probable plaintext, found the key segment, and used that segment to decode adjacent text.

VENONA LESSON

Crib-based analysis is both your recovery tool and your adversary's attack tool. The same technique that helps you fix errors can help an analyst break messages — if keys are reused.

For operational use: always begin messages with a short agreed-upon standard phrase. This is called a message indicator. It serves multiple purposes:

  1. Confirms correct key alignment
  2. Provides the receiver an immediate sanity check
  3. If decrypted correctly, implies the rest of the message is probably right

8.3 Checksum Conventions

Some systems add a simple arithmetic check to each message.

Method: Digit Sum Mod 10

  1. Compute the sum of all ciphertext digits, mod 10.
  2. Append the result as the first digit of the final group. (Or as a separate single-digit message appended to the end.)
  3. Receiver recomputes and compares.

This catches most single-digit transcription errors and all off-by-ten errors. It does not guarantee correctness.

CHECKSUM EXAMPLE
CIPHERTEXT 67756 49994 72437 42020 58293 6

Sum: 6+7+7+5+6+4+9+9+9+4+7+2+4+3+7+4+2+0+2+0+5+8+2+9+3+6 = 139

139 mod 10 = 9

Transmit check digit: 9

If receiver recomputes and gets 9, probability of undetected error is low.

8.4 Exercises

EXERCISE 8.1 — DAMAGED CIPHERTEXT RECOVERY

Given this damaged ciphertext (X = illegible digit) and key, recover as much plaintext as possible and identify the likely plaintext for the damaged position:

CIPHERTEXT 38X12 94708 315
KEY 21473 68250 469

Hint: look at the context of recovered characters to infer the damaged one.

EXERCISE 8.2 — CONTEXT-BASED RECOVERY

A decoded message reads:

MEVT/THE/TRAIN/AT/THR/E/OCLOCK

One character appears corrupted. What is the likely intended message? Which digit position in the ciphertext is the error most likely in?

EXERCISE 8.3 — CHECKSUM COMPUTATION

Compute the check digit for the following ciphertext digit string:

48230 19762 48310 72950

Interactive: Error Challenge

CHALLENGE: FIND THE ERRORS

The ciphertext below was encrypted from known plaintext. Two digits were corrupted during transmission. Click on the digits you believe are wrong.