Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› Compressed File
Cyber Security

Compressed File

← Back to Glossary
By NHI Mgmt Group Updated October 17, 2026 Domain: Cyber Security

A Compressed File is a file whose contents have been reduced in size by an encoding method that can later restore the original data. Attackers use compressed files to hide malware, bypass size limits, or pack many files into one archive, so defenders inspect archives and control extraction paths.

What a compressed file is and why it exists

A compressed file stores data in a reduced form so it can take up less space or move more efficiently across networks and storage systems. The key security point is that the original content can be restored, which makes compression useful for legitimate distribution and equally useful for concealment.

Compression is not encryption. A compressed archive may be readable by anyone who opens it, and a password-protected archive may still contain a compressed payload. Security reviewers should treat the archive format, the extraction tool, and the unpacked contents as separate inspection points.

Why compressed files are security-relevant

Compressed files matter to defenders because they can hide malicious payloads inside nested archives, delay inspection, or combine many files into a single object that looks harmless at the perimeter. Attackers also use compression to evade simple file-size rules, hide extensions, and smuggle multiple stages of a delivery chain through email, web uploads, or shared storage.

The risk is usually not the compression itself, but the gap between what is visible before extraction and what appears after decompression. A file that looks like a normal archive can expand into executables, scripts, credential harvesters, or a large number of unexpected objects once opened.

How organisations inspect and control compressed content

Effective handling starts with file-type detection, archive-aware scanning, and explicit extraction policies. Security tools should inspect both the container and the expanded content, because many threats only become visible after decompression. That includes recursive archive handling, depth limits, and rules for unusual formats or double-compressed files.

Controls should also separate trusted business use from untrusted inbound content. For example, an organisation may allow routine ZIP delivery for business workflows, while quarantining archives from unknown senders or from internet-facing upload paths until they are scanned and validated. Clear handling rules are especially important when files move between email, endpoint, cloud storage, and security operations workflows.

Common failure modes and defensive trade-offs

Compressed files create a trade-off between usability and inspection. Deeply nested archives, encrypted archives, and very large expansion ratios can slow scanning or cause security tools to skip analysis. If extraction is allowed automatically, the archive can become an execution path, a storage bomb, or a way to trigger downstream parsing bugs in decompression libraries.

Defenders should expect archive-based abuse to appear in phishing, malware delivery, and data staging. A compressed file can also hide multiple related objects, which makes it easier for attackers to preserve parts of a toolkit until they are unpacked on a victim system.

Risk and Threat Considerations

Compressed files create an inspection blind spot when organisations trust the archive boundary instead of examining the expanded contents. That blind spot can be used to conceal malware, evade size-based controls, or delay detection until the payload is unpacked on an endpoint, mail gateway, or application server.

Failure mechanism: Security controls often evaluate the outer archive, while the malicious content only becomes visible after decompression, which can bypass superficial scanning or policy checks.

Impact: Hidden payloads can reach users or systems, trigger execution after extraction, or create a staging point for broader compromise and data exposure.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

CIS Controls v8, NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
CIS Controls v8CIS-10 — Malware DefensesCompressed archives are a common malware delivery container.
Recommendation — Scan archives recursively and quarantine suspicious compressed files before extraction.
NIST SP 800-53 Rev 5SI-3 — Malicious Code ProtectionCompressed files can hide malicious code until extraction reveals it.
CM-7 — Least FunctionalityRestricting archive handling paths limits abuse of decompression and unpacking tools.
Recommendation — Inspect compressed content for malicious code before allowing it to execute. Limit archive extraction features to approved workflows and trusted endpoints.
NIST CSF 2.0PR.DS-6 — Integrity MonitoringArchive inspection supports verifying that expanded contents match expected integrity.
Recommendation — Validate extracted files for integrity and unexpected content changes.

Practitioner Guidance

What to watch for: Treat unusually deep nesting, password-protected archives from untrusted sources, and archive expansion that is far larger than expected as review triggers. These patterns often indicate concealment rather than normal business file transfer.

Practitioner takeaway: Make archive inspection part of the security boundary, not an afterthought after a user has already opened the file.

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.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 17, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org