Re: User access & security
- From: CWO4 Dave Mann <misterfixit@xxxxxxxxxxxx>
- Date: 04 Oct 2007 12:30:31 GMT
On Thu, 04 Oct 2007 00:57:54 +0200:
Mark wrote:
This is a question related to my next post.fairly easy ? iirc a rootkit is something that replaces valuable system
If there is a user with non-root access to their account, we are
dependent on their having a good password to ward off too much nasty
activity.
I am told that it is fairly easy with user access to install a rootkit
of some sort and totally compromise the system.
tools
like ps, lsof, top, ipconfig, ip, ... for this to be succesfull the user
has to have access to the files in question
this can be accomplished in a number of ways i know of
a) you have fucked up your permissions and allow other to write to
binaries owned by root
b) the user account has unlimited access to or has enough access to sudo
to do the same as mentionned in a)
c) the user is rather skilled or is a script kiddie who knows where to
get good tools and uses exploits in suid programs to execute the
commands required to install rootkit (again you'll have to decide what
you want your users to be able
to do (permissions permissions permissions)). normal users have no
business using
suid or sgid programs
d) the user is extremely good so after not finding the necessary
sudo/sgid exploits
he will try to attack running services that run as root: apache, smb,
... to get total access to the machine lately most attacks against
webservers seem to target vulnerable php, perl script and spawn a custom
script, which is located at some anonymous or compromised server, which
launches a reverse (root) shell so ...
it's a good idea to disallow the use of download tools like wget, curl
to your users and your apache server
Now it seems to me that if this user is careless with this password,
then the whole server is at risk. How true is this? Doesn't this weaken
Linux to such an extent that any user access at all is guaranteed to
bring down the server.
If that is the case, what do ISPs do, with their thousands of ordinary
users? What does anybody do?
I ask this because I have inadvertently left an account open with a
trivial password which somebody has stumbled into. (It has since been
closed, but the question remains).
Assume you have been compromised and start from scratch it's better to
be safe than sorry
Thanks,
Mark
This is all i can come up with for now. I'm not a security expert but i
do like to think i have educated myself enough, and will educate myself
even further, to give some valuable advice
also remember 'security is a process not a state' and to keep up-to-date
(whether it's about installed software or ... new attack vectors, tools,
information, ... )
Thanks for the insight.
I'm concerned about the "start from scratch" advice. I've experimented
with the concept of taking an otherwise good system -- and one where
everything is "just like I want it to be" and then reloaded the ubuntu
system from a DVD which I had just burned with the most current ISO from
the Deb site. In each case, the box lost just about all of the settings
I had made to it and to really make things a pain, I got the "$HOME is
being ignored ... change permissions to 644..." so that user settings
were NOT preserved. This even through the entire home/user directory was
dd moved from the backup hd.
I have also copied a dd image back and forth to test a complete system
restore and found that there is ALWAYS some glitch which prevents the
system from going back to where it was, only with a clean OS.
Sorry to carry on like this, but I have just not had good luck with full
system restores over the past 10 years of using Linux. If it is any
consolation to me, none of our shop's Windows machines (which are long
gone since we switched to only Linux) nor the two BeOS machines were any
different. There is "always" something ...
Dave
--
Posted via a free Usenet account from http://www.teranews.com
.
- Follow-Ups:
- Re: User access & security
- From: Moe Trin
- Re: User access & security
- References:
- User access & security
- From: Mark
- Re: User access & security
- From: goarilla
- User access & security
- Prev by Date: Re: Phishing Attempt
- Next by Date: Re: Phishing Attempt
- Previous by thread: Re: User access & security
- Next by thread: Re: User access & security
- Index(es):