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

Compression

← Back to Glossary
By NHI Mgmt Group Updated November 3, 2026 Domain: Cyber Security

Compression is the process of reducing the size of data by encoding it more efficiently. It can be lossless, which restores the original exactly, or lossy, which removes some information, and is used for files, network traffic, and storage to save space or transmission time.

What Compression Is

Compression is a data reduction technique, but the important security distinction is that the original content may be preserved exactly or altered in the process. Lossless compression is expected to round-trip without changing the data, while lossy compression intentionally discards detail to achieve smaller size.

That distinction matters because compression is not just a storage optimisation. It changes how much information is carried, how quickly it moves, and how faithfully it can be restored, which makes the choice of method a technical and governance decision as much as a performance one.

Where Compression Is Used

Compression shows up across file formats, archives, backups, logs, media, databases, and network protocols. In practice, it is often used to reduce storage cost, accelerate transfer, or improve user experience, especially where bandwidth or latency is limited.

It also appears inside security-adjacent workflows, for example when logs are packaged for transport, when backup sets are stored efficiently, or when payloads are compressed before encryption or transmission. The use case affects whether compression helps with resilience or creates inspection and processing complexity.

Lossless Versus Lossy Compression

Lossless compression is used when exact recovery matters, such as text, software artifacts, configuration data, and many operational records. It preserves integrity of the original content, which is essential when the compressed object must be decompressed and reused without semantic change.

Lossy compression is suitable when perfect fidelity is unnecessary, such as images, audio, or video. It can dramatically reduce size, but it also makes the result unsuitable for situations where the complete original must be retained for evidence, analysis, or downstream processing.

Why Compression Changes Security Decisions

Compression affects more than efficiency because it can influence what defenders can inspect, how systems behave under load, and whether data remains trustworthy after transformation. It may also affect storage planning, retention strategy, and the fidelity of records that need to be audited later.

In security operations, compressed content can complicate detection and content handling, especially if controls only inspect the outer wrapper and not the decompressed payload. Compression ratio, format support, and where decompression occurs all shape operational risk and should be treated as part of the system design.

Risk and Threat Considerations

Compression can create exposure when compressed content is accepted from untrusted sources, when decompression occurs automatically, or when downstream tools assume the payload is benign. Attackers can use compressed objects to hide content, increase processing cost, or trigger parser and resource exhaustion issues.

Failure mechanism: A system may decompress data before validating size, structure, or provenance, which can amplify a small input into a much larger workload or conceal malicious content inside nested archives.

Impact: This can lead to denial of service, delayed detection, storage abuse, or the accidental execution or processing of harmful content after decompression.

Standards & Framework Alignment

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

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

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5SI-10 — Information Input ValidationCompression inputs must be validated before decompression or parsing.
SC-28 — Protection of Information at RestCompression is often applied to stored data, affecting storage protection choices and handling.
Recommendation — Validate compressed inputs before decompression to limit malformed or malicious payload handling. Protect stored compressed data so confidentiality and integrity remain preserved across storage workflows.
NIST CSF 2.0PR.DS-01 — Data-at-rest is protectedCompressed data still needs protection while stored and retained.
Recommendation — Protect compressed data at rest with appropriate encryption, access control, and retention handling.
CIS Controls v8CIS-13 — Data ProtectionCompression changes how data is stored, transmitted, and retained, so protection controls must account for it.
Recommendation — Apply data protection controls to compressed files, archives, and backups throughout their lifecycle.

Practitioner Guidance

Why practitioners should care: Compression should be treated as a control-relevant transformation, not a purely mechanical optimisation. Teams should know where compression is allowed, where decompression happens, and which data types must remain lossless because accuracy, auditability, or evidence value depends on it.

What to watch for: Pay attention to archive nesting, unexpectedly high compression ratios, and workflows that decompress data automatically in mail gateways, pipelines, or endpoints. Those are the points where operational convenience can become a security or resilience problem.

Practitioner takeaway: The safest compression design is the one that preserves the level of fidelity the business actually needs, while keeping decompression visible, bounded, and policy-controlled.

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 November 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org