Join our Newsletter — 33% off our NHI Course

Carrier package

A package whose main role is to pull in another malicious dependency and trigger it transitively. Carrier packages increase reach because teams may trust the wrapper while never directly installing the trojan, making dependency graphs and import paths central to security review.

Expanded Definition

A carrier package is a wrapper dependency whose practical purpose is to deliver another payload dependency and cause it to execute transitively. In NHI security, that matters because the package that looks harmless may never itself contain the real malicious logic, yet it still expands the attack surface through dependency resolution, post-install hooks, or runtime imports. The term is most often used in package ecosystems where maintainers, build systems, and automated scanners focus on the visible package name while the payload sits deeper in the graph.

Definitions vary across vendors and incident write-ups, but the core idea is consistent: trust is abused at the boundary between the wrapper and the hidden dependency. That makes this concept adjacent to typosquatting, dependency confusion, and malicious maintainership, but distinct from them because the carrier package’s job is to transitively activate something else. For control mapping, practitioners can use NIST SP 800-53 Rev 5 Security and Privacy Controls as a baseline for software integrity, provenance, and monitoring expectations.

The most common misapplication is treating the top-level package as the only review target, which occurs when dependency trees are flattened by automated tooling and nested imports are not inspected.

Examples and Use Cases

Implementing carrier-package detection rigorously often introduces extra review time and build friction, requiring organisations to weigh developer convenience against stronger supply-chain inspection.

  • A benign-looking installer pulls in a second package at install time, and the wrapper becomes the entry point for credential theft from developer machines or CI runners.
  • A utility package depends on a nested library that performs exfiltration only after a specific import path is triggered, making manual review of the outer package insufficient.
  • A maintainer compromise turns a popular wrapper into a delivery vehicle for a malicious transitive dependency, similar to patterns discussed in the LiteLLM PyPI package breach.
  • A build pipeline allows unsigned or minimally inspected dependencies, so the carrier package bypasses policy checks until the hidden payload executes in test or production environments.
  • Teams use repository allowlists and dependency graph analysis to compare declared dependencies against actual imports, aligning with the verification mindset behind NIST SP 800-53 Rev 5 Security and Privacy Controls.

Carrier packages are especially relevant when organizations consume third-party SDKs, internal mirrors, or AI tooling that auto-installs plugins without clear human review.

Why It Matters in NHI Security

Carrier packages matter because the hidden payload often targets the same non-human identities that already concentrate risk: CI/CD tokens, service accounts, API keys, and automation credentials. NHI Mgmt Group reports that 79% of organisations have experienced secrets leaks, with 77% of those incidents causing tangible damage, and 96% store secrets outside secrets managers in vulnerable locations. A carrier package that reaches a build agent can therefore turn dependency trust into immediate NHI compromise, especially when excessive privileges or weak rotation controls are already present.

This risk also changes governance priorities. Security teams need dependency provenance, import-path inspection, artifact signing, and runtime monitoring rather than reliance on package names alone. The lesson is not just that a package is malicious, but that it can be the delivery layer for a broader identity breach. Organisations typically encounter the operational cost only after a build or deployment compromise exposes secrets, at which point carrier-package analysis becomes unavoidable to contain the blast radius.

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

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-02 Carrier packages rely on hidden dependency delivery and secret exposure.
NIST CSF 2.0 PR.DS Malicious packages threaten data and secret protection in software pipelines.
NIST Zero Trust (SP 800-207) Zero Trust requires continuous verification of software and identity trust boundaries.
NIST SP 800-63 Carrier packages often target credentials used by non-human identities.
OWASP Agentic AI Top 10 Agentic tooling can import carrier packages through plugins and toolchains.

Inspect dependency graphs, provenance, and secret handling for wrapper packages before trust is granted.