Subscribe to the Non-Human & AI Identity Journal

Trusted publisher abuse

Trusted publisher abuse occurs when an attacker hijacks a legitimate publishing workflow that a registry already trusts to release packages. The resulting malicious package can look valid from the registry’s point of view because the compromise happens inside the authenticated delivery path, not only in the package content.

Expanded Definition

Trusted publisher abuse is a supply chain attack against the publishing trust itself. A registry, package ecosystem, or artifact store may accept releases from an approved publisher because the workflow is authenticated, but an attacker who compromises the publisher’s account, signing path, or CI/CD pipeline can still release malicious software under that trust. This is distinct from simple package tampering because the abuse happens inside the recognized delivery path, not only after publication. In NHI security terms, the publisher identity, automation tokens, build secrets, and release permissions are all part of the attack surface.

Definitions vary across vendors on whether the abuse must involve a stolen account, a compromised signing key, or a hijacked build workflow, but the operational risk is the same: inherited trust becomes a liability when release authority is not continuously verified. NIST’s NIST Cybersecurity Framework 2.0 frames this as a governance and supply chain integrity problem, not just a software distribution issue. Trusted publisher abuse is often confused with dependency confusion or typosquatting, but those attacks exploit naming and resolution, while this one exploits legitimate publishing authority. The most common misapplication is assuming registry verification alone is sufficient, which occurs when teams trust a publisher identity without protecting the underlying credentials and build pipeline.

Examples and Use Cases

Implementing trusted publishing rigorously often introduces release friction, requiring organisations to balance deployment speed against tighter authentication, signing, and approval controls.

  • A compromised maintainer token is used to push a new package version from an approved account, making the artifact appear legitimate to downstream consumers.
  • A CI/CD workflow that stores release secrets is hijacked, allowing an attacker to publish a malicious build through the same path used for normal releases.
  • A signing key tied to a trusted publisher is exfiltrated, and the attacker produces artifacts that downstream tooling accepts as valid.
  • A third-party build integration is abused to release a backdoored dependency, even though the package repository continues to see an authenticated publisher.

For identity and secrets hygiene, the Ultimate Guide to NHIs is directly relevant because publishing trust usually depends on service accounts, API keys, and automation credentials. The NIST Cybersecurity Framework 2.0 is also useful here because it encourages organizations to treat release integrity as part of broader protection and monitoring practices.

Why It Matters in NHI Security

Trusted publisher abuse matters because the compromise is often invisible to the registry and to basic malware scanning. If the publisher identity, pipeline secret, or signing material is treated as permanently trusted, an attacker can turn routine release automation into a durable distribution channel. That creates risk not only for the package itself but for every workload, agent, or service account that later installs or executes it. In NHI environments, this is especially dangerous because non-human identities are numerous, highly privileged, and frequently undergo weak rotation or offboarding discipline. NHI Mgmt Group reports that 96% of organisations store secrets outside secrets managers in vulnerable locations such as code, config files, and CI/CD tools, and 80% of identity breaches involved compromised non-human identities such as service accounts and API keys, as documented in the Ultimate Guide to NHIs.

Practitioners should treat publisher trust as revocable, narrow, and observable, with strong secret rotation, signing-key protection, and separation between build and release privileges. Organisational teams typically encounter the operational impact only after a trusted package has already propagated to downstream systems, at which point trusted publisher abuse becomes unavoidable to investigate and contain.

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 CSA MAESTRO address the attack and risk surface, while NIST CSF 2.0, NIST Zero Trust (SP 800-207) and NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-02 Addresses secret handling and publisher credential compromise in NHI workflows.
NIST CSF 2.0 PR.AC-1 Publisher trust depends on identity and access controls for release systems.
NIST Zero Trust (SP 800-207) SC-2 Trusted publisher abuse exploits implicit trust that Zero Trust seeks to eliminate.
NIST AI RMF AI and agentic build chains inherit risks from compromised publishing identities.
CSA MAESTRO Agentic and automated release workflows must preserve trust boundaries and execution safeguards.

Continuously verify release actions and treat every publishing request as untrusted until proven otherwise.