Steganography means hiding a message or data inside an ordinary-looking file, such as a picture.
This guide is for students, newcomers to IT and anyone curious about how attackers sneak things past security checks. You do not need to be technical to be affected: a harmless-looking image in an email or on a website can carry hidden data that helps an attack.
In short
- Steganography hides the fact that a message exists, not just what it says.
- Attackers use it to slip harmful code in, or stolen data out, inside normal-looking files.
- A hidden file usually needs a separate program on the computer to unpack it and use it.
- Defenders focus on that unpacking step, and on rebuilding risky files so hiding places are removed.
What you will learn
- Explain what steganography is in one sentence.
- Spot how it differs from scrambling data with encryption.
- Explain why the unpacking step matters most for defence.
- Ask your IT team how risky files are checked or rebuilt.
- Hiding place (carrier)
- the ordinary file, such as a photo, that the hidden data sits inside.
- Scrambling (encryption)
- turning data into nonsense that only someone with the key can read.
- Harmful software (malware)
- programs made to damage, spy on or take over a computer.
What is steganography?
Think of a letter written in invisible ink. Anyone can read the friendly note on the page. Only someone who knows to warm the paper sees the second message.
Steganography works the same way with computer files. A picture, sound clip or document looks and works as normal. But small, hard-to-spot changes inside it carry extra data. A US government glossary describes it as communicating in a way that hides that the communication exists at all.[3]
This is different from encryption. Encryption scrambles a message, so people can see a secret is there but cannot read it. Steganography hides that there is a secret at all. Attackers often use both together.
Where the comparison stops working: invisible ink is just a message. A hidden file on a computer can carry instructions or code, but it still needs a program to unpack it before it can do anything.
Why does it matter?
Many security checks look at a file's type and name. A picture that really is a picture can pass those checks, even with something hidden inside. Attack groups have used images to hide harmful programs and code.[1]
If you are new to IT work
What could happen: a script on a laptop opens a downloaded picture, then connects to an unknown website. It looks odd, but you are not sure why.
Check this: report programs that open pictures they have no reason to open, especially just before going online.
Next: Malware for Beginners
If you run a small business
What could happen: a booby-trapped document arrives by email and quietly fetches a picture that carries harmful code.
Check this: ask whether your email service checks or rebuilds attachments, and whether macros are blocked.
If you look after sensitive data
What could happen: someone sends company data out hidden inside holiday photos, so it does not look like a leak.
Check this: watch for unusual uploads of many images to personal or unknown sites.
What does it look like?
To a person, a file with hidden data looks normal. Defenders usually spot it from what happens around the file. Here is a made-up security alert.
Example only. All values are made up.
ALERT EXAMPLE-0000 laptop: FAKE-PC-0000 10:02 browser saved logo_example.png (1) 10:03 a script started by an email attachment (2) 10:03 script opened logo_example.png (3) 10:04 script connected to update.example.invalid (4) Rule: picture read by a script, then outbound link
- An ordinary-looking picture arrives. On its own, this is normal.
- A small program, called a script, starts from an email attachment. This is unusual.
- The script reads the picture. Scripts rarely need to open logos.
- In a real file, this line would show the address the laptop contacted next.
Why this is risky: the picture alone looks harmless, so a check that only looks at file types would let it through. The danger is the script that unpacks it.[1]
The safer way: block risky scripts and macros, and set alerts for programs that read pictures and then go online.
How does it work?
When attackers use steganography, it usually happens in these steps.
- Pick a hiding place. They choose a normal file, such as a picture, a sound clip or a document.
- Hide the data. They make tiny changes inside the file that people are unlikely to notice. The hidden data is often scrambled too.
- Deliver it. The file is posted on a website, attached to an email or sent with other files.
- Unpack it. A program already on the target computer, such as a script or a booby-trapped document, reads the file and pulls out the hidden part.[1]
- Use it. The hidden part runs as code, carries instructions, or carries stolen data out.[2]

Finding hidden data by studying the picture itself is hard, and it rarely works at scale. Security experts note that this kind of hiding is hard to block in advance, because it uses normal features of files.[1] So defenders use two main ideas.
First, they watch behaviour. They look for scripts or unusual programs that open pictures and then run code or go online.[1] Second, they remove the hiding places. Some tools rebuild a file from scratch, keeping only the parts the file format needs, so anything extra is dropped.[4] The UK's cyber security agency also advises changing complex files into simpler formats before checking them.[5]

