Join our Newsletter — 33% off our NHI Course
Home› Guides› Packed Software for Beginners: Why Some Programs Are…
Guide Incident Response & Forensics

Packed Software for Beginners: Why Some Programs Are Squashed and Disguised

PDF for newsletter subscribers · free to read online

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

A packer is a tool that squashes or scrambles a program so it unpacks itself only when it runs.

This guide is for anyone who has seen a security alert or report say a file is "packed" and wants to know what that means. You do not need to read code. It explains why honest software is sometimes packed, why criminals pack malware, and how security tools cope.

In short

  • Packing compresses or encrypts a program, and a small starter piece unpacks it in memory when it runs.
  • Honest makers pack programs to make them smaller. Criminals pack malware to change how it looks to scanners.
  • Security tools can watch a packed file unpack itself, then check what comes out.
  • "Packed" is a clue worth checking, not proof that a file is harmful.

What you will learn

  • Explain what a packer does in one sentence.
  • Describe why both honest and harmful software gets packed.
  • Spot the extra clues that make a packed file more worrying.
  • Check what to do when a tool flags a file as packed.
Program file (executable)
a file that a computer can run, such as an app installer.
Squashing tool (packer)
a tool that compresses or scrambles a program and adds a small piece that unpacks it when it runs.
Known-bad fingerprint (signature)
a pattern a security tool uses to recognise a file it has seen before.

What is a packer?

Think of a parcel wrapped so thickly that you cannot guess its shape. When it reaches the right door, it unwraps itself. A packed program behaves the same way.

A packer takes a program and compresses or encrypts it. It adds a small starter piece at the front. When you run the file, the starter piece unpacks the real program, usually in the computer's working memory, and hands over to it.[1] The program then runs as normal.[2]

Some packers are free, open and well known. Others are made privately, and attackers may build their own so the result looks unfamiliar to security tools.[1]

Where the comparison stops working: a thick parcel still looks like a parcel. A packed program can look quite different from the original, which is exactly why criminals use packing.

Why does it matter?

Packing changes how a file looks from the outside. That can hide a known piece of malware from tools that only check a file's outer pattern.[1] This matters because a US government guide calls malware the most common outside threat to most computers.[4]

If you work on a help desk

What could happen: a user's download is flagged as packed, and you release it without a second look.

Check this: look at where the file came from and whether it is signed by a known maker before releasing it.

Next: Antivirus for Beginners

If you are new to security monitoring

What could happen: you treat every packed file as malware, and real alerts get lost in the noise.

Check this: treat "packed" as one clue, and look for others before you raise the alarm.

Next: Malware Sandboxes for Beginners

If you build or ship software

What could happen: you pack your own app to make it smaller, and customers' security tools start flagging it.

Check this: sign your releases and tell customers how to check the signature.

Next: Digital Signatures for Beginners

What does it look like?

Here is a made-up summary from a file-checking tool. It shows the kind of clues people look at.

Example only. All values are made up.

File:          invoice-EXAMPLE.exe
Came from:     email attachment                  (1)
Packed:        yes (packer not recognised)       (2)
Signed by:     nobody                            (3)
Randomness:    very high                         (4)
Sandbox run:   tried to reach example.invalid    (5)
  1. A program file that arrived by email deserves extra care.
  2. The file is packed, and the packer is not one the tool knows.
  3. No digital signature, so there is no proof of who made it.
  4. Squashed or scrambled data looks very random. In a real file, this line would come from the tool measuring the file's contents.
  5. When run in a safe test space, it tried to contact an outside address.

Why this is risky: any one of these clues might be harmless. Together, they make this file worth stopping and checking.

The safer way: block program files in email, and send flagged files to a safe test space for a closer look.

How does it work?

  1. Pack. The packer compresses or encrypts the program. This changes the file's outer pattern.[1]
  2. Add a starter piece. A small piece of code is placed at the front. Its only job is to unpack the rest.[1]
  3. Run. When someone opens the file, the starter piece unpacks the program in memory.[1]
  4. Hand over. The unpacked program takes over and does what it was built to do.[2]

Honest tools do this to save space. One free packer says it often makes program files 50 to 70 percent smaller, and that the result runs as before.[2]

Security tools have ways to see past the wrapping. One antivirus maker's documentation describes an emulator, a pretend computer inside the security tool. It lets a file unpack itself there, then checks how it behaves and what ends up in memory.[3] The same documentation describes scanning the memory of running programs, where unpacked code becomes visible.[3]

Diagram titled How a packed program runs, and where security tools look. Four boxes in a row. Box 1, Original program: readable code. Box 2, Packed file: a small starter piece plus squashed or scrambled code; a note says the outside pattern has changed. Box 3, Running: the starter piece unpacks the program in memory. Box 4, Unpacked program runs as normal. Below, green labels show where security tools look: a file check on the packed file, which may miss a new wrapping; a pretend computer that lets the file unpack safely; and memory scanning and behaviour watching once the program is running.
Figure 1. Packing hides the outside of a program. Security tools look again once it unpacks.
Decision diagram titled A file is flagged as packed: what next? Start: Is it from a known, expected source? If no, stop and send it for checking. If yes: Is it signed by the maker you expect? If no, send it for checking. If yes: Did a safe test run show odd behaviour, such as contacting unknown addresses? If yes, send it for checking. If no, it is lower risk; record the decision and allow it under your normal process.
Figure 2. A simple way to weigh a "packed" flag with other clues.

