Skip to content

Fork Bomb

Medium — good to knowSecurity

ELI5 — The Vibe Check

A fork bomb is a program that endlessly copies itself until it eats all system resources and crashes the machine. It's the simplest denial-of-service attack — just a few characters of code that say 'make a copy of yourself, and have that copy make a copy, and...' The most famous one in bash is just 13 characters. DO NOT run it. (It's :(){ :|:& };: by the way. Seriously, don't.)

Real Talk

A fork bomb is a denial-of-service attack that exploits the fork system call to exponentially create processes until system resources are exhausted. It's prevented through process limits (ulimit), cgroups, and container resource constraints. Modern systems set per-user process limits specifically to mitigate fork bombs. It's a common introduction to why resource limits matter.

When You'll Hear This

"Someone ran a fork bomb on the shared server and it crashed." / "Always set ulimits on shared systems to prevent fork bombs."

Made with passive-aggressive love by manoga.digital. Powered by Claude.