|
|||||||||||
|
Re: file hiding under Linux
From: Brian Hatch <vuln-dev(at)ifokr.org>
Date: Tue Jun 24 2003 - 19:13:56 EDT > Ok so I've been working on filehiding for the
... > This technique only works for executing binaries, listing
This isn't a terribly robust definition of 'hide'. Yes, of course 'ls' would find them, as would 'find' or any other program that can read directories. Using your definition, consider programs that are needed mainly by root and administrators and not normal users. These are typically stored in /sbin or /usr/sbin, and those dirs are not put in normal user's $PATH env var. However any user can easily run them by changing $PATH, or using the full pathname (/sbin/ifconfig) for example. To actually 'hide' files, you need to imploy standard Linux permissions. For example if you don't want people using ifconfig, then you can put it into /sbin/hidden/ifconfig and make /sbin/hidden mode 700 owned by root. This will, of course, break a ton of startup scripts and the like which expect ifconfig to live in /sbin, but let's ignore that for now. However this still doesn't solve your problem. If I have login access to the machine, I can upload a copy of ifconfig from my machine and run it. Even if you disable uploads, sftp, or even old *modem protocols, if I have shell access, I can create a file one way or another, even if I need to resort to something like home$ uuencode /sbin/ifconfig ifconfig (copy output) server$ cat >./ifconfig.uu < This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:40 EDT |
||||||||||
|
|||||||||||