Click anywhere to stop


Class Net-Worm
Platform Win32

Technical Details

Helkern (aka Helkern, aka Sapphire) is an extremely small (just 376 bytes) Internet worm that affects Microsoft SQL Server 2000.
To get into victim machines the worm exploits a buffer overrun vulnerability (see below).

When the worm code gets into a vulnerable SQL server it gains control (by using a buffer overrun trick), it then assumes three Win32 API functions:

GetTickCount (KERNEL32.DLL)

socket, sendto (WS2_32.DLL)

The worm then gets a random counter by using the GetTickCount function and goes into an endless spreading or “spawning” loop. In the spreading loop the worm sends itself to random IP addresses (depending on the random counter), to the MS SQL port 1434.

The worm sends multicast packets, meaning with only one “send” command hits all 255 machines in a subnet. As a result this worm is spreading 255 times faster than any other worm known at the moment.

Because MS SQL servers are often used on the Web this worm may cause a global INet DoS attack, because all infected servers will try to connect to other randomly selected machines in an endless loop – and this will cause a global INet traffic overflow.

The worm is memory only, and it spreads from an infected machine’s memory to a victim machine’s memory. The worm does not drop any additional files and does not manifest itself in
any way.

There are text strings visible in the worm code (a mix of worm code and data):


Buffer Overflow

This buffer overrun exploit has the following name:

Unauthenticated Remote Compromise in MS SQL Server 2000

Affected systems are:
Microsoft SQL Server 2000, all Service Packs

This security breach was found in July, 2002 and was later fixed in “MS SQL Server 2000” patches.

You may read more about this at the following addresses:
Microsoft Security Bulletin MS02-039

NGSSoftware Insight Security Research Advisory

The patch for MS SQL Server 2000 is available at:

Find out the statistics of the threats spreading in your region