LinuxQuestions.org
Review your favorite Linux distribution.
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 12-21-2011, 12:42 PM   #1
dlugasx
Member
 
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 266

Rep: Reputation: 19
ps - hide processes belongs to other users


Hi, short question. Is it possible to configure following scenario.

System user "Mike" executing following command: ps -Af

...and he see also processess from other users. Is it possible to block processess from other users ? To hide ?

greetz

Dlugi
 
Old 12-21-2011, 03:14 PM   #2
jthill
Member
 
Registered: Mar 2010
Distribution: Arch
Posts: 211

Rep: Reputation: 67
If "man ps" doesn't work and you can't install the man pages to make it work, there's always "man ps" in the Google search box.
 
Old 12-21-2011, 10:49 PM   #3
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Hide those processes

To my knowledge, you can only hide processes by running the user sessions i a container. IT can be an lxc container, or an OpenVZ guest, but basically amounts to a virtual machine that is protected from knowing very much about the host.
 
Old 12-22-2011, 03:32 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by dlugasx View Post
Is it possible to block processess from other users ? To hide ?
Searching LQ would have shown that GRSecurity has had that type of privilege separation for ages.
 
Old 12-22-2011, 05:23 AM   #5
dlugasx
Member
 
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 266

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by unSpawn View Post
Searching LQ would have shown that GRSecurity has had that type of privilege separation for ages.
Is it also possible to chroot SSH user ?
 
Old 12-22-2011, 06:48 AM   #6
agentbuzz
Member
 
Registered: Oct 2010
Location: Texas
Distribution: Debian, Ubuntu, CentOS, RHEL
Posts: 131

Rep: Reputation: 25
chroot jail for ssh users

dlugasx,
Yes, you can chroot an SSH user. There are already some threads about that here on LQ.
 
Old 12-23-2011, 06:41 AM   #7
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
However,

Chrooting alone will not prevent users from seeing the full process list.
Some kind of containerization that allows a user to ONLY see their OWN processes will, or true virtualization.
I am unfamiliar with other solutions, but a kernel module crafted to hide processes might do. I understand some rootkits have that capability.
 
Old 12-23-2011, 11:06 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by wpeckham View Post
Chrooting alone will not prevent users from seeing the full process list.
...also see the (ancient but still valid) "How to break out of a chroot jail" text.


Quote:
Originally Posted by wpeckham View Post
I understand some rootkits have that capability.
Rootkit LKMs usually isolate specific processes, being the reverse of the isolation type the OP asked for. Running a rootkit LKM for that purpose seems a rather odd choice (I do hope you're not seriously suggesting people run one) as mature, supported and maintained solutions exist.
 
Old 12-23-2011, 11:45 PM   #9
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Oh my no!

I would never suggest that ANYONE run a rootkit for any reason other than security experimentation and a platform built for that express purpose.

If I may expound a bit: Reading and understanding the CODE from a rootkit that hides certain process from examination using the standard tools might be instructive. Unless one is an experienced and accomplished system level programmer or kernel hacker, it is likely to be wasted effort, but if one qualifies it could be one interesting avenue for investigation.

Forgive me for not making my meaning clear.

PLEASE do not run a rootkit on your system! If you do, I DID NOT TELL YOU TO!!!
 
  


Reply

Tags
hide process



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
Hide previous users mdlinuxwolf MEPIS 1 07-18-2008 11:57 AM
How to know name of users belongs to my group, i m logged in as normal user d.kumar Linux - Newbie 1 05-14-2008 11:58 AM
hide processes cad Linux - Security 24 01-14-2007 07:04 AM
to hide users from 'net' Ygrex Linux - Networking 0 11-24-2005 11:20 AM

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

All times are GMT -5. The time now is 07:58 PM.

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