Two Windows programmes Q-Dir and DesktopOK had their official download sources hacked to enable the deployment of modified installers which installed a remote access trojan (RAT), written in Python. The installers were genuine and digitally signed but contained hidden features which enabled malware to be downloaded and installed.
Q-Dir acts as a replacement to Windows’ File Explorer. DesktopOK is used to back up and then reapply a user’s desktop icons, for example when moving between different monitors and/or screen sizes. Both programmes were created by Nenad Hrg and were available for download from the SoftwareOK website.
On November 12, Bert de Jong from HOB ICT Security found that a Q-Dir 12.83 download from a software catalogue installed a Python RAT with SYSTEM level access.
SoftwareOK subsequently admitted that the malicious download had previously also been available on its own site and this has now been updated.
Additional analysis conducted by Aura, sudo_Rem and Kostas from Thrunting Labs uncovered malware update files, along with malware download files. Malware was observed to establish persistence via a Windows Registry Run key called DeviceSyncUpdate_b2. It also used a task scheduler for this purpose. Reconnaissance functionality was also noted which gathered details about a device and network.
Following this, AhnLab’s Security Intelligence Centre has confirmed that both programmes have been affected. Further hacked installers have also been uncovered. AhnLab learnt that malware could be introduced either via new downloads or during the updating of already-installed genuine software.
Versions of Q-Dir affected are 12.83.0.0, 12.84.0.0 and 12.85.0.0. Versions of DesktopOK affected are 12.82.0.0 and 12.85.0.0. However, it should be noted that not all installers within these versions were malicious. SHA-256 hash values have been released to facilitate the identification of malicious files.
In addition to carrying out shell and Python scripting, the Python RAT is able to send and receive files, take screenshots and gather information relating to a device and the software installed on it. AhnLab recognised 1,206 processes relating to anti-virus and endpoint detection solutions. These included CrowdStrike, Microsoft, SentinelOne, Trend Micro, Kaspersky and Sophos. Such data is then sent to the malware’s command and control server.
This may allow attackers to evade detection.
Whilst researchers have yet to determine how the malicious installers substituted genuine ones, it is unclear for how long the hacked installers were available for download. Users are recommended to verify the SHA-256 hash values of files they download and to analyse running Python files, task scheduler items, Registry Run keys and network activity for signs of malware. Even if a contaminated programme is uninstalled, the RAT may still persist.
