They often treat dependency risk as a separate supply chain problem rather than part of the coding workflow. In agentic development, assistants can suggest, add, or install packages faster than a human can judge them. That means package trust, SBOM coverage, and malware detection need to sit directly in the developer path.
Why Security Teams Misread Dependency Risk in Agentic Development
Dependency risk in agentic development is not just a package review problem. It is a trust problem embedded in the same workflow where code is proposed, modified, and executed. When an assistant can recommend a library, add it to a manifest, or trigger installation faster than a human can inspect it, the usual review gates arrive too late. That is why the issue sits closer to secure development than to a separate supply chain checklist, as highlighted in the OWASP Agentic AI Top 10 and the Analysis of Claude Code Security.
Teams also underestimate how quickly an agent can turn a small dependency choice into a broader execution path. A malicious or low-quality package can introduce code execution, data exfiltration, or hidden network calls, especially when the agent has permission to chain tools. NHIMG research on the OWASP NHI Top 10 shows that trust boundaries in agentic systems are often treated as static even though the workload is dynamic. In practice, many security teams encounter dependency abuse only after an agent has already pulled the package and executed the code path, rather than through intentional prevention.
How Dependency Trust Has to Work Inside the Coding Path
For agentic development, dependency controls need to operate where the assistant actually makes decisions. Current guidance suggests three controls belong in the developer path itself: package allowlisting, provenance and signature checks, and malware or policy scanning before installation or execution. That means the agent should not simply be told to "use approved packages"; it should be constrained by runtime policy and workflow guardrails that can block untrusted artifacts in the moment.
Practically, security teams should treat the assistant as an actor that can accelerate both good and bad choices. A safe setup usually combines repository policies, dependency scoring, software bill of materials coverage, and prompts or tool policies that prevent silent installs. The same principle applies to generated code that imports new modules without review. NIST AI Risk Management Framework helps frame this as a governance problem, while the CSA MAESTRO agentic AI threat modeling framework is useful for thinking about tool use, supply chain exposure, and agent autonomy together.
- Gate dependency installation through policy-as-code, not only developer preference.
- Require provenance, signature, or registry validation before an agent can import or update packages.
- Scan for malware, typosquatting, and suspicious transitive dependencies at request time.
- Keep SBOM data current so the agent path and the build path are aligned.
- Log assistant-suggested dependency changes separately from human-approved changes.
NHIMG’s reporting on incidents such as the Amazon Q AI Coding Agent Compromised and the Replit AI Tool Database Deletion shows how quickly tool-using systems can move from suggestion to harmful action. These controls tend to break down in fast-moving CI/CD environments because package approval, build execution, and agent autonomy often share the same trust boundary.
Common Failure Patterns and Where the Model Breaks Down
Tighter dependency control often increases developer friction, requiring organisations to balance speed against assurance. That tradeoff is real, especially when teams want agentic coding to feel fluid. Best practice is evolving, and there is no universal standard for how much package autonomy an assistant should have by default. The practical mistake is assuming that the answer is either full freedom or full lockdown.
Edge cases usually appear in environments with private registries, monorepos, or ephemeral build agents. In those settings, an overzealous allowlist can block legitimate dependency updates, while a permissive setup lets the assistant fetch unreviewed transitive packages. Another common gap is focusing on malware detection alone. Malware scanning helps, but it does not solve provenance, maintainer compromise, or prompt-driven dependency substitution. The better pattern is layered trust: policy at the point of suggestion, verification at import, and auditability at build time. That is consistent with the direction of the State of Non-Human Identity Security, where visibility and control gaps repeatedly show up before teams have confidence in their controls.
Security teams should also distinguish between human developer intent and agentic execution. A person may approve a library name, while the agent resolves a different package, version, or transitive chain. When that happens, the failure is not just supply chain risk. It is an authorization gap inside the coding workflow, and that is why agentic development needs runtime governance, not just post hoc review.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10, CSA MAESTRO and OWASP Non-Human Identity Top 10 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 Agentic AI Top 10 | A2 | Agentic coding increases tool and dependency abuse risk at decision time. |
| CSA MAESTRO | T1 | MAESTRO addresses threat modeling for tool-using agent workflows. |
| NIST AI RMF | GOVERN | AI RMF governance covers accountability for autonomous code actions. |
| OWASP Non-Human Identity Top 10 | NHI-03 | Agent-installed packages often rely on secrets and tokens that need control. |
| NIST CSF 2.0 | PR.DS-6 | Software integrity and provenance are central to dependency trust. |
Block untrusted package actions with runtime policy checks before the agent installs or imports them.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 19, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org