A worked example

Pia Novak works on the IT help desk at a regional charity. One morning the security software blocks a file on a fundraiser's laptop. The alert says the file is packed and suspicious.

The fundraiser is unhappy. She says it is a donor-tracking tool a friend recommended, and she needs it today.

Pia does not release it straight away. She checks three things. First, where it came from: a link in a personal message, not the maker's website. Second, whether it is signed: it is not. Third, what the charity's test space shows: the file tried to reach an unknown web address when it ran.

Each clue alone could be innocent. Together they are enough for Pia to keep the file blocked and pass it to the charity's IT partner for a closer look.

Meanwhile, she finds the real donor-tracking tool on the maker's own website. That version is also packed, which surprised the fundraiser. But it is signed by the maker, and the test run shows nothing odd. Pia records why she trusts it and installs it through the charity's normal process.

The next day the IT partner confirms the first file was harmful. Pia adds a note to the help desk guide: "packed" is a reason to check, not a verdict.

Myths and mistakes

What people thinkWhat is true
Every packed file is malware.Honest software is packed too, often to make it smaller. Look at other clues.
A packed file the scanner did not flag is safe.A new wrapping can hide a known threat from simple checks. Layers of defence still matter.
Packing changes what a program does.It changes how the file looks. Once unpacked, the program behaves as it was built to.
Unpacking it ourselves is the quickest check.Running suspect files outside a safe test space can infect your computer. Leave that to trained people.
If it is signed, it cannot be harmful.A signature shows who signed it, not that the program is safe. It is a strong clue, not proof.

What can I do this week?

  • Ask your IT team whether program files sent by email are blocked.
  • Find out where flagged files go for a closer look, and who decides.
  • Check that the software you install comes from the maker's own site or an approved store.
  • If you ship software, make sure each release is signed.

Checklist

  • We treat "packed" as a clue, not a verdict.
  • Flagged files are checked in a safe test space, not on a normal computer.
  • We check the source and the signature before releasing a flagged file.
  • Program files in email are blocked or held for checking.
  • Our security software can scan memory and watch behaviour, not only check files.
  • Decisions to allow a flagged file are recorded with a reason.
  • Software we ship is signed so customers can check it.

Common questions

Is packing the same as obfuscation?

They are close cousins. Obfuscation makes code hard to read while keeping it as code. Packing wraps the whole program in compressed or scrambled form and unpacks it at run time. Both make analysis harder, and attackers often use them together.

Is packing the same as a zip file?

Not quite. A zip file has to be opened by a separate tool before you can use what is inside. A packed program unpacks itself when you run it, so it still looks and behaves like a single program file.

Why would an honest company pack its software?

Mostly to make files smaller, so they take less space and download faster. The packed program still runs as before. Signing the packed file helps customers check who made it.

Can antivirus see inside packed files?

Often, yes. Some tools recognise well-known packers. Others let the file unpack inside a pretend computer, or scan memory once the program runs. A brand-new or home-made packer can still slow detection down.

What should I do if my own file is flagged?

Do not turn off your security software. Check where the file came from and whether it is signed by the maker you expect. If you are unsure, ask your IT team to check it in a safe test space before using it.

Where next?

Ready for the detail? Read the practitioner guide: Malware Packers and Unpacking. It goes further into packers, crypters and protectors, how analysts recognise a packed sample, and safe unpacking set-ups.

Also useful:

Related NHI Mgmt Group resources: Antivirus and EDR Evasion for Beginners, Application Allowlisting for Beginners and EDR vs Antivirus.

Key terms

Packer
A tool that compresses or hides a program's real contents inside a smaller or altered wrapper that unpacks when it runs.
Obfuscation
Changing code on purpose to make it harder to study, without changing what it does.
Malware
Software made on purpose to steal, damage or disrupt.
Signature-based detection
Finding malware by comparing files with patterns of known threats. It works well for threats seen before.
Sandbox
A closed-off space where software can run without reaching the rest of the system.
Code signing
Adding a digital proof to software so people can check who made it and that it has not been changed.
Entropy
A measure of how random data looks. Squashed or scrambled data scores high.

Sources and further reading

  1. MITRE ATT&CK, "Obfuscated Files or Information: Software Packing" (T1027.002), ATT&CK v20. https://attack.mitre.org/techniques/T1027/002/ (accessed 2 Dec 2026).
  2. UPX project, "UPX: the Ultimate Packer for eXecutables". https://upx.github.io/ (accessed 2 Dec 2026).
  3. Microsoft Learn, "Advanced technologies at the core of Microsoft Defender Antivirus". https://learn.microsoft.com/en-us/defender-endpoint/adv-tech-of-mdav (accessed 2 Dec 2026).
  4. NIST, "SP 800-83 Rev. 1: Guide to Malware Incident Prevention and Handling for Desktops and Laptops", July 2013. https://csrc.nist.gov/pubs/sp/800/83/r1/final (accessed 2 Dec 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.