Wilders Security Forums  

Go Back   Wilders Security Forums > Software, Hardware and General Services > all things UNIX
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread
  #1  
Old October 7th, 2011, 04:12 PM
SUPERIOR's Avatar
SUPERIOR SUPERIOR is offline
Regular Poster
 
Join Date: Dec 2007
Location: Syria
Posts: 161
Default What You Need to Know About Linux Rootkits

Code:
http://www.linuxsecurity.com/content/view/154709?rdf

sorry if it's already posted
__________________
Analyzing scareware, junkware, crimeware, damnware, crapware ....... and all $h!tware
  #2  
Old October 7th, 2011, 05:48 PM
Mrkvonic Mrkvonic is offline
Linux Systems Expert
 
Join Date: May 2005
Posts: 7,428
Default Re: What You Need to Know About Linux Rootkits

Know in what sense?
Mrk
__________________
http://www.dedoimedo.com

All your base are belong to us

Linux Systems Expert / Systems Programmer, Linux System Administrator, LPIC-1, LPIC-2 (WIP), GSEC, CCHD, CCHA
  #3  
Old October 7th, 2011, 09:12 PM
dw426 dw426 is offline
Massive Poster
 
Join Date: Jan 2007
Posts: 5,543
Default Re: What You Need to Know About Linux Rootkits

