The Tale of Samy The Worm.

One of the greatest moments in hacking history.

Niall Leah
3 min readMar 11, 2022
rogistok (Shutterstock)

Samy was a computer worm created by a hacker, also named Samy, who at the time was 19 years old. It would be responsible for one of the greatest moments in hacking history.

Eager to change some cosmetic features, Samy (The man) did some fiddling and realized that due to poor security on Myspace, he could quite easily install a worm on his profile.

The Worm he installed was a cross-site scripting worm with one job.

Every time somebody visited his profile, they would automatically send Samy a friend request. Furthermore, their bio would be altered to say…

“But most of all, Samy is my hero.”

The goal was to infect a few hundred accounts to impress Samy’s friends in the tech industry. A few laughs, no actual harm done. He made a change to the code to speed along the process. Every time somebody visited an infected profile, their profile would also be infected.

The virus snowballed from here.

Samy (The Worm) infected a few hundred profiles by the first morning, but the number basically kept doubling throughout the day.

Within 24 hours, Samy the Worm had infected over a million accounts and was growing exponentially. In…

--

--

Niall Leah

An ex-pat from the UK living in Chengdu, China. I satisfy my endless curiosity about the incredible journey of humanity by reading, traveling, and writing.