{"id":533563,"date":"2024-04-22T16:06:42","date_gmt":"2024-04-22T14:06:42","guid":{"rendered":"https:\/\/mybroadband.co.za\/news\/?p=533563"},"modified":"2024-04-22T16:14:08","modified_gmt":"2024-04-22T14:14:08","slug":"github-vulnerability-allows-for-undetected-malware-distribution","status":"publish","type":"post","link":"https:\/\/mybroadband.co.za\/news\/security\/533563-github-vulnerability-allows-for-undetected-malware-distribution.html","title":{"rendered":"GitHub vulnerability allows for undetected malware distribution"},"content":{"rendered":"<p>A vulnerability has been found in Microsoft\u2019s GitHub version control platforms that lets threat actors distribute malware in public repositories.<\/p>\n<p>Bleeping Computer noticed the problem when investigating a Lua malware loader distributed through a legitimate Microsoft GitHub repository called \u201cvcpkg\u201d.<\/p>\n<p>When looking into how the malware made its way into the repository, they found no reference to the files in the project\u2019s source code.<\/p>\n<p>The malware had been distributed since February, which raised questions about how it had been able to do so for that long without being detected.<\/p>\n<p>As it turns out, the malware was never actually uploaded to the project source code; instead, the threat actors added it as a comment on a commit or issue in the project.<\/p>\n<p>GitHub users can leave comments that allow attachments, such as archives or documents, to be uploaded to GitHub\u2019s content delivery network (CDN) using the following URL format:<\/p>\n<blockquote><p><code>https:\/\/www.github.com\/{project_user}\/...<br \/>\n...{repo_name}\/files\/{file_id}\/{file_name}<\/code><\/p><\/blockquote>\n<p>\u201cInstead of generating the URL after a comment is posted, GitHub automatically generates the download link after you add the file to an unsaved comment,\u201d Bleeping Computer <strong><a href=\"https:\/\/www.bleepingcomputer.com\/news\/security\/fake-cheat-lures-gamers-into-spreading-infostealer-malware\/\" target=\"_blank\" rel=\"noopener\">reported<\/a><\/strong>.<\/p>\n<p>\u201cThis allows threat actors to attach their malware to any repository without them knowing.\u201d<\/p>\n<p>If the commenter deletes their post, the file remains on GitHub\u2019s CDN, and the URLs continue to work.<\/p>\n<p>Due to the information presented in the URL, such as the repository\u2019s name, threat actors can easily trick victims into accessing the URL.<\/p>\n<p>For example, a threat actor could upload a malware executable in a comment to the Google Chromium source code, pretending it\u2019s a new test version of the browser.<\/p>\n<p>Bleeping Computer found no settings to remove files from the repository.<\/p>\n<p>Thus, the only way to mitigate this threat is to temporarily turn off comments, which can only be done for six months at a time.<\/p>\n<p>Sergei Frankoff from UNPACME, an automated malware and analysis service, explained this threat on Twitch in March.<\/p>\n<p>Clarifying the situation for users on Twitter\/X, he added, \u201c[W]hat attackers have been doing is uploading malware in ZIP files that look like release assets to large open-source repositories.\u201d<\/p>\n<p>\u201cThey then share the links as though they are the legit release links for the repository.\u201d<\/p>\n<blockquote class=\"twitter-tweet\">\n<p dir=\"ltr\" lang=\"en\">Weeks later&#8230; GitHub bug still dropping malware &#x1f44c; <a href=\"https:\/\/t.co\/s165zOAsoI\">pic.twitter.com\/s165zOAsoI<\/a><\/p>\n<p>\u2014 herrcore (@herrcore) <a href=\"https:\/\/twitter.com\/herrcore\/status\/1772988192678969567?ref_src=twsrc%5Etfw\">March 27, 2024<\/a><\/p><\/blockquote>\n<p><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A design flaw allows the distribution of malicious URLs posing as legitimate release assets in public repositories.<\/p>\n","protected":false},"author":341175,"featured_media":533567,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[11253,93935,93933,40988,93937],"class_list":["post-533563","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security","tag-github","tag-github-repository","tag-lua-programming-language","tag-security-vulnerability","tag-sergei-frankoff"],"_links":{"self":[{"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/posts\/533563"}],"collection":[{"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/users\/341175"}],"replies":[{"embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/comments?post=533563"}],"version-history":[{"count":1,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/posts\/533563\/revisions"}],"predecessor-version":[{"id":533575,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/posts\/533563\/revisions\/533575"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/media\/533567"}],"wp:attachment":[{"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/media?parent=533563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/categories?post=533563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/tags?post=533563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}