Changes to Samy (computer worm)
TechWritereditor · 5 Dec 2026, 07:28 · “New page”
+ added − removed (first version)
Title
Removed:
Added: Samy (computer worm)
Short description
Removed:
Added: Self-spreading MySpace worm of October 2005
Type
Removed:
Added: event
Summary
Removed:
Added: Samy was a cross-site scripting worm released on MySpace in October 2005 by 19-year-old Samy Kamkar. It spread to more than a million user profiles in less than a day and forced the site to go offline temporarily.
Fact box
Removed:
Added: Date: 4 October 2005
Added: Platform: MySpace
Added: Type: Cross-site scripting (XSS) worm
Added: Author: Samy Kamkar
Added: Profiles affected: more than 1 million
Added: Outcome: Guilty plea in Los Angeles (January 2007)
Article
Added: **Samy** was a self-replicating worm that spread across the social networking site MySpace in October 2005. It is considered by many to be the first "Web 2.0" worm.[^3] Rather than infecting computers, it copied itself between user profiles on the site using a [[Cross-site scripting]] (XSS) flaw.[^2]
Added: ## Spread
Added:
Added: The worm was written by Samy Kamkar, then 19, who released it around midnight on 4 October 2005 in Los Angeles.[^2][^1] Kamkar said it began as a way to customise his own profile page and took only a few days to write.[^3] MySpace let users add some [[HTML]] to their profiles, and Kamkar found a way past the site's filters to hide a script on his page.[^2]
Added:
Added: When another user viewed the infected profile, the hidden script ran in their [[Web browser]]. It added Kamkar as a friend, placed the phrase "but most of all, Samy is my hero" on the visitor's own profile and copied itself there, so that anyone viewing that profile was affected in turn.[^2] The worm spread exponentially: Kamkar had about 200 friend requests the next morning and nearly a million by that evening.[^2] More than a million users ended up declaring Samy their "hero".[^3] MySpace took the site offline to remove the worm, returning after about two hours with Kamkar's profile deleted.[^2]
Added:
Added: ## Legal consequences
Added:
Added: About six months later the US Secret Service and the Los Angeles Police Department obtained a warrant and seized Kamkar's computers.[^2] In January 2007 he pleaded guilty in Los Angeles Superior Court.[^3][^1] He was sentenced to three years' probation and 90 days of community service, ordered to pay restitution to MySpace, and barred from using the internet for personal purposes.[^1] His probation was lifted in 2008.[^2]
Added:
Added: ## Impact
Added:
Added: The worm showed how quickly malicious code could spread through a large social site. At the time, a high proportion of websites were thought to be vulnerable to similar attacks, and the security community OWASP later created the AntiSamy project to help developers filter unsafe content.[^2] Security researchers have described it as a watershed moment for the industry.[^2]
Added:
Added: ## See also
Added: - [[Cross-site scripting]]
Added: - [[JavaScript]]
Added: - [[Morris worm]]
Added: - [[SQL injection]]
Sources
Removed:
Added: MySpace superworm creator sentenced to probation, community service | https://www.scmagazine.com/news/myspace-superworm-creator-sentenced-to-probation-community-service | SC Magazine
Added: The MySpace Worm That Changed the Internet Forever | https://www.vice.com/en/article/the-myspace-worm-that-changed-the-internet-forever | Vice (Motherboard) | 2015-10-04
Added: Samy worm creator hopes to be online again | https://www.infoworld.com/article/2314514/samy-worm-creator-hopes-to-be-online-again-2.html | InfoWorld | 2007-11-19
Categories
Removed:
Added: Malware
Added: Online security
Other names
Removed:
Added: Samy worm
Added: MySpace worm
Added: Samy XSS worm