nanog mailing list archives

Re: Security Guideance


From: Chris Adams <cmadams () hiwaay net>
Date: Tue, 23 Feb 2010 14:55:40 -0600

Once upon a time, Matt Sprague <msprague () readytechs com> said:
The user could also be running the command inline somehow or deleting
the file when they log off.   Check who was logged onto the server at
the time of the attack to narrow down your search.  I like the split
the users idea, though it could be several iterations to narrow down
the culprit. 

We've also seen this with spammers.  They'll upload a PHP via a
compromised account, connect to it via HTTP, and then delete it from the
filesystem.  The PHP continues to run, Apache doesn't log anything
(because it only logs at the end of a request), and the admin is left
scratching his head to figure out where the problem is.

IIRC PHP holds an open file descriptor on active scripts, so you can use
lsof to look for things like this (look for "deleted" or "path inode"
entries).
-- 
Chris Adams <cmadams () hiwaay net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.


Current thread: