euglug.org

[작성자:] admin

  • [Eug-lug] Virtual Machine Root Kits



    John SechrestSat Mar 11 08:42:59 PST 2006

    Alan <euglug at thebucks.net> writes:
    
    
     % I'd like to be able to install my existing OS into a VM after the fact. 
     % Outside of this proof of concept, can any of the existing VM products do 
     % that?
    
     Your existing OS, really is just a set of bits on a disk.
     If you boot that disk in a virtual system, it should work.
     UML can do this with only linux. VMware or Xen should
     be able to do this. 
    
    
    
    
    
    -----
    John Sechrest          .         Helping people use
                            .           computers and the Internet
                              .            more effectively
                                 .                      
                                     .       Internet: sechrest at peak.org
                                          .   
                                                  . http://www.peak.org/~sechrest
    
  • [Eug-lug] Virtual Machine Root Kits



    Hal PomeranzSat Mar 11 07:04:10 PST 2006

    > But the article referenced earlier is the first instance I've heard
    > of launching a hypervisor type program while the original host
    > system was running.  It certainly sounded suspiciously advanced to me.
    
    While not strictly the same thing, loadable module kernel-level
    rootkits have been available for some time now.  In fact, the SUCKit
    rootkit (published as a proof of concept in Phrack magazine several
    years ago now) can infect a kernel that doesn't have loadable module
    support, simply by going through /dev/kmem.
    
    These rootkits allow and attacker with root privilege to replace
    standard system call interfaces in the kernel with subverted calls
    that hide the attackers files, processes, etc-- without rebooting.
    Done properly, this technique should be able to completely mask an
    attacker's activity on the system (though all of the kernel level
    rootkits I've seen so far have small flaws that make them detectable).
    
    So in this instance you're munging the kernel of the actual host
    operating system in order to get it to lie to the users and processes
    running on the system.  In the worst case scenario, forensic analysis
    can only be done after booting off of a "known good" kernel (install
    media, Knoppix CD, etc).
    
    -- 
    Hal Pomeranz, Founder/CEO      Deer Run Associates      hal at deer-run.com
        Network Connectivity and Security, Systems Management, Training
    
  • [Eug-lug] Virtual Machine Root Kits



    AlanFri Mar 10 23:37:56 PST 2006

    larry price wrote:
    
    > 
    > A stroll through the Slashdot article got me a link to the original paper
    > http://www.eecs.umich.edu/virtual/papers/king06.pdf
    > 
    Still vague on details.
    They don't explain how they mange to get an existing OS installation to 
    run under VMware, nor do they explain how they dealt with driver issues.
    And the statement that the average computer user isn't going to notice 
    the blinking LED?
    
    I'm unconvinced this is viable outside the lab. Would make for fun times 
    if it did, though. heh.
    
    
    -ajb
    
    
    
    
  • [Eug-lug] Virtual Machine Root Kits



    larry priceFri Mar 10 23:23:51 PST 2006

    On 3/10/06, Alan <euglug at thebucks.net> wrote:
    > larry price wrote:
    > > But the article referenced earlier is the first instance I've heard of
    > > launching a hypervisor type program while the original host system was
    > > running.
    >
    > That's why I asked, I'd not heard of that either.
    >
    > > It certainly sounded suspiciously advanced to me.
    > >
    > Especially on a win32 machine, where changing hardware usually requires
    > driver shenanigans. And as far as the OS is concerned, it's changed
    > hardware.
    
    A stroll through the Slashdot article got me a link to the original paper
    http://www.eecs.umich.edu/virtual/papers/king06.pdf
    
    Which specifically describes the process of infection as requiring a
    reboot to be completed. So no grand advances in technique there, but
    the idea is interesting, the process for infecting a Linux machine
    alters the shutdown scripts...
    hope you have your safe media and file hashes handy...
    
    --
    http://Zoneverte.org -- information explained
    Do you know what your IT infrastructure does?
    
  • [Eug-lug] Virtual Machine Root Kits



    AlanFri Mar 10 23:11:04 PST 2006

    larry price wrote:
    > 
    > 
    > If you're talking about taking a disk image of an Operating System and
    > executing it, then yes both Xen and VMWare can be used like that (as I
    > understand from reading documentation rather than practical
    > experience)
    > 
    No, I meant the latter. I'd like to be able to move my existing 
    installation into a VM.
    
    > But the article referenced earlier is the first instance I've heard of
    > launching a hypervisor type program while the original host system was
    > running.
    
    That's why I asked, I'd not heard of that either.
    
    > It certainly sounded suspiciously advanced to me.
    > 
    Especially on a win32 machine, where changing hardware usually requires 
    driver shenanigans. And as far as the OS is concerned, it's changed 
    hardware.
    
    -ajb
    
  • [Eug-lug] Virtual Machine Root Kits



    larry priceFri Mar 10 22:53:10 PST 2006

    On 3/10/06, Alan <euglug at thebucks.net> wrote:
    > I'd like to be able to install my existing OS into a VM after the fact.
    > Outside of this proof of concept, can any of the existing VM products do
    > that?
    
    If you're talking about taking a disk image of an Operating System and
    executing it, then yes both Xen and VMWare can be used like that (as I
    understand from reading documentation rather than practical
    experience)
    
    But the article referenced earlier is the first instance I've heard of
    launching a hypervisor type program while the original host system was
    running.
    It certainly sounded suspiciously advanced to me.
    
    Of course they may not have mentioned that it requires a reboot to
    install the hypervisor.
    
    Has anyone on this list had much direct experience with Xen, we'd like
    to hear from you, in fact we'd like you to give a Euglug
    Presentation... :-)
    
    --
    http://Zoneverte.org -- information explained
    Do you know what your IT infrastructure does?
    
  • [Eug-lug] Virtual Machine Root Kits



    AlanFri Mar 10 22:35:23 PST 2006

    larry price wrote:
    > picked this up off http://diggdot.us
    > 
    > http://www.eweek.com/article2/0,1895,1936666,00.asp
    > 
    > It sounds disturbingly thourough, basically it exploits known flaws to
    > let an attacker run a virtual machine monitor which then runs the
    > original operating system as one of several partitions.
    
    I'd like to be able to install my existing OS into a VM after the fact. 
    Outside of this proof of concept, can any of the existing VM products do 
    that?
    
    -ajb
    
    
  • [Eug-lug] Virtual Machine Root Kits



    larry priceFri Mar 10 22:20:58 PST 2006

    picked this up off http://diggdot.us
    
    http://www.eweek.com/article2/0,1895,1936666,00.asp
    
    It sounds disturbingly thourough, basically it exploits known flaws to
    let an attacker run a virtual machine monitor which then runs the
    original operating system as one of several partitions.
    
    Think Xen or VMWare installed without your knowledge and running your
    OS and apps just as before, you might notice a little network slowdown
    while your parasite launches a spam run or bittorrents someone's
    credit card database to their pals, but from within the OS you won't
    be able to tell...
    
    <snark>Yikes! Heavens to Betsy! We're Doomed I tell you Dooooooomed.</snark>
    
    It is a product of microsoft research, and they pointedly mention that
    both Windows and Linux were used as practice targets...
    Any bets on how long before this hits the wild...
    
    And installation is utterly undetectible, right?
    
    Doomed I tell you.
    --
    http://Zoneverte.org -- information explained
    Do you know what your IT infrastructure does?
    
  • [Eug-lug] Posting photo’s on debian liunux



    larry priceFri Mar 10 21:44:39 PST 2006

    On 3/10/06, Allen Brown <abrown at peak.org> wrote:
    > Jeff Newton wrote:
    > > I have a friend who is going to be loaning me his sony mavica FD-95 and
    > > stores the pics in JPG format on a 3.5" disk, he say's. But, I'm
    > > wondering how can I use it to get those photo's from the camera to my
    > > box, than uploaded to an online gallery or website?
    > >
    > > Thanks -
    > >
    > > Jeff
    >
    > If your /etc/fstab has an entry like this:
    >    /dev/fd0   /media/floppy0   auto    rw,user,noauto,owner   0 0
    > (including the "user" and "owner" modifiers) then as non-root
    > you can simply insert the floppy from the mavica and then type
    >    mount /media/floppy0
    >
    > You then need to search around on the floppy for the pictures.
    > I haven't worked with Sony.  But the cameras I've worked with
    > stuck the pix into subdirectories.
    >    find /media/floppy0/. | grep -i jpg
    >
    > Once you find them, just copy them whereever you want.
    > As for the website, someone else will have to help you.
    
    There is actually a standard format for filesystems for digital cameras
    http://en.wikipedia.org/wiki/DCIM
    
    basically most digicams I've met are a VFAT filesystem with a directory layout
    something like this
    
    /
    MISC/
    DCIM/
    
    and under DCIM are directories labeled with the manufacturers name,
    and a unique integer.
    
    since the Mavica takes jpg natively, you should not have any issues
    finding software to display or edit your photos.
    
    and since this is vaguely relevant
    I took some nice shots of the snow this morning
    you can see them here
    
    http://www.flickr.com/photos/laprice/
    
    (uploaded from linux, these pure organic pixels were gathered with
    clear glass and every byte was blessed by a tibetan monk I keep on my
    hard drive)
    
  • [Eug-lug] bash scripting



    Neil ParkerFri Mar 10 21:31:33 PST 2006

    Rob Hudson wrote,
    >If I run this:
    >
    ># for i in ~/.maildir/cur/* ; do echo $i ; done
    >~/.maildir/cur/1142021402.V810I1560adeM187221:2,S
    >
    >I get a list of the files in that directory.
    >
    >If there are no files in the directory, I get my glob back...
    >
    ># for i in ~/.maildir/new/* ; do echo $i ; done
    >~/timesheet/.maildir/new/*
    >
    >Is there a way to *not* get this glob back?  If the dir is empty, the 
    >command I have is getting this glob and is throwing an error.
    >
    >If I can't change that behavior I'll have to change my script to handle 
    >and ignore the glob.  But I'd prefer to not get the glob if possible.
    
    Add this to the plethora of answers you've already received:
    
         shopt -s nullglob
         for i in ~/.maildir/new/*; do echo $i; done
    
    The "nullglob" option tells bash that it's OK for a wildcard to expand
    to nothing at all.
    
    Once set, the "nullglob" state lasts until the end of the script, or until
    explicitly unset ("shopt -u nullglob"), whichever comes first.
    
                   - Neil Parker