Re: Compromised Windows Server



Hi Patrick

Came in this morning to find a windows 2003 server I manage scanning the
Internet for machines listening on tcp 139 and 445. While looking at the
machine I noticed the following processes running.


Sounds like you were able to capture some of the network traffic. Got any
packet dumps, netflows or the like?


I believe that the ponoas.exe is some sort of rootkit although searching on
google for this file name returns nothing. Also searching
mwvsta.exereturns nothing. At this point I have removed these files
from the system
and registry but am weary that the server will get hit again. Has anyone
had an experience with the following file or have any idea what rookkit of
virus they are associated with?

As other people have mentioned, file names a terribly unreliable way of
identifying malware. If you still have copies of the malware, run them
through virustotal (www.virustotal.com), this runs the files past a number
of AV scanners to see what they detect it as.

I'd also poke the malware to see how it wiggles.

You should be wary of the server being re-compromised. Especially if you
have not identified and corrected the vulnerability that was used to
compromise the server in the first place.

There's a number of things that I would recommend here - besides a complete
rebuild, which btw I normally recommend after any compromise:

1. Get a pen and piece of paper and start writing. :)

2. Run the MBSA tool (Microsoft Baseline Security Analyser) over the
server, this is good for a quick overview of missing patches for MS
products, record the results.

If the host is a web server, check for updates to php or whatever you
happen to be running there, record the results. For the record, you should
do this for every application which is reachable via the network on this
host, and if users browse the web from this server, every application
period. Record the results.

3. Run the MSRT (Malicious Software Removal Tool) over the affected host
and record the results.

4. Crank up any monitoring you do of traffic to/from this server to 11 for
a period which best reflects the requirements of your incident response
policy.

5. Write a report on your findings, and update your security/ response
procedures accordingly. If you don't have these procedures, then now is
a good time to get them. Nothing like a good compromise to get management
backing for this :).

5. If pain persists, contact the MSRC and your local CERT team.

AusCERT have a good document on responding to a compromise of a Windows
here: http://www.auscert.org.au/4323

The MSRT, and MBSA are all available free from Microsoft.

Hope that helps,

MacLeonard

--
MacLeonard Starkey, Security Analyst | Hotline: +61 7 3365 4417
AusCERT | Fax: +61 7 3365 7031
The University of Queensland | WWW: www.auscert.org.au
QLD 4072 Australia | Email: auscert@xxxxxxxxxxxxxx


------------------------------------------------------------------------------
This List Sponsored by: Black Hat

Attend the Black Hat Briefings & Training USA, July 29. August 3 in Las Vegas.
World renowned security experts reveal tomorrow.s threats today. Free of
vendor pitches, the Briefings are designed to be pragmatic regardless of your
security environment. Featuring 36 hands-on training courses and 10 conference
tracks, networking opportunities with over 2,500 delegates from 40+ nations.

http://www.blackhat.com
------------------------------------------------------------------------------



Relevant Pages

  • Re: SSH as root
    ... Subject: SSH as root ... but it doesn't require having a key on the server that could be ... If they compromise a server, and the passphrase, etc. is there, they only ... private key to anyone. ...
    (SSH)
  • Re: Ten least secure programs
    ... djbdns) or no history of anything major or that would compromise the ... remote exploits, though these are all multi-user systems that I speak of, ... Server administration, security, programming, consulting. ... marketshare. ...
    (Security-Basics)
  • Re: User access & security
    ... rootkit of some sort and totally compromise the system. ... you want your users to be able to do (permissions permissions ... server - must be OK!" ...
    (comp.os.linux.security)
  • Re: exploit or human
    ... It sounds like a script kiddies compromise with worm infection too. ... Is there any of this RedHat 7.3 server running wu-ftpd ftp server or a ... >so on) while some other software runs just fine makes the rootkit ...
    (Incidents)
  • SBS always a security compromise ?
    ... > saying that SBS doesn't represent a security compromise). ... Depends on what you consider a security compromise. ... compromise if looking after a single server is only a small part of your ...
    (Focus-Microsoft)