CrowdSec has reported that an attack involving the compromise of TanStack's npm packages led to the unauthorized copying of approximately 170 of its private GitHub repositories. The incident, which occurred on May 22, was attributed to the compromise of a former employee's laptop. CrowdSec, a French security company, stated that the employee's GitHub access remained active following their departure, and their device was subsequently compromised in a supply chain attack targeting TanStack.
The mechanism of the attack reportedly involved malicious versions of TanStack's npm packages. In a typical software supply chain attack of this nature, an attacker injects malicious code into legitimate software components, such as npm packages, that are widely used by developers. When developers incorporate these compromised packages into their projects, the malicious code can execute on their machines. In this specific case, the malicious npm packages are said to have stolen credentials from the former employee's laptop, which then facilitated unauthorized access to CrowdSec's GitHub repositories.
The affected vendor in this incident is TanStack, a collection of open-source libraries for web development. Products in this category, particularly npm packages, are frequently integrated into development workflows, making them attractive targets for supply chain attacks. The scope of such an attack can be broad, potentially affecting any organization or individual whose development environment incorporates the compromised packages. The incident highlights the inherent risks associated with third-party dependencies in modern software development.
CrowdSec indicated that the attacker leveraged the GitHub access of an employee who had recently left the company. This suggests a lapse in offboarding procedures, where access privileges for departing personnel were not promptly revoked. Maintaining active access for former employees, especially to critical systems like source code repositories, creates a significant security vulnerability that can be exploited if their accounts or devices are compromised.
Typical mitigation guidance for this class of issue includes robust offboarding processes to ensure timely revocation of access for departing employees. Organizations are also advised to implement strong access controls, such as multi-factor authentication (MFA), for all critical systems, including GitHub. Furthermore, supply chain security best practices, such as regularly auditing third-party dependencies, using software composition analysis (SCA) tools, and pinning package versions, can help detect and prevent the use of compromised packages.
This incident underscores the persistent and evolving threat of supply chain attacks, particularly those targeting widely used developer tools and libraries. It also highlights the critical importance of comprehensive identity and access management practices, extending to the secure offboarding of employees. As software development increasingly relies on complex ecosystems of open-source components, organizations must adopt multi-layered security strategies to protect against both external threats and internal vulnerabilities arising from access management oversights.






