Re: [Full-Disclosure] Windows covert channel

From: Kain (kain_at_kain.org)
Date: 10/20/03

  • Next message: Gregory Steuck: "Re: [Full-Disclosure] Caucho Resin 2.x - Cross Site Scripting"
    To: full-disclosure@lists.netsys.com
    Date: Sun, 19 Oct 2003 23:36:26 -0500
    
    
    

    On Sun, Oct 19, 2003 at 10:23:37PM -0400, Karl DeBisschop wrote:
    > On Sun, 2003-10-19 at 19:04, James Kelly wrote:
    > > I seem to remember in the dim reaches of my memory a covert channel in
    > > the Windows file system where you could paste one file at the end of
    > > another without it being detectible when you edited the orginal file.
    > >
    > >
    > > can someone aim me at the right "buzz phrase" that describes this so I
    > > can Google it further?
    >
    > Many people have mentioned data streams. But since you said 'end of
    > file' I wonder if you are referring to the DOS idea that ^Z is an end of
    > file marker, and many apps won't look beyond it.

    I don't know enough about NTFS to know if the same concept applies, but in
    FAT/FAT32, your files are allocated in clusters. Therefore, given a file of
    size X, and a cluster size of Y, you will have X mod Y bytes in the last
    allocated cluster that won't be visible through the filesystem that you can
    directly write and hide information in. Of course, it's possible (likely) that
    processes that truncate, grow, or defragment/reallocate the file on disk will
    lose the information, so it is spotty at best.

    This sort of fun is also not too hard to pursue with other filesystems. For
    example, ISO9660 (cdromfs) has multiple directory and file tables, and there's
    nothing stopping you from hiding data all over an ISO that just browsing the
    filesystem would show. This sort of thing lets you create structures like
    hybrid ISO9660/HFS/HFS+ images for Macs.

    For NTFS, I would suggest starting at http://linux-ntfs.sourceforge.net which
    has plenty of pointers to NTFS utilities and documentation.

    If I were desining a covert file storage system for Win*, I would probably
    write an installable file-system driver that would mangle rarely-modified NTFS
    files, adding additional streams to them to store data. That would however,
    produce massive forensic evidence to an informed observer. I would also
    consider writing a filesystem driver that could use a (read-only/unmounted)
    NTFS partition as it's storage, hiding its filesystem in the unallocated space
    of the disk.)

    -- 
    Bryon Roche
    Professional {Developer,Guru,Mad Scientist}
    <kain@kain.org>
    PGP Key Fingerprint: FE0D EC23 6464 726A CD54  48D3 04AD 86FE 6878 ABD5
    Success, recognition, and conformity are the bywords of the modern world where
    everyone seems to crave the anesthetizing security of being identified with the
    majority...Human salvation lies in the hands of the creatively maladjusted.
      -- Martin Luther King, Jr.
    
    

    _______________________________________________
    Full-Disclosure - We believe in it.
    Charter: http://lists.netsys.com/full-disclosure-charter.html



  • Next message: Gregory Steuck: "Re: [Full-Disclosure] Caucho Resin 2.x - Cross Site Scripting"

    Relevant Pages

    • Re: Windows and Maildir
      ... Windows NT with NTFS has both file streams and extended ... > NT whose performance with large directories is better than that of FAT. ... And there won't be much of a difference between FAT and NTFS. ... because the problem is in the filesystem format and not in the ...
      (microsoft.public.win32.programmer.kernel)
    • Re: Fedora Core 3 Wishlist
      ... Do not ask me why I am not a lawyer. ... NTFS is a filesystem that can be read by anything that can read raw data ... Even the linux NTFS ... >>the archives b4 posting the traffic on this and most lists would be greatly ...
      (Fedora)
    • Re: Fast filesystem
      ... "Jim" wrote: ... different filesystem, or maybe tweak NTFS. ... Are there other filesystem supported by Windows XP and Vista? ... the only filesystems which XP or Vista support are FAT and NTFS. ...
      (microsoft.public.windowsxp.perform_maintain)
    • RE: Long path exploit on NTFS
      ... > Long path exploit on NTFS ... > the filesystem in use is NTFS. ... The command prompt will display a directory listing, ... without SUBST'ing the path and having the virus scanner find it? ...
      (Bugtraq)
    • Re: Security und geloeschte Dokumente?
      ... Betriebsysstems und koennen bei einem moderenen Filesystem nicht ... Ist denn in der Journaling-Funktion bei XP und NTFS, ... Dokument-orientierte Produkte anderer Hersteller) unter anderem fuer ... Bei Notepad AFAIK nicht. ...
      (de.comp.security.misc)