From: Herta Van den Eynde Subject: Re: deleted perl hacks in /tmp Date: Fri, 16 Apr 2010 22:38:14 +0200 Message-ID: References: <20100415213631.GA1251@chris-laptop.a2hosting.com> <20100416154521.GA5437@chris-laptop.gha.chartermi.net> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type :content-transfer-encoding; bh=6U89omVY4dlvGVaYr6Hwwb+VX+bev8Nt1m0KtXuC7Wk=; b=KmFVNA0+UOAbUISQJs7YjwAez5qZb5WsR8YWv0LAasQLvQ65g4aytcvybmoU7LoBEx 9aVrRk7+Z33CF9Th/fHuSTplXj573pqzsNoxHEZ9EZxioqFzOAeqGp7SoBnVvKWhGRmG AG+Jd+n6o+/jyOB5E5qvf6c/yaH2lvOpcalZU= In-Reply-To: <20100416154521.GA5437@chris-laptop.gha.chartermi.net> Sender: linux-admin-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="iso-8859-1" To: linux-admin On 16 April 2010 17:45, Chris wrote: > On Fri, Apr 16, 2010 at 02:28:09AM -0700, terry white wrote: >> ... ciao: >> >> : on "4-15-2010" "Chris" writ: >> : web servers which occasionally have hacks that are uploaded >> : know more about them to actually prevent them from happening. >> : Any thoughts would be appreciated! >> >> =A0 =A0 from my reading, this is a security nightmare. =A0and , i , = am hard >> pressed to find a time when "what's" been uploaded, more important t= han >> the fact, "that is was". >> >> =A0 =A0 without a meaningful translation of "web server hacks" is a = real >> limiting factory in problem resolution. =A0however, your logs are yo= ur >> friend; access, error, and referrer. >> >> =A0 =A0 securityfocus recently disclosed a problem with apache and w= ordpress. >> >> =A0 =A0 a specific description of the environment would be a big hel= p ... > > These are large shared servers serving a lot of stuff. =A0I could onl= y wish that > I had control over how up to date all the web apps were! > > Anyway, in this case, finding what is being uploaded is fairly import= ant since > I don't have the luxery of having control over everything. =A0I don't= have a > problem with nuking the processes once started, but I would really li= ke to > prevent them from ever making it do disk and run to begin with. =A0In= order to do > that, I need a pretty good idea of what the hack looks like. =A0Not o= nly that, > pure curiousity plays a large role too. > > My question was not so much about web security (I would pick a differ= ent > mailing list for that), as much as it was about whether anyone had ex= perience > or trickery to recover/trap file contents that someone is working rea= lly hard > to hide. =A0Perl obviously read the file to run the sript (anyone can= run perl, > so any flags on the /tmp mount are pointless in this case, as perl ca= n read > /tmp all it wants). =A0Like I said before, reading the open file from= proc yields > nothing. > > I guess I might have to bite the bullet and set up a huge space to lo= g a > gazzillion POSTs until I can find what is. > -- > To unsubscribe from this list: send the line "unsubscribe linux-admin= " in > the body of a message to majordomo@vger.kernel.org > More majordomo info at =A0http://vger.kernel.org/majordomo-info.html > Is changing the filesystem type an option? You could temporarily create a new non-extn filesystem on a free partition and mount it on /tmp. In that case, you could set the undeletable attribute on /tmp ("chattr +U /tmp"). It will be inherited by any file created there. Problem is that extn doesn't honour the attribute, though you could patch it if you prefer (cf. http://lwn.net/Articles/211193/). Kind regards, Herta --=20 "Life on Earth may be expensive, but it comes with a free ride around the Sun." -- To unsubscribe from this list: send the line "unsubscribe linux-admin" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html