What is malware?

Malware is short for “malicious software”: software specifically designed to gain access to or damage a computer, usually without the owner’s knowledge. There are many types of malware, including spyware, ransomware, viruses, worms, Trojan horses, adware and any other malicious code that infiltrates a computer.

Software is generally considered malware because of what its creator intended, rather than because of any particular feature. Malware creation is on the rise because of the money that can be made through organized internet crime.

Malware was originally created for experiments and pranks, but it was eventually used to vandalize and destroy targeted machines. Today, much of it is created to make a profit, whether through forced advertising (adware), stealing sensitive information (spyware), spreading email spam or illegal content from hijacked “zombie” computers, or extorting money (ransomware).

What makes computers vulnerable?

Several factors can make computers more vulnerable to malware attacks:

  • Flaws in the design of the operating system (OS)
  • Every computer on a network running the same OS
  • Giving users too many permissions
  • Simply running a widely targeted operating system, such as Windows

How to protect yourself

The best protection from malware, whether ransomware, bots, browser hijackers or any other malicious software, is still the usual preventive advice:

  • Be careful about which email attachments you open.
  • Browse with caution and stay away from suspicious websites.
  • Install a quality antivirus program and keep it up to date.

All of these types of malware can wreak havoc on your computer. They put your files at risk, hold your documents hostage and plug your computer into botnets that spam the websites you know and love. Since the dawn of the internet, hackers have been looking for ways to exploit its weaknesses. Here are some of the most notorious attacks in history.

Famous malware attacks

SQL Slammer (2003)

  • Computers affected: 75,000 in ten minutes
  • Financial damage: $1.2 billion

SQL Slammer was a 2003 computer worm that caused a denial of service on some internet hosts and dramatically slowed down general internet traffic. It spread rapidly, infecting most of its 75,000 victims within ten minutes, by exploiting a buffer overflow bug in Microsoft’s SQL Server and Desktop Engine database products.

The internet slowed almost to a stop. Internet and mobile phone service in South Korea ground to a halt, airlines were unable to process tickets and bank ATMs stopped working.

The 376-byte worm only affected SQL servers that weren’t running Service Pack 3 (SP3), a Windows update that included a patch for the buffer overflow bug. The tiny piece of code generated random IP addresses and sent itself to those addresses from the infected system.

The main symptom of an infection was heavy outgoing traffic on UDP (User Datagram Protocol) port 1434. Because the whole worm fit into a single network packet, it spread extremely fast as infected computers fired off copies of itself. A patch Microsoft released in 2002, along with wide media coverage of the worm, had greatly reduced the risk of infection by 2004.

Home PCs generally weren’t affected. And because the worm lived only in a system’s memory, it was easy to remove.

Melissa (1999)

  • Financial cost: $80 million

The Melissa virus targeted millions of Microsoft Outlook users with an email that said: “Here is that document you asked for… don’t show anyone else ;)”. Sounds intriguing, right? Millions of curious users opened the attached file, LIST.doc, which contained a list of passwords for adult websites. Worse, the virus then forwarded the email to 50 of the user’s contacts.

Every new infection added to the load on email servers, until they were eventually overwhelmed, turning Melissa into a denial-of-service (DoS) attack. Most of the damage came from lost productivity while email servers were down.

Although it didn’t damage files, Melissa slowed down email services for hundreds of thousands of computers. It’s considered one of the first “social engineering” viruses, which exploit people’s emotions to do harm. The original Melissa carried no destructive payload, but variants soon appeared that could delete or destroy Microsoft Excel documents.

If you’re wondering where the name came from: the virus’s creator named it after a dancer he had met in Florida.

ILOVEYOU (2000)

  • Computers affected: 45 million in two days
  • Financial cost: $10 billion

The ILOVEYOU worm, also known as the Love Bug, preyed on computer users looking for one thing: love. Users received an email with an attached “love letter”. But instead of quoting Byron, Shakespeare or Austen, the letter was a Visual Basic script that overwrote files with extensions such as .JPEG, .DOC and .MP3. What’s worse, the malware then forwarded the letter to people in the user’s email contacts.

