Rootkits

A place to discuss the science of computers and programs, from algorithms to computability.

Formal proofs preferred.

Moderators: phlip, Larson, Moderators General, Prelates

Rootkits

Postby mzellman » Wed Feb 23, 2011 7:26 pm UTC

I was reading this article today, and it brought up quite a few questions:
http://arstechnica.com/tech-policy/news ... nment.ars/

  • could you reliably take a snapshot of the contents of RAM and use the snapshot for analysis? I mean, I imagine you could shelve all new calls to memory while you write its contents to a file somewhere, right? (obviously, at the expense of having a completely unresponsive computer while this is going on, and interfering with several other processes during the operation, but if you're this concerned about finding and removing a rootkit, isn't that your priority? :P)
  • are the images of the system processes generally static or highly variable?
  • if you have a rootkit that deleted all its own files from the disk after it was loaded into memory (to avoid detection), wouldn't pulling the plug basically remove the rootkit in its entirety?
mzellman
 
Posts: 36
Joined: Thu Oct 21, 2010 5:50 pm UTC

Re: Rootkits

Postby Yakk » Thu Feb 24, 2011 3:07 pm UTC

How do you "take a snapshot of RAM"? Typically when you want a computer to do something, you ask the computer to do it (instead of "doing it to the computer").

But the rootkit is in charge of the computer -- so it lies to you and tells you want you want to hear.

Rootkits often hide themselves on disk by having the OS lie to you about what is on the disk. Some anti-rootkit detecting trickses involve accessing the disk at a "lower level" and detecting discrepancies. Anti-anti rootkit detecting trickses involve detecting that kind of behavior and not lying when that particular process (and friends) asks about what is there, so it doesn't detect the discrepancy (which is easier than lying to the low-level routines often).

The "foolproof" way to attack a rootkit is to take the hardware apart and mount it on a system that doesn't trust the hardware to do anything. So long as the individual components are "dumb", this works. (In theory, you could have a rootkit that lived in the hardware of a hard disk drive in such a way that anyone who asks wouldn't see it unless they accessed it just right).
One of the painful things about our time is that those who feel certainty are stupid, and those with any imagination and understanding are filled with doubt and indecision - BR

Last edited by JHVH on Fri Oct 23, 4004 BCE 6:17 pm, edited 6 times in total.
User avatar
Yakk
 
Posts: 10064
Joined: Sat Jan 27, 2007 7:27 pm UTC
Location: E pur si muove

Re: Rootkits

Postby Xeio » Fri Feb 25, 2011 5:23 pm UTC

Yakk wrote:In theory, you could have a rootkit that lived in the hardware of a hard disk drive in such a way that anyone who asks wouldn't see it unless they accessed it just right.
This kind of stuff is the real scary (albeit, almost unheard of) kind. Since effectively it's impossible to remove by an end user once it's taken over the firmware.

Are there any rootkits out there that actually try to do that though? I'd guess the spread of such things would be terribly inefficient (every new hard disk you encounter, or motherboard, or whatever, would need new firmware) for the work involved (particularly given firmware is more complicated, with a higher rate of bricking).
User avatar
Xeio
Friends, Faidites, Countrymen
 
Posts: 4447
Joined: Wed Jul 25, 2007 11:12 am UTC
Location: C:\Users\Xeio\

Re: Rootkits

Postby Moose Hole » Fri Feb 25, 2011 5:44 pm UTC

One way to detect rootkits is to have multiple operating systems on different disks, and have them check eachother out. I got a windows rootkit off by dual booting linux and virus scanning the windows partition. Of course, antivirus programs aren't perfect either.
Moose Hole
 
Posts: 400
Joined: Fri Jul 09, 2010 1:34 pm UTC

Re: Rootkits

Postby Yakk » Fri Feb 25, 2011 6:33 pm UTC

Xeio wrote:
Yakk wrote:In theory, you could have a rootkit that lived in the hardware of a hard disk drive in such a way that anyone who asks wouldn't see it unless they accessed it just right.
This kind of stuff is the real scary (albeit, almost unheard of) kind. Since effectively it's impossible to remove by an end user once it's taken over the firmware.

Are there any rootkits out there that actually try to do that though? I'd guess the spread of such things would be terribly inefficient (every new hard disk you encounter, or motherboard, or whatever, would need new firmware) for the work involved (particularly given firmware is more complicated, with a higher rate of bricking).

Well, I have heard of an "in the wild" malware that lived in "marked bad" sectors of a hard disk (and the "mark bad" lives in the hard disk firmware). So a naive scan wouldn't pick up (most of?) the malware.
One of the painful things about our time is that those who feel certainty are stupid, and those with any imagination and understanding are filled with doubt and indecision - BR

Last edited by JHVH on Fri Oct 23, 4004 BCE 6:17 pm, edited 6 times in total.
User avatar
Yakk
 
Posts: 10064
Joined: Sat Jan 27, 2007 7:27 pm UTC
Location: E pur si muove

Re: Rootkits

Postby hintss » Wed Mar 09, 2011 4:13 am UTC

there was once a virus that could copy itself to BIOS on some computers, though that wasn't its main method of spreading.
"s/god/flying spaghetti monster/"
User avatar
hintss
 
Posts: 1294
Joined: Wed Nov 25, 2009 7:19 am UTC


Return to Computer Science

Who is online

Users browsing this forum: MobTeeseboose and 6 guests