Silent Echo non-standard DTMF defeats stock tone decoders

forensics
flag L3m0n{3bd33cb51e2a17349a261f84ae5fb0de}

signal.wav - 8000 Hz, 16-bit mono PCM, 27.24 seconds. The brief says a wiretap caught "a steady burst of modulated carrier tones," and that "standard automated demodulators, FSK decoders, and tone analyzers all fail." That last sentence is the whole challenge, if you take it at face value: if FSK fails, the signal was never FSK to begin with.

Hint

At any given instant, how many distinct frequencies are actually lit up in the spectrogram?

Reading the timing first, then the spectrum

The file splits into ~119 uniform bursts: 1169 samples of tone (146 ms) followed by a 630-sample gap (79 ms) - a dead-constant 224.9 ms symbol period for the entire file. The timing itself carries no information; everything is in the spectrum.

A global FFT comes back smeared, which is the classic sign of tones that change between symbols. The spectrogram is more honest about it: several near-parallel bright lines jumping between a handful of discrete levels - and critically, more than one line is lit at any given instant.

Insight

Not one tone per symbol - two, simultaneously. FFT-ing each symbol individually (Hann window, 32k zero-pad) and pulling the peaks shows every symbol has exactly two components: a "high" tone from {1142.1, 1269.0, 1409.9} (3 values, ~100% of peak magnitude) and a "low" tone from {629.9, 702.9, 784.9, 874.0} (4 values, ~80% of peak magnitude). 3 x 4 = 12 distinct symbol combinations - a telephone keypad.

Pitfall

It isn't real DTMF, and that's deliberate. Standard DTMF uses 697/770/852/941 Hz rows against 1209/1336/1477 Hz columns. These frequencies are shifted and re-spaced onto their own log-frequency ladder, so any off-the-shelf DTMF decoder locking onto the standard bins finds nothing at all - exactly the "dialect engineered to defeat conventional eavesdropping equipment" the brief warns about. Build the keypad mapping from the frequencies actually observed, not from a DTMF reference table.

Building the keypad and decoding

output
        1142.1  1269.0  1409.9
 629.9     1       2       3
 702.9     4       5       6
 784.9     7       8       9
 874.0     *       0       #

Classifying every symbol's two peaks against this table gives:

output
*076051109048110123051098100051051099098053049101050097049055051052057097050054049102056052097101053102098048100101125#

The leading * and trailing # are start/stop markers - a free sanity check, since a wrong row/column assignment scrambles the framing too and you simply wouldn't see clean markers at both ends. Strip them: the remaining 117 digits are 39 groups of three decimal values, straight decimal ASCII:

output
076 051 109 048 110 123 ...  ->  L  3  m  0  n  {  ...
output
L3m0n{3bd33cb51e2a17349a261f84ae5fb0de}

Note

Things that were worth ruling out but weren't it: the usual stego passes (strings, exiftool, LSB, trailing data after the audio, treating the spectrogram as an image to hide something in) all come back clean - the file really is plain PCM with the whole message in the modulation itself. And since symbol timing is perfectly uniform throughout, any theory based on duration modulation is dead on arrival; don't spend time there.

Pitfall

The first per-symbol classifier picked "the element furthest from any high frequency" as the low tone instead of simply taking the second- strongest peak - a plausible-sounding heuristic that quietly mapped all 119 symbols onto the same keypad column and produced uniform garbage. The fix: classify strictly by magnitude (strongest peak = high tone, second-strongest = low tone) and assert exactly one hit in each group before trusting the result.