My macbook pro creates a virus file on startup.

My macbook pro got infected by a virus that was detected by avast (and avg, which i tried as well) but couldn’t be detected by kaspersky (i tried this just to check). The file is always created whenever I start up the laptop. It’s created under /private/var/db/uuidtext/7B. The file has the same name everytime it’s created which consists of 30 alphanumeric characters. It’s flagged by avast as JS:Cryptonight [Trj] infection. I tried deleting it but everytime I start my laptop the file is created. Please advise.

Posted on Nov 25, 2017 2:03 PM

Reply
15 replies

Nov 25, 2017 8:47 PM in response to officialraymond

Hello officialraymond,

That directory is part of Apple's new logging system in Sierra. This is one of the reasons people here on Apple Support Communities suggest avoiding popular 3rd party antivirus software. Most of such software is written by Windows developers who fundamentally don't understand Apple software and don't keep up with the latest developments.


Because this file is part of the logging system, it could very well be logging avast's attempt to detect and remove this file. Each attempt is logged and then avast detects that log as a new infection. This repeats forever.


These logging directories are not active directories. There is no way that anything could be executed from these locations. On a Mac, there are only a handful of such active directories where malware can exist. Those are the only directories that a good Mac security product should ever bother looking at. It just so happens, that the only security products that anyone here on Apple Support Communities are likely to recommend are those products that only look at those few important directories.


macOS includes anti-virus capabilities through several layers of malware protection. You don't need anything else. If you don't believe me and still want something else, then I can recommend MalwareBytes for Mac (https://www.malwarebytes.com). MalwareBytes is effective, highly recommended, and it will ignore that logging directory as it should.

Nov 25, 2017 6:08 PM in response to officialraymond

I would really like to see how much damage running all of those AV apps has done on your Mac. Please follow the suggestion below.


I suggest you use the program created by Etresoft, a frequent contributor. It will provide a snapshot of your system which we can analyze to possibly determine the cause of your problem. Please use copy and paste as screen shots can be hard to read. On the screen with Options, please open Options and check the bottom 2 boxes before running. Click “Share Report” button in the toolbar, select “Copy to Clipboard” and then paste into a reply. This will show what is running on your computer. No personal information is shown.


Etrecheck – System Information

Nov 25, 2017 2:25 PM in response to officialraymond

No anti-virus or so-called "cleaning" apps are necessary or recommended for Mac OS. They do more harm than good. In your case they seem to reporting a false positive. The folder belongs to Mac OS.

https://www.mac4n6.com/blog/2016/11/13/new-macos-sierra-1012-forensic-artifacts- introducing-unified-logging

I suggest you uninstall all those junk apps as per their developer's instructions.

Nov 25, 2017 8:47 PM in response to officialraymond

Did you understand what macjack meant when he said a "false positive" ??


That system directory now contains a string. That string is identical to a really old Windows Virus. It is detected because it has the same bit pattern in it.


That string is In a system directory that is inaccessible to ordinary software. Mac software is "sandboxed", and only has permission to write to its own resources, never directly to system directories.


That it matches an old Windows Virus is a complete coincidence. Your so-called Anti-Virus software has detected something that is NOT a virus, but has the same pattern.

Nov 25, 2017 2:42 PM in response to macjack

I’ve been using avast only for many years and I never got any issue or virus. What I am concerned is it happened just yesterday that this file keeps being created. I was thinking that I could have visited a harmful site using Opera browser (it’s my first time to use it but forgot to add security plugin like avast - i usually got a prompt by avast when i use safari and visited a harmful site). When I tried looking in the contents of the file (althought most of it looks garbage) I see some references to Windows. So I was thinking it is a virus and there may be a program creating this?

Nov 25, 2017 4:00 PM in response to officialraymond

macjack is right about the cause & about avoiding Avast. I've also never used anything, visited numerous dubious sites, and never got any issue or virus.


it's probably a fragment of code referenced by log entries. It could even be from some extension or add-on (included in Opera, and on by default, I think) that tries to block advertising or malware.

Dec 18, 2017 2:01 PM in response to RiceyToon

You can't even begin to imagine how far off base you are.

Avast is most likely a Trojan

No, it's just another useless AV app.

McAfee is windows

No, they have a Mac version, too. And is just as useless as any other typical AV software.

Bitdefender is probably a virus

No, it's just another useless AV app.

It also has Malwarebytes I'll check if Malwarebytes is actually a trojan.

Wrong again. MalwareBytes for Mac actually works, and is highly recommended by virtually every user here. Besides, who is "it"?


The way you so wildly and incorrectly toss terms around, I'd have to believe you don't even know what a virus or Trojan is.

Dec 18, 2017 1:50 PM in response to officialraymond

Heres my JS:Cryptonight Trojan problem all solved



Even though all of them are clean, it has Microsoft things and if AVG is made for Microsoft then it means that the antivirus is making a mistake.



Avast is most likely a Trojan

McAfee is windows

Bitdefender is probably a virus

It also has Malwarebytes I'll check if Malwarebytes is actually a trojan and I'm not just blaming everything on AVG.



This means AVG isn’t the best for Mac.






Ad-Aware Clean

AegisLab Clean

AhnLab-V3 Clean

Alibaba Clean

ALYac Clean

Antiy-AVL Clean

Arcabit Clean

Avast Clean

Avast Mobile Security Clean

AVG Clean

Avira Clean

AVware Clean

Baidu Clean

BitDefender Clean

Bkav Clean

CAT-QuickHeal Clean

ClamAV Clean

CMC Clean

Comodo Clean

Cyren Clean

DrWeb Clean

Emsisoft Clean

eScan Clean

ESET-NOD32 Clean

F-Prot Clean

F-Secure Clean

Fortinet Clean

GData Clean

Ikarus Clean

Jiangmin Clean

K7AntiVirus Clean

K7GW Clean

Kaspersky Clean

Kingsoft Clean

Malwarebytes Clean

MAX Clean

McAfee Clean

McAfee-GW-Edition Clean

Microsoft Clean

NANO-Antivirus Clean

nProtect Clean

Panda Clean

Qihoo-360 Clean

Rising Clean

Sophos AV Clean

SUPERAntiSpyware Clean

Symantec Clean

Tencent Clean

TheHacker Clean

TrendMicro-HouseCall Clean

VBA32 Clean

VIPRE Clean

ViRobot Clean

Webroot Clean

WhiteArmor Clean

Yandex Clean

Zillya Clean

ZoneAlarm Clean

Zoner Clean

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.

My macbook pro creates a virus file on startup.

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