What is Zip Bomb?

Zip Bomb refers to a security control or process that protects systems and data from unauthorized access and threats.

Why Does Zip Bomb Matter?

Essential for preventing unauthorized system access, protecting sensitive data, and ensuring compliance with security regulations.

When Is Zip Bomb Used?

Used continuously across all systems to verify and manage access based on authorization policies and procedures.

How Does Zip Bomb Work?

Implements security measures and controls to identify, authenticate, and authorize users or systems before granting access to resources.

Who Does Zip Bomb Affect?

All organizations managing digital systems and data must implement controls to protect employees, customers, and business assets.

How Should You Respond to Zip Bomb?

Apply best practices, regularly audit security controls, update policies, integrate with overall security strategy, and provide training.

Frequently asked questions

What is a zip bomb?

A zip bomb (also called a decompression bomb or zip of death) is a malicious compressed file designed to consume excessive system resources when decompressed. A small zip file (often under 1 MB) can expand to petabytes of data through recursive compression layers or repetitive data patterns. Zip bombs target antivirus scanners, email gateways, and file processing systems that automatically decompress archives, causing denial of service through memory and disk exhaustion.

How do zip bombs work?

Zip bombs exploit the high compression ratios achievable with repetitive data. Classic zip bombs use nested compression—a zip containing a zip containing a zip, each expanding enormously. Modern variants like the 42.zip achieve extreme compression ratios using files filled with repeating null bytes. When security tools attempt to decompress and scan the archive contents, the exponential expansion exhausts available memory, disk space, or processing capacity.

What types of zip bombs exist?

Zip bomb types include recursive zip bombs containing nested archives that multiply through layers of decompression, flat zip bombs achieving massive expansion without nesting by exploiting zip format features (like David Fifield's non-recursive zip bomb expanding 42 KB to 5.5 GB), quine zip bombs that contain copies of themselves, and format-specific variants targeting gzip, bzip2, and other compression formats used in web content encoding.

What damage can zip bombs cause?

Zip bombs cause denial of service by exhausting disk space filling storage volumes during decompression, consuming all available RAM during in-memory decompression processing, overwhelming CPU with decompression computation, crashing antivirus scanners and email security gateways that automatically process archives, filling log storage with decompression error messages, and potentially creating cascading failures across dependent systems sharing affected storage or computing resources.

How do you protect against zip bombs?

Protect against zip bombs by implementing decompression ratio limits rejecting files exceeding reasonable expansion ratios, setting maximum decompressed size thresholds, limiting recursive decompression depth, scanning archive metadata before full decompression, implementing timeout mechanisms for decompression operations, deploying resource isolation for file processing with memory and disk quotas, and configuring antivirus and email security tools with specific decompression bomb detection capabilities.

How do antivirus tools handle zip bombs?

Modern antivirus tools handle zip bombs through multiple protective mechanisms: checking compression ratios before full decompression, limiting maximum decompression depth for nested archives, setting memory and disk usage limits for scanning operations, implementing timeouts for long-running decompression tasks, and using heuristic detection that identifies zip bomb characteristics from archive metadata without full decompression. Most enterprise solutions include specific decompression bomb detection signatures.

Can zip bombs bypass email security?

Zip bombs can bypass poorly configured email security gateways that lack proper decompression limits. When email scanners attempt to decompress and analyze archive attachments without resource controls, zip bombs can crash scanning engines, creating a window where subsequent malicious emails pass through unscanned. Modern email security solutions implement decompression limits, but legacy or misconfigured systems remain vulnerable to this denial-of-service technique.

How do penetration testers use zip bombs?

Penetration testers use zip bombs to evaluate the resilience of file processing systems, email security gateways, and antivirus infrastructure against decompression attacks. Tests verify that systems implement proper decompression limits, gracefully handle oversized archives without crashing, maintain service availability when processing malicious archives, and alert administrators about decompression bomb attempts. Results identify infrastructure weaknesses requiring configuration hardening.

How to get started

Ready to strengthen your security? Fill out our quick form, and a cybersecurity expert will reach out to discuss your needs and next steps.
DecorativeDecorative