Security teams should treat AI stacks as modular and identity-aware, not as a single provider bundle. Keep the model, interface, sandbox, and data layers replaceable, and route access through centralized identity, logging, and guardrails. That reduces switching friction, preserves visibility, and lowers the chance that business units bypass approved tools when vendor terms, pricing, or capabilities change.
Why This Matters for Security Teams
AI platform lock-in becomes a security issue when the model, sandbox, data plane, and guardrails are delivered as one bundle and teams lose the ability to change one layer without disturbing the rest. That creates hidden dependency risk, weakens inspection, and makes it harder to enforce consistent identity, logging, and policy controls across vendors. Current guidance from the NIST Cybersecurity Framework 2.0 still points to governance, access control, and continuous monitoring as core outcomes, but those outcomes are harder to sustain when architecture choices are tied to a single supplier.
Practitioners also need to treat vendor concentration as a resilience problem, not just a procurement issue. NHIMG research on the The State of Non-Human Identity Security shows that only 1.5 out of 10 organisations are highly confident in securing NHIs, and that lack of credential rotation, monitoring gaps, and over-privileged accounts remain common attack drivers. In AI stacks, those same weaknesses become easier to inherit when tools, sandboxes, and secrets are all governed inside one platform boundary. In practice, many security teams discover lock-in only after a vendor change, audit request, or incident response exercise exposes how tightly the stack was coupled.
How It Works in Practice
The safest pattern is to make each layer independently replaceable while centralising control over identity and policy. The model should be selectable through a stable interface. The sandbox should be isolated from the provider and resettable on demand. Data access should flow through approved connectors, not embedded credentials. Guardrails should evaluate requests at runtime rather than only at build time, because the security decision is about what the agent or workload is trying to do right now.
For implementation, teams usually benefit from four design moves:
- Use workload identity for every AI service, agent, and sandbox so access is tied to cryptographic proof of the workload, not to a vendor account.
- Keep secrets short-lived and scoped to a task, then revoke them automatically when the task ends.
- Route logs, prompts, and tool calls into a central telemetry layer so switching model providers does not erase audit history.
- Separate policy from platform by expressing rules in code and evaluating them at request time.
This is where frameworks like the McKinsey AI platform breach case study matter: coupling business workflow, data access, and AI interaction inside one stack can turn a platform flaw into broad exposure. A practical control set also benefits from standards such as the NIST Cybersecurity Framework 2.0, especially where teams need to preserve visibility and accountability across changing providers. These controls tend to break down when proprietary connectors, embedded credentials, or provider-specific sandboxes prevent the security team from enforcing identity and logging outside the vendor boundary.
Common Variations and Edge Cases
Tighter modularity often increases integration overhead, requiring organisations to balance portability against speed of delivery. That tradeoff is real, especially when product teams want the fastest route to production and security teams want reusable controls. Current guidance suggests that portability is most valuable where model choice, data sensitivity, or regulatory pressure is likely to change over time.
Some environments are harder than others. A startup with a single vendor and low data sensitivity may accept limited portability for simplicity, while a regulated enterprise should avoid hard dependencies on vendor-managed sandboxes, opaque logs, or proprietary identity models. Another common edge case is agentic or multi-tool workflows: if an AI agent can chain actions across systems, lock-in is not just about the model API, but about whether identity, policy, and audit controls can follow the workload across tools. That is why the Ultimate Guide to NHIs — Key Research and Survey Results is useful as a broader reference point for identity governance maturity, even when the immediate question is vendor choice.
There is no universal standard for AI platform portability yet, so teams should define exit criteria up front: exportable logs, portable secrets handling, decoupled policy, and a tested migration path for data and workloads. Where those conditions cannot be met, the platform is already creating lock-in, whether or not procurement has labelled it that way.
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, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | GV.OC-01 | Vendor lock-in is a governance and risk ownership problem across the AI stack. |
| NIST AI RMF | GOVERN | AI RMF GOVERN covers accountability and lifecycle oversight for AI platform choices. |
| OWASP Non-Human Identity Top 10 | NHI-01 | AI platforms rely on NHIs, secrets, and service identities that can create hidden dependency risk. |
| OWASP Agentic AI Top 10 | A1 | Agentic stacks need portable identity and policy controls to avoid provider coupling. |
| CSA MAESTRO | MA-03 | MAESTRO emphasizes secure orchestration and control separation in agentic AI systems. |
Inventory NHI use across model, sandbox, and data layers and remove embedded long-lived credentials.
Related resources from NHI Mgmt Group
- How should security teams govern machine identity credentials in agentic AI environments?
- How should security teams manage permissions for AI agents?
- How should security teams govern AI agents that use OAuth access?
- How should security teams limit the risk from AI agents that have access to production systems?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org