iMac infected with virus that creates hidden windows partition, won’t boot from USB or internet recovery

I have an iMac that has got a serious virus on it. The hard drive is 500gb, but when I format it using disk utility, the drive says it is only formatted to 465 gb, then when I load it in OSX Catalina, it says the drive is 500gb and doesn’t show a bunch of hidden partitions the virus has created.


It seems the virus has its own boot loader and it disables booting from USB and internet recovery. I can start internet recovery but then the Apple symbol comes up and it boots from the virus’s recovery disk, which is sometimes a Catalina disk and sometimes it’s a Snow Leopard or El Capitan boot menu.


The virus has created hidden windows partitions and hidden Mac partitions which are ejectable hidden drives that I can only see from using hdutil list in terminal when I boot from the fake internet recovery.


I was able to use GPT fdisk to remove one of the windows partitions, but when I go to delete the other partitions they come right back after I zero the drives in terminal from the fake internet recovery, and I can’t boot from USB. I’m pretty sure the list of partitions I see in terminal is a fake list because it doesn’t propagate the window fully when I open the terminal to a different sized window from the one I originally ran hdutil list in.


Im totally stuck, if I boot in verbose mode I can sometimes get it to work, but I can’t boot from USB or a real internet recovery because the virus’s fake boot loader denies access to a real install disk and has a hidden 40gb partition that I can’t delete and it just puts the virus right back on after I format.


Can anyone please help me figure this out?

Posted on May 25, 2020 10:35 AM

Reply

Similar questions

62 replies

May 25, 2020 11:29 PM in response to soundboy13

soundboy13 Said:

"I tried that in recovery mode and I get command not found"

-------


Thank you for the Screenshot. What it infers is that you have nothing on your drive - it's time for a new drive. Your drive is dead.

---


Get this Serviced - Get a New Hard Drive:


Is this covered by AppleCare?

If so, take this up with Apple. Being that Coronavirus Pandemic is going around, Apple Stores are Closed. So, Send-In Service is all that there is at the moment. If not, then contact and AASP.

Verify if it is Covered

Enter your Serial Number Here: Check Your Service and Support Coverage - Apple Support

---


A. Using Send-In Service:

The only option, as of this post, would be to contact Apple, and have it sent it for service/replacement.

  1. Apple: would send you a box
  2. You: would package it and send it to Apple
  3. Apple: would fix it or replace it, if applicable
  4. You: would receive it back from Apple

---


B. Contacting Apple Support:

A. Phone Support Info:

  • Contact Us - Choose Locations
  • USA: 1(800)MY-APPLE
  • Proceed from there as Necessary
  • NOTE: Calls are taking a moment, so, just stay on the line. Someone will be with you.

C. Chat Session Info:

Being that phone calls are taking a moment, perform a chat session with Apple Support.

Setting Up the Chat Session:

  1. Go to: support.apple.com
  2. Scroll Down to "Tell us how we can help"
  3. Select: Get Support
  4. Proceed from there as Necessary


or...


D. Contact an AASP: 

  1. Go Here: Find Locations - Apple Authorized Reseller
  2. Click: Service & Support
  3. Enter: your location information
  4. See: if there is an AASP nearby
  5. Contact: an AASP (Apple Authorized Service Provider) that shows up, and find out more about the services that they offer to fix the iPhone

May 25, 2020 11:11 PM in response to soundboy13

soundboy13 Said:

"I appreciate everyone’s help and feedback but I just wanted to focus on reinstalling the OS from USB so I could fix the issues and I didn’t even really go into all of the strange behaviours I keep having every time I format the c1. omputer."

-------


Find Out the following in Terminal:


1. Use: this Command in Terminal:

 system_profiler


2. Scroll Down to: Storage:

To easily find this, use Find

  • [ Hold Down: Command + Tap: F ]
  • Type: System Software Overview:
  • Press: return until it id


3. View: Storage: (The Next Item Down)

  • How Many Hard Drives Do You See?
  • What Are the File System?
  • What is the Capacity?
  • How much is Free?


