Code Red worm

Last reviewed:

The Code Red worm is a type of malicious software that emerged in July 2001, targeting computers running Microsoft's Internet Information Services (IIS) web server. The worm exploited a known vulnerability in the IIS software, allowing it to spread rapidly across the internet. Code Red caused significant disruption by defacing websites and consuming system resources, to widespread denial-of-service (DoS) attacks. As of October 2023, Code Red is considered a historical example of early internet worms that highlighted the importance of timely software patching and vulnerability management.

Overview

The Code Red worm was first discovered on July 15, 2001. It specifically targeted computers running Microsoft's Internet Information Services (IIS) web server software. The worm exploited a buffer overflow vulnerability in the IIS software, which allowed it to execute arbitrary code on the affected systems. Once infected, the worm would deface websites and attempt to propagate itself to other vulnerable systems, to a rapid spread across the internet.

History

The Code Red worm was named after the Mountain Dew Code Red soft drink consumed by the researchers who discovered it. The worm's initial version, Code Red I, was followed by a more virulent variant, Code Red II, which appeared in August 2001. Code Red II introduced additional functionalities, such as the ability to install a backdoor on infected systems, allowing attackers to gain remote access.

The worm's rapid spread was facilitated by the widespread use of unpatched IIS servers at the time. Within hours of its release, Code Red infected over 359,000 hosts, causing significant disruption to internet services. The worm's impact highlighted the need for improved cybersecurity practices, particularly in terms of timely patching and vulnerability management.

Technical characteristics

Code Red exploited a buffer overflow vulnerability in the IIS Indexing Service, identified as CVE-2001-0500. A buffer overflow occurs when a program writes more data to a buffer than it can hold, potentially allowing an attacker to execute arbitrary code. In the case of Code Red, the worm sent a specially crafted HTTP request to the IIS server, triggering the buffer overflow and allowing it to execute its payload.

Once executed, the worm would deface the infected website with the message "Hacked by Chinese!" and attempt to propagate itself to other vulnerable systems by scanning random IP addresses. Code Red I primarily focused on spreading itself, while Code Red II introduced additional functionalities, such as installing a backdoor for remote access.

Infection vector

The primary infection vector for the Code Red worm was the buffer overflow vulnerability in the IIS Indexing Service. The worm targeted systems running unpatched versions of IIS, exploiting the vulnerability to gain unauthorized access and execute its payload. The worm's propagation method involved scanning random IP addresses for vulnerable systems, allowing it to spread rapidly across the internet.

Notable campaigns

Code Red's most significant campaign occurred in July 2001, when it infected over 359,000 hosts within hours of its release. The worm's rapid spread caused widespread disruption to internet services, as infected systems experienced increased network traffic and resource consumption. The worm's impact was felt globally, with numerous high-profile websites defaced and services disrupted.

Detection and mitigation

Detecting and mitigating the Code Red worm involved several steps. Network administrators were advised to monitor for unusual network traffic patterns, such as increased scanning activity and unexpected HTTP requests. Additionally, organizations were encouraged to apply the necessary patches to vulnerable IIS servers to prevent infection.

Mitigation efforts also included implementing firewalls and intrusion detection systems (IDS) to detect and block malicious traffic. Organizations were advised to regularly update their software and maintain a robust patch management process to protect against similar threats in the future.

Timeline of Code Red Worm Events

Code Red Worm Infection Process

See also

Sources

Categories: Malware | Incidents
Last updated: September 1, 2026