Please enable JavaScript to use CodeHS

Cyber Attack Stories · Case 02

The ILOVEYOU Virus: the love letter that crashed inboxes

In May 2000, millions of people got an email that said "ILOVEYOU" with a file attached. Millions opened it. Within days, around 45 million computers were infected — all because of one clever trick.

Email worm · 2000 ~10 min Grades 6–9
The True Story

Ten days, 45 million computers

On May 4, 2000, workers in Asia and Europe started their day by checking email — it was still new enough that a surprise message felt exciting. Waiting in thousands of inboxes was an email with the subject "ILOVEYOU." Inside: a short note — "kindly check the attached LOVELETTER coming from me" — and what looked like a text file.

People opened it. Of course they did. A love letter is the most interesting email possible.

The attachment wasn't a letter. It was a worm: a small program that did three nasty things at once. It mailed itself to every single contact in the victim's email address book — so the next victims got the "love letter" from someone they knew and trusted. It overwrote files on the computer, destroying photos and music. And it quietly collected saved passwords and sent them away.

Within about ten days, the worm had spread to an estimated 45 million computers — close to 1 in 10 machines on the internet. Companies like Ford and Siemens, the US Department of Defense, and the British Parliament all had to shut down their email to stop it. Total damage estimates ran into the billions of dollars.

Investigators traced the worm to Manila, in the Philippines, and to a student named Onel de Guzman. He had written a proposal for his college thesis describing a program a lot like it — a tool that would steal internet passwords so he could get online for free. The school rejected the proposal. He apparently built it anyway.

WORM
What happened
An email worm named ILOVEYOU (also called the "Love Bug") spread through Outlook address books to about 45 million computers in roughly ten days.
When
May 4, 2000. Most of the damage happened in the first few days.
Who
Onel de Guzman, a student at AMA Computer College in Manila, Philippines. He was never charged — the Philippines had no computer-crime law yet.
The catch
The worm didn't break any locks. It relied on people opening a file they thought was a love letter — sent by someone they knew.

The Big Idea

The trick: a name that lies

Here's the sneaky part. The attachment was called LOVE-LETTER-FOR-YOU.TXT.vbs. The last part of a filename — the extension — tells the computer what kind of file it is. .txt means "plain text, safe to read." .vbs means "Visual Basic script" — in other words, a program.

But Windows at the time had a "helpful" setting turned on by default: hide file extensions. So on screen, the file showed up as just LOVE-LETTER-FOR-YOU.TXT. People saw a ".TXT" file and thought: text, harmless, open it. Double-clicking didn't open a letter — it ran the program.

LOVE-LETTER-FOR-YOU.TXT.vbs
Windows hid the real extension. Toggle to see what the file truly was.

Simple definition: social engineering is hacking people instead of computers — using trust, curiosity, fear, or urgency to get someone to do the work for you. The lock was fine; the trick was convincing a human to open the door.

The worm also got a huge boost from a smart design detail: it sent copies to your whole address book from your account. So the next round of victims saw the email coming from a friend, a coworker, or a family member — someone they'd open mail from without thinking twice. Trust is what spread it. Learn more about these tricks in social engineering and phishing.


The Fallout

What happened after

The money damage was huge — estimates ran from about $5 billion to $15 billion once you count lost files, lost work, and the armies of IT staff who had to clean it up. But the weirdest fallout was legal: nobody was punished.

When investigators traced the worm to de Guzman, they discovered a problem: the Philippines had no law against releasing a computer virus. You can't charge someone with a crime that doesn't exist yet. He was arrested and investigated, but released without charges.

The case embarrassed lawmakers into action. The Philippines passed an E-Commerce Act just weeks later, and countries around the world updated their own computer-crime laws. Antivirus companies got faster at shipping emergency updates. And email providers started blocking .vbs attachments entirely — one reason you can't email someone a script file today even if you want to.

The deeper lesson that stuck: the weakest link in security is usually the human. Twenty-five years later, most big hacks still start the same way ILOVEYOU did — with a message designed to make you click.


Interactive

You be the inbox filter

Below is a pretend inbox from the year 2000. For each email, decide: open the attachment or skip it? Get through all five without opening something dangerous.

INBOX — MAY 2000 Handled: 0 / 5 Mistakes: 0

Choose "Open" or "Skip" for each email.

Notice that the dangerous emails weren't random spam — they came with urgency ("final warning!"), curiosity ("confidential!!"), or affection ("love letter"). Those feelings are the payload. The attachment is just the delivery truck.


The Habit

Pause before you open

ILOVEYOU was unstoppable because it felt personal. Modern scams still use the same playbook — in texts, DMs, and emails. The defense is a tiny pause:

1

Unexpected + attachment = stop

If you weren't expecting a file, don't open it — even from someone you know. Their account could be the thing that's infected.

2

Show file extensions

Turn on full file names on your devices. A file ending in .vbs, .exe, or .js is a program, not a document.

3

Distrust the feelings

Curiosity, urgency, flattery, fear — if a message is designed to make you feel something fast, that's the trick working.

4

Check another way

If a "friend" sends a weird file, text them or ask in person: "Did you send me this?" Ten seconds of checking beats a worm.

Remember: the most convincing messages come from people you actually know, because the worm already ate their address book. Verify weird attachments, even from friends.


Talk About It

Try it with your family or class

Pick one of these to talk about at dinner, in the car, or with a classmate.

  • Ask a grown-up if they remember the ILOVEYOU email or another famous scam. Did they open it? What made it convincing?
  • De Guzman was never punished because no law covered what he did. Is it possible to "invent" a crime after the fact? What should the rule be?
  • Look at recent texts or DMs together. Which ones use urgency or curiosity to get a click? How could you check each one?

Your Turn

Check your understanding

In your own words: ILOVEYOU spread faster than almost any worm before it. What two tricks made people open it — and what would you do differently today if a friend emailed you an attachment you weren't expecting?

Your answer:

Sample answer: The first trick was social engineering: a subject like "ILOVEYOU" plus a letter from someone you know made people curious enough to open it. The second was technical: Windows hid the real ".vbs" extension, so a program looked like a harmless text file. Today I'd leave an unexpected attachment unopened and check with my friend another way, because their account could be infected and sending mail without them knowing.


Check Yourself

Quick quiz

1. Why did the "LOVE-LETTER-FOR-YOU.TXT.vbs" attachment fool people?

2. How did ILOVEYOU spread to new victims so fast?

3. What was the strangest part of the ILOVEYOU fallout?

Next: the worm that made friends for you

ILOVEYOU needed you to click. The next worm didn't even need that — just visiting a MySpace profile infected your own. Meet the 19-year-old who became everyone's "hero."

Part of the Cyber Attack Stories tutorial series.