Join our Newsletter — 33% off our NHI Course
Home› Guides› Steganography for Beginners: How Data Hides Inside Ordinary…
Guide Attack Techniques & Malware

Steganography for Beginners: How Data Hides Inside Ordinary Pictures and Files

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 10 min read
On this page

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.

Next: Malicious Attachments for Beginners

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.

Next: Data Exfiltration for Beginners

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
  1. An ordinary-looking picture arrives. On its own, this is normal.
  2. A small program, called a script, starts from an email attachment. This is unusual.
  3. The script reads the picture. Scripts rarely need to open logos.
  4. 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.

  1. Pick a hiding place. They choose a normal file, such as a picture, a sound clip or a document.
  2. Hide the data. They make tiny changes inside the file that people are unlikely to notice. The hidden data is often scrambled too.
  3. Deliver it. The file is posted on a website, attached to an email or sent with other files.
  4. 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]
  5. Use it. The hidden part runs as code, carries instructions, or carries stolen data out.[2]
Diagram titled How hidden data travels in a picture. Five boxes left to right: 1, an ordinary picture is chosen; 2, data is hidden inside it with tiny changes; 3, the picture is delivered by a website or email and looks normal; 4, a program on the computer unpacks it, marked in green as the best place to catch it; 5, the hidden part is used, to run code or send data out. A note under box 4 says a hidden part usually cannot run by itself, something has to unpack it.
Figure 1. The picture looks normal. The unpacking step is where defenders have the best chance.

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]

Before and after diagram titled Two ways defenders respond. Left panel, labelled Watch the behaviour: alert when a script or unusual program opens a picture and then runs code or connects to the internet. Right panel, labelled Remove the hiding places: a file goes into a rebuild step and comes out as a clean copy with only the parts its format needs, so extra hidden data is dropped. A bar along the bottom says checking only the file type or name is not enough.
Figure 2. Watching behaviour and rebuilding files work better than staring at pixels.

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 thinkWhat 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:

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

  1. Obfuscated Files or Information: Steganography (T1027.003). MITRE ATT&CK. https://attack.mitre.org/techniques/T1027/003/, accessed 28 Nov 2026.
  2. Data Obfuscation: Steganography (T1001.002). MITRE ATT&CK. https://attack.mitre.org/techniques/T1001/002/, accessed 28 Nov 2026.
  3. 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.
  4. Content Rebuild. MITRE D3FEND. https://d3fend.mitre.org/technique/d3f:ContentRebuild/, accessed 28 Nov 2026.
  5. Pattern: Safely Importing Data. National Cyber Security Centre (NCSC). https://www.ncsc.gov.uk/guidance/pattern-safely-importing-data, accessed 28 Nov 2026.

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.