Re: Does anyone recognize this?

From: nemo_outis (abc_at_xyz.com)
Date: 05/28/05


Date: 28 May 2005 01:34:32 GMT


 
Ok, heads up all, including (especially) sysadmins:

I'm going to reveal one of my magician's tricks. And like all magician's
tricks it will seem really simple once you know it (but a deep mystery
otherwise). So don't scoff at its simplicity (I've **never** met a
sysadmin who realized the implications of this, although some were dimly
aware of it in terms of Dell, etc. having a "special" area on the HD).

This method is one of the chief hidey-holes I use for rootkits (but it
can be used to hide a lot of other things). I'm not going to reveal how
to use it for a rootkit, but I am going to disclose the underlying
mechanisms and a magnificent (but dangerous!) tool for dealing with them.

The key buzzword (buzzphrase?) is "host protected area," abbreviated as
HPA.

What is it? It's an area of the HD that is not accessible (or even
detectable) by ordinary operating systems or applications or even by many
low-grade forensic tools. High-grade forensic tools (e.g., Encase) WILL
detect it, however.

In a nutshell, you can send a very-low-level command to an ATA drive to
cause it to permanently (until you change it again) under-report its size
to the BIOS, operating system, etc. The remaining area is inaccessible
by any OS (except using the little-known and less-used direct ATA command
set). Some manufacturers (Dell, Compaq) sometimes use this area and
some Gigabyte motherboards support a variant where they clone a whole
boot partition there!

So, your 32 Gb drive reports to any OS (and even the BIOS) that it is,
say, a 31.5 Gb drive (you can make the hidden area any size, even a very
large size, but it's unwise to be too greedy). The hidden .5 Gb can then
be used to store data (in some cases, rootkit files!).

Now that you know the principle, I'll give you the real gem, the tool to
manipulate this with. (Warning: This tool is very powerful and you can
blitz not just one drive but multiple drives if you mishandle it!)

The tool is MHDD and it is available (free!) at:

http://mhddsoftware.com/

Have fun, but be careful - it's easy to trash your drive(s)!

Regards,

PS Now you know why I recommended using manufacturers' low-level
zeroizing software. And that's why I posted this as a followup in this
thread. But be warned: not all manufacturers' zeroizing software will
overwrite the HPA. Use MHDD - but use it carefully!

PPS Some BIOSs now do support the HPA (i.e., make it visible/changeable)

PPPS You can even password-protect the HPA!



Relevant Pages

  • Re: [SLE] Hard drive size question
    ... > As others have said - this is because HD manufacturers can't count in ... > more and more people are going to notice as drives grow... ... The ISO defined Giga prefix ...
    (SuSE)
  • Re: Single File Restore - what is it?
    ... looking in the Disk Management area, I discovered it is a 9.7GB ... probably a Host Protected Area (HPA) that IBM ... I've got both Acronis True Image and Norton's Ghost, ... the drives had to be cloned, or re-loaded (been there, done that - I ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: [patch ide-dev 3/9] merge LBA28 and LBA48 Host Protected Area support code
    ... Retested with Hitachi drive and 2.6.10 vanilla kernel. ... HPA is not reset to native max. ... just connecting different drives. ... > Greg Freemyer ...
    (Linux-Kernel)
  • Re: opening sound corrupted?
    ... many laptop manufacturers put in VERY slow drives. ... Since you are mainly interested in what loads at startup, ...
    (microsoft.public.windowsxp.general)
  • Re: swap front panel of dvd-rw
    ... I've never seen two face plates from drives made by different manufacturers that were interchangeable. ... But I have seen face plates in two different drives made by the same firm that were NOT interchangeable. ...
    (comp.sys.laptops)