Hmm, I never have and never will believe Linux is "immune". However, realistically, if one never tries to bypass the built in security (meaning doesn't try something so stupid as running as root for daily activity, and sticks to software in the supplied repositories, the chances of getting one of these things is ridiculously low. I'd even go so far as to say that they are almost as low just by doing general surfing. I think you'd really have to be looking for it.
  #4  
Old October 8th, 2011, 02:40 AM
Mrkvonic Mrkvonic is offline
Linux Systems Expert
 
Join Date: May 2005
Posts: 7,428
Default Re: What You Need to Know About Linux Rootkits

Getting your system infected with something really sophisticated is quite complicated, because the code highly depends on the libraries you have on your host, the exact glibc version, exact kernel, etc. It is virtually impossible to run non-compatible code of any kind, let alone some complex malware that resides in the kernel space without causing kernel panic.
Mrk
__________________
http://www.dedoimedo.com

All your base are belong to us

Linux Systems Expert / Systems Programmer, Linux System Administrator, LPIC-1, LPIC-2 (WIP), GSEC, CCHD, CCHA
  #5  
Old October 8th, 2011, 09:06 AM
lodore lodore is offline
Incredibly Massive Poster
 
Join Date: Jun 2006
Posts: 8,876
Default Re: What You Need to Know About Linux Rootkits

IMHO all that matters is who is using the keyboard and mouse and if they are willing to give their root password to packagexyz.deb, packagedfd666.rpm etc. there will always be times when a user cant find an application that does want they want in the offical repos.
__________________
useful tools:cure it SAS Hitman Pro mbam KL Eset windows defender offline Sophos
  #6  
Old October 8th, 2011, 10:20 AM
Mrkvonic Mrkvonic is offline
Linux Systems Expert
 
Join Date: May 2005
Posts: 7,428
Default Re: What You Need to Know About Linux Rootkits

That's not all. There's the idea of planting a kernel module into the kernel to subvert it. This is the tricky part. Not easily done, because this thing, regardless of malware or not, is not easily done. That's why often you can't have ubuntu 9.10 code running on 10.10, for example. So much is different.
Mrk
__________________
http://www.dedoimedo.com

All your base are belong to us

Linux Systems Expert / Systems Programmer, Linux System Administrator, LPIC-1, LPIC-2 (WIP), GSEC, CCHD, CCHA
  #7  
Old October 8th, 2011, 03:55 PM
NGRhodes's Avatar
NGRhodes NGRhodes is offline
Very Frequent Poster
 
Join Date: Jun 2003
Location: West Yorkshire, UK
Posts: 1,904
Default Re: What You Need to Know About Linux Rootkits

Quote:
Originally Posted by Mrkvonic
That's not all. There's the idea of planting a kernel module into the kernel to subvert it. This is the tricky part. Not easily done, because this thing, regardless of malware or not, is not easily done. That's why often you can't have ubuntu 9.10 code running on 10.10, for example. So much is different.
Mrk

Wow that is a bonus I never thought of Linux and its unstable ABI.
  #8  
Old October 8th, 2011, 05:39 PM
Mrkvonic Mrkvonic is offline
Linux Systems Expert
 
Join Date: May 2005
Posts: 7,428
Default Re: What You Need to Know About Linux Rootkits

Yup, even tiny changes in the compilation flags of modules compared to the kernel, plus the tiny differences in environment variables or gcc version down to the fourth dot might result in faulty modules that won't load and/or if load will panic the host.

Cheers,
Mrk
__________________
http://www.dedoimedo.com

All your base are belong to us

Linux Systems Expert / Systems Programmer, Linux System Administrator, LPIC-1, LPIC-2 (WIP), GSEC, CCHD, CCHA
  #9  
Old October 9th, 2011, 01:53 PM
kareldjag's Avatar
kareldjag kareldjag is offline
Frequent Poster
 
Join Date: Nov 2004
Location: Feet in France, Mind in the World
Posts: 517
Default Re: What You Need to Know About Linux Rootkits

hi,

A kind of vulgarization article for linux users, and technically outdated.
Grsecurity patch is more interesting than SeLinux for Kernel level rootkits.
A few detectors are available but there is no reliable detection way than forensic detection (with Volatility framework for instance:
http://www.terena.org/activities/tf-...g-rootkits.pdf ).

Rgds
__________________
Independent vision of Security (Security? Yeah But Well: http://www.ouaismaisbon.ch/ )
Fight child crime: http://www.circamp.eu/ http://www.virtualglobaltaskforce.com/
  #10  
Old October 14th, 2011, 07:24 PM
Ranget's Avatar
Ranget Ranget is offline
Frequent Poster
 
Join Date: Mar 2011
Location: Not Really Sure :/
Posts: 832
Default Re: What You Need to Know About Linux Rootkits

Linux servers always Gets hacked even more frequently than windows


see the hacked site database for an instance
__________________
Spyshelter Premuim + MBAM Pro +Avast Free + Hardend FireFox + Secunia Update Checker
"Uncommon sense will increase your privacy; common sense will just make you common."
"The Worst Thing in the World is To look and not be able to Help "
  #11  
Old October 15th, 2011, 02:42 AM
Mrkvonic Mrkvonic is offline
Linux Systems Expert
 
Join Date: May 2005
Posts: 7,428
Default Re: What You Need to Know About Linux Rootkits

In percentage or absolute numbers? If numbers, then it's ok, because there is more Linux in the server world than Windows.
Statistics can be fickle.
Mrk
__________________
http://www.dedoimedo.com

All your base are belong to us

Linux Systems Expert / Systems Programmer, Linux System Administrator, LPIC-1, LPIC-2 (WIP), GSEC, CCHD, CCHA
  #12  
Old October 15th, 2011, 03:38 AM
NGRhodes's Avatar
NGRhodes NGRhodes is offline
Very Frequent Poster
 
Join Date: Jun 2003
Location: West Yorkshire, UK
Posts: 1,904
Default Re: What You Need to Know About Linux Rootkits

Quote:
Originally Posted by Mrkvonic
In percentage or absolute numbers? If numbers, then it's ok, because there is more Linux in the server world than Windows.
Statistics can be fickle.
Mrk

Or severity or how long left vulnerable...

Cheers, Nick
  #13  
Old October 15th, 2011, 05:44 AM
funkydude's Avatar
funkydude funkydude is offline
Massive Poster
 
Join Date: Apr 2004
Posts: 5,996
Default Re: What You Need to Know About Linux Rootkits

Quote:
Originally Posted by Nick Rhodes
Or severity or how long left vulnerable...

When it comes to servers, speed of fixing the exploit doesn't help, when it's the person/company itself responsible that isn't patching that server. Unless you're trying to state that all these compromised servers every day are always 0-day, which I *highly* doubt.

That being said, isn't it usually 3rd party applications on the OS that are being exploited, e.g. PHP, MySQL, wordpress. In which case, OS doesn't really matter.
__________________
OpenDNS with DNSCrypt

SSD: Windows 8 Pro x64 | IE10 (Enhanced Protected Mode) & Fanboy's TPLs
HDD: Xubuntu 12.04 LTS (x64) | Firefox: ABP(Fanboy's list) & HTTPS Everywhere
  #14  
Old October 15th, 2011, 07:25 AM
NGRhodes's Avatar
NGRhodes NGRhodes is offline
Very Frequent Poster
 
Join Date: Jun 2003
Location: West Yorkshire, UK
Posts: 1,904
Default Re: What You Need to Know About Linux Rootkits

Quote:
Originally Posted by funkydude
When it comes to servers, speed of fixing the exploit doesn't help, when it's the person/company itself responsible that isn't patching that server. Unless you're trying to state that all these compromised servers every day are always 0-day, which I *highly* doubt.

That is a maintenance issue and has nothing to do with how quickly patches are released.

Quote:
Originally Posted by funkydude
That being said, isn't it usually 3rd party applications on the OS that are being exploited, e.g. PHP, MySQL, wordpress. In which case, OS doesn't really matter.

Though it does matter when its the Linux distros - the OS that are supplying the patches and update mechanisms


Whats worse, 10 exploits that get fixed in days, or 1 exploit that does not get fixed for months ?
Time to fix, be it a patch or providing a work around is important.

Cheers Nick.
  #15  
Old October 15th, 2011, 08:45 AM
funkydude's Avatar
funkydude funkydude is offline
Massive Poster
 
Join Date: Apr 2004
Posts: 5,996
Default Re: What You Need to Know About Linux Rootkits

You seemed to veer off what I was saying/or misunderstood my point. Also avoiding the entire 3rd party statement by switching topic back to the OS the software is hosted on.

While time to patch may be important, in the real world we live in (Earth), hundreds of servers are compromised each day. Patch response time (at least for servers) is near meaningless, as server hosts/providers don't always immediately update. While the effort of the company/individual responsible for fixing said exploit can be commended, it goes to waste against a high amount of server providers that don't take advantage of it.

But again I say, it is usually 3rd party software responsible.
__________________
OpenDNS with DNSCrypt

SSD: Windows 8 Pro x64 | IE10 (Enhanced Protected Mode) & Fanboy's TPLs
HDD: Xubuntu 12.04 LTS (x64) | Firefox: ABP(Fanboy's list) & HTTPS Everywhere
  #16  
Old October 16th, 2011, 06:05 AM
J_L's Avatar
J_L J_L is offline
Massive Poster
 
Join Date: Nov 2009
Posts: 4,821
Default Re: What You Need to Know About Linux Rootkits

Looks good. Wish I saw this last time I asked.
__________________
  #17  
Old October 16th, 2011, 08:12 AM
NGRhodes's Avatar
NGRhodes NGRhodes is offline
Very Frequent Poster
 
Join Date: Jun 2003
Location: West Yorkshire, UK
Posts: 1,904
Default Re: What You Need to Know About Linux Rootkits

Quote:
Originally Posted by funkydude
You seemed to veer off what I was saying/or misunderstood my point. Also avoiding the entire 3rd party statement by switching topic back to the OS the software is hosted on.

This is a Linux topic and 99.99% of servers in the world use distros and their update mechanisms so is relevant.

Quote:
Originally Posted by funkydude
While time to patch may be important, in the real world we live in (Earth), hundreds of servers are compromised each day. Patch response time (at least for servers) is near meaningless, as server hosts/providers don't always immediately update. While the effort of the company/individual responsible for fixing said exploit can be commended, it goes to waste against a high amount of server providers that don't take advantage of it.

The poor response times are not a issue of Linux's security, its down to poor admin. The time to release patches is meaningful to those who care about security of their data/systems.

Quote:
Originally Posted by funkydude
But again I say, it is usually 3rd party software responsible.

Debian is well known for releasing fixes before upstream has chance to roll out a patch, sometimes the security problems are due to custom patchset applied (how about the SSH key issue recently with Debian), unless you are building your Linux systems from scratch and handing picking and compiling software with patches then the distro IS an important with 3rd party in the Linux World, all the major distros maintain lots of patches on top of upstream for example.

Cheers, Nick
 

Wilders Security Forums > Software, Hardware and General Services > all things UNIX « Previous Thread | Next Thread »

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 03:09 AM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2013, Wilders Security Forums