SQL Slammer
- Type
- Worm
- Capabilities
- Scanning
- Platforms
- Windows
SQL Slammer, also known as Sapphire and SQL-Hell, is a memory-resident network worm that caused widespread Internet disruption on January 25, 2003. It targets Microsoft SQL Server 2000 and Microsoft Desktop Engine (MSDE) 2000 on Windows by exploiting a buffer overflow in the SQL Server Resolution Service, associated with CVE-2002-0649. Infection occurs through a specially crafted UDP packet sent to port 1434, without requiring user interaction. A security patch addressing the vulnerability had been available since July 2002.
After compromising a vulnerable server, SQL Slammer executes in memory and rapidly scans for additional systems to infect. Its propagation generated overwhelming volumes of network traffic, saturating links and causing widespread slowdowns and service outages. Early infections were estimated to double approximately every 8.5 seconds, with about 90 percent of susceptible hosts infected within ten minutes. The worm carried no separate destructive payload; its major operational impact resulted from uncontrolled scanning and replication rather than deliberate data destruction. Its targeting was determined by vulnerable software exposure rather than a particular industry.
Techniques & procedures
8 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
"SQL Slammer" and "TCP sequence prediction attack" are listed among linked security incident topics; SQL Slammer is historically associated with SQL Server exploitation.
Execution
1 technique
Execution
By sending a carefully crafted packet to the Resolution Service, an attacker could cause portions of system memory (the heap in one case, the stack in the other) to be overwritten. Overwriting it with carefully selected data could allow the attacker to run code in the security context of the SQL Server service.
Privilege Escalation
1 technique
Privilege Escalation
These techniques can be in the form of exploits and code injections to execute malicious code directly in memory, storing scripts in registry, and executing commands via legitimate tools.
Stealth
1 technique
Stealth
These techniques can be in the form of exploits and code injections to execute malicious code directly in memory, storing scripts in registry, and executing commands via legitimate tools.
Discovery
1 technique
Discovery
SQL Slammer did not even have a malicious payload; it just deluged networks with scans. Less than 10 minutes after being released, it scanned over 90 percent of the entire internet, essentially infecting all vulnerable machines.
Lateral Movement
1 technique
Lateral Movement
“WannaCry used an exploit in SMB... This enabled it to spread from network to network, as well as between computers within a network, entirely autonomously.”
Command and Control
1 technique
Command and Control
A second kind of covert channel, aimed at subverting firewall–based filtering, uses standard ports for passing non-standard traffic.
Impact
2 techniques
Impact
A second kind of covert channel, aimed at subverting firewall–based filtering, uses standard ports for passing non-standard traffic. Firewalls that enforce a “block-all-but-necessary” approach to regulating traffic are the typical targets of standard port abuse. A recent (25 Jan 2003) case of standard port abuse involved a Denial of Service (DOS) attack that was variously known as the ‘SQL Slammer’ worm, ‘Sapphire’ and “SQL-Hell’.
The infected host starts transmitting 376 byte long UDP packets at a very high rate to random IP addresses on the Internet thereby generating overwhelming traffic.
Recent activity
35 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.