Trojan-Downloader:OSX/Flashback.C

Source: F-Secure.com

Detection Names : Trojan-Downloader:OSX/Flashback.C
Category: Malware
Type: Trojan-Downloader
Platform: OS X

Summary

Trojan-Downloader:OSX/Flashback.C poses as a Flash Player installer and connects to a remote host to obtain further installation files and configurations.

Disinfection

Manual Removal Instructions

  • Scan the whole system and take note of the detected files
  • Remove the entry
    • <key>LSEnvironment</key><dict><key>DYLD_INSERT_LIBRARIES</key>
      <string>%path_of_detected_file_from_step_1%</string></dict>

    From:

    • /Applications/Safari.app/Contents/Info.plist
    • /Applications/Firefox.app/Contents/Info.plist
  • Delete all detected files

Additional Details

Trojan-Downloader:OSX/Flashback.C poses as a Flash Player installer and connects to a remote host to obtain further installation files and configurations.

Screenshot of the Trojan-Downloader:OSX/Flashback.C installer.

To complete its installation/infection, Flashback.C requires the user to key in the administrator password.

On installation, the installer first checks if the following file is found in the system:

  • /Library/Little Snitch/lsd

Little Snitch is a firewall program for Mac OS X. If the program is found, the installer will skip the rest of its routine and proceed to delete itself.

If the trojan is cleared to proceed, it connects to a remote host, identified as http://[…]93.114.43.31/counter/%encoded_strings%, with the decoded string following this format:

  • %Hardware_UUID% | %machine_architecture% | %kernel_version% | %encoded_md5%
    The %encoded_md5% is the hash of the following:

    • %hardware_UUID%Jiangxi

As of this writing, the remote host is up but it does not push anything.

Payload

Installation files and configuration returned by the host is encrypted using RC4, where the MD5 hash of the Hardware UUID of the infected system is used as the key. The decrypted content follows this format:

  • %encoded_payload_filename% | %encoded_payload_content%

The installer drop copies of the payload to the following locations:

  • /Applications/Safari.app/Contents/Resources/%payload_filename%
  • /Applications/Firefox.app/Contents/Resources/%payload_filename%

A DYLD_INSERT_LIBRARIES environment variable is also added to the targeted browsers as launch point. This is done by inserting a LSEnvironment entry to the corresponding Info.plist of the browsers.

Example:

    • The following line is inserted into “/Applications/Safari.app/Contents/Info.plist”:
      • <key>LSEnvironment</key><dict><key>DYLD_INSERT_LIBRARIES</key>
        <string>/Applications/Safari.app/Contents/Resources/%payload_filename%</string></dict>
  • The following line is inserted to “/Applications/Firefox.app/Contents/Info.plist”:
    • <key>LSEnvironment</key><dict><key>DYLD_INSERT_LIBRARIES</key>
      <string>/Applications/Firefox.app/Contents/Resources/%payload_filename%</string></dict>

The installer then restarts running instances of Safari and Firefox in order to take the payload into effect.

The installer also disables the built-in anti-malware feature in Mac OS X. It unloads the XProtectUpdater daemon, and then wipes out the following files:

  • /System/Library/LaunchDaemons/com.apple.xprotectupdater.plist
  • /usr/libexec/XProtectUpdater
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.