Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Scanning processes memory for a string

 
   Soft32 Home -> Linux -> System Development RSS
Next:  Accepted seaview 1:4.1-1 (source powerpc)  
Author Message
linuxnewbie1234

External


Since: Nov 04, 2008
Posts: 3



(Msg. 1) Posted: Mon Jul 13, 2009 11:20 am
Post subject: Scanning processes memory for a string
Archived from groups: comp>os>linux>development>system (more info?)

Hi there
I am apparently struck by a *very* smart rootkit, probably a LKM. Some
unknown process or kernel thread on our system is making a spam-network
with some other peers. Netstat won't show that process (not even with a
dash "-" like it is for kernel threads like NFS). "ps" probably also
won't show it.

The peer IP addresses which are contacted by the infected machine are
recurring over time however, so there must be some running process that
holds those IP addresses in memory.

Is there a way I can use /dev/mem or /dev/kmem to scan for those IP
addresses (double word value)? After I found it, I would need to know
which process maps that portion of memory. (That might even be a kernel
thread actually) Can you point me to some direction? Consider that I
know C/C++ but I don't really know much of the linux kernel.

Thank you
Back to top
Login to vote
Josef Moellers

External


Since: Apr 03, 2009
Posts: 10



(Msg. 2) Posted: Tue Jul 14, 2009 3:41 am
Post subject: Re: Scanning processes memory for a string [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

linuxnewbie1234 wrote:
> Hi there
> I am apparently struck by a *very* smart rootkit, probably a LKM. Some
> unknown process or kernel thread on our system is making a spam-network
> with some other peers. Netstat won't show that process (not even with a
> dash "-" like it is for kernel threads like NFS). "ps" probably also
> won't show it.
>
> The peer IP addresses which are contacted by the infected machine are
> recurring over time however, so there must be some running process that
> holds those IP addresses in memory.
>
> Is there a way I can use /dev/mem or /dev/kmem to scan for those IP
> addresses (double word value)? After I found it, I would need to know
> which process maps that portion of memory. (That might even be a kernel
> thread actually) Can you point me to some direction? Consider that I
> know C/C++ but I don't really know much of the linux kernel.

I'm not a security expert, but I'd strongly advise a clean (and I mean a
CLEAN!!!!) re-installation. A rootkit can very well catch any access to
/dev/kmem and hide itself. That's what makes rootkits so nasty! Maybe it
has even silently installed a virtual machine and your linux kernel is
no more running on the physical machine but on that virtual machine
which make the rootkit absolutely undetectable.

Josef
--
These are my personal views and not those of Fujitsu Technology Solutions!
Josef Möllers (Pinguinpfleger bei FTS)
If failure had no penalty success would not be a prize (T. Pratchett)
Company Details: http://de.ts.fujitsu.com/imprint.html
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Access shared memory from kernel module - Hi All, I wanted to know if shared memory created in user space can be accessed from a loadable kernel module. Have no...

RFC3971 - Does anyone know if RFC3971 support is being developed for Linux? It does not seem to be implemented in the mainline..

Size 8 bit, 16 bit, 32 bit and 64 bit systems. - I need to find out what is the size of following data structures in 8 bit, 16 bit, 32 bit, and 64 bit systems. struct....

Size 8 bit, 16 bit, 32 bit and 64 bit systems. - I need to find out what is the size of following data structures in 8 bit, 16 bit, 32 bit, and 64 bit systems. struct....

Controlling UART transmission of bytes - I'm programming an ARM's UART that comes with a library implementing the standard unix termios interface. Regarding..

[PATCH] fix memory leak in UBI scanning unit - In drivers/mtd/ubi/scan.c::paranoid_check_si() there's a memory leak. If the call err = ubi_io_is_bad(ubi, pnum);..
       Soft32 Home -> Linux -> System Development All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]