perfsonar-user - [perfsonar-user] a shellshocked experience
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: John-Paul Robinson <>
- To: "" <>
- Subject: [perfsonar-user] a shellshocked experience
- Date: Wed, 1 Oct 2014 16:14:25 -0500
To other shellshocked perfsonar users: Our perfsonar node did not have automatic yum updates enabled and was impacted by a shellshock-related exploit on Sept 26. This is was after both bash updates had been announced on the perfsonar-user lists, so we may have survived had automatic updates been enabled by default.
After receiving a local exploit report I went to check on the machine and immediately noticed Apache had restarted. Alarmingly, a root-owned process called fakewww also started at the same start time and oddly so did one named web100srv. Both of these processes had open ports and logs open. Yikes, they got root! Killed them. But then they came back after I restarted httpd, even after `rpm -V httpd` showed no corruption. Oh no! They've really gotten a hold of the system.
Because of the potential for root exploits I ran rpm verifies of core commands (eg rpm -V procps) some were good some reported prelink inconsistencies. This caused some concerns at first but as I narrowed down the exploit it became clear the problems were only due to a prelink bug. https://access.redhat.com/solutions/25215 https://bugzilla.redhat.com/show_bug.cgi?id=204448
Looking further into the state of the system I noticed an '/usr/sbin/sshd -i' process running as apache and an time-wise unrelated httpd process. lsof showed these were both perl codes running out of /var/tmp/ with established tcp connections off site. Very suspicious and killed them.
In the end, I traced the exploit down to the two suspicious perl processes (/var/tmp/x). They were executing an ircbot as apache. There was no root access to the system and simply clearing out the installed bots from /var/tmp was a sufficient remedy. There was an attempted install of code to exploit CVE-2013-2094 but thank fully that's a 3.8 kernel bug and perfsonar is still on 2.6. I hope this experience can be useful to others and that the recommendations can be incorporated into future releases as warranted. ~jpr |
- [perfsonar-user] a shellshocked experience, John-Paul Robinson, 10/01/2014
- Re: [perfsonar-user] a shellshocked experience, Brian Tierney, 10/01/2014
- Re: [perfsonar-user] a shellshocked experience, D'Angelo, Cas (Samuel), 10/02/2014
- Re: [perfsonar-user] a shellshocked experience, Andrew Lake, 10/02/2014
- [perfsonar-user] perfsonar automatic updates, Mark Foster, 10/02/2014
- Re: [perfsonar-user] perfsonar automatic updates, Hector Ordorica, 10/02/2014
- [perfsonar-user] perfsonar automatic updates, Mark Foster, 10/02/2014
- Re: [perfsonar-user] a shellshocked experience, Andrew Lake, 10/02/2014
- Re: [perfsonar-user] a shellshocked experience, D'Angelo, Cas (Samuel), 10/02/2014
- Re: [perfsonar-user] a shellshocked experience, Jason Zurawski, 10/01/2014
- Re: [perfsonar-user] a shellshocked experience, Trey Dockendorf, 10/02/2014
- Re: [perfsonar-user] a shellshocked experience, Jason Zurawski, 10/02/2014
- Re: [perfsonar-user] a shellshocked experience, Stefan Piperov, 10/02/2014
- RE: [perfsonar-user] a shellshocked experience, Merillat, Eric, 10/02/2014
- Re: [perfsonar-user] a shellshocked experience, Trey Dockendorf, 10/02/2014
- Re: [perfsonar-user] a shellshocked experience, Brian Tierney, 10/01/2014
Archive powered by MHonArc 2.6.16.