LKM rootkits in 2.6.x
Any thoughts on the future of LKM rootkits in the 2.6 kernel branch ? In the last few years I've become quite interested in them (from a defensive point of view), but with the 2.6 kernel no longer exporting the syscall table, intercepting system calls would appear to be a non-starter now. In a perverse sort of way, i'm actually rather dissapointed: all that learning gone to waste.
Cheers,
Pete
Quoted 4 lines · pg smith
Any thoughts on the future of LKM rootkits in the 2.6 kernel branch ? In the last few years I've become quite interested in them (from a defensive point of view), but with the 2.6 kernel no longer exporting the syscall table, intercepting system calls would appear to be a non-starter now.
Don't bet on it. They'll just start doing what binary-only driver vendors have been doing for months.. If the table isn't exported, they find a symbol that is exported, and grovel around in memory near there until they find something that looks like it, and patch accordingly.
Dave
Am Do, den 11.03.2004 schrieb Dave Jones um 19:48:
Quoted 4 lines
Don't bet on it. They'll just start doing what binary-only driver vendors have been doing for months.. If the table isn't exported, they find a symbol that is exported, and grovel around in memory near there until they find something that looks like it, and patch accordingly.
Ugh... this sounds ugly. This should be forbidden. I mean, what are things like EXPORT_SYMBOL_GPL for if drivers are allowed to patch whatever they want?
Quoted 3 lines · Christophe Saout
Ugh... this sounds ugly. This should be forbidden. I mean, what are things like
EXPORT_SYMBOL_GPLfor if drivers are allowed to patch whatever they want?
If the binary blob knows enough about the innards to be able to do binary patching, it's a derived work and should be GPL.
Even the NVidia driver isn't *that* evil... :)
Quoted 10 lines · [email protected] wrote:
Quoted 3 lines · Christophe Saout
Ugh... this sounds ugly. This should be forbidden. I mean, what are things like
EXPORT_SYMBOL_GPLfor if drivers are allowed to patch whatever they want?If the binary blob knows enough about the innards to be able to do binary patching, it's a derived work and should be GPL.
Maybe!
Unless the offset of an unexported symbol relative to an exported one is simply a "fact" which therefore can't be copyrighted.
This sort of thing would probably be unethical, but it might be legal.
Quoted 8 lines · Christophe Saout
Quoted 3 lines · Christophe Saout
Ugh... this sounds ugly. This should be forbidden. I mean, what are things like
EXPORT_SYMBOL_GPLfor if drivers are allowed to patch whatever they want?If the binary blob knows enough about the innards to be able to do binary patching, it's a derived work and should be GPL.
You are more than wellcome to use it as you see fit, and distribute it as widely as you can ;-)
Quoted 1 line
Even the NVidia driver isn't *that* evil... :)
:-)
Signature · 4 lines
Dr. Horst H. von Brand User #22616 counter.li.org Departamento de Informatica Fono: +56 32 654431 Universidad Tecnica Federico Santa Maria +56 32 654239 Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513
Quoted 10 lines · Christophe Saout
Am Do, den 11.03.2004 schrieb Dave Jones um 19:48:
Quoted 4 lines
Don't bet on it. They'll just start doing what binary-only driver vendors have been doing for months.. If the table isn't exported, they find a symbol that is exported, and grovel around in memory near there until they find something that looks like it, and patch accordingly.
Ugh... this sounds ugly. This should be forbidden. I mean, what are things like
EXPORT_SYMBOL_GPLfor if drivers are allowed to patch whatever they want?
Who is to stop them? When running in kernel mode you are god.
Signature · 2 lines
Måns Rullgård [email protected]
Quoted 6 lines · M?ns Rullg?rd
Quoted 3 lines · Christophe Saout
Ugh... this sounds ugly. This should be forbidden. I mean, what are things like
EXPORT_SYMBOL_GPLfor if drivers are allowed to patch whatever they want?Who is to stop them? When running in kernel mode you are god.
Uhm, Next Generation Secure Computing Base? Running in ring -1. ;)
Sorry, I couldn't resist ;)
Signature · 2 lines
Tomasz Torcz Only gods can safely risk perfection, [email protected] it's a dangerous thing for a man. -- Alia
Quoted 10 lines · Christophe Saout
Am Do, den 11.03.2004 schrieb Dave Jones um 19:48:
Quoted 4 lines
Don't bet on it. They'll just start doing what binary-only driver vendors have been doing for months.. If the table isn't exported, they find a symbol that is exported, and grovel around in memory near there until they find something that looks like it, and patch accordingly.
Ugh... this sounds ugly. This should be forbidden. I mean, what are things like
EXPORT_SYMBOL_GPLfor if drivers are allowed to patch whatever they want?
It _is_ forbidden. This isn't any kind of accident we are talking about, this is out and out fraud.
Signature · 4 lines
Dr. Horst H. von Brand User #22616 counter.li.org Departamento de Informatica Fono: +56 32 654431 Universidad Tecnica Federico Santa Maria +56 32 654239 Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513
Am Do, den 11.03.2004 schrieb Horst von Brand um 21:33:
Quoted 11 lines
Quoted 8 lines
Quoted 4 lines
Don't bet on it. They'll just start doing what binary-only driver vendors have been doing for months.. If the table isn't exported, they find a symbol that is exported, and grovel around in memory near there until they find something that looks like it, and patch accordingly.
Ugh... this sounds ugly. This should be forbidden. I mean, what are things like
EXPORT_SYMBOL_GPLfor if drivers are allowed to patch whatever they want?It _is_ forbidden. This isn't any kind of accident we are talking about, this is out and out fraud.
I'm talking about binary modules, not rootkits. Vendors aren't doing forbidden things, are they?
Quoted 5 lines · Christophe Saout
Quoted 2 lines
It _is_ forbidden. This isn't any kind of accident we are talking about, this is out and out fraud.
I'm talking about binary modules, not rootkits. Vendors aren't doing forbidden things, are they?
Yes.
Dave
Quoted 11 lines · Dave Jones
Quoted 5 lines · Christophe Saout
Quoted 2 lines
It _is_ forbidden. This isn't any kind of accident we are talking about, this is out and out fraud.
I'm talking about binary modules, not rootkits. Vendors aren't doing forbidden things, are they?
Yes.
Dave
What Vendors and modules?
Quoted 10 lines · Dax Kelson
Quoted 8 lines · Dave Jones
Quoted 5 lines · Christophe Saout
Quoted 2 lines
It _is_ forbidden. This isn't any kind of accident we are talking about, this is out and out fraud.
I'm talking about binary modules, not rootkits. Vendors aren't doing forbidden things, are they?
Yes.
What Vendors and modules?
Most recent one I saw was some 'antivirus' filescanning module. The name escapes me. It was mentioned on l-k at the time. It wasn't the first by any means however. This trick has been used since vendors stopped exporting sys_call_table.
Dave
Quoted 8 lines · Dave Jones
Quoted 4 lines
Any thoughts on the future of LKM rootkits in the 2.6 kernel branch ? In the last few years I've become quite interested in them (from a defensive point of view), but with the 2.6 kernel no longer exporting the syscall table, intercepting system calls would appear to be a non-starter now.
Don't bet on it. They'll just start doing what binary-only driver vendors have been doing for months.. If the table isn't exported, they find a symbol that is exported, and grovel around in memory near there until they find something that looks like it, and patch accordingly.
Why bother .. just find any symbol (function name) which is exported to modules and also being frequently called somehow indirectly from userland (VFS layer functions, vm functions, ...) and use this function as an open-backdoor spell.
It is easy to patch existing rootkits this way.
Signature · 1 line
JiKos.
Quoted 1 line · pg smith
Any thoughts on the future of LKM rootkits in the 2.6 kernel branch ? In
Speak of the devil...
Subject: Announcing full functional adore-ng rootkit for 2.6 Kernel
From: stealth <[email protected]>
Date: Thu, 11 Mar 2004 10:27:00 +0000
To: [email protected]
Hi,
At http://stealth.7350.org/rootkits/adore-ng-0.41.tgz you find the complete port of adore-ng for the Linux kernel 2.6. All of the stuff you know from earlier kernel 2.4 versions such as socket-, process- and file-hiding, syslog- and [uw]tmp filtering has been ported. Additionally since version 0.32 a buffer overflow has been fixed (doh!) which could lead to crashes when a lot of network connections exist.
regards,
stealth-
Quoted 6 lines
Subject: Announcing full functional adore-ng rootkit for 2.6 Kernel
From: stealth <[email protected]>
Date: Thu, 11 Mar 2004 10:27:00 +0000
To: [email protected]
Quoted 7 lines
Hi,
At http://stealth.7350.org/rootkits/adore-ng-0.41.tgz you find the complete port of adore-ng for the Linux kernel 2.6. All of the stuff you know from earlier kernel 2.4 versions such
From the FEATURES file :
o does not utilize sys_call_table but VFS layer
Seems to be that easy... Should we hide VFS layer now :-)
Regards,
Paul
Quoted 6 lines · pg smith
Any thoughts on the future of LKM rootkits in the 2.6 kernel branch ? In the last few years I've become quite interested in them (from a defensive point of view), but with the 2.6 kernel no longer exporting the syscall table, intercepting system calls would appear to be a non-starter now. In a perverse sort of way, i'm actually rather dissapointed: all that learning gone to waste.
If you get to load a module, you are in-kernel. Once there, you can either use what you know are the offsets for $distro-$version-$arch kernel and be in business as usual, or fool around on your own. Harder than before, yes. Impossible, by no means.
Signature · 4 lines
Dr. Horst H. von Brand User #22616 counter.li.org Departamento de Informatica Fono: +56 32 654431 Universidad Tecnica Federico Santa Maria +56 32 654239 Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513