Software supply chain attacks are becoming more concerning because compromising one software component can create consequences far beyond the original development environment.
The recent TanStack supply chain incident provides a strong example.
A compromise involving malicious TanStack npm packages in May 2026 was later linked by CrowdSec to unauthorized access to approximately 170 private GitHub repositories. CrowdSec says the repositories were copied on May 22 using access associated with a former employee whose laptop had been compromised through the TanStack attack. The source code archive became public in September.
The incident is important because it demonstrates how a software supply chain compromise can evolve into a secondary security incident involving source code, developer credentials, identity management, and repository access.
What Happened?
The initial TanStack incident involved malicious versions of packages within the TanStack npm ecosystem.
According to TanStack’s postmortem, an attacker compromised part of its release workflow and published 84 malicious versions across 42 TanStack packages on May 11, 2026. The affected packages were subsequently removed and TanStack reported that currently available versions were safe following its security review.
The malicious packages were designed to obtain credentials available to affected development environments.
This is where the incident became more significant.
CrowdSec later determined that credentials associated with a former employee had been used to access and copy roughly 170 private repositories. CrowdSec’s investigation concluded that the employee’s machine had been exposed through the TanStack supply chain compromise and that the GitHub access ultimately enabled the repository copying.
CrowdSec says its investigation did not identify compromise of its production infrastructure or databases through this incident, and it found no evidence that the attacker modified its source code or build pipelines.
This distinction is important.
A source code exposure is serious, but it is different from a confirmed compromise of production systems or customer data.
The Bigger Problem: Supply Chain Attacks Do Not Always End at the First Victim
One of the most important lessons from this incident is the concept of secondary impact.
An attacker does not necessarily need to compromise the final target directly.
A potential attack path can look like:
Third party package → Developer environment → Credential theft → GitHub access → Private repositories → Source code exposure
This creates a much larger security boundary than many organizations traditionally consider.
Development environments can contain access to:
• Source code repositories
• Cloud platforms
• CI/CD systems
• Package registries
• API credentials
• Infrastructure systems
• Deployment environments
• Security tools
• Internal documentation
• Third party services
A compromise of one developer workstation can therefore create risks across multiple connected systems.
Why Developer Credentials Are High Value
Attackers increasingly target credentials because credentials can provide legitimate access without immediately triggering traditional malware defenses.
A stolen GitHub credential can potentially provide access to repositories depending on its permissions.
A cloud credential can provide access to infrastructure.
An npm credential can potentially be used to publish packages.
An SSH key can provide access to servers.
An API token can connect an attacker to internal or external services.
This means organizations need to treat credentials as security sensitive assets throughout their entire lifecycle.
Security teams should maintain visibility into:
• Where credentials are created
• Who owns them
• What permissions they have
• Where they are stored
• How long they remain valid
• Whether they are still required
• When they were last used
• Whether they can be replaced with short lived credentials
The Former Employee Access Problem
The CrowdSec incident also highlights another important security issue: access associated with employees who have left an organization.
CrowdSec says the affected employee had departed but retained GitHub access temporarily to complete work. The organization later revoked the account after identifying the situation.
This demonstrates why employee offboarding cannot be treated only as an HR process.
It is also an identity security process.
When an employee leaves, organizations should evaluate access across:
• GitHub and GitLab
• Cloud platforms
• VPNs
• SaaS applications
• Email
• Password managers
• API platforms
• Package registries
• CI/CD systems
• Databases
• Internal applications
• Security platforms
Access should be removed or appropriately restricted based on organizational policy and business requirements.
Temporary exceptions should also have clear expiration dates and ownership.
Least Privilege Must Apply Everywhere
Least privilege is often discussed in the context of cloud infrastructure and enterprise applications.
It should also apply to developers, automation systems, CI/CD pipelines, service accounts, and AI tools.
A developer who only needs access to a small number of repositories should not automatically receive organization wide repository access.
A build workflow should not have unnecessary production privileges.
An automation account should not have unrestricted access to cloud infrastructure.
An AI coding assistant should not receive permissions beyond what is required for its approved tasks.
The smaller the permission scope, the smaller the potential blast radius when credentials are compromised.
The Challenge of Secret Management
One of the major concerns in software supply chain incidents is the presence of secrets within development environments.
Organizations should avoid storing credentials directly in:
• Source code
• Configuration files
• Git history
• Developer scripts
• Build artifacts
• Container images
• CI/CD logs
Secrets should instead be managed using appropriate secret management systems and protected through access controls, monitoring, expiration, and rotation.
Organizations should also assume that credentials accessible to a compromised development environment may need to be treated as potentially exposed.
Why Credential Rotation Is Critical After a Supply Chain Incident
Removing malicious software is not necessarily enough.
If an attacker had access to a developer environment, security teams need to determine what credentials may have been accessible during the relevant period.
Potentially affected credentials can include:
• GitHub tokens
• SSH keys
• Cloud credentials
• Package registry credentials
• API tokens
• CI/CD secrets
• Database credentials
• Kubernetes credentials
• Infrastructure credentials
Organizations should evaluate whether credentials need to be revoked and replaced.
They should also review authentication and access logs to identify suspicious activity.
Source Code Is a Valuable Security Asset
Source code exposure is not simply an intellectual property concern.
Source repositories can reveal information about an organization’s technology environment.
Depending on the repository, attackers may discover:
• Application architecture
• Internal APIs
• Cloud integrations
• Deployment workflows
• Security controls
• Infrastructure configuration
• Dependency relationships
• Development practices
• Internal service names
• Historical credentials or secrets
Even when current credentials are protected, historical information in source repositories can help attackers understand an organization’s environment.
This is why repository security should be treated as part of enterprise cybersecurity.
Software Supply Chain Security Requires More Than Dependency Scanning
Dependency scanning is important, but modern software supply chain security requires a broader approach.
Organizations should evaluate:
• Third party packages
• Package maintainers
• Package provenance
• CI/CD workflows
• Build environments
• Developer endpoints
• Repository permissions
• Secrets
• Software composition
• Artifact integrity
• Release processes
• Third party integrations
Security needs to extend from the developer workstation to the production environment.
CI/CD Pipelines Are Part of the Security Boundary
Modern development relies heavily on automated pipelines.
A typical CI/CD environment may have access to:
• Source repositories
• Cloud credentials
• Container registries
• Package registries
• Deployment platforms
• Infrastructure automation
• Production environments
A compromised pipeline can therefore become an attractive target.
Organizations should apply strong controls around:
• Workflow permissions
• Secret exposure
• Third party actions
• Build identities
• Artifact signing
• Dependency management
• Branch protection
• Environment approvals
• Deployment permissions
• Pipeline monitoring
Security teams should regularly review whether CI/CD workflows have more privileges than they actually require.
The Importance of Software Provenance
Organizations increasingly need confidence that software artifacts originate from trusted sources and have not been modified unexpectedly.
Software provenance can help organizations understand:
• Where an artifact originated
• Which source repository produced it
• Which workflow built it
• Which dependencies were included
• Which identity authorized the build
• Whether the artifact was altered
However, the TanStack incident also demonstrates that trusted development and publishing mechanisms can themselves become targets.
Security controls therefore need to protect not only the final software artifact, but also the processes and identities used to create it.
AI Is Adding Another Layer of Complexity
Modern development environments increasingly incorporate AI coding assistants and autonomous development tools.
These systems may interact with:
• Source repositories
• Developer environments
• APIs
• Cloud platforms
• CI/CD systems
• Databases
• Development tools
This creates a new security consideration.
AI systems should receive only the permissions necessary for their intended tasks.
Organizations should also monitor AI assisted development environments for unusual credential access, unexpected repository activity, unauthorized package installation, and suspicious outbound communication.
The principle remains the same:
Automate development without creating unnecessary privilege.
What Organizations Should Do Now
Organizations can take several practical steps to reduce software supply chain risk.
1. Maintain a Complete Software Inventory
Know which open source packages, third party libraries, frameworks, containers, and services are being used across development environments.
2. Monitor Vulnerable Dependencies
Use Software Composition Analysis and vulnerability management processes to identify affected components.
3. Review Developer Access
Regularly review repository permissions and remove unnecessary access.
4. Automate Employee Offboarding
Identity systems should support timely deprovisioning when employees leave or change roles.
5. Rotate Potentially Exposed Credentials
After a supply chain incident, identify credentials accessible to affected systems and evaluate them for revocation or rotation.
6. Secure CI/CD Pipelines
Apply least privilege to workflows, protect secrets, review third party actions, and monitor pipeline activity.
7. Protect Source Repositories
Use strong authentication, branch protection, access controls, logging, and repository monitoring.
8. Scan for Secrets
Continuously scan repositories and development environments for accidentally exposed credentials.
9. Validate Software Provenance
Use appropriate mechanisms to establish confidence in software artifacts and their build processes.
10. Test Incident Response
Organizations should regularly test how quickly they can identify compromised credentials, revoke access, investigate repository activity, and contain supply chain incidents.
Industry Impact
Software supply chain risk affects almost every industry because modern organizations depend on open source software and third party development tools.
Financial Services
Banks, fintech organizations, insurance companies, and payment providers rely on large application ecosystems containing sensitive financial information.
COE Security can help financial organizations assess software supply chain risks, review development environments, test applications and APIs, evaluate cloud infrastructure, assess identity controls, and strengthen vulnerability management and compliance programs.
Healthcare
Healthcare organizations depend on applications, cloud platforms, medical systems, APIs, and third party software while managing sensitive patient information.
COE Security can help healthcare organizations perform application security assessments, cloud security reviews, penetration testing, software supply chain assessments, vulnerability management, and HIPAA aligned security reviews.
Retail and E-commerce
Retail organizations depend on web applications, payment platforms, APIs, mobile applications, cloud services, and third party integrations.
COE Security can help retailers assess application and API security, review third party dependencies, conduct penetration testing, evaluate cloud infrastructure, and strengthen software supply chain controls.
Manufacturing
Manufacturing organizations increasingly combine enterprise software, cloud services, IoT platforms, connected systems, and industrial applications.
A compromised development environment can potentially affect software used across operational environments.
COE Security can help manufacturers assess applications, cloud infrastructure, network environments, connected systems, and relevant IT and OT security controls while improving software supply chain visibility.
Government
Government agencies rely on complex software ecosystems supporting public services and sensitive information.
COE Security can help government organizations assess software supply chain risks, application security, cloud infrastructure, identity controls, vulnerability management, and secure development processes while supporting relevant cybersecurity and compliance requirements.
Building a More Resilient Software Supply Chain
The TanStack and CrowdSec incident demonstrates that software supply chain security is not limited to checking whether a package contains a known vulnerability.
Organizations need to understand the complete chain.
Developer → Dependency → Build System → Credential → Repository → Cloud → Production
Every connection represents a potential security boundary.
Security teams should therefore combine:
• Software Composition Analysis
• Vulnerability Management
• Identity and Access Management
• Secrets Management
• Endpoint Security
• Repository Security
• CI/CD Security
• Cloud Security
• Threat Detection
• Penetration Testing
• Incident Response
No single control can eliminate supply chain risk.
A layered approach can reduce the likelihood that one compromised component becomes a much larger enterprise security incident.
Conclusion
The TanStack supply chain incident and the subsequent exposure of approximately 170 private CrowdSec repositories demonstrate how quickly a software compromise can extend beyond the original target.
The most important lesson is that software supply chain security is fundamentally connected to identity, credentials, developer environments, repository permissions, CI/CD pipelines, and cloud infrastructure.
Organizations should not assume that a compromised package is only a dependency problem.
A malicious dependency can become a credential problem.
A credential problem can become an identity problem.
An identity problem can become a repository security problem.
And a repository compromise can potentially become a broader enterprise security issue.
Organizations that combine strong dependency management with least privilege, automated offboarding, credential protection, repository monitoring, secure CI/CD practices, and continuous security testing can significantly strengthen their resilience against modern software supply chain attacks.
About COE Security
COE Security partners with organizations in financial services, healthcare, retail, manufacturing, and government to secure AI-powered systems and ensure compliance.
Our offerings include:
• AI-enhanced threat detection and real-time monitoring
• Data governance aligned with GDPR, HIPAA, and PCI DSS
• Secure model validation to guard against adversarial attacks
• Customized training to embed AI security best practices
• Penetration Testing (Mobile, Web, AI, Product, IoT, Network & Cloud)
• Secure Software Development Consulting (SSDLC)
• Customized CyberSecurity Services
• Follow COE Security on LinkedIn for ongoing insights into safe, compliant AI adoption.
In addition, COE Security helps organizations strengthen software supply chain security through Software Composition Analysis, dependency risk assessments, secure code reviews, repository security assessments, CI/CD security reviews, secrets management assessments, cloud security testing, API security testing, vulnerability management, penetration testing, remediation validation, and secure software development consulting.
For financial services organizations, we help secure banking applications, APIs, cloud environments, software dependencies, CI/CD pipelines, repositories, and identity systems while supporting security and compliance requirements.
For healthcare organizations, we help protect healthcare applications, patient facing systems, cloud platforms, APIs, development environments, and software dependencies while supporting HIPAA aligned security practices and data protection.
For retail and e-commerce organizations, we help assess web and mobile applications, payment environments, APIs, cloud infrastructure, third party integrations, repositories, and software supply chains to identify vulnerabilities and reduce security exposure.
For manufacturing organizations, we help assess enterprise applications, cloud platforms, connected systems, development environments, software dependencies, networks, and relevant IT and OT environments while helping reduce software supply chain and operational risks.
For government organizations, we help strengthen application, cloud, repository, identity, CI/CD, and software supply chain security through penetration testing, vulnerability assessments, secure development consulting, threat monitoring, and compliance focused cybersecurity services.
COE Security also helps organizations evaluate the security of developer environments and software delivery processes by assessing repository permissions, authentication mechanisms, secrets management, dependency security, build pipelines, third party components, and software deployment workflows.
Our approach combines application security, penetration testing, secure software development, cloud security, identity security, vulnerability management, threat detection, and compliance support to help organizations build stronger and more resilient software ecosystems.
As organizations increasingly depend on open source software, third party components, cloud platforms, and AI assisted development, securing the software supply chain has become an important part of enterprise cybersecurity.
Follow COE Security on LinkedIn for ongoing insights into software supply chain security, AI security, application security, vulnerability management, compliance, emerging threats, and secure digital transformation.
Stay updated and cyber safe.
Click to read our LinkedIn feature article