v_panos wrote:
Same issue here , got the cloud fare asking me to verify via terminal with a copy paste command.
When I pasted the command and pressed enter it asked me for my Mac password. I immediately understood that I made a mistake , so at that moment I just HARD SWITCH OFF my laptop by am not sure if it was compromised.
I believe you avoided the worst implications by never entering the password, which greatly limits what can be done, especially on a Mac. That said, Apple is constantly providing MacOS updates to plug holes in security, some of which do not require an administrator password.
One thing you can do for a little more peace of mind is run Malwarebytes which does check for malware, which I think is the primary concern here.
It would take me a few days to empty my Mac onto hard disk and make a fresh install of macOS.
I don't think that is the case, I have actually done this and it took several hours. And after doing it, the Mac ran more responsively because the "clean install/refresh" no doubt rid me of unneeded background items.
Is there a way to check if something was installed ? a way to check if it was compromised ?
You can check by going to About This Mac or Settings and select System Report, then look under Installations. It lists everything installed and when it was installed. But a nefarious program might hide itself from that list, and that list is for software, not sure if startup or system launch scripts would even show up there. You could check your startup items and launchd items. But the people engineering these things are clever and might find a way to hide it from you.
I opened the laptop again, changed the user password on Apple account.
I will need to move all my data out before reinstalling macOS, however in the meantime I am not sure if my data is safe.
Good to change the Apple password, also change your user account passwords on the Mac, router password, and I would change banking/finance site passwords also.
Since you actually pasted a bad command into terminal and pushed enter, I think I would backup all files (or better yet, use a backup done from before the event) and then do a complete reset of the Mac, following Apple's instructions for what to do before preparing a Mac for sale or exchange. Then install a new MacOS and I would feel ok about migrating files only from the backup, don't migrate any executable code and no settings. With all those password changes you made I would feel pretty secure. When I have done this in the past (I did it to restore an older laptop to a clean install status for other reasons), it only took several hours, including the time to reinstall all software (e.g. Microsoft, Adobe, other purchased software) anew. Maybe others will weigh in here, either what I suggest is overly cautious or not cautious enough.