{"id":13775,"date":"2026-06-22T10:03:49","date_gmt":"2026-06-22T10:03:49","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2026\/06\/22\/hackers-compromised-10000-github-repositories-to-inject-malicious-script\/"},"modified":"2026-06-22T10:03:49","modified_gmt":"2026-06-22T10:03:49","slug":"hackers-compromised-10000-github-repositories-to-inject-malicious-script","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2026\/06\/22\/hackers-compromised-10000-github-repositories-to-inject-malicious-script\/","title":{"rendered":"Hackers Compromised 10,000+ GitHub Repositories to Inject Malicious Script"},"content":{"rendered":"<p>    Hackers Compromised 10,000+ GitHub Repositories to Inject Malicious Script<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p class=\"wp-block-paragraph\">A large-scale <a href=\"https:\/\/cybersecuritynews.com\/megalodon-malware-github-repos\/\" target=\"_blank\" rel=\"noreferrer noopener\">malware campaign has been uncovered on GitHub<\/a> after a researcher identified more than 10,000 repositories distributing Trojan-laced archives, raising concerns about abuse of the platform\u2019s trust model and limitations in automated detection.<\/p>\n<p class=\"wp-block-paragraph\">The investigation began when the researcher noticed a cloned version of their own repository appearing in search engine results.<\/p>\n<p class=\"wp-block-paragraph\">While the project name, description, and commit history appeared identical, a newly added commit introduced a <a href=\"https:\/\/cybersecuritynews.com\/clicking-malicious-link\/\" target=\"_blank\" rel=\"noreferrer noopener\">malicious link<\/a> in the README file pointing to a downloadable ZIP archive.<\/p>\n<p class=\"wp-block-paragraph\">Similar behavior was later observed across multiple repositories with different names and contributors, with no direct fork relationships, suggesting a coordinated campaign rather than isolated incidents.<\/p>\n<p class=\"wp-block-paragraph\">Closer analysis revealed a consistent pattern across these repositories. Attackers replicated legitimate repositories, including full commit histories and contributor profiles, likely to establish credibility.<\/p>\n<h2 id=\"h-github-malware-campaign-impacts\" class=\"wp-block-heading\"><strong>GitHub Malware Campaign Impacts<\/strong><\/h2>\n<p class=\"wp-block-paragraph\">They then periodically modified the README file to include links to external ZIP archives. These commits were often overwritten and re-pushed every few hours, typically labeled \u201cUpdate README.md,\u201d a tactic that may help evade detection mechanisms or maintain visibility in indexing systems.<\/p>\n<p class=\"wp-block-paragraph\">The linked ZIP archives contained a small set of files, including command scripts, executable loaders, and dynamic libraries.<\/p>\n<p class=\"wp-block-paragraph\">While individual file links often returned no detections on VirusTotal, downloading and scanning the full archive revealed <a href=\"https:\/\/cybersecuritynews.com\/threat-actors-leverage-json-storage-services\/\" target=\"_blank\" rel=\"noreferrer noopener\">Trojan malware<\/a>.<\/p>\n<p class=\"wp-block-paragraph\">This indicates the attackers may be using evasion techniques that rely on splitting or obfuscating payload components to bypass automated scanning tools.<\/p>\n<p class=\"wp-block-paragraph\">To identify the scale of the campaign, the researcher developed a script using GitHub event data from GH Archive.<\/p>\n<p class=\"wp-block-paragraph\">Instead of scanning all repositories, which would be impractical due to API rate limits, the script<a href=\"https:\/\/cybersecuritynews.com\/laravel-lang-packages-compromised\/\" target=\"_blank\" rel=\"noreferrer noopener\"> focused on repositories<\/a> with frequent commit activity.<\/p>\n<p class=\"wp-block-paragraph\">Out of approximately 16 million commit events analyzed over five days, around 3,000 repositories showed suspicious update patterns.<\/p>\n<p class=\"wp-block-paragraph\">After refining filters to exclude bots, enforcing contributor diversity, and detecting anomalous commit timing, the script ultimately identified roughly 10,000 repositories that matched the malicious pattern.<\/p>\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/orchidfiles.com\/github-repositories-distributing-malware\/\" id=\"https:\/\/orchidfiles.com\/github-repositories-distributing-malware\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">According to Orchid in a report shared with Cybersecurity News<\/a>, many of the compromised repositories had remained undetected for months or even years.<\/p>\n<p class=\"wp-block-paragraph\">Researchers also found that several repositories were updated only infrequently, challenging the assumption that rapid commit activity is a defining trait of malicious repositories.<\/p>\n<p class=\"wp-block-paragraph\">Additional indicators included commits with no actual file changes and consistent naming conventions, further highlighting automated deployment methods.<\/p>\n<p class=\"wp-block-paragraph\">The campaign appears designed to <a href=\"https:\/\/cybersecuritynews.com\/north-korea-aligned-hackers-abuse-github-repositories\/\" target=\"_blank\" rel=\"noreferrer noopener\">exploit GitHub\u2019s visibility<\/a> in search engines and developer workflows. By cloning newly created or low-traffic repositories, attackers increase the likelihood of appearing in search results for niche queries.<\/p>\n<p class=\"wp-block-paragraph\">Preserving commit history and contributor metadata adds legitimacy, making it more likely that users will trust and download the malicious files.<\/p>\n<p class=\"wp-block-paragraph\">Despite reporting efforts, remediation has been inconsistent. GitHub removed repositories explicitly listed by the researcher. However, newly identified ones remained active, suggesting a reactive rather than proactive enforcement approach.<\/p>\n<p class=\"wp-block-paragraph\">Public reports and earlier research indicate this tactic has been in use since at least early 2025, with similar campaigns distributing malware families such as SmartLoader and StealC.<\/p>\n<p class=\"wp-block-paragraph\">The findings highlight a broader challenge for code hosting platforms: detecting malicious behavior that mimics legitimate development activity.<\/p>\n<p class=\"wp-block-paragraph\">Without scalable analysis of repository content, commit patterns, and external links, such campaigns can persist undetected.<\/p>\n<p class=\"wp-block-paragraph\">For developers, the incident underscores the importance of verifying external downloads, even when sourced from seemingly legitimate repositories.<\/p>\n<p class=\"has-text-align-center has-background wp-block-paragraph\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 91%,rgb(169,184,195) 100%)\"><strong>Follow us on\u00a0<a href=\"https:\/\/news.google.com\/publications\/CAAqMggKIixDQklTR3dnTWFoY0tGV041WW1WeWMyVmpkWEpwZEhsdVpYZHpMbU52YlNnQVAB?hl=en-IN&amp;gl=IN&amp;ceid=IN:en\" target=\"_blank\" rel=\"noreferrer noopener\">Google News<\/a>,\u00a0<a href=\"https:\/\/www.linkedin.com\/company\/cybersecurity-news\/\" target=\"_blank\" rel=\"noreferrer noopener\">LinkedIn<\/a>,\u00a0and\u00a0<a href=\"https:\/\/x.com\/cyber_press_org\" target=\"_blank\" rel=\"noreferrer noopener\">X<\/a>\u00a0to Get More Instant Updates.<\/strong><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/hackers-github-malicious-script\/\">Hackers Compromised 10,000+ GitHub Repositories to Inject Malicious Script<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Abinaya<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/hackers-github-malicious-script\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hackers Compromised 10,000+ GitHub Repositories to Inject Malicious Script A large-scale malware campaign has been uncovered on GitHub after a researcher identified more than 10,000 repositories distributing Trojan-laced archives, raising concerns about abuse of the platform\u2019s trust model and limitations in automated detection. The investigation began when the researcher noticed a cloned version of their [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,63,899,258],"tags":[130],"class_list":["post-13775","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","category-github","category-malware","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/13775"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=13775"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/13775\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=13775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=13775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=13775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}