How visible is a voice note hidden in a photo? Measuring Stecho before it ships
Stecho's first engine was caught by a test from 2002, and its second by its own JPEG encoder. What I measured, what the simulations missed, and what I changed.
Stecho hides a voice note in a photo. Encryption keeps the content unreadable; concealment is whether someone holding the photo can tell it carries anything at all. I measured that half before freezing the format. The first engine failed.
How to read the numbers
Each test compares a photo with its carrier: the same photo, once without a message and once with one. AUC is the chance a detector ranks a random carrier above a random clean photo: 0.5 is a coin toss, 1.0 finds every carrier. The detectors: an untrained calibration test from 2002, a classifier trained on my pairs (DCTR features), and published pretrained neural networks. The photos: five of mine from an iPhone 15 Pro (five scenes, which is small), 102 wallpaper crops and 48 synthetic images.
Update, 9 November: the app’s own photos
From 7 to 9 November I ran the detectors on photos from the app’s own engine, each scored against Apple’s own JPEG of the same picture. The message hid about as the simulation said; the encoder didn’t. Stecho’s own JPEG was told from Apple’s at 0.76–0.83 by the trained classifier and at 0.77–0.87 by the untrained test, with a message or without one. The simulation used one encoder for both sides, so it could not see that.
Decision: Stecho writes the message into Apple’s own JPEG of the photo (with no message, the file is Apple’s byte for byte) and computes the unrounded values only to estimate the rounding. The beta has done this since build 1.0 (4). Measured on my own photos (8 from an iPhone 15 Pro, then 59 from two iPhones at the app’s 3024 px), trained classifier · untrained test, lowest to highest across the sets:
- Hidden: 0.49–0.54 · 0.52–0.67.
- Balanced, the default: 0.52–0.55 · 0.50–0.69.
- Long: 0.59–0.71 · 0.98–1.00. Caught; the app says so before sending.
On the 59 photos, with the classifier trained on them: 0.52 through Hidden, 0.55 at Balanced, 0.68 at Long; the untrained test 0.53–0.57 through Balanced and 0.98 at Long. My photos alone are a modest sample: near chance on them is not undetectable, and a detector trained on many people’s phone photos may do better. On 21 November I measured 120 of my camera photos: Balanced read 0.55–0.57 · 0.60–0.67, so the 59-photo figure did not hold. Hidden stayed at 0.53 · 0.55–0.57. Smooth images are much easier: on wallpapers the untrained test scored 0.98 at Balanced. The story of that change. The rest of this entry is the record of 4 November; its simulated v2 figures are superseded by the ones above.
The first engine: caught by a test from 2002
- Calibration test, 2002, untrained 1.000 · 0.962
- DCTR features, trained classifier 0.937 · 0.994
- Pretrained CNN, as downloaded* 0.727 · 0.726
- Pretrained CNN, retrained head* 0.687 · 0.972
v1 stealth carriers as the app would send them, full photo, quality 0.85, 2048 px. Measured on carriers from the real engine, not sent. Each value is real photos · wallpaper crops. *The best of four pretrained networks; the retrained head is a simple classifier trained on my pairs over the network’s frozen features.
Stecho’s first layer filled the whole photo every time, so that length would not show. The untrained test separated every v1 carrier made from a real photo (AUC 1.000); the trained classifier scored 0.937; a photo filled to a tenth, about three seconds of voice, still scored 0.84. The cause was the rate.
Decision: v2 replaces v1 before release. A message uses only as much of the photo as it needs, from a fixed ladder of rates, and only non-zero coefficients carry bits.
The encoder that knows its own rounding
Stecho re-encodes every photo itself, so it knows each coefficient before rounding. A 3 that was really 3.48 costs almost nothing to move to 4. SI-UNIWARD uses that; plain J-UNIWARD can’t. I simulated v2 with both, with my own encoder and an ideal model of the embedding.
The untrained calibration test against the length of the message, v2 simulated, real photos, quality 0.85, 2048 px. The seconds are for the median photo. The labels under three rates are the planned ceilings.
A 15-second note at 12 kbps scored 0.871 with J-UNIWARD and 0.541 with SI-UNIWARD. Held to AUC 0.60, SI carries four times the seconds.
Decision: v2 uses SI-UNIWARD. How that encoder came out.
Three ceilings
Voice needs room and room shows, so the trade goes to the sender (simulated; the measured figures are in the update above):
- Hidden, up to 0.1 bits per non-zero coefficient: 0.507, a coin toss.
- Balanced, up to 0.2, the default: every detector at 0.583 or lower on real photos. On a median photo at 3024 px, which the extension can afford, about 34 seconds at 12 kbps.
- Long, up to 0.4: the untrained test reached 0.929. A published test can tell the photo carries something; with a password the content stays encrypted.
Smooth images are easier to read: on wallpaper crops SI at 0.2 already scored 0.712.
Smaller levers
- J-UNIWARD, 12 kbps 4.9 s
- SI-UNIWARD, 12 kbps 19.7 s
- SI-UNIWARD, 6 kbps 37.0 s
- SI-UNIWARD, 12 kbps, over 3 photos 54.3 s
Seconds of voice that fit while every detector stays at AUC 0.60 or below, v2 simulated, median real photo, quality 0.85, 2048 px. Three photos: the evidence of all three pooled. The dashed rule marks 30 s.
- Quality 0.85, not 0.75: 19 % more non-zero coefficients on real photos and a lower score at the same rate (0.553 against 0.658).
- A bigger carrier: more seconds at about the same score (13 crops, ±0.06).
- 6 kbps: nearly twice the seconds, in narrowband sound.
- One note over three photos: nearly three times the seconds, but an observer who sees all three pools the evidence.
- 2048 × 1536 21.7 s
- 3024 × 2272 37.7 s
- 4032 × 3024 79.2 scautious 62 s
The same 13 crops of real photos at three carrier sizes, SI-UNIWARD, 12 kbps, every detector at AUC 0.60 or below. The 4032 px figure rests on a low-side reading; with the rate of the same photos at 2048 px it would be about 62 s.
Neural networks
Four published pretrained networks (ALASKA2’s winners and Aletheia’s), as downloaded and with a head retrained on my pairs: none beat the best classical detector. On v1 the best scored 0.727 against the 2002 test’s 1.000; on v2 with SI at 0.2, at most 0.541 overall and 0.525 on real photos. At 0.4 a retrained MixNet-S beat the trained classifier (0.664 against 0.599), one more reason 0.4 is not the default. They were trained on other images; a network trained for exactly this would do better.
What this does not show
- The simulation missed the encoder. It measured the message well and the file not at all; the update above has the app’s own photos.
- The sets are small, and someone with more phone photos can train a better detector.
- Detection is not decryption, but a flag can draw attention: against a serious adversary, rely on the encryption.
Next: more phone photos, a network trained on Stecho’s own photos, and a listening test of the bitrates.