The Daily Populous Thursday May 1st, 2025 evening edition
Authored by tomshardware.com and submitted by licecrispies

Programmer Ibrahim Diallo runs a blog hosted on his own tiny server, and based on his experience, he knows that most of his traffic are bots that troll the internet to find content. Many of these bots are harmless, but there are a few that attempt to hijack his system by injecting malicious attacks or probing for a response. When that happens, Diallo says on his blog that he serves up a hot zip bomb that will expand to a thousand times its original size — and crash the bot’s server.

Zip bombs are tiny, compressed archives that hide a massive file size. An egregious example of this type of sneaky file is this 46MB archive that turns into a massive 4.5 petabyte file, overwhelming the resources of most computers. These are considered to be malware, as they’re designed to disable a target system by crashing it. However, Diallo has flipped the script and is now using zip bombs as a way to defend against malware attacks.

Diallo says he made a 1MB file that decompresses into 1GB to disable bots trying to break into his system. He also has a 10MB-to-10GB compressed file for bots with more resources, ensuring that their memory is overwhelmed by this massive archive.

This is how this defensive bombing system works: when Diallo detects an offending bot, his server returns a 200 OK response and then serves up the zip bomb. The file’s metadata tells the bot that it’s a compressed file, so it will then open it in an attempt to scrape as much information as possible. However, since the file is at least 1GB when unpacked, it will overwhelm the memory of most simple — and even some advanced — bots. If he faces a more advanced scraper with a few gigabytes of memory, he’ll feed it the 10GB zip bomb, which will most likely crash it.

If you want to try this system for yourself, Diallo outlines how you can create your own bot-targeting zip bomb on his blog. He notes that you should be careful when doing that, though, as you can potentially self-detonate (i.e., accidentally open the zip bomb), and crash your own server. They’re also not 100% effective, as there are ways to detect zip and disregard zip bombs. But for most simple bots, this should be more than enough to cause its server to freeze and take it out — at least until its system is restarted.

Follow Tom's Hardware on Google News to get our up-to-date news, analysis, and reviews in your feeds. Make sure to click the Follow button.

Stay On the Cutting Edge: Get the Tom's Hardware Newsletter Get Tom's Hardware's best news and in-depth reviews, straight to your inbox. Contact me with news and offers from other Future brands Receive email from us on behalf of our trusted partners or sponsors

kog on May 1st, 2025 at 17:58 UTC »

Based

Epitometric on May 1st, 2025 at 16:00 UTC »

This is legendary and incredibly needed in this day and age to fight back against relentless bots, spam and garbage. Brava!

shadowinc on May 1st, 2025 at 14:31 UTC »

Amazing