What does this mean and what do I do about it? crucial filesystem check: Fixing Bogus GID 80 on path /sbin/launchd

2

1

A few days ago my website got hacked and a malicious file called images.pl was uploaded which creates a backdoor that allows the file's author to upload/download/do whatever they want. Later I found out it contains PHP.C99-7.

I noticed this file, created a backup of the website's content and then removed the file. The backup is on my MacBook Pro (running Mountain Lion). The same day my MBP started acting funny. I called off work as a security precaution (I'm a website developer) so I can do damage control.

I did a full ClamXav scan on the MBP (ML latest version with latest security release), but it found nothing out of the ordinary, except the php file which ClamXav identified as PHP.C99-7. The file was moved to quarantine.

I decided I should make sure the MBP doesn't have any more malware, since that was a backdoor after all. I shut it down, boot into target disk mode and then run another ClamXav scan with my 2007 Intel Mac Pro (G5) (running OS X 10.6.8). 5 hours later, no results. 5 hours 5 minutes later 17 infections found. The files were moved to quarantine on my Mac Pro.

2 days later (today) the Mac Pro starts acting funny. I get a bunch of errors about .kext files being misconfigured or something. I shut it down and press Command+Option+Shift+Power until I get blinky lights. Then press Command+Option+P+R and hold until I hear three chimes. Finally press Command+V just to be sure, but at this point I get abnormal output:

 Bug: launchctl.c :3576 (25952):17: ioctl(s6, SIOCAIFADDR_IN6, &ifra6 != -1 
 running fsck on the boot volume...
 csrusbbluetooth blah (is normal)
 Executing fsck_hfs (version diskdev_cmds-491.6~3).
 hfs: Removed 1 orphaned / unlinked files and 0 directories
 -crucial filesystem check: fixing bogus GID 80 on path: /sbin/launchd
 -(a)crucial filesystem check: adding missing mode bits 01002 on path: /tmp/
 -(b)crucial filesystem check: fixing bogus GID 80 on path: /tmp/

Repeat (a) and (b) with:

 /var/tmp/
 /var/folders
 /var/db/launchd.db
 /var/db/launchd.db/com.apple.launchd
 launchctl: Dubious permissions on file (skipping): /Library/LaunchDaemons
 launchctl: Dubious permissions on file (skipping): /System/Library/LaunchDaemons
 launchctl: Dubious permissions on file (skipping): /etc/mach_init.d

And then nothing happens, it just stays on that last line.

I have not done single user or safe mode yet, will report back when I do, but meanwhile does anyone know what any of that means and how can I fix it?

Andrew Luhring

Posted 2012-10-16T17:11:46.323

Reputation: 123

Sorry that nobody was able to help you with this at the time. I am having a similar issue (bug: launchctl.c:3576 (25952):17: ioctl(s6, SIOCAIFADDR_IN6, &:fra6) != -1). Did you figure out a solution? – mareoraft – 2016-01-03T00:35:55.540

1nope. from what i remember, the next i did was run repair disk permissions. i think stuff in launchd are programs that execute at launch, so one thing you might try would be to start your (potentially infected) mac in target disk mode, and repair its disk permissions remotely ( so as to avoid running the program that executes at launch). – Andrew Luhring – 2016-01-06T23:14:31.603

1pretty sure that at the end of the day what i ended up doing was- i made a backup of my computer, and reinstalled osx. in retrospect im pretty sure that part was unnecessary for the sake of the exploit (it was a php backdoor... if your computer is a server, thats a different story, but on just a computer that isn't a server, i'm pretty sure its harmless) ... i ended up nuking it to fix the permissions stuff and other problems that started arising when i went in over my head in single user mode. – Andrew Luhring – 2016-01-06T23:22:07.620

Safe mode didn't work- stuck at the apple. – Andrew Luhring – 2012-10-16T17:34:35.747

Single-User mode works, but now I have no idea what to do... – Andrew Luhring – 2012-10-16T17:37:13.967

in single-user mode after the '/sbin/fsck -fy /sbin/mount -uw / if you wish to exit the system: exit commands, it says: -sh: __rvm_add_to_path: command not found ` ... no idea what that means. – Andrew Luhring – 2012-10-16T17:49:51.610

after I /sbin/fsck -fy it does the check, and after it gets to where it says: *** The volume (myHD) appears to be OK.

it says (verbatim): ***** FILE SYSTEM WAS MODIFIED ***** :/ root#

so yeah...computer still works, but what does it mean by ***** FILE SYSTEM WAS MODIFIED ***** ? – Andrew Luhring – 2012-10-16T18:06:38.210

and I'm really trying to format these comments but its just not working out. sorry. – Andrew Luhring – 2012-10-16T18:09:59.980

No answers