40 stałych bitów w 128-bitowym IV: wspólna preambuła COMSEC na trzech modemach HF

i56578-swl.blogspot.com 1 dzień temu

This post compares the COMSEC preamble of a STANAG-4285 link on 4147.4 kHz with another HF recordings that show the same structure.

The first transmission, intercepted on 4147.4 kHz/USB, was kindly sent to me by my friend Kosmod. It consists of bursts modulated with STANAG-4285 in 600 bps mode with short interleaver. The duration and series of the bursts in Figure 1 point to an ARQ strategy (Automatic Repeat reQuest): the longer bursts carry messages, each followed by short bursts that act as ACKs (acknowledgements).
As shown in Figure 1, each burst begins with 4 unmodulated tones lasting ~90 ms, separated by asymmetric frequency spacings of 700 Hz, 500 Hz and 900 Hz. This variant is not specified in the STANAG-4285 standard. The 4 tones form an all-in-one synchronization preamble: the spacing pattern appears to identify the network, while the tones besides work as a channel probe and a CW sync probe.

Figure 1: Spectrogram of the 4147.4 kHz/USB recording (WebSDR, 25 Sep 2023). The advanced panel shows the series of long message bursts and short ACK bursts; the lower panel is simply a zoom on the start of a burst, showing the 4 first unmodulated tones.

The message bursts do not all have the same duration. After demodulation, each 1 carries 1 or more encrypted messages. The structure is the 1 typical of protected HF links: a COMSEC preamble (the block of data that prepares the receiver to decrypt the message) followed by the encrypted message itself. In greater detail:

- Frame Sync: 64 bits (8 bytes), a fixed pattern that marks the start of the COMSEC preamble: 0001100001000001110001011110010110111011010010010111110101011001
- Initialization Vector (IV): 128 bits (16 bytes), repeated 5 times (640 bits in total). An IV is simply a value sent along with an encrypted message so that the receiver can decrypt it; it is usually expected to change from 1 transmission to the next.
- Reversals: 64 bits of alternating series (0101...).
- Encrypted payload: ciphertext message, most likely followed by an encrypted EOM/postamble.
The Frame Sync, in hexadecimal, is 0x1841C5E5BB497D59. It contains precisely 32 ones and 32 zeros. This is only an observation: a perfectly balanced series is not uncommon among random 64-bit values, so it does not by itself prove that the series was chosen for good correlation properties.

Figures 2, 3 and 4 clearly illustrate the structure of the COMSEC preamble.

Figure 2: Demodulated bitstream displayed with a 128-bit period. The 64-bit Frame Sync is located with the Find function (zero bit errors), marking the start of the COMSEC preamble.

Figure 3: The same bitstream with a 128-bit period: the Initialization Vector (128 bits) is repeated 5 times (640 bits in total), appearing as identical vertically aligned rows.
Figure 4: The Reversals field, 64 bits of alternating 0101... sequence, located with Find, immediately before the encrypted payload.

The most striking and interesting feature is the structure of the Initialization Vectors visible in Figure 3. As can be seen, the 2 IVs, taken from 2 different bursts, have 40 bits (5 bytes) in common, in precisely the same positions. This is rather different for IVs, which are usually expected to disagree from 1 transmission to the next.
To verify this different structure, I synchronized the full bitstream of the transmission on the Frame Sync value and limited the output to 192 bits, i.e. 64 sync bits plus the first instance of each IV. The consequence is shown in Figure 5 and clearly reveals the structure utilized for the IVs:

bit 0-63: 64 variable bits
bit 64-103: 40 fixed bits 0000000001000000000000010000100000001001 = 0x0040010809
bit 104-127: 24 variable bits

The fixed block is contiguous and begins and ends on byte boundaries, so the layout is 8 bytes + 5 bytes + 3 bytes.

Figure 5: Bitstream synchronized on the Frame Sync and limited to 192 bits (64 sync bits plus the first instance of each IV), showing the 40 fixed bits within the IV structure.

An IV with 40 fixed bits and 88 variable bits is not a purely random IV, but could be a structured field. The fixed block starts and ends on byte boundaries, which makes a field-based structure plausible. Moreover, only 5 of its 40 bits are ones (0x00 0x40 0x01 0x08 0x09), which looks more like a set of flags or control fields than random data. If the 40 bits were just padding, 1 would not necessarily anticipate them to be transmitted; if they are transmitted, they may carry information. An alternate explanation cannot be ruled out, for example an 88-bit nonce completed by a fixed part.

I remembered that I had already come across a akin COMSEC preamble structure with a 128-bit IV. Browsing my blog, I found a transmission from the Tunisian MFA intercepted on 29 July 2026 and analyzed in a later post on 3 August 2026 [1]. The similarities are remarkable:

- In that case the HF modem was MS-110A, but with a non-standard start: 4 unmodulated tones with the same asymmetric spacing (700/500/900 Hz) as the first tones of the STANAG-4285 transmission analyzed here.
- Identical bit-by-bit structure of the COMSEC preamble, i.e. the same 64-bit Frame Sync, 128-bit IVs, and a 64-bit run of 01 reversals.

I repeated the same analysis procedure as before, but this time on the full bitstream of the Tunisian MFA transmission, i.e. synchronizing on the Frame Sync plus the first instance of each IV (192 bits in total). Comparing the 2 analyses (see Figure 6), the fields that make up the IVs are perfectly matching.

Figure 6: Comparison of the IV structure in the STANAG-4285 transmission (top) and the Tunisian MFA MS-110A transmission (bottom), both synchronized on the Frame Sync and limited to 192 bits.

I applied the same procedure (synchronizing the bitstreams on the Frame Sync sequence) to another recordings that besides carry 128-bit IVs repeated 5 times [2]. The results show 5 transmissions in full (three of them shown in Figure 7) on different HF modems (MS-110A, STANAG-4539 and STANAG-4285) that share the same COMSEC preamble layout and the same IV structure, with a block of 40 fixed bits inside a 128-bit IV. The only exception is the STANAG-4539 recording, in which 2 of the 40 bits disagree (Figure 7). Note that STANAG-4539 is the NATO equivalent of MIL-STD-188-110B Appendix C, which is why the corresponding recording file is named "188-110B_APP-C".

Figure 7: IV structure in recordings made on different HF modems, synchronized on the Frame Sync and limited to 192 bits: MS-110A (6.670 MHz, 2 Oct 2017), STANAG-4539 (equivalent to MIL-STD-188-110B Appendix C; 7.9985 MHz, 9 Mar 2018) and STANAG-4285 (4.015 MHz, 10 Jan 2020). The 40 fixed bits are the same in all three, but for 2 bits in the STANAG-4539 recording.

This points to a common origin, specified as the same encryption equipment or the same protocol family. It does not by itself show that the links belong to the same user or network.
Open questions: what the 40 fixed bits encode, whether the variable parts of the IV follow a pattern (for example a counter), and which cipher is used. A 128-bit IV is consistent with a 128-bit block cipher specified as AES, but this remains a hypothesis.

Downloads
Signal recording: https://disk.yandex.com/d/obtvTfU88z8zJQ

References
[1] https://i56578-swl.blogspot.com/2026/08/tunisian-mfa-hf-link-128-bit-aes.html
[2] ttps://i56578-swl.blogspot.com/p/initialization-vectors.html

Idź do oryginalnego materiału