A worked example
Vik Zamora looks after IT for Heron Laundry, a fictional firm with four sites. His security tool sends an alert on a Tuesday morning.
A laptop in the office has opened an invoice document from an email. A minute later, a script started by that document opened a picture of a company logo. Then the laptop tried to contact a website nobody recognised.
The picture looked like a normal logo. Vik remembered the invisible ink idea: the page looks fine, so look at who is reading it, and why.
He took the laptop off the network, so it could not talk to the unknown site. He blocked the website and the sender's address. He also searched the email system for the same invoice, and found it in two other inboxes, unopened. He deleted both.
The firm's IT support partner then checked the laptop and reset its password. They found no sign that data had left, in the records available to them.
Afterwards, Vik made two changes. Macros in documents from the internet are now blocked. The email service now rebuilds attachments before staff receive them. He also kept the alert rule that caught the problem: a script reading a picture, then going online.
Myths and mistakes
| What people think | What is true |
|---|---|
| Steganography is the same as encryption. | Encryption hides what a message says. Steganography hides that a message exists. They are often used together. |
| A picture with hidden code can infect you just by being viewed. | In the cases described by defenders, a separate program has to unpack and run the hidden part.[1] Keep software updated anyway. |
| Antivirus checks will always spot it. | Hidden data can pass checks that look at file types. Behaviour alerts and file rebuilding help more. |
| It is only something from spy films. | Attack groups tracked by security researchers have used it to hide harmful code in pictures.[1] |
| You can see hidden data if you zoom in. | The changes are usually far too small for the eye to notice. |
What can I do this week?
- Ask your IT team whether macros in documents from the internet are blocked.
- Find out if your email service checks or rebuilds attachments.
- Ask whether alerts exist for scripts that open pictures and then go online.
- Remind staff to report odd documents that ask them to "enable content".
Checklist
- Macros in documents from the internet are blocked by default.
- Email and web downloads are checked, and risky files are rebuilt where possible.
- Only approved scripts and programs can run on staff computers.
- Alerts flag programs that read pictures and then connect out.
- Large or unusual uploads of images are noticed and reviewed.
- Staff know how to report a strange attachment quickly.
Common questions
Is steganography always harmful?
No. It is simply a way of hiding information, like invisible ink. Some uses are harmless, such as hidden marks that show who owns a picture. What matters is how it is used. Using it to spread harmful code or take data without permission is an attack.
Can my phone photos carry hidden data?
They can, in theory, but it is unlikely to affect you at home. Hidden data needs a program to unpack and use it. Keep your phone updated, install apps only from official stores and be careful with unexpected files from people you do not know.
How do security teams find it?
Mostly by watching behaviour, not by studying pictures. Teams look for scripts or odd programs that open media files and then run code or go online. Some also rebuild incoming files, which removes hidden extras. See Threat Hunting for Beginners.
Is it only used in pictures?
No. Pictures are common, but data can also be hidden in sound files, videos, documents and even normal-looking web traffic. The idea is the same each time: make the hidden part look like ordinary content so checks let it through.
Where next?
Ready for the detail? Read the practitioner guide: Steganography in Attacks Guide. It goes further into where hiding fits in an attack, detection rules for security teams, and how to choose where to rebuild files.
Also useful:
- Malware for Beginners
- Data Exfiltration for Beginners
- Encryption for Beginners
- Office Macros for Beginners
Related NHI Mgmt Group resources: Malware Guide · Command and Control (C2) Guide · Office Macro Blocking Guide
Key terms
- Steganography
- Hiding data inside an ordinary-looking file so nobody notices it is there.
- Encryption
- Scrambling data so only someone with the right key can read it.
- Malware
- Software made to harm, spy on or take control of a computer.
- Data exfiltration
- Moving data out of an organisation without permission.
- Command and control
- The link attackers use to send orders to computers they have taken over.
- Metadata
- Extra details stored with a file, such as when and how it was made.
Sources and further reading
- Obfuscated Files or Information: Steganography (T1027.003). MITRE ATT&CK. https://attack.mitre.org/techniques/T1027/003/, accessed 28 Nov 2026.
- Data Obfuscation: Steganography (T1001.002). MITRE ATT&CK. https://attack.mitre.org/techniques/T1001/002/, accessed 28 Nov 2026.
- Steganography (glossary entry, from CNSSI 4009-2022 and NIST SP 800-72). NIST Computer Security Resource Center. https://csrc.nist.gov/glossary/term/steganography, accessed 28 Nov 2026.
- Content Rebuild. MITRE D3FEND. https://d3fend.mitre.org/technique/d3f:ContentRebuild/, accessed 28 Nov 2026.
- Pattern: Safely Importing Data. National Cyber Security Centre (NCSC). https://www.ncsc.gov.uk/guidance/pattern-safely-importing-data, accessed 28 Nov 2026.