Skip to content
Trapdoor·Lab
Exhibit 5 of 5

Venona

Soviet code with a one-time pad

A one-time pad gives perfect secrecy — provided every page exists only once.

Made
1942, USSR — some pages of the key pads printed twice
Broken
1943–1946, Arlington Hall — duplicate pages (Hallock), first readings (Gardner)
How it works
words became digit groups from a codebook, then key digits from a pad were added digit by digit without carry
Today
XOR and the one-time pad
Sources
1Object

Pad page and codebook

A Soviet message had two layers. First the code clerk turned words and common phrases into four-digit numbers from a codebook. Then he added key digits from a one-time pad to them, digit by digit (Benson, Warner 1996, p. xv).

The addition has no carry: 8 + 6 = 14, and the ciphertext keeps 4 (Smithsonian, after Haynes and Klehr 1999). Each digit counts on its own, modulo 10. This is not XOR on bits but ordinary addition that keeps the last digit. The string of code digits was written in groups of five, so words run from one group into the next.

A pad page had 60 five-digit groups and was used from the upper left corner (Benson, Warner 1996, p. xv). The page number was more or less concealed in the message, and the way it was written changed over time. The replica shows one variant: the first group of the page is the indicator, sent in the clear before the ciphertext, and the key runs from group 2.

A one-time pad gives perfect secrecy when its digits are random and every page exists only once. Behind the page in the replica lies a second sheet: the same page in another station’s pad. Such a duplicate is the error the break started from.

Build a message from the words of the book and watch each layer: the code in fours, the same digits in fives, the key and the ciphertext. “New page” draws another key: the code stays the same, the ciphertext changes. The entries of the book are invented for the replica — the sources give no Soviet code groups.

Pad page and codebook

Message 5 / 10

COURIER DELIVERS REPORT TOMORROW MORNING

Codebook

invented

Entries invented for the replica — the sources give no Soviet code groups. Tap an entry to add it to the message.

The message has 5 words, that is 20 digits of code. The key takes groups 2–5 of the page, and the indicator 48163 goes in the clear before the ciphertext.

indicator — sent in the clear481635240531954816508060925353846207779849292153243155845454407123033068415485655168562044906877481201795953231381729482698302422818742427493878496366191035734216484995971138505819470517437272127559094088390327021465537961422903680216119791188549976558657392409837101659662745153606669229990862515710
  • Struck-out groups: key used up by the message, from the upper left corner.
  • Sheet behind: the same page in another station’s pad — the trace of the 1942 error.
Code (4 digits each) 7949 4250 1866 4080 8718
Groups (of 5) 79494 25018 66408 08718
Key from the pad (from group 2) 52405 31954 81650 80609
Ciphertext (indicator first) 48163 21899 56962 47058 88317

Digit 1: 7 + 5 = 12 → 2: the carry is dropped.

simplificationWords only from the book, with no spell table: the sources do not say how spelling was marked.

simplificationThe digits stay digits; historically they were turned into letters for the telegram.

simplificationGroup 1 is the indicator and the key runs from group 2 — a convention of the replica. The indicator changed over time.

2Break it

Depth and dragging a word

Two messages encrypted with the same page are a depth. Subtract them digit by digit: (code₁ + key) − (code₂ + key) = code₁ − code₂ (code₁, code₂ — the codes of the two messages). The key vanishes and the difference of two codes remains. This principle is certain, but the sources read do not describe how exactly Arlington Hall stripped the key.

You do it in four steps. The first is finding the depth: in this variant of the indicator the first group goes in the clear, so two messages with the same first group share a page. The second is subtracting without borrowing: 3 − 8 gives 5, because 13 − 8 = 5.

The third step is dragging a word. You lay the code of a word from the book over one of the five fields of the difference and subtract the field’s digits from it. If the result is a code in the book, that word stands in the second message, and yours in the first. The fourth step is the key: ciphertext minus the code you read gives the digits of a page you did not know.

