Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Suspicious files in /tmp |
|---|---|
| Date: | Mon, 18 Jun 2007 20:37:55 -0400 |
On Mon, 18 Jun 2007, Matt D. Harris wrote:
Some logic to check the underlying filesystem of a script before reading it would be a very cool addition to perl from a security standpoint.
This is not necessarily a great idea: not only Perl is in no way special, but like most interpreters, it can be invoked to read scripts from stdin or any other "volatile" source, without the necessity to store them in a file. Most interpreters also accept include file search paths and various command-line switches that would make such restrictions pointless anyway.
But, say we implement heavily-handed restricted mode for Perl. Should bash refuse to read from stdin and implement the same check? Gdb? Awk? Sed? Where do you draw the line?
If you don't want your users to use interpreters, make these programs not executable by that user; there's really no other way without a major ovehaul of how un*xes are built.
And even then, interpreters aside, "noexec" flag is *not* an effective method to stop the user from running custom code, and never was:
- /lib/ld-linux.so.2 /tmp/myexec - LD_PRELOAD=/tmp/foo.so ls - etc, etc.
/mz
------------------------------------------------------------------------- This list sponsored by: SPI Dynamics
https://download.spidynamics.com/1/ad/sql.asp?Campaign_ID=70160000000Cn8E --------------------------------------------------------------------------
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Suspicious files in /tmp, Robin Sheat |
|---|---|
| Next by Date: | Re: Suspicious files in /tmp, Michal Zalewski |
| Previous by Thread: | Re: Suspicious files in /tmp, Michal Zalewski |
| Next by Thread: | Re: Suspicious files in /tmp, Michal Zalewski |
| Indexes: | [Date] [Thread] [Top] [All Lists] |