ArticleslgStudy

science

SQL Slammer

SQL Slammer is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand SQL Slammer rather than just read about it. In short: SQL Slammer is a 2003 computer worm that caused a denial of service on some Internet hosts and dramatically slowed general Internet traffic. It also crashed routers around the world, causing even more slowdowns.

SQL Slammer — main illustration
SQL Slammer — illustration

Key takeaways

  • SQL Slammer belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect SQL Slammer to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of SQL Slammer from memory before moving on to harder problems.

Reference excerpt

SQL Slammer is a 2003 computer worm that caused a denial of service on some Internet hosts and dramatically slowed general Internet traffic. It also crashed routers around the world, causing even more slowdowns. It spread rapidly, infecting most of its 75,000 victims within 10 minutes. The program exploited a buffer overflow bug in Microsoft's SQL Server and Desktop Engine database products. Although the MS02-039 (CVE-2002-0649) patch had been released six months earlier, many organizations had not yet applied it.

Technical details The worm was based on proof of concept code demonstrated at the Black Hat Briefings by David Litchfield, who had initially discovered the buffer overflow vulnerability that the worm exploited. It is a small piece of code that does little other than generate random IP addresses and send itself out to those addresses. If a selected address happens to belong to a host that is running an unpatched copy of Microsoft SQL Server Resolution Service listening on UDP port 1434, the host immediately becomes infected and begins spraying the Internet with more copies of the worm program. Home PCs are generally not vulnerable to this worm unless they have MSDE installed. The worm is so small that it does not contain code to write itself to disk, so it only stays in memory, and it is easy to remove. For example, Symantec provides a free of charge removal utility, or it can even be removed by restarting SQL Server (although the machine would likely be reinfected immediately). The worm was made possible by a software security vulnerability in SQL Server first reported by Microsoft on 24 July 2002. A patch had been available from Microsoft for six months prior to the worm's launch, but many installations had not been patched – including many at Microsoft. The worm began to be noticed early on 25 January 2003 as it slowed systems worldwide. The slowdown was caused by the collapse of numerous routers under the burden of extremely high bombardment traffic from infected servers. Normally, when traffic is too high for routers to handle, the routers are supposed to delay or temporarily stop network traffic. Instead, some routers crashed (became unusable), and the "neighbour" routers would notice that these routers had stopped and should not be contacted (aka "removed from the routing table"). Routers started sending notices to this effect to other routers they knew about. The flood of routing table update notices caused some additional routers to fail, compounding the problem. Eventually the crashed routers' maintainers restarted them, causing them to announce their status, leading to another wave of routing table updates. Soon a significant portion of Internet bandwidth was consumed by routers communicating with each other to update their routing tables, and ordinary data traffic slowed or in some cases stopped altogether. Because the SQL Slammer worm was so small in size, sometimes it got through even when legitimate traffic could not. Two key aspects contributed to SQL Slammer's rapid propagation. The worm infected new hosts over the sessionless UDP protocol, and the entire worm (only 376 bytes) fits inside a single packet. Each infected host would simply "fire and forget" packets as rapidly as possible. The worm left a majority of Bank of America's 13,000 automated teller machines unable to process customer transactions. In Korea, almost all customers of KT, one of the country's two largest internet service providers, lost their connections. The worm also led to cancelled airline flights.

Notes

References

External links News BBC NEWS Technology Virus-like attack hits web traffic MS SQL Server Worm Wreaking Havoc Wired 11.07: Slammed! A layman's explanation of the Slammer code. Announcement Microsoft Security Bulletin MS02-039 and Patch "CERT Advisory CA-2003-04: MS-SQL Server Worm". Carnegie Mellon University Software Engineering Institute. Archived from the original on 1 February 2003. Retrieved 22 September 2019. Symantec Security Response - W32.SQLExp.Worm Analysis Inside the Slammer Worm IEEE Security and Privacy Magazine, David Moore, Vern Paxson, Stefan Savage, Colleen Shannon, Stuart Staniford, and Nicholas Weaver Technical details Worm code disassembled at the Wayback Machine (archived 22 July 2011) Multiple Vulnerabilities in Microsoft SQL Server - Carnegie-Mellon Software Engineering Institute

Illustrations

SQL Slammer: SQL Slammer Computer worm.
SQL Slammer Computer worm.

Worked examples

Example 1 — a first encounter with SQL Slammer

Start with the simplest possible case. Write down what SQL Slammer claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to SQL Slammer before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about SQL Slammer ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of SQL Slammer

In research
SQL Slammer appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses SQL Slammer in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
SQL Slammer is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2000s in hacking, Cybercrime in India, Denial-of-service attacks, so understanding it makes those chapters shorter.
In everyday life
Look for SQL Slammer outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “SQL Slammer” →

How to study SQL Slammer in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what SQL Slammer means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain SQL Slammer out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is SQL Slammer in simple terms?

SQL Slammer is a 2003 computer worm that caused a denial of service on some Internet hosts and dramatically slowed general Internet traffic. It also crashed routers around the world, causing even more slowdowns.

Why does SQL Slammer matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study SQL Slammer?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on SQL Slammer.

Tags

  • 2000s in hacking
  • Cybercrime in India
  • Denial-of-service attacks
  • Exploit-based worms

Keep exploring