Join our Newsletter — 33% off our NHI Course
Home FAQ Threats, Abuse & Incident Response Who is accountable when a trusted open-source package…
Threats, Abuse & Incident Response

Who is accountable when a trusted open-source package is used to deliver malware?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated August 18, 2026 Domain: Threats, Abuse & Incident Response

Accountability usually spans the package maintainer, the registry authentication model, the consuming organisation’s build controls, and the team that owns credential lifecycle. If a malicious release was published through a valid account, the key question is whether publishing identities were time-bound, recoverable, and constrained enough to limit misuse.

Why This Matters for Security Teams

A trusted package turning malicious is not just a software supply chain issue. It is an identity and accountability problem. Once a maintainer account, CI token, or publishing credential is abused, the organisation consuming the package can inherit malware through a path that looks legitimate on paper. NIST’s Security and Privacy Controls and NHI Mgmt Group research both point to the same failure mode: identity sprawl and weak lifecycle controls create conditions where valid access becomes an attack vector.

The practical question is not only who published the bad release, but who had the power to publish it, who could recover or revoke that power, and who should have detected the misuse before downstream deployment. That is why package trust cannot be separated from NHI governance. The Ultimate Guide to Non-Human Identities notes that 80% of identity breaches involved compromised non-human identities such as service accounts and API keys, which is directly relevant when package ecosystems rely on long-lived publishing credentials. In practice, many security teams only discover this accountability gap after a malicious package has already entered a production build.

How It Works in Practice

Accountability usually spreads across four layers. The package maintainer is responsible for protecting the publishing identity, the registry is responsible for how that identity is authenticated and recovered, the consuming organisation is responsible for build-time verification and dependency controls, and the platform or security team is responsible for secret lifecycle governance. A valid signature or a trusted namespace does not end the inquiry, because compromise often happens through stolen credentials, token replay, or account takeover rather than through obvious tampering.

For example, the Shai Hulud npm malware campaign showed how malicious code can ride in through normal package workflows and then reach exposed secrets, while the LiteLLM PyPI package breach illustrated how publishing trust can be undermined even when the package name is familiar. That is why practical controls focus on:

  • time-bound publishing identities with short-lived tokens rather than standing credentials
  • strong registry authentication, including phishing-resistant MFA and recovery controls
  • build pipeline verification such as pinned hashes, provenance checks, and allowlists
  • secrets rotation and offboarding for maintainers, bots, and release automation
  • incident response paths that can quickly revoke publish rights and quarantine builds

Current guidance suggests using least privilege and short TTLs for publishing access, but there is no universal standard for exactly how registry trust should be enforced across ecosystems. The CircleCI Breach also demonstrates that trusted delivery platforms can become part of the attack path when credentials and pipeline controls are weak. These controls tend to break down in organisations that still treat package publishing as a developer convenience problem instead of a governed production release function, because recovery and revocation are too slow once automation is compromised.

Common Variations and Edge Cases

Tighter publishing controls often increase release friction, requiring organisations to balance developer velocity against the cost of stronger identity assurance. That tradeoff becomes sharper in open-source ecosystems, where maintainers may be volunteers, accounts may be shared across projects, and recovery processes are less mature than in enterprise platforms.

One common edge case is the “trusted maintainer, untrusted path” scenario. The maintainer may be legitimate, but the release process still allows malware through a compromised laptop, stolen session token, or poisoned CI job. Another is the “trusted package, untrusted dependency” problem, where the top-level package is clean but transitive dependencies introduce the payload. The Shai Hulud npm malware campaign is a reminder that attackers often target the weakest identity in the chain, not the most visible one.

The CIS Controls v8 supports a layered response, but best practice is evolving on how much provenance evidence should be required before a package is allowed into production. Organisations should treat this as an accountability chain, not a single-owner problem: maintainers own release hygiene, registries own authentication and recovery, and consumers own verification and containment. In environments with automated release bots, shared admin tokens, or weak revocation processes, responsibility becomes diffuse precisely when the blast radius is largest.

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, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03Malware often arrives through abused package publishing identities and stale credentials.
OWASP Agentic AI Top 10Automated release bots and agentic pipelines can publish malicious packages if overtrusted.
CSA MAESTROAgentic delivery chains need governance over identity, tool use, and escalation paths.
NIST AI RMFAccountability for AI-assisted or automated publishing fits AI risk governance and oversight.
NIST CSF 2.0PR.AA-01Identity proofing and access control are central when a trusted package becomes malicious.

Assign clear accountability, monitoring, and incident response for autonomous publishing workflows.

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