Socket has found 13 malicious NuGet packages posing as WinUI 3 and WPF button controls and targeting .NET developers through a fake hiring exercise. The lure was a GitHub repository with a three to four hour task whose project file pulled in the packages as dependencies. During the build, a targets file ran a DLL that downloaded files or staged DLL sideloading around the Windows osk.exe program. The first package was uploaded on 23 July 2026 and all have now been removed from NuGet.
What it means: Fake job ads and hiring tests have become one of the most effective ways to get a developer to run malicious code on their own initiative. This case shows that the candidate does not even need to run the application: the build is enough, because MSBuild targets files can execute commands on every compilation. Since candidates usually work on their personal or company computer, an infection can open access to passwords, tokens and source code belonging to their current employer. Software companies would do well to brief their teams on this method and require that any outside exercise is done in a virtual machine with no access to company resources. On the tooling side, it helps to review dependencies before restoring them, pin versions and use an internal feed of approved packages. Anyone working with .NET should also check packages for build and targets files that their stated purpose does not justify, such as a simple button control that has no reason to run code at build time.
Read the original on The Hacker News
Related service: Custom software
Related stories
- Remus infostealer uses a fake Google Sheets extension in Chrome to read Gmail
- PolinRider poisons GitHub repositories with a Python loader that reads commands from Ethereum
- Peninsula Energy halts Wyoming uranium operation after attack on control systems
- Kaspersky finds preinstalled Keenadu malware on more than 220,000 Android devices
- Critical SQL injection flaw found in India's DIGIT e-government platform