TL;DR: The TeamPCP supply chain compromise abused trusted npm and PyPI packages such as Trivy, LiteLLM and Checkmarx KICS to deliver malicious code during installation or runtime, turning legitimate software into a channel for credential theft and environment compromise, according to Intel 471. Package trust now has to be governed as an identity and provenance problem, not just a dependency hygiene problem.
At a glance
What this is: This is an Intel 471 threat overview of TeamPCP supply chain attacks that used trusted open-source packages to deliver malicious payloads and expand blast radius across cloud-native, DevOps and AI environments.
Why it matters: It matters because software supply chains now sit on the access path for credentials, build pipelines and runtime environments, so IAM, PAM and NHI governance must extend beyond account controls to package provenance and execution trust.
Context
Software supply chain risk is no longer limited to the package itself. When attackers can tamper with trusted dependencies, they can inherit the distribution channel, execution context and operator confidence that normal software delivery depends on.
In this case, the first-order problem is not just malicious code in a package. It is the collapse of trust between repository, maintainer, build system and runtime, which is why the impact reaches identity, secrets and environment control rather than stopping at the library boundary.
Key questions
Q: What breaks when a malicious package can execute inside a trusted runtime?
A: The boundary between software delivery and identity access breaks first. A package that runs during import can read environment variables, local keys, cloud tokens, and other secrets before any user notices. In practice, the control that fails is not only code review but runtime confinement, because the attacker is already inside the process that holds non-human credentials.
Q: Why do supply chain attacks create such large blast radius?
A: They create large blast radius because one upstream compromise can be reused across many downstream relationships. A software update, contractor account, or managed service can be trusted by dozens or thousands of organisations at once. When that trust is abused, the attacker does not need to break each target individually, which makes scale the defining feature.
Q: How do security teams know whether dependency trust is being overextended?
A: Warning signs include packages that run arbitrary scripts, runners that can reach secrets by default, and shared tokens that work across build, deploy and publish stages. If a dependency can touch credentials or production resources without a clear execution boundary, trust has outgrown governance.
A: Secret containment should come first when packages can execute code inside trusted workflows, because exposed tokens convert a package event into an environment compromise. Provenance controls still matter, but if credentials remain broadly accessible, a verified package can still be abused after installation.
Technical breakdown
How package trust becomes a delivery mechanism
Open-source repositories create a trust chain that assumes published packages are authentic, versioned and safe to install. When that trust is abused, malicious code can execute during package installation or at runtime, which lets attackers ride normal developer workflows rather than breaking into the environment directly. The important mechanism here is that the package is not just code. It is also a distribution and execution channel that inherits the privileges of the build or developer context that consumes it.
Practical implication: Treat package provenance and install-time execution as security controls, not only software quality checks.
Why CI/CD and cloud-native environments widen the blast radius
CI/CD runners, developer tooling and automation agents often hold higher-value tokens than ordinary endpoints because they need access to registries, cloud APIs and deployment systems. That makes them attractive targets when malicious code lands inside a commonly used package. If the same package is consumed across pipelines, cloud builds and AI-driven workflows, one compromise can cross operational boundaries and expose secrets or deployment paths that were never meant to be shared. See the CI/CD Pipeline Identity Security Guide.
Practical implication: Restrict build-time privileges and isolate pipeline identities from broader runtime access.
Credential theft is the real payload, not the visible malware
In supply chain attacks, the malicious code often matters less than what it can reach once executed. Attackers use the package to retrieve tokens, harvest environment variables or pivot into connected systems where credentials already exist in memory or configuration. That makes secret exposure, token scope and execution context the decisive factors. The control gap is not just malware detection. It is whether sensitive credentials can be accessed by code that arrived through a trusted dependency. See the AI Coding Agents Security Guide.
Practical implication: Harden secret handling so packages cannot read, print or inherit high-value credentials by default.
Threat narrative
Attacker objective: The attacker’s objective is to convert trusted software distribution into a covert path for stealing credentials and compromising connected environments at scale.
- Entry occurred through trusted npm and PyPI packages that were altered to carry malicious payloads into normal installation and runtime workflows.
- Credential access followed when the payload executed inside developer and build contexts that could expose secrets, tokens or environment data.
- Impact expanded as the same packages propagated downstream into cloud-native, DevOps and AI-driven environments, increasing the blast radius beyond the initial maintainer or package compromise.
Breaches seen in the wild
- Trivy supply chain attack 2026: A PAT stolen via a Trivy workflow and a botched rotation let TeamPCP poison Trivy releases and Action tags to steal CI/CD secrets.
- reviewdog Action compromise 2025: A stolen maintainer token poisoned reviewdog/action-setup, leaking CI secrets including the tj-actions bot token used in the next attack.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Software supply chain trust is now an identity control problem. When a package repository becomes the entry point, the practical question is no longer only whether code is malicious. It is whether the consuming environment lets that code inherit credentials, deployment reach or human trust without sufficient boundaries. That makes provenance, signing and execution isolation part of identity governance for modern delivery pipelines.
Blast radius is determined by the privileges attached to the consuming pipeline, not just the package. A harmless-looking library can become a high-impact intrusion path when runners, build agents and deployment tools share broad access. CI/CD pipeline identity is therefore central to supply chain defence, because token scope and runner isolation decide whether compromise stays local or spreads downstream.
Package compromise exposes the weakness in trusted-dependency assumptions. Many organisations still treat repositories as if publication equals safety, yet the article shows how malicious payloads can be delivered through ordinary installation and runtime events. That assumption fails when downstream systems automatically execute code from packages that have not been sufficiently constrained or verified.
AI-driven environments make supply chain trust harder to bound. The article notes wider impact across cloud-native, DevOps and AI-driven environments, which means the same dependency can sit inside build systems, agents and application workflows at once. That convergence raises the governance bar for provenance, secrets containment and runtime verification. Practitioners should manage package trust as a cross-domain control, not a developer-only concern.
From our research library:
- 59% of compromised machines in a major 2025 supply chain attack were CI/CD runners rather than personal workstations, according to the State of Secrets Sprawl 2026.
- 92% of organisations expose NHIs to third parties, raising concerns about supply chain security, according to the Ultimate Guide to NHIs.
- Read next: CI/CD Pipeline Identity Security Guide
What this signals
Dependency trust now behaves like an access-control plane. Once packages can execute inside build and runtime contexts, the question becomes who or what is allowed to inherit that execution path. That shifts supply chain governance toward provenance, policy enforcement and secret containment rather than dependency scanning alone.
Pipeline identity is the control boundary that attackers will keep targeting. If runners, build agents and publishing jobs remain over-scoped, any poisoned package can become a credential discovery mechanism. Practitioners should expect more attacks that target the automation layer because it concentrates the privileges that make supply chain compromise valuable.
Blast-radius thinking must extend beyond the repository. The article shows how a package compromise can affect cloud-native, DevOps and AI-driven environments at once, which means a single trust failure can cross multiple operational planes. Security teams should map where package execution can reach secrets, deployment systems and agent workflows, then reduce that reach before the next compromise.
For practitioners
- Constrain package execution at install time Block or sandbox package scripts where they are not required, and review where installation-time code can reach secrets or cloud credentials.
- Reduce privilege on build and runner identities Separate publishing, build and deployment permissions so CI/CD identities cannot freely access secrets, registries and production systems.
- Inventory packages that can touch sensitive workflows Map which packages are used in build pipelines, developer tooling and AI-assisted workflows, then flag those with broad execution reach.
- Treat third-party package trust as revocable Establish a rapid revoke-and-replace path for compromised dependencies, including token rotation and pinned version rollback.
Key takeaways
- The core risk is not simply malicious code in a package, but the way trusted dependencies can inherit execution rights and reach sensitive credentials.
- The article shows that compromises can spread across cloud-native, DevOps and AI-driven environments, which is why blast radius becomes the key governance variable.
- Teams should reduce package trust to the minimum needed for delivery by constraining execution, scoping pipeline identities and making revocation fast.
Related NHI Mgmt Group resources: CI/CD Pipeline Identity Security Guide · AI Coding Agents Security Guide · SaaS-to-SaaS and OAuth App Governance Guide · Trivy supply chain attack 2026
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | The article centres on package-led credential theft from build and runtime contexts. |
| NHI-03 — Vulnerable Third-Party NHI | Trusted packages and their maintainer channels are the third-party trust surface abused here. | |
| NHI-05 — Overprivileged NHI | CI/CD runners and automation identities often carry excessive access, widening blast radius. | |
| Recommendation — Reduce secret exposure in package execution paths and revoke credentials that dependencies can access. Review third-party package trust and pin or replace dependencies that can execute code in sensitive workflows. Scope pipeline identities tightly so build and publish jobs cannot reach unnecessary secrets or production systems. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Token and credential lifecycle governs the secrets exposed through compromised packages. |
| Recommendation — Rotate and revoke exposed authenticators quickly when package compromise is suspected. | ||
| MITRE ATT&CK | TA0006; TA0040 — Credential Access; Impact | The campaign uses trusted software to reach credentials and then expand operational impact. |
| Recommendation — Map poisoned dependency activity to credential access and impact techniques in detection and hunting. | ||
Key terms
- Software Supply Chain Attack: A software supply chain attack targets the path software takes from source code to production. The attacker corrupts code, dependencies, build steps, or artifacts so that trusted delivery mechanisms spread malicious logic into environments that would otherwise reject direct intrusion.
- Build Runner Identity: A build runner identity is the account, role, or token used by CI or developer automation while packages are installed and software is assembled. It often has broader reach than a normal user session, which makes it a valuable target when malicious code executes during dependency installation.
- Dependency Update Trust Boundary: The dependency update trust boundary is the point where automated package or image updates cross from approved maintenance into code execution. When that boundary is weak, a trusted automation event can deliver attacker code into environments that hold secrets and release privileges.
- Blast Radius: The potential scope of damage if a specific credential or identity is compromised. Identities with broad permissions have a larger blast radius and represent a higher priority for least-privilege enforcement and security controls.
Deepen your knowledge
NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security and secrets management. It helps security practitioners connect identity controls to supply chain and automation risk.
Published by the NHIMG editorial team on October 22, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org