Get all your news in one place.
100’s of premium titles.
One app.
Start reading
TechRadar
TechRadar
Sead Fadilpašić

GitHub malware spreads by hackers spoofing Microsoft files

Illustration of a laptop with a magnifying glass exposing a beetle on-screen.

Hackers have found a way to upload malware to GitHub, and even have it look as if it was hosted and distributed by other, legitimate operators.

This is according to a new report from cybersecurity researchers McAfee, who recently saw the LUA malware loader being distributed through what seems to be Microsoft’s GitHub repository.

However the malware uploaded to GitHub has some curious features that make it very difficult to spot

Disabling comments

Here is an example of what a link to the malware looks like:

https://github[.]com/microsoft/vcpkg/files/14125503/Cheat.Lab.2.7.2.zip

Even though it would seem, from the link, that the .zip file was uploaded to the vcpkg library, opening it directly and looking for the archive will yield no results.

Apparently, when a user wants to leave a comment on a commit or an issue, they can also add a file to that comment. That file will automatically be uploaded, and a link will be generated which looks like the one above. The “best” thing about it is that the user can post, and quickly delete the comment, and the file will remain uploaded and available. What’s more, they don’t even have to post the comment, as drafting it will yield the same result.

Right now there isn't any indication if this is a bug, or an intended feature on GitHub’s side, but according to BleepingComputer, there is very little victim companies can do to protect themselves from being impersonated this way. 

The only solution is to disable comments altogether, but that brings more problems than it solves. Legitimate users will often take to the comments section to report bugs, or give quality suggestions for the project. What’s more, comments can only be disabled for a maximum of six months at a time.

More from TechRadar Pro

Sign up to read this article
Read news from 100’s of titles, curated specifically for you.
Already a member? Sign in here
Related Stories
Top stories on inkl right now
One subscription that gives you access to news from hundreds of sites
Already a member? Sign in here
Our Picks
Fourteen days free
Download the app
One app. One membership.
100+ trusted global sources.