Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› Hijacked package
Cyber Security

Hijacked package

← Back to Glossary
By NHI Mgmt Group Updated October 11, 2026 Domain: Cyber Security

A software package that is published or updated under an account or identity no longer under the original maintainer's control. The danger is that the package retains inherited trust while its contents can now be altered for malicious distribution, persistence, or payload delivery.

What a hijacked package changes in the trust model

A hijacked package is not just “a package compromise.” The defining shift is ownership: the package still looks like the same trusted dependency, but publication or update control has moved to an account no longer governed by the original maintainer.

That matters because package consumers usually trust names, version history, download reputation, and update channels. When control changes hands, the package can inherit that trust even while its contents are being rewritten for malicious delivery.

Why this is a supply chain problem, not only a malware problem

The core security issue is the abuse of inherited legitimacy. A hijacked package can reach developers through routine dependency resolution, CI/CD pipelines, and automated updates, which makes it an efficient distribution path for payloads, backdoors, credential theft, or persistence.

Supply chain compromise is especially dangerous when the package is widely reused, because one takeover can affect many downstream projects at once. This is why the security question is not only “is the code malicious?” but also “does the publisher still control the package namespace and release process?”

LiteLLM PyPI package breach is a concrete example of how package trust can be abused after compromise.

Common takeover patterns and what they enable

Package hijacking often follows predictable paths: account takeover, abandoned maintainer accounts, transfer of ownership through a registry or org, or compromise of the publishing workflow itself. Once the attacker can publish under the trusted package name, they can ship new versions that appear legitimate to automated consumers.

The harm is not limited to obvious malicious code. Attackers may use subtle changes, delayed activation, typosquatted dependency chains, or time-bombed payloads to avoid immediate scrutiny. In ecosystems with broad automated consumption, even a short-lived compromise can spread quickly before review catches up.

OpenSSF is a useful reference point for broader open source supply chain security practices around package integrity and release trust.

How practitioners should think about package trust boundaries

Package names are identifiers, not guarantees. A trustworthy package is one where the maintainer, publishing path, signing or verification mechanisms, and dependency provenance still align with the expected owner and release process.

For that reason, hijacked packages sit at the intersection of dependency risk, maintainer lifecycle risk, and release integrity risk. The security impact grows when consumers rely on automatic updates, broad dependency trees, or weak visibility into who can publish and what changed between versions.

Verification and governance around publishing rights, release provenance, and dependency review are what keep a trusted package from becoming a trusted delivery channel for attacker-controlled code.

Risk and Threat Considerations

Hijacked packages are high-risk because they convert trust into reach. A consumer may accept malicious code simply because the package name, version pattern, or repository reputation still appears legitimate after ownership has been lost.

Failure mechanism: The attacker gains publish access, then uses the existing dependency trust relationship to distribute altered code through normal update channels, often before maintainers or consumers notice the ownership change.

Impact: The result can be widespread compromise of build systems and downstream applications, including credential theft, backdoors, persistence, and multi-tenant supply chain exposure.

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 addresses the attack and risk surface, while SLSA, CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
SLSASupply-chain Levels for Software ArtifactsCovers build provenance and artifact integrity for trusted package releases
Recommendation — Require provenance verification before consuming new package versions.
CIS Controls v8CIS-15 — Service Provider ManagementAddresses third-party and supplier trust in externally provided software
Recommendation — Vet package suppliers and revoke trust when publisher control changes.
NIST SP 800-53 Rev 5SA-12 — Supply Chain ProtectionDirectly addresses software supply chain integrity and trusted source assurance
Recommendation — Enforce supply chain controls for package acquisition and update paths.
OWASP Non-Human Identity Top 10NHI-03 — Vulnerable Third-Party NHIApplies when a third-party publishing identity is compromised and trusted
NHI-01 — Improper OffboardingMatches loss of control when a maintainer identity is no longer governed
Recommendation — Review third-party publishing identities and rotate trust after compromise. Remove or disable stale publishing access before package ownership changes.

Practitioner Guidance

Why practitioners should care: Treat package ownership and publishing authority as part of the security boundary, not as administrative detail. A package can be technically unchanged in name while being operationally untrusted because the entity that can publish it is no longer the expected maintainer.

What to watch for: Unusual maintainer changes, fresh releases after long inactivity, unexpected dependency updates, and package metadata changes that do not match the project’s normal release pattern should trigger review before automatic adoption.

Practitioner takeaway: Trust the package only when you can trust both the artifact and the path that publishes it.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 11, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org