This file is 42 kilobytes, smaller than a typical phone photo. Unpack everything inside it, and you would get about four and a half petabytes, which is roughly four and a half million gigabytes. It's called 42.zip, and it's been floating around the internet for more than 20 years. I've got it inside a virtual machine on my own system, which is basically a fake computer running inside my real one. So whatever it does, it does it to a computer I don't really care about. It asks for a password first, and the password is 42. But what happens next is not what most people picture, because the most famous zip bomb in the world barely goes off. You see, zip files work on one simple idea. Instead of storing the same thing over and over, you store it once and note how many times it repeats. A shopping list doesn't say milk, milk, milk, milk. It just says four milks. At the bottom of 42.zip is a file just over four gigabytes long, that's basically all zeros. But normal zip compression cannot shrink anything by more than about a thousand to one. So that still comes out at around four megabytes. So whoever made it used layers. 16 copies of that file zipped together, then 16 copies of that zip zipped again. Five layers deep. That's just over a million copies of the same four gigabyte file, and that's where the petabytes come from. So, if I type in the password and extract it, I get 16 zip files together well under a megabyte. But keep in mind, my virtual machine doesn't even notice. And that's because 42.zip only explodes if something opens it, then opens every zip inside it, then every zip inside those, five layers down, without ever stopping. A person will not do that. I mean, you would probably get bored by layer two. But one kind of program did exactly that. The one that was supposed to protect you. You see, an antivirus cannot check inside a zip without unpacking it, and back then, plenty of them unpacked everything all the way down. By 2001, The Register was writing about what security people called the Zip of Death. Email someone a tiny archive, their virus scanner tries to unpack the whole thing, and the scanner basically drowns. So scanners started setting limits on how deep they would go and how much they would unpack, and layer bombs mostly stopped working. For about 15 years, everyone agreed a zip bomb needs layers, and layers are easy to stop. But then, someone built one that doesn't need any layers. In 2019, a researcher named David Fifield published what he called a better zip bomb. No zips inside zips. You open it once and everything comes out. His 10 megabyte version unpacks to 281 terabytes in one go, and a 46 megabyte one reaches the full four and a half petabytes. The trick is in the table of contents every zip file keeps, which is the list of files and where each one's data starts. Fifield made every entry point at the same small chunk of compressed data. It's like a playlist with thousands of songs where every entry plays the same track. I've also got this 10 megabyte one in the same virtual machine. If I extract it, this time, it doesn't stop. File after file, four gigabytes each, and in under two minutes, the virtual drive has nowhere left to put anything. Now the strangest part about all this is where zip bombs ended up. Around nine in 10 websites send their pages compressed, and your browser unpacks them on the spot without asking. In 2017, a developer named Christian Haschek got sick of hacking tools probing his site, so he started answering them with 10 gigabytes of zeros squeezed into 10 megabytes. In his tests, Internet Explorer crashed. And now, other developers do the same to the spam bots and scrapers crawling their sites. So basically, the trick that once choked the software guarding your computer is now one of the ways a website fights back against the software attacking it. Somewhere right now, a bot is probably asking some little blog for a page, and that blog is answering with 10 gigabytes of nothing. As always, thanks for watching, and I'll see you in the next video.