The attachment was named LOVE-LETTER-FOR-YOU.TXT.vbs. Windows at the time hid known file extensions by default, so the “.vbs” was invisible and users thought they were opening a harmless text file.

Opening the attachment ran the Visual Basic script. The worm then damaged the local machine by overwriting many types of files (including Office documents, images and audio files, hiding MP3 files rather than overwriting them) and sent a copy of itself to every address in the Windows Address Book used by Microsoft Outlook. This made it spread faster than any email worm before it.

Storm Worm (2007)

  • Computers affected: 1.5 million
  • Financial damage: $10 billion

Although it’s commonly called the Storm Worm, this malware is technically not a worm but a Trojan horse, since it hides malicious functions while pretending to be a legitimate program. It’s also known as Nuwar, Peacomm and Small.DAM.

It tricked people into clicking an email link to a news story about a storm raging across Europe: “230 dead as storm batters Europe”. The hackers also lured curious users with sensational fake headlines about world leaders. Hundreds of thousands of people clicked in the first few hours, and the malware went after Microsoft Windows systems that hadn’t been properly updated.

Once active, the Storm Worm installed a file called wincom32.sys that ran quietly as a device driver. It opened several UDP ports to connect to a private, encrypted peer-to-peer (P2P) network based on the Overnet protocol, registered the computer as a new peer and waited for instructions from its controllers.

Through this network, it could download several more files, usually named game0.exe to game5.exe. These had specific jobs: launching distributed denial-of-service (DDoS) attacks, installing a backdoor so the controllers could access the computer remotely, stealing email addresses and using those addresses to spread the malware further.

The whole process aimed to make each infected computer part of a huge, for-profit botnet controlled by the Storm Worm’s creators. Unlike a typical botnet, though, it didn’t rely on a central server for command and control. Instead, control was built into every peer in the P2P network, which made the operation much harder for law enforcement to take down: when one node was shut down, others could easily take its place.

One of the main ways it spread was through email, as an .exe attachment. Its authors used social engineering, with subject lines about fake but sensational stories, to make people curious enough to download and open the attachment.

Anna Kournikova (2001)

  • Computers affected: more than 100,000
  • Damage: US$166,000

The Anna Kournikova virus was a worm that spread by email, disguised as an image attachment named “AnnaKournikova.jpg.vbs”. It arrived with the subject line “Here you have, ;0)” and appeared to contain a picture of the professional tennis player.

When opened on Microsoft Windows, the file didn’t show a picture at all. Instead, it ran a Visual Basic script that emailed itself to everyone in the victim’s Microsoft Outlook address book. Users of other operating systems, such as macOS and Linux, weren’t affected. The virus had no destructive payload: it didn’t erase any files or send information back to its creator.

Its creator, a young Dutchman named Jan de Wit, hadn’t actually written the worm himself. He used a virus generator made by an Argentinian programmer and created the worm in a few hours. He downloaded the program on Sunday, February 11, and released the worm in an online newsgroup at around 3:00 p.m. the same day. Once he understood what the worm had done, he talked to his parents and turned himself in to the police in the town of Sneek, in the northern Dutch province of Friesland.

Code Red (2001)

  • Computers affected: hundreds of thousands
  • Financial damage: $2 billion

The Code Red worm terrified computer users in 2001, when it took over huge numbers of computers and splashed a message across their screens: “CODE RED: WELCOME TO WORM.COM HACKED BY CHINESE.” It struck hundreds of thousands of machines in just a few hours.

The first version of the worm (CRv1) began infecting computers running unpatched versions of Microsoft’s IIS web server on July 12, 2001. Then, around 10:00 UTC on July 19, 2001, a second version (CRv2) appeared. It shared almost all of its code with the first, but spread much faster.

Finally, on August 4, a new worm began infecting machines through the same IIS vulnerability. Although it shared almost no code with the two earlier versions, its source code contained the string “CodeRedII”, so it was named Code Red II.

Code Red was used to launch a distributed denial-of-service (DDoS) attack, flooding websites with far more traffic than they could handle. It spread by exploiting a common type of vulnerability called a buffer overflow, using a long string of the repeated letter “N” to overflow a buffer so it could run its own code and infect the machine.

