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

Do these terminal commands really work?

Hello everyone,


I just found an article on CNET and I was just curious of these commands in terminal really work in showing my mac is free of the FlashBack Trojan? Thank you!


defaults read /Applications/Safari.app/Contents/Info LSEnvironment

defaults read /Applications/Firefox.app/Contents/Info LSEnvironment

defaults read ~/.MacOSX/environment DYLD_INSERT_LIBRARIES


NNP

MacBook Pro, Mac OS X (10.7.3), Quad Core i7 A/G 8GB Ram 750GB 7200

Posted on Apr 10, 2012 2:25 PM

Reply
18 replies

Apr 10, 2012 7:03 PM in response to Linc Davis

Linc Davis is mistaken here, both about the commands and frankly about CNET. CNET used to only cover tech news, but now hosts MacFixIt and contains a plethora of technical details and fixes for OS X.


With regard to those commands, they will detect the final infection of the malware (all known variants, from the first through to the latest) that uploads files to remote servers. This is the truly harmful component that steals personal ifnormation, and there are two ways that it has been known to infect systems, which are the following (these are the same infection routes covered in the instructions by F-Secure and others):


Way 1:

The malware injects a variable into individual programs (Safari and Firefox being the known applications so far) that launch the malware when these programs are run. The first two commands you listed will detect this in the applications targeted by the malware.


Way 2:

The malware injects code into an file within the user account and then sets the user's launch enviornment to run the malware whenever an application is loaded. The last command checks for this.


The only aspect that these commands do not detect is the initial part of the infection, which is the trojan downloader; however, the rest of the CNET article on detecting and removing this malware does cover this quite thoroughly: http://reviews.cnet.com/8301-13727_7-57410096-263/how-to-remove-the-flashback-ma lware-from-os-x/?tag=txt;title


Ultimately, the malware may (and likely will) morph into new variants even as we speak, so any instruction you currently find may be outdated sooner or later; however, for now this instruction will detect the known variants of the malware and let you know whether or not your system is infected and potentially uploading files to remote servers.

Do these terminal commands really work?

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