Article · Wikipedia archive · Last revised Jun 30, 2026

Samy (computer worm)

Samy is a cross-site scripting worm that was designed to propagate across the social networking site MySpace by Samy Kamkar. Within just 20 hours of its October 4, 2005 release, over one million users had run the payload making Samy the fastest-spreading virus of all time.

Last revised
Jun 30, 2026
Read time
≈ 2 min
Length
354 w
Citations
7
Source

Samy (also known as JS.Spacehero) is a cross-site scripting worm (XSS worm) that was designed to propagate across the social networking site MySpace by Samy Kamkar. Within just 20 hours1 of its October 4, 2005 release, over one million users had run the payload2 making Samy the fastest-spreading virus of all time.3

The message on a victim's profile source ↗

The worm itself was relatively harmless; it carried a payload that would display the string "but most of all, samy is my hero" on a victim's MySpace profile page as well as send Samy a friend request. When a user viewed that profile page, the payload would then be replicated and planted on their own profile page continuing the distribution of the worm. MySpace has since secured its site against the vulnerability.1

Samy Kamkar, the author of the worm, was raided by the United States Secret Service and Electronic Crimes Task Force in 2006 for releasing the worm.4 He entered a plea agreement on January 31, 2007, to a felony charge.5 The action resulted in Kamkar being sentenced to three years' probation with only one (remotely-monitored) computer and no access to the Internet for life (this provision was later struck off by a judge), 90 days' community service, and $15,000–$100,000,000 in restitution, as well as a 20-year suspended prison sentence, as directly reported by Kamkar himself on "Greatest Moments in Hacking History" by Vice Media's video website, Motherboard.6

References

References

  1. "MySpace Worm Explanation". Samy.pl. Retrieved 2015-12-25.
  2. "Cross-Site Scripting Worm Floods MySpace". Slashdot. 14 October 2005. Retrieved 2015-12-25.
  3. "CROSS-SITE SCRIPTING WORMS AND VIRUSES : The Impending Threat and the Best Defense" (PDF). Net-security.org. Archived from the original (PDF) on 2011-01-04. Retrieved 2015-12-25.
  4. "[Owasp-losangeles] OWASP LA". Lists.owasp.org. Archived from the original on 2016-06-03. Retrieved 2015-12-25.
  5. Mann, Justin (2007-01-31). "MySpace speaks about Samy Kamkar's sentencing". Techspot.com.
  6. Motherboard (2016-06-01), Greatest Moments in Hacking History: Samy Kamkar Takes Down Myspace, archived from the original on 2021-12-21, retrieved 2016-06-02
External links