The Output: (Don't Provide It in a Reply)

It Would Look Something Like This:


Macintosh HD - Data:

      Free:

      Capacity:

      Mount Point:

      File System:

      Writable:

      Ignore Ownership:

      BSD Name:

      Volume UUID:

      Physical Drive:

          Device Name:

          Media Name:

          Medium Type:

          Protocol:

          Internal:

          Partition Map Type:

          S.M.A.R.T. Status:




    Macintosh HD:

      Free:

      Capacity:

      Mount Point:

      File System:

      Writable:

      Ignore Ownership:

      BSD Name:

      Volume UUID:

      Physical Drive:

          Device Name:

          Media Name:

          Medium Type:

          Protocol:

          Internal:

          Partition Map Type:

          S.M.A.R.T. Status:

May 25, 2020 5:01 PM in response to soundboy13

Whatever you're seeing, it's not Windows. If you format the drive correctly, there will be nothing left.


To erase everything, boot into Recovery Mode or Internet Recovery Mode (which I presume you've been doing). Launch Disk Utility. Now, choose the topmost, leftmost indented drive in the left column. That's the actual drive's name. Do not select the right indented volume name below that.


Now erase the drive, not the volume. When it's done, close Disk Utility and reinstall the OS.

May 26, 2020 8:58 AM in response to soundboy13

So It’s absolutely normal to be able to download items (like the Catalina install disk) from the App Store without connecting your Apple ID to your account and without logging in?

From Recovery Mode, or Internet Recovery Mode, yes. In that boot mode, the Mac will only pull the OS from Apple's own servers. It doesn't need your permission to acquire the OS from the safest source possible. There's also no means to login to your account from Safe Mode.

Is it regular to have two thunderbolt bridge connections added to your Ethernet settings, and if you remove them they come back?

Yes, they're part of the Mac's hardware. It will always list what exists. Stop trying to modify it.

I didn’t think I should be able to Install the 15.4 combo update on a system which is already running 15.4, shouldn’t it say it’s already installed?

You can still download and run the 10.15.4 Combo Updater if you want, but what would be the point?

and should IOBoot setting always prevent you from changing login settings in terminal by default? And booting in recovery and using terminal to start in verbose mode will turn itself off by default?

No idea what you're trying to find there. In Safe Mode, Terminal will always behave with a set of predetermined defaults.

and terminal should always go to from bash to zsh mode by default and save a log file of all the commands you enter?

It's not changing from bash to zsh, it's starting up with the zsh shell because that's the default Apple switched to in Catalina.

and if I disconnect the Ethernet cable, wifi will turn itself on and connect to my router using the SSID info and password which I have removed?

Since Wi-fi is automatically enabled with a fresh install of the OS, yes, it will switch. No, it can't connect automatically to your router after installing the OS unless you already provided that information when you installed the OS while in Safe Mode. Otherwise, you have to provide that information again since it's no longer stored anywhere on what was an erased drive.

The behaviour on my “fresh“ installs is not normal. Besides the fact that boot from USB is not working with a fresh install made from terminal using the commands in the Catalina installer, lots of stuff on the computer is not working correctly. Commands which should work in terminal are disabled and settings which I change myself and lock are later changed back to the way they changed on their own.

Now we're back to La-La land. If you insisted in installing third party partitioning software, as it appears you did, just what do think is going to happen to the stability of the OS? As etresoft said, STOP IT!


Seriously, start over in Internet Recovery Mode. Fully erase the drive. Reinstall the OS. STOP installing garbage!

May 25, 2020 12:56 PM in response to a brody

What others suggested in loading EtreCheck is a good idea.

Sure couldn't hurt anything to look.

It will reveal hidden launch daemons that might have installed as trojan horses.

That is the most common thing we look for in the reports. Malware or adware the user installed.

Where a virus will come onto your computer without even provocation.

Except, there has yet to be a single self-propagating virus in OS X / macOS. And we both of course know a Windows virus can't run in the Mac OS. So it wouldn't matter if you had a million of those on your drive. They'd all be nonfunctional.

May 25, 2020 3:59 PM in response to soundboy13

soundboy13 Said:

"iMac infected with virus that creates hidden windows partition, won’t boot from USB or internet recovery".

-------


Reinstall the macOS Anew. Putting the "virus" controversy aside, it should work like new once installed.

Perform the following in the order provided:


I.  If it applies: Back up your Mac with Time Machine - Apple Support. Also, write down or take a photo of all of your Applications - you will need to reinstall them all later, by contacting the Developer(s) of the app(s). Ask them for a new install key.


Then...


II. Reinstall the macOS Anew:

  1. Boot: into Recovery Mode.
  2. Open: Disk Utilities
  3. Delete: the partition
  4. Reinstall: the macOS


Once Installed Anew...


III. Reinstall All the Software:

  1. Use Migration Assistant to move Apps a Files back in.
  2. Ask developers for new software keys - but contact the developers only --- none other --- or you may end up with malware and spyware installed.


May 26, 2020 4:04 AM in response to TheLittles

I am not yet convinced the drive is dead.


try internet restore. command-option-shift-R on restart.

while plugged into the ethernet port of your computer. with an ethernet cord to your modem. If it can see your hard drive after erasing with Disk Utility to run the installer, just the restore partition was munged.


Back to your desire to get Catalina on your machine, I don't know why you wanted to use a flash drive instead of the Apple Mac App Store to install Catalina. I am familiar with one program that will put Catalina on a flash drive, and that's Disk Maker. I don't know if it works for Catalina in particular but it does for other operating systems. If you used something else to put it on your flash drive, it may not have been made bootable. Your flash drive should be formatted APFS before making it into an installer. Otherwise the installer won't work.


APFS is not readable by Sierra or earlier, but is the default formatting for all bootable flash drives and SSDs. in High Sierra and above. You need to boot using the startup manager (the option key) to see APFS formatted partitions when your system is only running Sierra or earlier.



May 26, 2020 10:58 AM in response to etresoft

Did I mention hacking and conspiracy? I came here because my computer is not working correctly and I wanted some advice on how to resolve the issues I’m having.


I was having issues and I formatted the computer and the drive said 500gb when it formatted and internet recovery behaved differently than it does now. Now when I format the drive says 465gb for some reason during the format.


Rather than go into detail about all the strange stuff that has been happening, such as wifi connecting itself to a router and password which I never entered after a clean install, and terminal commands being disabled, I tried to get help to boot from USB or partition the drive with a 3rd party tool, but was unable to make that work.


There is some strange stuff going on with my computer and no one wants to believe me. Terminal commands which once worked suddenly don’t work later on after I reboot the computer and no additional software has been installed.


There is a log file of all the commands I put into terminal being saved and maybe that is normal, but a commands shouldn’t work once and then not work later on with no system changes.


I’m not an expert on OSX but I’ve repaired many computers in my time and this system is not behaving normally.


I appreciate everyone taking the time to try to help me figure it out, I wish there was some way I could boot from USB and wipe the drive completely and start over (which should be a very simple thing to do) but nothing we have tried has been able to get the job done.


I have a video of the computer in recovery mode, showing it will boot from my new Catalina USB, but then it restarts and it’s back to the 2gb recovery partition. I’d post it, but it won’t accomplish anything.


If I’ve learned anything it’s that I came with a simple thing I wanted to do, and rather than being able to achieve that, I was asked to prove why I wanted to do it, which I’ve detailed in many ways.


Stuff is not behaving normally, I never mentioned hacking and conspiracy (unless someone else made a post from my account), you did.


I’m just a regular guy with a little more computer knowledge than the average user looking for help with a simple issue with my computer that no one seems to be able to help me solve.


The first person who put in any work to diagnose my issues said it looks like I broke internet recovery, which is the only way I’m able to format and “repair” my computer.


So I’m using a broken tool which I didn’t break myself to try to fix things, and every time I format and install no 3rd party software, the computer does the same strange things as it did before.


I thought that some high level users would be able to help me boot from USB, but instead I get told to use the internet recovery which I was told is broken.


Sorry I can’t do more to prove there is something wrong, but every statement I make which could lead someone to take the issues in having seriously is avoided.


Terminal shouldn’t behave the way it’s behaving, USB install of a new OS should work. But it doesn’t. Internet recovery shouldn’t boot to Catalina one minute and to older versions of OSX the next time I restart.


I guess I’m flogging a dead horse here but I appreciate people sticking around to reply to my comments and give me ideas of new things to try.


Telling me the issue is with me and not with my computer is not gonna help here. If that’s your response then no need to repeat yourself.


If you can help me boot from USB, which is what I originally asked for and should be a very simple thing to do, I’ll try anything I can in terminal. If not, no need to reply and tell me the problem is with me, because it’s not, it’s with the computer.







May 25, 2020 11:07 AM in response to Kappy

There is definitely a virus. See how big the terminal window is, but the print out of the drives is only taking up some of the space in the window?


When I format the 500gb drive there is a hidden partition that is 35gb and the drive will only format to 465gb, it installed a windows partition and an EFI boot loader and won’t let me boot from USB, and won’t let me use internet recovery. I can only boot from the 2gb macOS Base System which is reinstalled every time by the virus.


There are hidden windows partitions on the drive, but I can’t get to them, I can’t boot from USB, only the fake Catalina installer that the virus allows me to use.


Check our what I see from disk utility in the fake Catalina base system install when I try to boot from internet recovery.


Every time I format the 500gb drive there is a hidden 35gb windows partition and console is full of errors right from the boot of the new OS



you can see the windows partition right here

May 25, 2020 11:28 AM in response to rkaufmann87

Except I’m not running windows and I didn’t install windows on the computer, I installed Catalina.


Every time I log into the computer I have thousands of console messages in minutes, my internet settings change and install two thunderbolt bridges, and my computer is not allowing me to use internet recovery or boot from USB, and I can’t format the drive comepletey because there are hidden containers on the drive.


So my iMac is being affected by the windows virus. Does anyone have any experience with this type of boot loader virus?


I tried to install the Catalina 15.4 update from the Apple website and it allowed me to install it, even though my computer says I’m already running that version.


Also if I run commands in terminal I can get it to boot in verbose mode, if anyone wants to see what it does I have a video, it takes a really long time to boot.

May 25, 2020 11:55 AM in response to soundboy13

5 minutes from booting the computer I have 115,000 console messages.


after I format the computer using the fake Catalina disk in the fake internet recovery, my wifi settings are already saved and populated and the computer connects to wifi immediately after I boot it, without putting in my wifi password and settings.


Can anyone help me use a 3rd party partitioning tool to format this computer when it is rebooted?


https://youtu.be/wOjaYGr7Iu0

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.

iMac infected with virus that creates hidden windows partition, won’t boot from USB or internet recovery

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