Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jun 2008 03:08:51 +0200
From:      cpghost <cpghost@cordula.ws>
To:        Jeffrey Goldberg <jeffrey@goldmark.org>
Cc:        FreeBSD List <freebsd-questions@freebsd.org>, dfeustel@mindspring.com
Subject:   Re: FreeBSD and User Security
Message-ID:  <20080612030851.032afa26@epia-2.farid-hajji.net>
In-Reply-To: <DB7E0B8F-F956-4F1D-867F-C1889CCEDAF1@goldmark.org>
References:  <20080612001713.D1B718FC1B@mx1.freebsd.org> <DB7E0B8F-F956-4F1D-867F-C1889CCEDAF1@goldmark.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 11 Jun 2008 19:45:51 -0500
Jeffrey Goldberg <jeffrey@goldmark.org> wrote:

> On Jun 11, 2008, at 7:17 PM, dfeustel@mindspring.com wrote:
> 
> > A relatively new security threat known as 'The Blue Pill', based
> > upon hardware, is a class of virtual rootkits that can silently
> > take over Intel and AMD systems. A good site to visit to learn
> > about these virtual
> > rootkits is http://invisiblethings.org/index.html.
> 
> That is simple (in concept) yet absolutely brilliant!  I'm sure that  
> people much smarter that I am have thought about these things more  
> carefully than I have, but I'm not convinced that a blue pill would
> be completely undetectable.
> 
> First it should consume memory.  A very complete test of memory  
> through a modified memtest should be able to detect whether system  
> reported memory is accurate.

What if memtest already runs within the virtualization box? How can it
determine what the "right" amount of memory is supposed to be? And if
the virtualizer hot-patched memtest instructions, either on loading it
or dynamically while it runs, it  could make it report whatever it
liked.

> Secondly, a blue pill would need to be reinserted after a hard  
> reboot.  Therefore a look at the boot process (of a non-live system)  
> should be able to see whether there is something that reinserts the  
> blue pill.

Yes, but you've got to have a very close look at it, as it won't
necessarily appear on the screen -- being caught as well by the
virtualizer. And Joanna also has a paper about fooling hardware
capture cards into reporting bogus data on her site, so you won't
even be able to detect that RAM contains something else upon boot
than those hardware capture cards are supposedly reporting.

If all this is as she's described, it is truly brilliant from a
technical POV... and a very worrying thought as well.

> But even if detection is possible these ways, a Blue Pill would be  
> extremely difficult to detect once inserted, and so the focus would  
> have to be entirely on prevention.
> 
> Again, these are just my first thoughts after looking at this very  
> briefly.  The people who come up with this stuff and do proper  
> analysis are both smarter and more knowledgeable than I am.
> 
> Cheers,
> 
> -j

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080612030851.032afa26>