Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› DevDependencies
Cyber Security

DevDependencies

← Back to Glossary
By NHI Mgmt Group Updated November 4, 2026 Domain: Cyber Security

Packages used during development and build time, but not necessarily shipped in the final production bundle. They are risky because they can run with direct access to the host environment, including files, network connections, and credentials on developer machines or CI runners. That makes them a high-value target for supply chain abuse.

What DevDependencies Actually Are in the Software Supply Chain

DevDependencies are packages that support development, testing, bundling, linting, and other build-time tasks rather than the final runtime application. That distinction matters because they often execute on developer laptops and CI runners, where they can access source code, internal networks, environment variables, and secret material.

They are not inherently unsafe, but they expand the trusted software surface during build and integration work. In practice, a dev dependency can become an entry point for malicious code, compromised maintainers, or typosquatting if it is treated as routine “tooling” instead of production-relevant software.

Why DevDependencies Matter for Security

The security issue is not just whether a package ships to end users. A dev dependency may still run arbitrary code during install or build steps, and that code can interact with the local filesystem, package manager hooks, network endpoints, and cached credentials. That makes the development environment part of the attack surface, not a neutral staging area.

This is especially important in automated pipelines, where the same dependency set may be installed repeatedly across ephemeral runners. If a malicious package gains execution during build, it may exfiltrate tokens, tamper with artifacts, or alter the build process before the final bundle is created.

Practically, the danger is supply-chain abuse through a trusted build path. Tools such as SLSA are relevant because they focus on build provenance and integrity, which is exactly where dev dependencies can affect the trustworthiness of software artifacts.

Common Ways DevDependencies Become a Risk

DevDependencies become risky when they are granted more access than their job requires. A package used only for formatting or test execution can still read secrets from environment variables, reach package registries, or modify files in the working tree if the build process allows it.

They also create an indirect trust problem: developers tend to review runtime code more carefully than build tooling, even though build tooling may have broader access during installation. That imbalance gives attackers a path to hide harmful behaviour in the “non-production” layer.

Frameworks that address software supply chain integrity, including NIST SP 800-53 Rev 5 Security and Privacy Controls, help here because control families such as configuration management, system integrity, audit, and access control all intersect with how build-time code is approved and executed.

How Teams Should Think About Trust and Control

DevDependencies should be treated as governed build inputs, not as harmless conveniences. The right question is not only “does this ship to production?” but also “what can this package do while the software is being built?”

That means build systems should minimize what is exposed to dependency installation, and teams should distinguish between packages that are needed for reproducible builds and packages that are merely convenient. In broader program terms, security baselines such as CIS Benchmarks support hardening the hosts and runners that execute these packages, while software assurance practices help reduce dependency risk across the delivery pipeline.

For organisations that want a more complete supply-chain view, OWASP SAMM is useful because it frames secure development as a maturity problem, not just a code-review problem. The point is to make dependency governance part of the engineering process rather than an afterthought.

How DevDependencies Fit Into Secure Build Practice

A mature approach separates runtime dependencies from build-time dependencies, but it does not stop there. Teams also need to know which packages are allowed to execute scripts, which registries are trusted, and which build stages are permitted to touch secrets or signing material.

That is why provenance, verification, and least-privilege build design matter. If a dev dependency is compromised, the blast radius depends on what the build environment can access and whether the pipeline assumes build tools are inherently safe. The more privileged the runner, the more damaging that assumption becomes.

Supply-chain security guidance such as NIST SP 800-57 Key Management is relevant where build systems handle signing keys or other sensitive cryptographic material, because dependency execution should never be able to expose or misuse those assets.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

SLSA, NIST SP 800-53 Rev 5, CIS Controls v8 and OWASP SAMM set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
SLSASupply-chain Levels for Software ArtifactsDevDependencies can alter build provenance and artifact integrity.
Recommendation — Use SLSA to verify build provenance and restrict untrusted dependency execution.
NIST SP 800-53 Rev 5CM-5 — Access Restrictions for ChangeBuild-time packages can modify software and build inputs during controlled change activity.
SI-7 — Software, Firmware, and Information IntegrityCompromised dev dependencies can tamper with source, build outputs, or integrity checks.
Recommendation — Apply CM-5 to restrict which build-time changes and scripts can run in your pipeline. Use SI-7 to validate software integrity and detect tampering in dependency-driven builds.
CIS Controls v8CIS-16 — Application Software SecurityDevDependencies are part of the software delivery chain and need secure development governance.
Recommendation — Apply CIS-16 to govern third-party package use and secure the build process.
OWASP SAMMArchitecture — ArchitectureSAMM addresses secure design and governance for software delivery decisions, including dependency trust.
Recommendation — Use SAMM to make dependency governance part of secure software development maturity.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

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