Malware
ValleyRAT Backdoor Distributed via Signed Adware and DLL Sideloading
Threat actors are distributing the ValleyRAT backdoor disguised as a signed adware application called QN Wallpaper. The campaign uses DLL sideloading to execute malicious payloads while distracting users by installing legitimate software like Google Chrome or DingTalk. SecOps and system administrators should audit autorun entries, monitor unexpected DLL loading, and inspect endpoint exclusions.
What Happened
Researchers analyzed a malicious installer (MD5: c24e99f9437feacaa63766a3cde3fe3d) initially mistaken for standard adware. The application uses valid developer signatures and mimics legitimate software distribution networks. Depending on file naming suffixes, the installer performs decoy actions such as setting up Google Chrome or DingTalk, or opening Tencent Meeting URLs, to distract the user from background malicious activities.
Infection Chain and Mechanics
Regardless of the decoy action, the installer deploys a modified version of QN Wallpaper, a genuine desktop wallpaper utility classified as adware. The application is installed into C:\Program Files\QNWallpaper\5.4.0.1662\<random string> and registered for persistence via the Windows registry autorun keys.
Attackers leverage this trusted, signed adware framework to execute a DLL sideloading attack:
- The installer drops an archive containing malicious components alongside legitimate binaries.
- The signed QN Wallpaper process loads a malicious DLL instead of the expected library.
- Execution leads directly to the deployment of the ValleyRAT backdoor on the endpoint.
Why This Technique Is Used
Threat actors utilized this specific distribution vector for several operational advantages:
- Code Signing: The base adware application is signed by a valid developer certificate, helping bypass basic trust checks.
- User Exclusions: Users frequently add adware and productivity tools to security software exclusion lists to preserve unwanted functionality, inadvertently shielding the malware from detection.
What to Do
Defenders and system administrators should implement the following mitigation steps:
- Audit endpoint software inventories for unauthorized instances of QN Wallpaper or similar bundled adware tools.
- Inspect registry autorun locations and startup folders for suspicious binaries residing in Program Files subdirectories.
- Monitor for DLL sideloading activity, particularly signed third-party applications loading unexpected local DLLs.
- Review security exclusions across endpoints to ensure users have not whitelisted adware or potentially unwanted programs (PUPs).