A dependency reference that points to a Git repository or commit rather than a standard registry package. Attackers use this pattern to create an alternate execution path or hide payloads outside the normal package tarball, which complicates static inspection and dependency trust decisions.
Expanded Definition
An exotic dependency is a dependency reference that resolves to source code outside a standard package registry, usually a Git repository, commit, branch, or tag. In NHI and software supply chain security, the concern is not the dependency mechanism itself, but the way it can bypass familiar registry controls, repeatable release artifacts, and normal provenance checks.
Definitions vary across vendors and tooling ecosystems, because some teams use the term narrowly for Git-sourced packages while others apply it more broadly to any non-registry reference. In practice, the security risk comes from reduced transparency: the referenced code may differ from a published tarball, may change without an obvious version bump, and may obscure where secrets, tokens, or build-time logic are introduced. That makes it harder to evaluate trust in the same way one would for a pinned package from a known registry. The NIST Cybersecurity Framework 2.0 is useful here because its supply chain and governance outcomes map directly to dependency review, provenance, and change control.
The most common misapplication is treating a Git reference as equivalent to a vetted package release, which occurs when commit pinning is used without provenance review or policy enforcement.
Examples and Use Cases
Implementing controls around exotic dependencies rigorously often introduces release friction, requiring organisations to weigh developer speed against the added trust and inspection burden.
- A build pulls a library directly from a Git commit instead of PyPI or npm, so security teams must verify the exact revision and review whether it matches an approved release artifact.
- A dependency is pinned to a branch name, which can drift over time and create non-reproducible builds unless policy requires immutable commit hashes.
- A malicious actor slips payloads into repository-only code paths that never appear in the package tarball, similar to patterns discussed in the LiteLLM PyPI package breach.
- A CI pipeline accepts a Git-based dependency because it is “temporary,” but the reference persists and becomes part of the long-term software bill of materials, complicating later review.
- A third-party maintainer force-pushes repository history, and the build silently consumes different code than the team expected, which is why dependency pinning should be paired with source integrity checks.
Repository-sourced references are not inherently malicious, and in some internal engineering workflows they are necessary; the issue is whether they are governed with the same rigor as registry packages. For a broader view of how dependency exposure turns into identity and secret compromise, see the Schneider Electric credentials breach and guidance from the NIST Cybersecurity Framework 2.0.
Why It Matters in NHI Security
Exotic dependencies matter because they can become an alternate delivery path for code that requests, stores, or exfiltrates secrets used by NHIs. If a repository-based dependency pulls in hidden behavior, the blast radius often includes service account tokens, API keys, signing certificates, and automation credentials rather than only application data. That is especially dangerous in CI/CD, where NHI permissions are frequently broad and operational checks are thin.
NHI Management Group reports that 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools, which makes dependency integrity directly relevant to secret exposure. In that environment, one risky Git reference can undermine otherwise strong access controls, because the compromise lands in the same automation path that provisions and deploys identity-bearing services. The Ultimate Guide to Non-Human Identities and the related LiteLLM PyPI package breach illustrate how software trust issues quickly become NHI trust issues. Organisations typically encounter the need to control exotic dependencies only after a build pipeline has already been abused, at which point dependency governance becomes operationally unavoidable to address.
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 AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 | Covers secret exposure and trust issues that exotic dependencies can conceal. |
| NIST CSF 2.0 | SR-3 | Addresses supply chain integrity and trusted-source verification for dependencies. |
| NIST Zero Trust (SP 800-207) | SA-3 | Zero trust emphasizes continuous verification of software sources and artifacts. |
| NIST AI RMF | AI systems inherit risk when dependencies alter toolchains, models, or execution paths. | |
| OWASP Agentic AI Top 10 | A1 | Agentic tooling can execute dependency code with tool access and credential context. |
Treat repository-based dependencies as untrusted until validated by policy, provenance, and integrity checks.
Related resources from NHI Mgmt Group
- When does a dependency compromise become an identity incident?
- How should teams slow down malicious dependency updates without breaking delivery?
- What is the difference between automating dependency updates and granting them blind trust?
- Should organisations allow pull_request_target for automated dependency workflows?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 2, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org