Re: Linux, BSD, and Unix are fundamentally insecure.

From: The Ghost In The Machine (ewill_at_aurigae.athghost7038suus.net)
Date: 09/13/04


Date: Mon, 13 Sep 2004 14:38:07 GMT

In comp.os.linux.advocacy, Hamilcar Barca
<hamilcar@tld.always.invalid>
 wrote
on Thu, 09 Sep 2004 23:25:43 -0600
<20040910012529.204$2Z@news.newsreader.com>:
> In article <3d6111f1.0409092000.60888c43@posting.google.com> (Thu, 09 Sep
> 2004 21:00:34 -0700), Mike Cox wrote:
>
>> When Scott rebooted the machine, he typed in the new root password and
>> was in. The consultants jaw dropped, my boss laughed, and will now
>> trust my MCSE's judgement in all things related to IT in the company.
>
> Your story is surprisingly uninteresting and, to top it off, amazingly
> fictitious.
>

I doubt it's fictitious in the sense that one can easily do the above.
It's mostly a matter of compromising physical security with
something along the lines of a Knoppix disc -- pop it in,
mount, edit, and presto ... the machine's 0wn3d.

However, there are a number of defenses, some of them rather simple.

[1] BIOS password. It takes a bit of work to get around that,
    although it's not all that strong as a defense, if one
    has a screwdriver handy.

[2] LILO/GRUB password. Not quite as general as [1], but that
    screwdriver won't help, either; the best one can do is
    some judicious disk sector editing -- and that of
    course requires root access.

[3] Encrypted volumes. If one's serious about security one should
    at least consider these. Thankfully, Linux supports these
    without too much hassle -- although I'd have to look up
    the details.

[4] BIOS bootorder. You can forget about booting that Knoppix disk
    if this is done right. (You can forgot about booting the machine
    at all if done wrong, of course. :-) )

[5] UML/virtual machines. This rather esoteric variant
    would work reasonably well; the idea is that the
    overlayer (the native Linux kernel) would have no idea
    as to what the underlayer (the emulated machine) is
    doing; all the overlayer sees is a "linux" executable
    running, disk I/O (which goes through the overlayer's
    file system, like any good app), and the virtual packet
    (TAP/TUN) network traffic. The underlayer could
    combine this with SSL and encrypted volumes, plus an
    image backup. There is a price to pay, admittedly
    -- a small performance penalty for single processor
    machines, an unknown performance penalty for multiple
    processor machines, mostly because I don't know if
    the underlayer threads can use overlayer processor
    resources.

[6] Linux BIOS. This interesting variant basically loads the
    kernel on the BIOS chip -- and is reminiscent of good old
    Amiga Kickstart from days gone by, albeit with a more
    sophisticated operating system (though not much more
    sophisticated; the main failing of the Amiga Exec was that
    its scheduler didn't have dynamic priority adjustment
    or virtual memory management -- and the latter was added
    by add-on products, although the results were of questionable
    reliability, mostly because each app had to be registered
    with the software, for some reason).

[7] Diskless CD-boot. A system image is placed on CD
    or DVD, and sufficient RAM is on the system so that
    no swap is needed for the application. The temporary
    file system is stored on a ramdisk. Such a machine
    might be compromisable but a reboot would usually
    "fix" the compromisation (although some of the more
    sophisticated viruses might hide in a secretive RAM
    spot during the reboot!) and no damage could be
    done to the machine itself, although depending on the
    application (which presumably transmits requests to
    a back end), things could get slightly muddled elsewhere.

    An alternative is some sort of PXE or PXE-like boot
    capability, using GRUB and a central file server.
    Since this requires the network there's a possibility
    of jamming or hijacking, though -- although with modern
    switches this appears far less likely than with the
    old hubs, at first blush. (It may depend on the switch.)

[8] Self-firewalling. This weird capability basically means that
    a box can't talk to itself, and might be next to useless
    unless combined with [5]. There are also possibilities
    such as transparent NAT, blacklists, and whitelists -- all
    done with iptables. Such a box would do as a firewall,
    though more specialized hardware is presumably out there
    by now.

I'll admit to some curiosity as to what Windows has that can
compete with these, although it is possible for Windows
to run Linux (www.colinux.org or .com; I forget which), run
virtual machines (using VMWare), and support encrypted volumes.
There is also an Embedded XP variant, which suggests [7].

And of course Windows touts a firewall. (How good it is, I
can't say. A firewall won't be much of a defense against,
say, the old Anna K. virus, if someone's stupid enough to
open it.)

-- 
#191, ewill3@earthlink.net
It's still legal to go .sigless.


Relevant Pages

  • Re: GRRRR!!!
    ... I have a linux system, and generally> it doesn't need rebooting. ... apparently it's time for me to just set up a> completely separate box...with Windows. ... Meaning that when you plug the computer back in and reboot it, it needs to be reset from the router to assign it an internal ip. ...
    (alt.2600)
  • Re: Linux Is A Bore
    ... >> I thought the toughest part about switching from windows to linux ... >> would be learning to edit config files, but it is turning out to ... Put a cron entry in that will reboot the machine, ... engineer to automagically corrupt a linux system. ...
    (comp.os.linux.misc)
  • Re: remote control of dual boot
    ... Of course, a reboot will ... |>> Is there a good way to boot FC2 from Windows? ... I would make my linux be the default OS to ...
    (Fedora)
  • Re: Better Windows/Linux shared FS than FAT32?
    ... > unless I want to reboot, shuffle files, and reboot again frequently. ... > Linux and Windows land. ... Is it the 2GB file-size limit? ...
    (comp.os.linux.misc)
  • RE: Linux killer!
    ... I think the point is that if Linux is to make a bigger dent in the ... Windows desktop, more things have to "just work". ... family with three computers from windows to Linux and recorded the ... On my friends boxes, I am the only one with the root password, ...
    (Fedora)