The Malware of Ultimate Destruction

other day Peter was talking about the ActiveX
Control of Ultimate Destruction 
— a hostile control which, the moment it is loaded
immediately formats your hard disk.  “urn:schemas-microsoft-com:office:office” />The
aim of the ACoUD is to do “as much damage as possible in a short amount of time”.


Peter’s not the only one who’s kept up at night worrying about this stuff.  Last
night I couldn’t sleep because I was thinking about how that characterization of the
ACoUD really isn’t bad enough.  If this
is going to be the ULTIMATE in destruction, let’s think about just how evil we can


the purposes of this discussion, let’s not care about how the evil code gets on your
machine.  Perhaps you download and trust
a malicious ActiveX control.  Perhaps
a worm takes advantage of a buffer overrun in the operating system.  Perhaps
you got an email virus, or ran a bad macro, or whatever.  Let’s
just call all those things malware.  Furthermore,
let’s assume that all attempts to stop the malware from running — like never logging
in as administrator, etc, — have failed and that the
malware has elevated its privilege to administrator
.  Let’s
assume that the malware author is brilliant and
has unlimited time to craft something incredibly
.  Remember, we’re going for
the ultimate here.


the worst I could come up with:


when the malware is run, first it waits until some point when no one is using the

When the coast is clear, it compresses and backs up the entire hard disk.

It then installs a minimal linux kernel on the box along with a cleverly written Windows

The state of the emulator is set up to exactly mimic the state of the machine as it
was before the attack.

The linux boot sequence is rewritten to exactly resemble the Windows boot sequence,
except that of course what is really happening is that linux is loading a windows
emulator during the boot.


net result: you are not even running Windows
anymore so nothing is trustworthy
.  ns = “urn:schemas-microsoft-com:office:smarttags” />The
emulator could be logging every keystroke, sending your files to

, whatever the emulator writer wants.  The
emulator could be reporting that no, there is no linux boot partition on this disk!  You
don’t own that box anymore.  The chain
of trust has been broken.


could you detect this attack?  Since you’re
not running Windows, you can’t assume that the operating system will report anything about
the machine correctly.  You’d have to
boot off of trustworthy media and run utility programs to examine the real state of
the disk.


could you prevent this ultimate attack?  Remember,
we’re assuming that all the usual good stuff has failed, like keeping up-to-date with
patches, not running as administrator, maintaining firewalls, not opening suspicious
email attachments, and so on.  What is
the final line of defense against this sort of ultimate malware?  Really
the only line of defense that remains is the hardware.  To
solve this problem the chain of trust needs to be rooted in the hardware, so that
when the machine boots it can tell you whether you are loading code that has been
signed by a trusted authority or not.  The
possibility of constructing such chips has met with considerable controversy over
the last few years, and it remains to be seen whether they are technically and economically


the point is that though this is in many ways a ridiculous “overkill” attack, it is
in principle possible. This is why trustworthy computing is so incredibly important.  At
the very least, you need to have confidence that when you boot up your machine, you
are actually running the operating system that you installed!



was thinking about all of this last night because of the recent successful attack
against Valve, a local software company that made the popular video game “Half Life”.  I
don’t know the exact details — and probably no one does except for the attackers
who perpetrated the attack — but what seems likely is that attackers exploited a
known vulnerability in Outlook, and a high-ranking Valve employee was vulnerable to
the attack.  The malware installed a key
press logger, and from that point, it was pretty much game over, so to speak.  By
monitoring key presses they’d quickly learn all kinds of details such as the administrator
passwords to other machines, compromise them, and eventually manage to “own” as much
of the network as possible.  The attackers
didn’t have to emulate all of Windows, they just had to tweak it a tiny bit by installing
a key logger.


fact that this underscores the importance of keeping up to date on patches is not
particularly relevant, and I do not ever want to blame the victim for failing to patch
a machine.  The important point which
this illustrates is that there is a spectrum of malware out there.  Consider
the Blaster worm, which simply tries to cause as much havoc as possible and spread
as fast as possible — that thing wasn’t targeted against anyone in particular, and
though it was very costly, it was akin to a hurricane that blows through and wrecks
a lot of stuff.  But it certainly announces
itself.  I mean, it might as well put
up a big dialog box that says YOU ARE OWNZORD BY BLASTER — Blaster was about as subtle
as a brick through a window.


Valve attackers were far cleverer and subtler. Their attack was focused on a particular
individual at a particular company and depended on slowly and carefully gathering
the information needed to launch further attacks, avoiding detection until the job
was finished.  You can rapidly write and
disseminate a virus checker for “broad distribution” worms, viruses and Trojans, but
it is very hard to write a “virus checker” for custom built malware that only attacks
a single person!


second kind of attack I suspect is far, far more common than the first and ultimately
costlier.  But since the first kind is
by its nature highly visible, and the second is by its nature as invisible as possible,
the former gets a lot more press.


need to solve this problem and produce a more trustworthy digital infrastructure.  It
will not happen overnight, but I am very confident that we are on the right track.

Tags Security

Comments (6)

You must be logged in to post a comment.

  1. Peter TorrNice entry, Eric. Whilst Microsoft software is often the target of mass-infection, let’s-get-as-many-zombie-machines-and-generate-as-much-network-traffic-as-possible attacks, it really is the hand crafted, precision attacks against high profile targets (like Valve or the FSF) or the “inside” attacks against corporate systems that are more interesting (and more costly) in the long run. And they happen no matter who your software vendor of choice is, or how well your machines are patched, or whether you have the source code or not.
  2. Log in to Reply
  3. October 18, 2003 at 5:26 pm
  4. Siew Moi KhorAlso many inside attacks or targeted attacks aren’t reported as corporations worry that it might cause a lost of confidence and hurt business if they’re made public.
    Another interesting post Eric! Thank you.
  5. Log in to Reply
  6. October 19, 2003 at 2:02 am
  7. MartinJA few years ago, I had a server hacked. It took me a while to figure it out (I guess the new admin account, hax, didn’t catch my eye right away). What made me notice was that when I logged off, the screen would blink and then not log off. The second attempt would work.After a bit more debugging, I found that this sucker registered itself as the handler for text files (not just .txt extensions). What it did was make sure it was “installed” correctly and then ran a second copy of Explorer and then opened the original text file with notepad.Log in to Reply
  8. I ended up having to wipe the entire domain since it was possible that the domain was no longer under my control. The machines were patched and up to date as much as possible (within a week of any releases). It was also running anti-virus software. I’ve always wondered if my machine was a test run for some other attack.
  9. That’s when I checked the running tasks and saw a process I didn’t recognize. After looking for it, I found it in the system32 folder. It was an executable disguised with the standard folder icon. I found an entry in the registry named passwords.
  10. October 21, 2003 at 8:16 am
  11. Peter TorrOuch!Log in to Reply
  12. But that’s the right approach to take —
  13. October 21, 2003 at 5:35 pm
  14. MartinJYeah. Now I hide behind a firewall, keep as many ports closed as possible (now why in the heck don’t my servers sync up with the time servers… oh, yeah), use different passwords for every machine, and moved other services off the domain controller (now that I can actually afford to build and run more than one server).
  15. Log in to Reply
  16. October 22, 2003 at 10:18 am
  17. Office Development, Security, Randomness…Log in to Reply
  18. March 21, 2004 at 5:42 pm

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s