What is LSB Steganography?
LSB stands for “least-significant bit.” This type of steganography involves modifying the least-significant bit within each byte. To decode LSB steganography, first you have to understand how to code with it.
How do you hide a message using LSB steganography?
File are made of bytes. Each byte is composed of eight bits.
Changing the least-significant bit (LSB) doesn’t change the value very much.
So we can modify the LSB without changing the file noticeably. By doing so, we can hide a message inside.
Let’s say we have an image, and part of it contains the following binary:
And let’s say we want to hide the character y inside.
First, we need to convert the hidden message to binary.
Now we take each bit from the hidden message and replace the LSB of the corresponding byte with it.
And once more:
Decoding LSB steganography is exactly the same as encoding, but in reverse. For each byte, grab the LSB and add it to your decoded message. Once you’ve gone through each byte, convert all the LSBs you grabbed into text or a file. (You can use your file signature knowledge here!)
What other types of steganography are there?
Steganography is hard for the defense side, because there’s practically an infinite number of ways it could be carried out. Here are a few examples.
- LSB steganography: different bits, different bit combinations
- Encode in every certain number of bytes
- Use a password
- Hide in different places
- Use encryption on top of steganography