Open Source Supply Chain Attack: How Hackers Targeted TanStack and Impacted OpenAI Devices: Open source software has become an essential part of modern technology. Developers and companies around the world rely on open source libraries, frameworks, and development tools to build websites, mobile applications, cloud services, and artificial intelligence products.
However, this widespread use of open source software also creates a major cybersecurity risk. A recent open source supply chain attack demonstrated how hackers can compromise a popular software project and potentially reach hundreds or even thousands of developers through malicious updates.
Earlier this week, hackers hijacked several open source projects and pushed software updates containing malware. One of the projects affected was TanStack, a popular open source library used by developers to build web applications.
The incident also affected devices belonging to two OpenAI employees. OpenAI later confirmed that the employees’ devices were impacted but said its investigation found no evidence that OpenAI user data, production systems, intellectual property, or existing software installations had been compromised.
The incident highlights a growing problem in cybersecurity: attackers are increasingly targeting the software supply chain instead of attacking companies directly.
Table of Contents
What Is an Open Source Supply Chain Attack?
An open source supply chain attack occurs when hackers compromise software, libraries, packages, or development tools that are trusted and widely used by other organizations.
Instead of attacking a company directly, attackers target a third-party component used by that company. Once the attackers gain control of the component, they can distribute malicious code through legitimate-looking software updates.

