Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

My Folders turned into exe files

Hi everybody,

I don't know what happened to my Mac today, i assumed it's a virus but the strange here is that virus is only affect Windows OS. The story is, I have a friend, she borrowed my camera, as she returned it, i was on boot camp and was using Windows for gaminng, i plugged my camera and delete photos that my friend has taken. I noticed nothing strange and i didn't have any Anti-virus program on Windows. Until i login to my Mac, i see all of the folders on my Macintosh HD drive is now exe files. I can still access these folders by using the "Go" option on the Menu Bar. I downloaded Kaspersky and scan for viruses, it showed that the drive is infected with Worm.Win32.Autorun.gvy. If i try to delete the file, it also delete the whole Folder which causes my Mac to crash and need to restart.

Here is the picture

User uploaded file

Mac Pro, Mac OS X (10.7.4)

Posted on May 29, 2012 3:23 AM

Reply
16 replies

May 29, 2012 4:10 AM in response to BnBPhm

That is truly bizarre. I'm not sure that I understand what you're saying about that malware, though. Did you scan your Windows partition and find that it was infected with that malware? Or did you scan the Mac partition and find the file there?


If the former, does the Windows partition have access to the Mac partition while Windows is running? (I'm not that familiar with how Boot Camp works.) If so, it may have done something to the Mac partition. If the latter, this can't have anything to do with that malware.


In any case, though, if I saw that, I would probably erase the hard drive and restore from my last backup. As this is not a problem I've ever heard of before, I have no idea what might have happened or how you might fix it.

May 29, 2012 5:38 AM in response to thomas_r.

Thomas A Reed wrote:


That is truly bizarre. I'm not sure that I understand what you're saying about that malware, though. Did you scan your Windows partition and find that it was infected with that malware? Or did you scan the Mac partition and find the file there?


If the former, does the Windows partition have access to the Mac partition while Windows is running? (I'm not that familiar with how Boot Camp works.) If so, it may have done something to the Mac partition. If the latter, this can't have anything to do with that malware.


In any case, though, if I saw that, I would probably erase the hard drive and restore from my last backup. As this is not a problem I've ever heard of before, I have no idea what might have happened or how you might fix it.

For your question, Yes, i did install MacDrive when i was using Boot Camp and i regretted it. The problem here is there isn't a way to fix this virus for Mac OS. I think i will try using Boot camp and scan for viruses with Windows Programs then.

@Radiation Mac: This is about Mac Lion, the drive here is Macintosh HD which is the root drive of a Mac and these files as you can see are the folders of a normal Mac.

May 29, 2012 5:55 AM in response to BnBPhm

Yes, i did install MacDrive when i was using Boot Camp and i regretted it. The problem here is there isn't a way to fix this virus for Mac OS.


To be accurate, your Mac OS is not infected with that malware. That's not possible. But, since the volume was available for writing by the Windows system, it looks like the malware made changes to the Macintosh HD that are probably not easily reversed. I really think you're looking at needing to reinstall everything from scratch, or restore from a backup made before this happened.


I'm not familiar with MacDrive, but if it can be used to give you read-only access to your Macintosh HD volume, that would be preferable in the future. That way, an infected Windows system cannot affect your Mac system. Also, keep in mind that a Windows system still needs anti-virus software, even though it's running on a Mac, though anti-virus software is far from a guarantee that you won't get infected.

May 29, 2012 7:05 AM in response to BnBPhm

In your Mac open the Terminal application (in the /Applications/Utilities/ folder) and then run the following command. Then copy and paste the output to a posting here so we can see what it looks like:


ls -la /


This command will list all the contents of your root directory (same as your screenshot) but will include hidden files and give additional information about the directory listings.

May 29, 2012 7:51 AM in response to BnBPhm

BnBPhm wrote:


Until i login to my Mac, i see all of the folders on my Macintosh HD drive is now exe files.

So what's the problem? It may be that your Windows system is identifying Mac folders as .exe files because it doesn't know any different.


But when you boot out of Windows and log in to your Mac OS, don't you see them as normal Mac folders?

May 29, 2012 8:17 AM in response to softwater

Ah yeah- missed that, Softwater.


Weird indeed. I've never heard of anyone else experiencing this either in Boot Camp or Parallels so indeed it must be a virus -


I'd like to know more about this too because I've been planning to install Windows with Parallels and AFAIK Windows has to be on the same partition as the Mac OS or Parallels won't work.


😕

May 29, 2012 9:09 AM in response to Topher Kessler

Topher Kessler wrote:


In your Mac open the Terminal application (in the /Applications/Utilities/ folder) and then run the following command. Then copy and paste the output to a posting here so we can see what it looks like:


ls -la /


This command will list all the contents of your root directory (same as your screenshot) but will include hidden files and give additional information about the directory listings.

This is the result:


User uploaded file


@Linc Davis: I didn't have any backups, i formated my Time Machine HDD just two days ago and haven't set it up again so if i do have to fix this i think i will have to reinstall my machine.

May 29, 2012 9:20 AM in response to BnBPhm

If you care about your data, you need to backup now, before you do anything else. Then, and only then, proceed as follows.


Drag or copy — do not type — the following line into the Terminal window, then press return:


sudo find / -xdev -type f -name *.exe -delete


You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning. If you don’t have a login password, you’ll need to set one before you can run the command.


The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear. All files on the boot volume with a name ending in ".exe" will be deleted. Other volumes, including the Boot Camp partition, won't be affected. If there are any such files you want to keep, restore them from your backup.

May 29, 2012 9:27 AM in response to thomas_r.

Thomas A Reed wrote:


That's very odd, as you can see the .exe files are duplicates, and the originals are still there. But I don't understand why you aren't seeing the originals without using the Go menu, or why deleting the file also makes the folder go away.


Yes, and the originals are all in root, whilst the execs are all in User. So the originals still exist (phew - so they're not lost, right?) but have somehow got moved to root, which may be why the OP's Finder isn't seeing them ? Does that make any sense?

My Folders turned into exe files

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