Treat AI frameworks as governed infrastructure, not incidental libraries. Build an inventory of every service that uses them directly or transitively, track versions, and map the data each instance can reach. If you cannot see the framework, you cannot scope its access, patch it reliably, or explain the blast radius after an incident. Visibility is the first control.
Why This Matters for Security Teams
Hidden AI framework dependencies are not a software hygiene issue, they are an access and exposure issue. A framework buried in a base image, transitive package, or vendor appliance can inherit network reach, secret access, and data permissions without appearing in the security review. That makes patching, incident scoping, and audit evidence incomplete. Current guidance suggests treating these frameworks as part of the trust boundary, not as incidental code, which aligns with the control expectations in NIST Cybersecurity Framework 2.0 and NHI lifecycle discipline described in Ultimate Guide to NHIs — Lifecycle Processes for Managing NHIs.
The risk rises when AI workloads are coupled to secrets, service accounts, or third-party integrations that are not tracked by standard CMDB processes. The same blind spot shows up in industry research: 85% of organisations lack full visibility into third-party vendors connected via OAuth apps, which is a useful proxy for how often dependency visibility lags behind actual access paths. In practice, many security teams only discover the hidden framework after an incident forces a rebuild of the dependency tree from logs and container layers.
How It Works in Practice
Security teams should inventory AI frameworks at three levels: source repositories, build artefacts, and runtime environments. That means scanning dependency manifests, container layers, package locks, and deployment templates, then mapping each framework instance to the identities, data stores, and external APIs it can reach. The inventory should also capture version, owner, update path, and whether the framework is embedded directly, inherited transitively, or introduced by a managed platform.
From there, the operational question is whether the framework can be constrained independently of the application that uses it. Where possible, isolate it behind workload identity, short-lived credentials, and tightly scoped network policy. This is especially important when the framework brokers tool access or can call downstream systems on behalf of an AI agent. The governance model should follow NHI lifecycle processes and be consistent with the principles in Ultimate Guide to NHIs — Standards and the trust-boundary thinking in NIST Cybersecurity Framework 2.0.
- Track framework ownership so patching does not depend on tribal knowledge.
- Bind each runtime instance to a workload identity rather than a shared service account.
- Rotate secrets used by framework connectors and revoke unused integrations quickly.
- Log framework calls separately from application calls to preserve incident evidence.
Where the framework supports autonomous or tool-using behaviour, add policy checks at request time so access decisions reflect the task, data sensitivity, and execution context. These controls tend to break down when frameworks are packaged inside vendor-managed appliances with opaque update cycles because the team cannot verify what is actually running.
Common Variations and Edge Cases
Tighter dependency control often increases engineering overhead, requiring organisations to balance visibility against delivery speed. That tradeoff is especially sharp in fast-moving AI stacks, where a small framework update can change model routing, tool invocation, or secret handling in ways that are hard to predict. Best practice is evolving, but there is no universal standard for this yet.
One edge case is the “approved platform” assumption, where teams believe a managed AI service eliminates framework risk. It does not. Hidden dependencies still exist in containers, sidecars, plugins, and orchestration layers, and they may introduce new secret paths or outbound connections. Another common failure mode is overreliance on static RBAC. For dynamic AI workloads, static role definitions often lag behind actual behaviour, so teams should prefer context-aware controls and tight credential lifetime rather than broad, standing access. The visibility lessons from Top 10 NHI Issues and the incident patterns described in DeepSeek breach both point to the same operational reality: if the dependency is hidden, the exposure is usually hidden too.
For regulated environments, the minimum acceptable response is documented ownership, verified versioning, and evidence that the framework cannot reach more data than its task requires. In practice, teams get this wrong when a harmless-looking library update silently expands tool access or secret scope before anyone notices.
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 AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Hidden frameworks often rely on stale secrets and unmanaged identity. |
| CSA MAESTRO | MAESTRO covers securing autonomous AI systems and their tool access. | |
| NIST AI RMF | AI RMF helps govern opaque dependencies through risk and accountability. |
Inventory framework identities, then rotate and scope their credentials to the minimum needed.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on June 2, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org