Fedora Linux Support Community & Resources Center
  #1  
Old 15th April 2009, 02:55 PM
dragonbite's Avatar
dragonbite Offline
Registered User
 
Join Date: May 2006
Location: Northeast USA
Age: 42
Posts: 1,214
Exclamation New Attack Sneaks Rootkits Into Linux Kernel

From
http://www.darkreading.com/security/vulnerabilities/showArticle.jhtml?articleID=216500687
__________________
Linux provides freedom, the problem is most users don't know what it is or how to use it.
My Blog | Danbury Area Computer Society Board Member | Linux User# : 477531
p.s. Anybody who sees I am incorrect in technical procedures, etc., please feel free to correct me. I'm just figuring this out as I go along. :D

Last edited by dragonbite; 15th April 2009 at 04:07 PM. Reason: Removed quoted article due to questionable legal ramifications.
Reply With Quote
  #2  
Old 15th April 2009, 04:54 PM
aleph's Avatar
aleph Offline
Banned (for/from) behaving just like everybody else!
 
Join Date: Jul 2007
Location: Beijing, China
Posts: 1,307
Code:
$ ls -l /dev/mem
crw-r----- 1 root kmem 1, 1 04-15 10:51 /dev/mem
One still needs root access (writing to /dev/mem) to plant this rootkit.
__________________
I believe in nerditarianism. I read FedoraForum for the Fedora-related posts.
Reply With Quote
  #3  
Old 15th April 2009, 04:56 PM
dragonbite's Avatar
dragonbite Offline
Registered User
 
Join Date: May 2006
Location: Northeast USA
Age: 42
Posts: 1,214
Quote:
Originally Posted by aleph View Post
Code:
$ ls -l /dev/mem
crw-r----- 1 root kmem 1, 1 04-15 10:51 /dev/mem
One still needs root access (writing to /dev/mem) to plant this rootkit.
Wouldn't installing, through yum, grant it root access?

Also, how does SELinux handle this?
__________________
Linux provides freedom, the problem is most users don't know what it is or how to use it.
My Blog | Danbury Area Computer Society Board Member | Linux User# : 477531
p.s. Anybody who sees I am incorrect in technical procedures, etc., please feel free to correct me. I'm just figuring this out as I go along. :D
Reply With Quote
  #4  
Old 15th April 2009, 05:08 PM
aleph's Avatar
aleph Offline
Banned (for/from) behaving just like everybody else!
 
Join Date: Jul 2007
Location: Beijing, China
Posts: 1,307
Quote:
Originally Posted by dragonbite View Post
Wouldn't installing, through yum, grant it root access?

Also, how does SELinux handle this?
It's a proof-of-concept rootkit created for research purposes. Nobody has actually put it in released kernel code. I think they did it so to warn the kernel/distro maintainers not to allow something like that happening.

How does SELinux handle this? Depends on how a distro manages its SELinux policies. Haven't dug into Fedora's though
__________________
I believe in nerditarianism. I read FedoraForum for the Fedora-related posts.
Reply With Quote
  #5  
Old 15th April 2009, 05:21 PM
domg472 Offline
SELinux Contributor
 
Join Date: May 2008
Posts: 621
Code:
Found 10 semantic av rules:
   allow hald_mac_t memory_device_t : chr_file { ioctl read write getattr lock append open } ;
   allow rpm_t memory_device_t : chr_file { ioctl read getattr lock open } ;
   allow hald_t memory_device_t : chr_file { ioctl read getattr lock open } ;
   allow initrc_t memory_device_t : chr_file { ioctl read write getattr lock append execute open } ;
   allow vmware_t memory_device_t : chr_file { ioctl read write getattr lock append open } ;
   allow kudzu_t memory_device_t : chr_file { ioctl read write getattr lock append execute open } ;
   allow xserver_t memory_device_t : chr_file { ioctl read write getattr lock append execute open } ;
   allow klogd_t memory_device_t : chr_file { ioctl read getattr lock open } ;
   allow dmidecode_t memory_device_t : chr_file { ioctl read getattr lock open } ;
   allow vbetool_t memory_device_t : chr_file { ioctl read write getattr lock append execute open } ;
Obviously root in the unconfined_t domain has full access to the system.
RPM runs as root in a unconfined domain.
Initrc_t also runs as root in a unconfined domain

So be careful what you install. Keep in mind that vmware for example can write to it.
Want to minimize risk? de-install the unconfined selinux module, map your users to confined user domains, if you can de-install as many of the programs listed above.
__________________
Come join us on #fedora-selinux on irc.freenode.org
http://docs.fedoraproject.org/selinu...ide/f10/en-US/

Last edited by domg472; 15th April 2009 at 05:35 PM.
Reply With Quote
  #6  
Old 15th April 2009, 07:32 PM
adrianx's Avatar
adrianx Offline
Registered User
 
Join Date: Jul 2007
Location: South Africa
Posts: 953
Quote:
Linux system administrators typically aren't aware of the potential dangers of leaving /dev/mem exposed. Lineberry says his goal is to educate them on this potential security hole. And there's now a way to defend against such an attack, too: the Linux development community recently issued a patch to locks down /dev/mem, limiting read and write access from the outside, he says.
Luckily, it's not just all doom and gloom....
__________________
Registered Linux User 460110
Reply With Quote
Reply

Tags
kernel, patch, rootkit

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Clever attack exploits fully-patched Linux kernel rpstitz Security and Privacy 43 24th July 2009 02:05 AM
Can conficker attack linux???? K8JWT Security and Privacy 5 10th May 2009 01:20 PM
Attack Sneaks Rootkits Into Linux Kernel Magickman Security and Privacy 1 8th May 2009 03:12 AM
Linux under attack: compromised SSH keys lead to rootkit ivancat Wibble 31 29th August 2008 12:02 PM
Problem about VsFTPd attack ( scan attack ) pratchaya Security and Privacy 0 25th April 2007 04:06 PM


Current GMT-time: 23:38 (Tuesday, 18-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat