LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-17-2003, 02:51 PM   #1
n3wb1e
LQ Newbie
 
Registered: Mar 2003
Location: Slovenia
Distribution: Red Hat X
Posts: 23

Rep: Reputation: 15
hiding processes


How can i hide process? that admin cant see proc when he type ps -aux ... process like psybnc or eggdrop which run in bg? can i do that ?


Please help me!

thank you
 
Old 10-17-2003, 03:02 PM   #2
drgowans
LQ Newbie
 
Registered: Sep 2003
Location: Salt Lake City, Utah
Distribution: Red Hat 9
Posts: 22

Rep: Reputation: 15
I don't think that there is a way to do this. If you are a user and the admin doesn't want you to run certain processes, that's going to be pretty tough to get around.

I am really treading where I don't understand, but if you could find and modify the source, make it look like another program so that when you run it, its process name is different.
 
Old 10-17-2003, 03:18 PM   #3
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
If you mean admin=root, no, root can see and do anything.

RO
 
Old 10-17-2003, 04:57 PM   #4
n3wb1e
LQ Newbie
 
Registered: Mar 2003
Location: Slovenia
Distribution: Red Hat X
Posts: 23

Original Poster
Rep: Reputation: 15
I am admin.. i just wanna know how to hide process... then even hackers cant see my processes if they hack into my system and have root ..
 
Old 10-17-2003, 05:01 PM   #5
drgowans
LQ Newbie
 
Registered: Sep 2003
Location: Salt Lake City, Utah
Distribution: Red Hat 9
Posts: 22

Rep: Reputation: 15
You can't do that. The processes will always show to root. If a hacker gets into your system and is root, he can do pretty much whatever he wants. That's just the way it works.
 
Old 10-17-2003, 05:32 PM   #6
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
mv /bin/ps /somerandomedirectory/<randomname>

then, ps doesn't exist, and they won't know where you
actually put it and renamed it. You can do this for any/all
commands you want. ps doesn't really care what it is called.

RO
 
Old 10-17-2003, 05:42 PM   #7
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Rep: Reputation: 15
Adding onto the previous post, if you don't want to be conspicuous that you don't have the ps program, you can move the real ps progam somewhere else, and make a shell script named ps in /bin/ and point that to the real ps, while piping the output from the real ps to grep, awk, and sed to hide processes. So when a user types "ps -aux" they are actually running your script which is taking the input from the real ps and filtering it. This must be terribly hard, but there are so-called "root kits" out on the internet for hackers who manage to get root. Maybe one tool of a root kit may be this type of script, but not sure b/c never had the need for one.
 
Old 10-18-2003, 11:38 AM   #8
mac_phil
Member
 
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200

Rep: Reputation: 30
This is absolutely doable. When your box is cracked this is often what they'll do.

'ps' is simply an executable file. If you replace it with your own file it will behave how you want it to, even for root. Since you're the admin just go in and pipe the processes out with grep, awk, sed, as stated above.

There is almost never a 'way it is with Linux.' It's all open, if you're root just go in there and change it!

Realize, though, that this cuts both ways. If you do get cracked, well, they can install their ps.

I'm curious what processes you want to hide from hackers.

Last edited by mac_phil; 10-18-2003 at 11:39 AM.
 
Old 10-19-2003, 05:48 AM   #9
n3wb1e
LQ Newbie
 
Registered: Mar 2003
Location: Slovenia
Distribution: Red Hat X
Posts: 23

Original Poster
Rep: Reputation: 15
mac_phil

processes like logger .. sniffer etc...
 
Old 10-19-2003, 06:59 AM   #10
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
Quote:
Originally posted by n3wb1e
I am admin.. i just wanna know how to hide process... then even hackers cant see my processes if they hack into my system and have root ..
Learn much more about grsecurity
 
Old 10-19-2003, 06:01 PM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
dorian33: "Learn much more about grsecurity"
I agree running a Grsecurity-patched kernel can solve some headaches, but you should try to offer more details about what it's capable of, like memory and process protection.
 
Old 10-21-2003, 09:52 AM   #12
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Quote:
Originally posted by RolledOat
mv /bin/ps /somerandomedirectory/<randomname>
then, ps doesn't exist, and they won't know where you
actually put it and renamed it. You can do this for any/all
commands you want. ps doesn't really care what it is called.
RO
You can also get similar info from /proc. Look into something with RBAC or RSBAC like grsecurity. There are some distros like Castle Linux have this functionality built in.

Last edited by stickman; 10-21-2003 at 09:57 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hiding the desktop manas_shukla Linux - Newbie 3 01-22-2005 06:28 AM
monitoring active processes and identifying the required processes. gajaykrishnan Programming 2 08-13-2004 01:58 AM
Hiding other users processes itskiLLjoy Linux - Security 2 03-20-2004 09:29 PM
hiding menubar new user Linux - General 1 10-01-2003 01:14 AM
Hiding tmiles Linux - Security 4 08-10-2001 08:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration