Re: Alert: New version of Code Red, XXXX

From: Russ (Russ.Cooper@RC.ON.CA)
Date: 08/05/01


Message-ID:  <E9A01F52DC939448BBDE44ED2E1C468F167BE9@muskie.rc.on.ca>
Date:         Sun, 5 Aug 2001 05:15:58 -0400
From: Russ <Russ.Cooper@RC.ON.CA>
Subject:      Re: Alert: New version of Code Red, XXXX
To: NTBUGTRAQ@LISTSERV.NTBUGTRAQ.COM


-----BEGIN PGP SIGNED MESSAGE-----

Ok, here's the latest on this new variant.

1. It makes a copy of CMD.EXE called ROOT.EXE in the;

\inetpub\scripts

and

\program files\common files\system\msadc

directories. Does this on both drive C: and D: (doesn't fail if D:
doesn't exist).

2. It then runs its attack program code to infect itself upon
numerous other boxes. This is done randomly, although there is a bias
to attack boxes that are part of the same class A as infected
attacker (so it hits your own boxes sooner rather than later). Attack
code runs for 24 hours, 48 hours on Chinese language systems.

3. After attack code runs (and it seems to be based on clock ticks,
not date), it then writes out a Trojan.

File Explorer.exe (8192bytes or 7K as displayed by Windows) is
dropped (from the code in the original attacking URL) to the root of
drive C: and D: (again, doesn't matter if D: doesn't exist).

4. The system is then rebooted (probably a forced reboot).

5. When the system restarts, it loads the trojan Explorer.exe from
the root directory on the boot drive. This code then does several
things;

a) Launches the real Explorer.exe, so the system looks normal.

b) Sets SFCDisable in hklm\software\microsoft\windows
nt\currentversion\winlogon to some undocumented value. Presumably
this disables Windows File Protection (so critical files could be
overwritten)

c) Creates two virtual directories (via the registry) in
hklm\system\currentcontrolset\services\w3svc\parameters\virtual
roots. Called "C" and "D", they are mapped to the root directories of
the two drives and permissions are established in the virtual
directory to allow script, read, and write access as well as setting
execute permissions to scripts and executables.

d) goes into an endless sleep loop.

The end result of all of this action is to leave your box wide open
to remote connection and total compromise.

Unlike "Code Red", this worm doesn't attack any single target at any
point, although its attack strength seems to be much higher (it
launches 300 threads right off, although some may only launch 100),
so its propagation seems much higher.

The attack only works properly on Windows 2000 systems (preliminary
analysis). ICSA Labs tested against an NT 4.0/IIS 4.0/SP3 box and
received a standard error message. Reports from subscribers suggest
that XP IIS 5.1 RC1 is invulnerable also. Its expected that it works
on PWS and OWS equally to IIS (all on W2K).

Its obviously a short-lived attack, at least the process of
collecting victims. What would be done with them once collected is
another story. No attempt is made by the worm to send anything
"home", although detecting compromised boxes is far too easy (very
unfortunately) for anyone outside your network.

Cleaning a compromised box should really be done by reformatting.
Although logging is left on for the new virtual directories created
(meaning you'd see access in your IIS logs), there's really no way to
be sure that files haven't been implanted to leave other backdoors
(not as part of this worm, but as part of the use of the opening it
creates).

Credits:

The bulk of the analysis was done by Nick Fitzgerald of Virus-L (and
friends) and Roger Thompson of TruSecure. Additional help came from
Bruce Hughes of the ICSA Labs.

Cheers,
Russ - Surgeon General of TruSecure Corporation/NTBugtraq Editor

-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.2

iQCVAwUBO20OzhBh2Kw/l7p5AQG9MQP/T8RZTzn46dzEuZMJ6Uobqm+dES6Vz3yh
zDPrKU5ACf1NjjN/ASAh+prv7VcOLtbQmpTstcm/m69LolI3ZObyId9HeGOdnKMa
4mTwtsllYXrvq4FzWPrL8/sjiZ1BK+MftnrlOgVidhTmJ1IxoRsYMYScGb9cBNJO
Ay43UpCIctU=
=vvAx
-----END PGP SIGNATURE-----

----------------------------------------------------------------------------
Delivery co-sponsored by Trend Micro
============================================================================
TREND MICRO REAL-TIME VIRUS ALERTS
If you would like to know about a virus outbreak before CNN and ZDNet get
Trend Micro Virus Info Feed FREE. Simply copy and paste a small piece of
code to give your visitors a real-time top 10 list and the latest virus
advisories. Setup takes just 10 minutes and requires no server-side code on
your Web site. All content is updated automatically from Trend Micro's Web
site.
http://www.antivirus.com/banners/tracking.asp?si=8&bi=237&ul=/syndication/
vinfo/
----------------------------------------------------------------------------



Relevant Pages

  • Re: Viruses
    ... cannot infect such an operating system using a virus. ... I just said that unix based systems are immune to the "virus" ... computers there is no way to mass attack them all automatically. ...
    (rec.photo.digital)
  • Re: Linux is the favourite hacker target
    ... The Globe Technology article normalize the attack ... That's because there are multiple virus toolkits for Windows, ... don't get attacked is that Unix simply isn't a widespread as MS-Windows. ...
    (comp.os.vms)
  • Re: My Doom Creators - incomprehensible
    ... > Microsoft and SCO for pride, more so LINUX!!! ... > SCO has a major lawsuit with Linux people, ... The Mydoom computer virus caused 250,000 computers worldwide to bombard SCO ... Group Inc.'s website in the largest-ever such electronic attack. ...
    (microsoft.public.security.virus)
  • Re: What is the motivation for Virus Writers?
    ... >> I am wondering why people write viruses at all. ... They rarely attack soldiers and police ... I don't see a problem with writing a virus. ... We know that international terrorism has killed far too many ...
    (microsoft.public.security.virus)
  • What is the motivation for Virus Writers?
    ... >Terrorists attack ordinary people because they are "soft ... To put virus and Trojan writers in the same group as ... are more likely to kill you then they are to infect your ...
    (microsoft.public.security.virus)