
Photo: Yu. Samoilov (BY)
Forensics & Machine LearningSteganography and Steganalysis: Hiding Data, Finding It, and Proving Provenance
Encryption protects the contents of a message. Steganography protects the fact that a message exists. The distinction sounds academic until you consider the situations where possessing ciphertext is itself the incriminating thing — crossing a border, working under a regime that treats encrypted traffic as evidence of intent, or operating anywhere the question is not what you said but whether you communicated at all.
My earlier research was on the embedding side of this problem. What follows is the working picture of the field: how data is hidden in images, how it is found, and why the detection side has become the more interesting half.
This piece relates to work published in Springer Lecture Notes in Electrical Engineering on adaptive pixel value differencing with pseudorandom pixel selection.
The basic idea, and why the naive version fails
A digital image is a grid of pixel values. Small changes to those values are invisible to a human eye — shifting a blue channel from 137 to 136 produces no perceptible difference. If you can hide information in the least significant bits of enough pixels, you can carry a payload inside an ordinary-looking photograph.
The naive implementation replaces the least significant bit of every pixel, sequentially, from the top-left corner. It works, it is easy to implement, and it is trivially detectable. The reason is that natural images have statistical structure that this destroys.
In an untouched photograph, pixel values are not uniformly distributed at the bit level. Adjacent values pair up in characteristic ways determined by sensor noise, lighting, and compression history. Sequential LSB replacement flattens those pairings into an unnaturally even distribution. Chi-square tests and sample-pair analysis detect this reliably, and they detect it in the region where embedding occurred — which also reveals the payload length.
What better embedding actually optimises for
The problem is not hiding data. It is hiding data without leaving statistical traces. Every serious technique is an attempt to manage that trade-off, and they converge on two ideas.
Embed where the image is already noisy
A smooth region — a clear sky, a plain wall — has low local variance, and any modification stands out against that uniformity. A textured region has high variance already, and small changes disappear into it.
Pixel value differencing approaches use this directly. The difference between adjacent pixels indicates local activity: small differences mean a smooth area, large differences mean an edge or texture. The embedding capacity is then set adaptively, hiding more bits where the image can absorb them and fewer where it cannot. This yields both higher capacity and better statistical concealment than a uniform approach, because it stops treating a blank sky and a patch of foliage as equivalent.
Do not embed in a predictable order
Sequential embedding produces a detectable boundary between modified and unmodified regions. Distributing the payload pseudorandomly across the image, driven by a key, removes that boundary. It also means an analyst who suspects steganography cannot simply read the payload out even if they detect its presence — without the key, they do not know the order.
Combining the two — adaptive capacity based on local content, with pseudorandom placement — addresses the two most exploitable weaknesses of the basic scheme at once. That combination was the substance of my contribution to this area.
Steganalysis, and why detection now wins
The detection side has advanced faster than the embedding side, and it is worth understanding why.
Early steganalysis was targeted: you hypothesised a specific embedding method and tested for its specific signature. Effective when correct, useless when wrong.
Modern steganalysis is largely blind and learned. Rich feature models extract thousands of statistical descriptors of local pixel relationships, and a classifier is trained on large sets of clean and embedded images. Convolutional networks designed for this task — with first layers constrained to act as high-pass filters, suppressing image content and amplifying the noise residual where embedding artefacts live — have pushed detection accuracy substantially higher.
The structural asymmetry is this: the embedder must not disturb any statistical property the analyst might measure. The analyst needs to find only one. As machine learning made it cheap to search an enormous feature space, that asymmetry moved decisively in the analyst’s favour.
Which means the honest assessment is that against a well-resourced analyst with modern tools, most practical image steganography is detectable. The realistic goal is not perfect concealment. It is raising the cost of detection above what a particular adversary will spend.
Why this matters for evidence integrity
The forensics application runs in the opposite direction from the covert-communication one, and it is where I think the field is most consequential.
If you can embed data imperceptibly, you can embed a fragile watermark whose purpose is to break. Any re-encoding, crop, or manipulation destroys it, and its absence becomes evidence that the file is not what it claims to be. Robust watermarks do the opposite, surviving transformation to assert provenance.
Both matter more now than they did five years ago. When synthetic media is cheap, the question shifts from “is this image real?” — which is increasingly unanswerable from pixels alone — to “can this image prove where it came from?” That is a provenance question, and it is answerable with cryptographic signing at capture combined with embedded markers that travel with the file through platforms that strip metadata.
The same techniques that hide a message can carry a signature. In a media environment where authenticity is contested by default, the second application is likely to matter considerably more than the first.
Get new posts by email
Occasional writing on post-quantum cryptography, blockchain security and digital forensics. No more than twice a month, and nothing else.


