Zip bomb explained

In computing, a zip bomb, also known as a decompression bomb or zip of death (ZOD), is a malicious archive file designed to crash or render useless the program or system reading it. The older the system or program, the more likely it is to fall for it. It is often employed to disable antivirus software, in order to create an opening for more traditional malware.[1]

A zip bomb allows a program to function normally, but, instead of hijacking the program's operation, creates an archive that requires an excessive amount of time, disk space, or memory to unpack.[2]

Most modern antivirus programs can detect whether a file is a zip bomb in order to avoid unpacking it.[3]

Details and use

A zip bomb is usually a small file for ease of transport and to avoid suspicion. However, when the file is unpacked, its contents are more than the system can handle.

One example of a zip bomb is the file 42.zip, which is a zip file consisting of 42 kilobytes of compressed data, containing five layers of nested zip files in sets of 16, each bottom-layer archive containing a 4.3-gigabyte (; −) file for a total of (; −) of uncompressed data.[4] This zip bomb is freely available for download online. In many anti-virus scanners, only a few layers of recursion are performed on archives to help prevent attacks that would cause a buffer overflow, an out-of-memory condition, or exceed an acceptable amount of program execution time. Zip bombs often rely on repetition of identical files to achieve their extreme compression ratios. Dynamic programming methods can be employed to limit traversal of such files, so that only one file is followed recursively at each level, effectively converting their exponential growth to linear.

See also

Notes and References

  1. Web site: DoS risk from Zip of death attacks on AV software?. John Leyden 23 Jul 2001. at 14:35. www.theregister.co.uk.
  2. Book: Pelton, Joseph N . Smart cities of today and tomorrow : better technology, infrastructure and security . 28 August 2018 . Springer . 978-3-319-95822-4 . 1097121557.
  3. Web site: AERAsec - Network Security - Eigene Advisories . 2011-02-19 . Bieringer . Peter . 2004-02-12 . 2016-03-03 . https://web.archive.org/web/20160303233826/http://www.aerasec.de/security/advisories/decompression-bomb-vulnerability.html . dead .
  4. Web site: 42.zip. unforgettable.dk.