WannaCry ransomware (2017)

  • Computers affected: 230,000
  • Financial damage: $4 billion

The WannaCry ransomware attack was a global epidemic in May 2017 that spread through computers running Microsoft Windows.

Once it infected a computer, it encrypted (essentially scrambled) all the data, then displayed a screen demanding a Bitcoin ransom to get the files back. Typically, the price went up over time until a countdown ended, at which point the files would be destroyed.

WannaCry was able to spread thanks to EternalBlue, an exploit targeting older versions of Windows that used an outdated version of the Server Message Block (SMB) protocol.

WannaCry is a network worm with a built-in mechanism for spreading itself automatically. It scans for systems vulnerable to EternalBlue, then installs DoublePulsar, a backdoor tool developed by the US government and leaked by the Shadow Brokers hacking group, and uses it to run a copy of itself.

People became victims of WannaCry because they hadn’t updated their Microsoft Windows operating system.

Stuxnet (2009 to 2010)

Stuxnet was the first virus specifically designed to target computers that control industrial systems.

It infected Windows computers running Simatic WinCC, software made by the German industrial giant Siemens. Simatic WinCC is a SCADA (“supervisory control and data acquisition”) system, used to help run everything from traffic systems and pipelines to nuclear plants.

Stuxnet didn’t actually do anything to those Windows computers, because they weren’t its real target. What it was looking for was a particular model of Siemens programmable logic controller (PLC): a small embedded control system that runs automated processes on factory floors, in chemical plants, in oil refineries, along pipelines and, yes, in nuclear power plants.

Its behavior suggests it only activated in plants with one specific configuration. It deliberately searched for a particular combination of modules and program patterns that applied to one specific production process. Analysis makes it clear that Stuxnet wasn’t about sending a message or proving a concept: it was built to destroy its targets with military precision.

Experts say such sophisticated malware could only have been produced by a highly skilled team with insider knowledge of industrial software. We know it was spread using USB thumb drives.

Stuxnet was first discovered in June 2010. It had two ways of updating itself: contacting two control servers, in Denmark and Malaysia, or using a peer-to-peer system in which two copies of Stuxnet that met would compare versions and both update to the latest one. It also had a kill date of June 24, 2012, when it would stop spreading and delete itself.

MyDoom (2004)

  • Financial damage: $38 billion

MyDoom, also known as W32.MyDoom@mm, Novarg, Mimail.R and Shimgapi, first appeared in 2004 and is still regarded as one of the fastest-spreading and most destructive computer viruses of all time. At one point, it was responsible for up to a quarter of all emails being sent worldwide.

The worm contained the message “andy; I’m just doing my job, nothing personal, sorry,” which led people to believe its creator had been paid to write it. Some later reports linked it to a programmer in Russia, but its real author has never been identified.

MyDoom.A, the original and far more damaging version, compromised an estimated 450,000 to 500,000 computers. It installed backdoor Trojans and launched a crippling distributed denial-of-service attack against the website of The SCO Group (Santa Cruz Operation), which appears to have been its main goal. MyDoom.B appeared only days later. It also spread like wildfire, but its attempt to take down Microsoft’s website was less successful.

Conficker (2008)

  • Computers affected: 6 to 7 million
  • Financial damage: $9.1 billion

Conficker, also known as Downup, Downadup and Kido, wormed its way into millions of government, business and home computers in more than 190 countries, making them part of a botnet. It was the largest known computer worm infection since 2003, although it’s believed not to have caused much direct damage.

Once installed, the worm copied itself under a random name into the system directory (%systemroot%\system32) and registered itself as a service. It then found the infected computer’s IP address and downloaded a small HTTP web server.

With the web server running, it scanned for other vulnerable machines. When it found one, it sent the infected machine’s web address to the target as the payload. The target then downloaded the worm from that address and began infecting other machines in turn, so there was no central point of download to shut down.

After infecting a machine, Conficker also patched the security hole it had used, to stop other worms from getting in. Its DLL (dynamic-link library) file was protected against deletion by setting its owner to “SYSTEM”, which blocked deletion even by users with administrator rights. The worm also stored a backup copy of this DLL, disguised as a .jpg image, in the Internet Explorer cache of the network services user.