Every hit is unambiguous. The book has 26 entries, all 650 differences of ordered pairs of entries are different, and none is 0000. A word therefore hits only in the field where it really stands. The page draws six messages from the template “who, will do, what, when, at what time”: the pair in depth differs in every field, and the indicators of the other four are all different.

In the replica you know the codebook from the start. Historically, code groups remained once the key was stripped, and Meredith Gardner rebuilt the KGB codebook for years; many groups were never recovered (Benson 2001, p. 27).

Depth and dragging a word

You are on the attacker’s side, like an analyst at Arlington Hall. You have six messages from different stations and do not know their key pages.

Messages intercepted. Look for two with the same first group.

  1. Find the depth

    simplificationHallock found the duplicate pages differently in 1943 — by analysing trade messages.

    In this variant of the indicator, the first group of a message is a group of the key page, sent in the clear. Select two messages with the same first group.

3Context

What we know about Venona

“Venona” is the American cover name of the project, the last in a series of cover names, not the name of a Soviet cipher (NSA Almanac, p. 1).

The US Army had collected copies of Soviet messages from the cable companies since 1939. Serious work began on 1 February 1943, when Gene Grabeel started it at Arlington Hall in Virginia (NSA Almanac, p. 1; Benson 2001, p. 7). The messages belonged to five systems: trade (Amtorg, Lend-Lease purchases), diplomatic, KGB, GRU and naval intelligence (Benson, Warner 1996, pp. xiii–xiv).

The key pages were duplicated by the manufacturer, not by the code clerks. Clerks at different stations used separate pads that held the same pages:

For a few months in early 1942, a time of great strain on the Soviet regime, the KGB’s cryptographic center in the Soviet Union for some unknown reason printed duplicate copies of the “key” on more than 35,000 pages of additive and then assembled and bound these in one-time pads.

C. J. Phillips, What Made Venona Possible?, in: R. L. Benson, M. Warner (eds.), VENONA, 1996, p. xv · cia.gov (PDF, scan)

The duplicates appeared in messages from mid-1942, mostly in 1942–1944, and on one circuit as late as June 1948 (ibid.). The sources give different causes for the duplication, so we do not state one as fact.

In autumn 1943 Lt Richard Hallock showed that duplicate pages were used in trade messages, although a single repetition was thought not to be enough for a break:

Despite the opinion that a single duplication was insufficient for solution, Hallock and his colleagues continued to attack the Trade messages and made considerable progress in understanding the cryptographic basis of the diplomatic systems.

C. J. Phillips, What Made Venona Possible?, in: R. L. Benson, M. Warner (eds.), VENONA, 1996, p. xv · cia.gov (PDF, scan)

On 1 May 1944 the KGB changed the indicator of the key’s start. In November 1944 a team of Cecil Phillips, Genevieve Feinstein and Lucille Campbell solved this indicator and found hundreds of KGB key pages duplicated in trade messages (Benson, Warner 1996, pp. xiv, xvi; Benson 2001, p. 7).

In 1946 Meredith Gardner began to rebuild the KGB codebook, and late that year he solved the spell table for English words, which opened up names (Benson, Warner 1996, p. xxi). The first fragment of a KGB message was read on 31 July 1946, and in December 1946 a message with a list of Manhattan Project scientists (Benson 2001, pp. 7, 10).

About 3,000 messages from 1940–1948 were partly read. The program closed on 1 October 1980, and the translations were declassified in 1995–1996 (NSA Almanac, pp. 2–3; Benson 2001, pp. 14–15).

The breakthrough was analytic. A burnt codebook captured at the consulate in Petsamo in 1941 was connected with Venona only in 1953 (Benson 2001, pp. 16, 27–28).

4Today

The same mistake today

Then

Some key pages were printed twice. By subtracting the digits of two messages on the same page, an analyst removed the key.

Today

Two-time pad: XOR of two ciphertexts under the same key removes the key and leaves the XOR of the plaintexts. Dragging a common word (crib dragging) reads both messages.

See it in the station: XOR and the one-time pad →