This approach can be extremely effective because developers generally trust updates from popular open source projects.
For example, if thousands of developers use a particular library and hackers manage to publish a malicious version of that library, every developer who installs the compromised version could potentially become a target.
This makes software supply-chain attacks particularly dangerous.
What Happened to TanStack?
TanStack is a widely used open source project that provides tools and libraries for web developers.
According to the project’s postmortem, attackers managed to gain control of the project and published 84 malicious versions of its software during a period of approximately six minutes.
The attack was discovered relatively quickly. A researcher detected suspicious activity within about 20 minutes.
The malicious versions reportedly contained malware designed to steal credentials from affected computers. The malware was also designed to propagate, meaning it could potentially attempt to spread from one compromised system to another.
The short time window demonstrates how quickly attackers can exploit control over a popular software project.
Even though the malicious releases were available for only a limited period, developers who downloaded or installed them during that window could potentially have been exposed.
How Was OpenAI Affected?
OpenAI confirmed that two employees had devices impacted by the TanStack attack.
Following an investigation, OpenAI said it found no evidence that OpenAI user data was accessed or that its production systems or intellectual property were compromised.
However, the company did identify unauthorized access to and theft of credentials from a limited subset of internal source-code repositories that the affected employees could access.
OpenAI described the stolen information as limited credential material.
The company also discovered that the affected repositories contained digital certificates used to sign OpenAI products.
As a precaution, OpenAI said it would rotate those certificates. This process requires some macOS users to update their OpenAI application.
Importantly, OpenAI stated that it found no evidence of compromise or risk to existing software installations.
Why Are Supply Chain Attacks So Dangerous?
The biggest advantage for attackers is scale.
If hackers attack one company directly, they have to bypass that company’s security systems. But if they compromise a popular open source project, they can potentially reach many organizations at the same time.
Consider a simple example:
Open source project → malicious update → developers install update → malware reaches developer computers → credentials are stolen → attackers attempt to access other systems
This creates a chain reaction.
The original project may be maintained by a relatively small group of developers, but its software could be used by thousands of organizations.
Attackers therefore get an opportunity to compromise multiple targets through a single successful intrusion.
How Malware Is Hidden Inside Software Updates
One reason supply-chain attacks are difficult to detect is that malicious code can be distributed through apparently legitimate updates.
A developer may see a normal software update and install it without realizing that the package has been modified.
The malicious code can then run with the permissions available to the software or developer environment.
Depending on the malware, attackers may attempt to:
- Steal passwords and authentication tokens
- Access API keys
- Collect browser credentials
- Steal source-code repository credentials
- Access cloud services
- Search for cryptocurrency wallets
- Move laterally through connected systems
- Download additional malware
The exact capabilities depend on the malware involved.
Previous Open Source Supply Chain Attacks
The TanStack incident is not an isolated event.
Cybersecurity researchers have reported multiple attacks using similar techniques in recent years.
In March, attackers reportedly hijacked Axios, a popular open source development tool, and pushed malicious code that could potentially affect a large number of developers.
Another incident in May involved allegations that Chinese hackers targeted Windows computers running disc-imaging software associated with Daemon Tools.
These incidents demonstrate that attackers are increasingly interested in trusted software ecosystems.
The goal isn’t necessarily to compromise one specific company.
Instead, attackers can target the software used by many companies and allow the malicious update to distribute their attack automatically.
Who Could Be Behind These Attacks?
Attribution remains difficult in cybersecurity.
It is not currently clear who was responsible for the TanStack attack.
Some previous software supply-chain incidents have been associated with a hacking group known as TeamPCP. However, similar techniques have also been used by other cybercriminal groups and state-linked attackers.
Because attackers can use compromised infrastructure, stolen credentials, and other techniques to hide their identity, determining who is responsible can take considerable time.
Therefore, investigators generally need additional evidence before confidently attributing an attack to a particular group.
Why Developers Are a Valuable Target
Developers often have access to highly sensitive systems.
A developer’s computer may contain:
- Source-code repositories
- API keys
- Cloud credentials
- Authentication tokens
- SSH keys
- Development certificates
- Internal documentation
- Access to production systems
This makes developer machines particularly attractive to attackers.
A compromised developer account could potentially provide access to much more than the developer’s personal files.
This is why modern cybersecurity increasingly focuses on protecting the entire development environment rather than only protecting production servers.
What Can Companies Do to Prevent Supply Chain Attacks?
Completely eliminating supply-chain risk is difficult, but organizations can significantly reduce the risk through multiple security measures.
1. Verify Software Dependencies
Companies should maintain an accurate inventory of third-party libraries and packages used by their applications.
Security teams should know which versions are installed and where they are being used.
2. Lock Dependency Versions
Automatically installing the newest version of every dependency can increase risk.
Organizations can use dependency-locking mechanisms so that software doesn’t unexpectedly upgrade to a potentially compromised version.
3. Use Multi-Factor Authentication
Developers and administrators should use multi-factor authentication wherever possible.
Even if a password or credential is stolen, MFA can provide an additional security barrier.
4. Protect API Keys and Credentials
Sensitive credentials should not be stored unnecessarily on developer computers or inside source-code repositories.
Organizations should use secure secret-management systems and rotate credentials regularly.
5. Monitor Software Updates
Security teams should monitor unusual package releases, unexpected dependency changes, and suspicious activity in development environments.
A sudden release of dozens of package versions, for example, could be an important warning sign.
6. Use Software Composition Analysis
Software composition analysis tools can help organizations identify vulnerable or suspicious third-party dependencies.
These tools can provide visibility into the open source components used within applications.
What Should Individual Developers Do?
Developers should also take precautions.
If you believe you installed a compromised version of an open source package, consider immediately:
- Disconnecting the affected device from sensitive networks.
- Checking the installed package version.
- Removing the compromised package.
- Rotating passwords and API keys that may have been exposed.
- Revoking authentication tokens.
- Checking source-code repositories for suspicious activity.
- Reviewing cloud-account access logs.
- Updating security software and affected applications.
- Following official security advisories from the affected project.
Simply uninstalling the malicious package may not be enough if credentials were already stolen.
What Does This Mean for Open Source Software?
The TanStack incident does not mean that open source software is inherently unsafe.
Open source software remains one of the foundations of modern technology and allows developers to collaborate, inspect code, and build products faster.
The problem is that popular open source projects can become attractive targets because so many organizations depend on them.
The incident demonstrates why open source security requires strong account protection, code-review practices, package signing, dependency monitoring, and rapid incident response.
The broader lesson is that software security is not only about protecting your own code.
Organizations also need to understand and secure the third-party software that their systems depend on.
Frequently Asked Questions
What is an open source supply chain attack?
An open source supply chain attack is a cyberattack in which hackers compromise a trusted open source project, software package, or dependency and use it to distribute malicious code to users and organizations.
What happened in the TanStack attack?
Attackers compromised the TanStack project and published 84 malicious software versions within approximately six minutes. The malicious versions reportedly contained malware capable of stealing credentials and attempting to spread to other systems.
Did the TanStack attack compromise OpenAI?
OpenAI confirmed that two employees’ devices were impacted by the attack. However, OpenAI said its investigation found no evidence that user data, production systems, intellectual property, or existing software installations were compromised.
What information was stolen from OpenAI-related repositories?
OpenAI said unauthorized access and credential theft occurred in a limited subset of internal source-code repositories accessible to the two affected employees. The company described the stolen material as limited credential information.
Can an open source update contain malware?
Yes. If attackers gain control of an open source project’s publishing or development infrastructure, they may be able to distribute malicious code through a software update that appears legitimate.
Why do hackers target open source projects?
Open source projects can have thousands or millions of users. Compromising one widely used project can therefore provide attackers with access to a much larger pool of potential targets than attacking companies individually.
How can developers protect themselves from supply chain attacks?
Developers should keep dependencies updated from trusted sources, use locked dependency versions, enable MFA, protect API keys, monitor repository activity, and carefully review security advisories for the software they use.
Is open source software safe?
Open source software can be highly secure, but it is not automatically risk-free. Security depends on the quality of the project, its maintenance practices, dependency management, publishing infrastructure, and how organizations use and monitor the software.
What should I do if I installed a compromised package?
First identify whether the affected package and version were installed. If exposure is possible, remove or update the package, rotate potentially exposed credentials and tokens, and review accounts and systems for suspicious activity.
Conclusion
The recent open source supply chain attack involving TanStack shows how a single compromised software project can potentially create security risks for developers and organizations around the world.
The incident also demonstrates why developer devices are increasingly important targets for cybercriminals. These machines can provide access to source code, credentials, API keys, certificates, and other sensitive resources.
OpenAI’s investigation found no evidence that its user data, production systems, intellectual property, or existing software installations were compromised, but the unauthorized access to limited credentials highlights the importance of strong security controls around development environments.
As organizations continue to depend heavily on open source software, supply-chain security will become even more important. Developers and companies should carefully manage their dependencies, protect credentials, use multi-factor authentication, monitor software updates, and respond quickly when a trusted project is compromised.