Accountability sits with the maintainer identity, the release automation owners, and the teams governing build secrets and publish rights. A package registry incident is not only a software event. It is a lifecycle failure across identity, release governance, and access control, so response ownership should span engineering, IAM, and platform security.
Why This Matters for Security Teams
When a compromised package begins publishing additional trojanized versions, the incident is no longer limited to source code integrity. It becomes an NHI governance problem because the maintainer identity, release credentials, CI/CD tokens, and registry publish rights are all part of the attack surface. NHI Mgmt Group notes that only 5.7% of organisations have full visibility into their service accounts in the Ultimate Guide to NHIs, which helps explain why publish-path abuse is often discovered late.
The practical accountability question is important because package ecosystems reward automation and speed, but attackers exploit exactly those same controls when secrets are reused or release rights are too broad. The issue is not just who pushed the malicious version. It is who owned the credentials, who approved the release path, and who failed to constrain the automation that could republish at scale. The same pattern shows up in the 52 NHI Breaches Analysis, where identity and lifecycle failures turn a single compromise into repeated downstream exposure. In practice, many security teams encounter accountability confusion only after a package has already been mirrored, pinned, or deployed into multiple environments.
How It Works in Practice
Accountability should be assigned across the full publish chain, not to a single individual. The maintainer identity owns code changes and release intent, the automation owner governs how builds are signed and published, and the platform or IAM team controls the secrets and permissions that make publication possible. For modern supply chains, current guidance suggests using separate identities for code authoring, build execution, and release publication so that compromise in one stage does not automatically grant control of the others.
In practice, the strongest control is to narrow publish rights to short-lived, scoped credentials and to bind them to workload identity rather than a human-owned token. Standards such as NIST SP 800-53 Rev 5 Security and Privacy Controls support least privilege, separation of duties, and auditability, while the operational lesson from the LiteLLM PyPI package breach is that exposed secrets can turn a normal release channel into a distribution mechanism for malware.
- Use distinct identities for maintainer activity, CI/CD execution, and registry publishing.
- Issue JIT tokens for each release job and revoke them immediately after publication.
- Require signed builds and verify provenance before any package reaches the registry.
- Log who approved the release, which automation ran it, and which secrets were used.
- Review publish permissions separately from code commit permissions.
This guidance tends to break down in legacy release pipelines where long-lived tokens are shared across teams, because the same credential can both build and publish without any meaningful separation of duties.
Common Variations and Edge Cases
Tighter publish control often increases release overhead, requiring organisations to balance deployment speed against assurance. That tradeoff is real, especially for open-source maintainers, small platform teams, and multi-maintainer projects where emergency fixes must move quickly. Best practice is evolving, but accountability should still follow control ownership: if a maintainer key is stolen, the maintainer process is implicated; if a CI token is abused, the release automation owner is accountable; if registry permissions were too broad, the IAM or platform team shares responsibility.
There are also edge cases where responsibility is shared across organisations. Third-party build services, delegated publishing, and package mirror automation can obscure who actually triggered publication. In those cases, incident handling should map every credential to a named owner and every automation path to a control owner, then compare that map against what actually happened at publish time. The broader NHI security lesson from the Ultimate Guide to NHIs — Why NHI Security Matters Now is that reusable machine identities create durable blast radius unless they are bounded by lifecycle controls.
There is no universal standard for this yet across ecosystems, but the decision should always favour the party that controlled the credential, the release path, and the publish right at the moment of compromise.
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.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-01 | Covers weak NHI lifecycle and ownership behind publish-path compromise. |
| OWASP Agentic AI Top 10 | A-02 | Release automation can act autonomously and needs constrained tool authority. |
| CSA MAESTRO | MAESTRO-04 | Supports governance of automated workflows that can publish malicious artifacts. |
| NIST AI RMF | GOVERN | Provides accountability and oversight structure for automated release decisions. |
| NIST CSF 2.0 | PR.AC-4 | Least-privilege access control is central to limiting package publish abuse. |
Assign each package release credential to a named owner and enforce lifecycle review at every publish step.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
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