User '_mbsetupuser' with shell '/bin/bash' in file '/etc/passwd' (MacOS Big Sur). Me hacked?

Hello! The day before yesterday I was presented with a MacBook Pro 12.1 laptop. I immediately decided to update the system there to the new latest MacOS Big Sur (clean installation from a USB drive, the laptop disk was completely erased before installation). The system installed fine, but after a few hours I found a strange thing in it... The following line was found in the /etc/passwd file:

_mbsetupuser:*:248:248:Setup User:/var/setup:/bin/bash

I apologize, but I have never used MacOS before, I only used ArchLinux before, and there, if some strange user is registered in the /etc/passwd file who works with the /bin/bash shell, then this means that most likely the system was hacked... Or is it ok for macOS Big Sur 11.5.2? Who is this user _mbsetupuser and why does he need /bin/bash ??? Is it possible to somehow track the activity of this user from the moment of his first login to the system?

A screenshot with the terminal output is attached below. Thank you all in advance for any information on this issue!


UPD #1 - groups this user:

uid=248(_mbsetupuser) gid=248(_mbsetupuser) groups=248(_mbsetupuser),12(everyone),61(localaccounts),250(_analyticsusers),701(com.apple.sharepoint.group.1),100(_lpoperator)


UPD #2 - I found another interesting user almost at the very beginning of /etc/passwd. Why is it needed and what kind of shell is it? Here is the line:

_uucp:*:4:4:Unix to Unix Copy Protocol:/var/spool/uucp:/usr/sbin/uucico

Posted on Aug 30, 2021 4:13 PM

Reply
13 replies

Aug 30, 2021 5:24 PM in response to Barney-15E

I see you are an Arch Linux user. I do not believe you are going to be happy when you realize the System volume is protected three ways. System Integrity Protection (SIP), mounted ready only, and then actually snapshot to APFS, signed, sealed and booted from the snapshot. Making it practically impossible to alter the macOS System files. Only Apple can make changes to the System. You will find many old articles about customizing Mac OS X that no longer work due to these changes since High Sierra to Mojave to Catalina to Big Sur. Every year, Apple has been locking down the operating system more and more. This broke a lot of legacy software that did things Apple no longer allows. I don't believe Apple will be locking things down to the point of iOS / iPadOS but they have come very close to it with macOS.


(When Worlds Collide) It is the way Apple implemented it. Since Apple locked everything down you cannot alter the way the operating system works. You can only alter your user settings. This is completely the opposite way Arch Linux works.


All those user accounts are legacy UNIX related dating all the way back to NeXTStep / OpenStep in the 1990's. Mac OS X was entirely based upon NeXTStep when Apple acquired NeXT. Most all the API calls still begin with "ns" prefix which stands for NeXTStep.


The _mbsetupuser is only applied when installing macOS and its corresponding /var/setup home folder is destroyed when no longer needed. The /bin/bash shell is not a security issue. The Unix to Unix Copy Protocol hasn't been used in more than a decade. The last time I've used it was more than 20 years ago. Again, its legacy cruft left over from the late 1980's and early 1990's. All of the underscore users accounts are service accounts, meant to launch a daemon or other process. I did run a test for uucp and although there is a user account and even a binary uucp command, the daemon Launchd service is no longer configured. "sudo launchctl print-disabled system" used to list com.apple.uucp and it was disabled by default but with Big Sur it's not listed at all. That means the launchd plist was remove.


The more you dig the more you are going to find legacy items that likely no longer work. Here's a site that explains the Launchd system. It's more like systemd but simpler. https://www.launchd.info


Sep 5, 2021 6:51 AM in response to James Brickley

SIP is of course a very good idea, thanks to the developers for this protection feature! But as far as I know, SIP checks system files by the hash of files from the system image that we have on the SSD (in the form of a hidden partition). But what if someone has stitched some UEFI-bootkit into the BIOS chip and now it automatically changes some files from the system file checker image that uses SIP when it is turned on? How can I check this image or UEFI-BIOS firmware?

Sep 5, 2021 7:39 AM in response to XopmoH

XopmoH wrote:

SIP is of course a very good idea, thanks to the developers for this protection feature! But as far as I know, SIP checks system files by the hash of files from the system image that we have on the SSD (in the form of a hidden partition).

SIP doesn't do anything at all like that.

But what if someone has stitched some UEFI-bootkit into the BIOS chip and now it automatically changes some files from the system file checker image that uses SIP when it is turned on? How can I check this image or UEFI-BIOS firmware?

That has not happened. And it would be impossible for you to perform such a check.


You need to give this up. The only thing here that has been hacked is your mind. The internet and social media have convinced you that hackers have re-written your operating system. Your operating system is fine. It has not been hacked. That is extraordinarily difficult to do. Hacking you is quite easy. Why would any self-respecting hacker take a more difficult path? It is better to make you think you've been hacked to that you go off onto these wild goose chases. The most likely outcome is that you will try to inspect these low-level operating system structures, add 3rd party security, and, in the end, finally make your computer susceptible to hacking.

Sep 5, 2021 7:39 AM in response to XopmoH

I’m not aware that SIP does anything but prevent all users (including root) from altering a file or folder. It was a precursor to read-only system volume. I don’t think it compares any file hashes at all.


There isn’t a BIOS chip on a Mac.


With physical access to the Mac, someone theoretically might be able to flash the EFI firmware. Did you let someone take physical control of your Mac?


I have no idea how to check. If you have that fear, you should hire someone to evaluate your Mac.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

User '_mbsetupuser' with shell '/bin/bash' in file '/etc/passwd' (MacOS Big Sur). Me hacked?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.