HandBrake for Mac 1.0.7 was replaced on a download mirror with a disk image that installed a remote access trojan, in May 2017.
Security vendors name the trojan OSX.Proton or OSX/Proton.B. On first launch the app asked for an administrator password and claimed it needed to install codecs.
What happened
Attackers replaced the genuine HandBrake 1.0.7 DMG on the mirror download.handbrake.fr with a trojanized copy.
- Intego names the backdoor
activity_agent. It targets OS X 10.7 or newer. - The malware talks to servers on
handbrake.biz, a domain registered on 29 April 2017. - It writes archives of stolen data into a
VideoFrameworksfolder. The master archive isproton.zip. - Malwarebytes also reports that the Homebrew package manager served the bad download.
The bad file was online from 2 May 2017 at 14:30 UTC until 6 May 2017 at 01:00 UTC. Intego reports public disclosure on 7 May 2017.
Affected versions
- HandBrake for Mac 1.0.7, only the DMG downloaded from
download.handbrake.frbetween 2 May 2017 14:30 UTC and 6 May 2017 01:00 UTC. - Installs through Homebrew in the same period (Malwarebytes).
- Not affected: users who updated through the app's own updater, which checks a DSA signature.
- Not affected: HandBrake downloads from before or after the window.
Indicators of compromise
- Malicious DMG SHA1:
0935a43ca90c6c419a49e4f8f1d75e68cd70b274. - Genuine DMG SHA1:
75c6204d7bd7d9c6e5b1fedb56697ae2f3857789. - Malicious DMG SHA256:
013623e5e50449bbdf6943549d8224a122aa6c42bd3300a1bd2b743b01ae6793. - Launch agent:
~/Library/LaunchAgents/fr.handbrake.activity_agent.plist. - Malware app:
~/Library/RenderFiles/activity_agent.app. - Cache folder:
~/Library/Caches/fr.handbrake.activity_agent. - Stolen data archive:
~/Library/VideoFrameworks/proton.zip. - A process named
Activity_agentin Activity Monitor. - Network:
api.handbrake.biz,handbrake.bizand IP address85.17.25.66.
How to check
Look for the malware files. The command only reads files.
ls -l ~/Library/LaunchAgents/fr.handbrake.activity_agent.plist ~/Library/RenderFiles/activity_agent.app ~/Library/VideoFrameworks/proton.zip
Compare the checksum of any saved HandBrake DMG. If the SHA1 equals 0935a43c...b274, the DMG is the trojanized copy.
shasum ~/Downloads/HandBrake-1.0.7.dmg
What to do now
- If any indicator is present, disconnect the Mac from the network. Then unload the launch agent with
launchctl unload ~/Library/LaunchAgents/fr.handbrake.activity_agent.plist. - Delete
~/Library/RenderFiles/activity_agent.app, the launch agent file, the cache folder, and theVideoFrameworksfolder if it holdsproton.zip. - Delete every copy of HandBrake.app that came from the bad DMG, then install a clean version from the official site.
- Change every password stored in the keychain and in browser password managers from a clean device. Treat the admin password as stolen.
Frequently asked questions
Which HandBrake version was infected?
HandBrake for Mac 1.0.7, only the DMG that download.handbrake.fr served between 2 May 2017 and 6 May 2017. Homebrew installs in that period were also affected.
What did the HandBrake malware steal?
It asked for the administrator password, then wrote stolen data into archives in the VideoFrameworks folder. Change every stored password if you were infected.
Sources
Send this page to the person who looks after AI at your company.