By NHI Mgmt Group Editorial TeamBased on Cycode: “AI Governance: From Visibility to Enforcement Across the Developer Surface” (February 19, 2026)

TL;DR: AI governance must now track AI code assistants, MCP servers, models, packages, and secrets across the developer surface, then enforce authorization decisions where developers work, according to Cycode. The shift matters because discovery without control leaves shadow AI, unvetted data flows, and leaked API keys outside existing AppSec and identity governance models.


At a glance

What this is: Cycode argues that AI governance in developer environments must move beyond visibility into continuous authorization and enforcement for tools, models, MCP servers, packages, and secrets.

Why it matters: For IAM, NHI, AppSec, and AI security teams, the issue is not just discovery but control over who and what can use AI capabilities where development actually happens.


Context

AI governance in developer environments is the control problem of knowing what AI capabilities exist, deciding whether they are allowed, and enforcing that decision where developers work. The article frames the issue as a gap between rapid adoption of assistants, MCP servers, models, packages, and embedded secrets, and the slower governance processes built for traditional software change.

That gap matters because AI adoption creates both application-security and identity-risk exposure. Developer workflows can introduce unapproved tools, unvetted data flows, and AI credentials that behave like non-human identities, so governance must extend beyond inventory into authorization, policy enforcement, and operational accountability.


Key questions

Q: What breaks when AI tools run locally without endpoint governance?

A: When coding assistants and MCP servers run locally, central gateways lose visibility into prompts, tool calls, and adjacent credentials. The result is a policy gap: approved use at the platform layer but unmanaged behaviour on the endpoint. Security teams then struggle to answer who accessed what, with which tools, and under what authority.

Q: Why do MCP-based plugins increase governance risk when trust is left to each client?

A: Because the runtime client, not the package, decides how access is enforced. If policy is local and inconsistent, a plugin can inherit broader tool access or weaker secret handling in one environment than another. That creates fragmented accountability and makes least privilege hard to prove across the same deployment pattern.

Q: How do security teams know if AI governance is working?

A: Look for evidence that access decisions are reviewable, permissions are revocable, and exceptions are not becoming permanent. If the team cannot explain who owns an AI workflow, what it can reach, and when its access was last reviewed, governance is incomplete. Control maturity shows up in traceability, not adoption volume.

Q: Should teams treat AI agent keys like human user credentials?

A: No. AI agent credentials behave more like runtime workload identities than human logins, so human-style review cadences are too slow and too coarse. The better comparison is to machine identity lifecycle governance, where issuance, scope, delivery, and revocation are designed for non-stop execution rather than user sessions.


Technical breakdown

AI inventory as a governance control

An AI inventory is not a catalog for reporting alone. In practice, it is the system of record for AI code assistants, models, infrastructure platforms, MCP servers, secrets, and packages that enter software delivery. Without that inventory, policy cannot be scoped, exceptions cannot be tracked, and ownership cannot be assigned. The key technical issue is that discovery has to be continuous because the toolchain changes faster than periodic reviews can capture. For security teams, the inventory becomes the basis for approval state, remediation routing, and audit evidence.

Practical implication: establish continuous discovery for AI components before attempting policy enforcement or approval workflows.

Authorization states turn discovery into policy

Authorization is the mechanism that converts a detected AI asset into a governed decision. A three-state model of needs review, authorized, and unauthorized is useful because it forces every new AI component into an explicit lifecycle rather than an informal exception path. The important control point is not the detection event itself but the enforcement semantics attached to the state. If a tool is unauthorized, the governance model should treat its use as a policy violation with context, severity, and ownership attached so triage can be automated.

Practical implication: define clear authorization states and ensure each state triggers a distinct operational response.

Why MCP guardrails need runtime enforcement

MCP servers expand the developer attack surface because they can execute commands, call APIs, read files, and interact with external services from within normal developer workflows. That makes them closer to privileged integrations than passive plugins. The risk is amplified when servers request broad scopes or are consumed through natural-language prompts that blur intent and execution. Governance therefore has to work at the point of invocation, not only in policy documents, because once an MCP connection is established, the server can move data or actions into systems that the user did not consciously re-authorize.

Practical implication: enforce MCP restrictions at the IDE or runtime layer, not only in pre-approval reviews.


Threat narrative

Attacker objective: The attacker objective is to exploit developer trust in AI tooling to gain access to secrets, data flows, or connected services that were never formally approved.

  1. Entry occurs when developers add AI code assistants, MCP servers, packages, or API keys into their workflow without security visibility.
  2. Credential and trust abuse follow when unvetted AI services, tokens, or MCP scopes provide access to files, APIs, or connected systems beyond intended boundaries.
  3. Impact lands as shadow AI, leaked secrets, unapproved data flows, and an expanded attack surface that governance teams cannot reliably audit or contain.
  • Hugging Face Spaces breach 2024: Unauthorised access to Hugging Face Spaces may have exposed secrets users stored for AI apps; tokens were revoked and org tokens removed.
  • Dropbox Sign breach 2024: A compromised back-end service account gave attackers Dropbox Sign customer data, including API keys, OAuth tokens and MFA information.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

AI governance has crossed from inventory to control enforcement. Discovery alone does not change risk when developers can still activate unapproved tools, models, and connectors. The operating model now has to decide, in near real time, whether an AI component is permitted and where that decision is enforced. For practitioners, the meaningful shift is from visibility as a reporting exercise to governance as an executable control.

Developer AI tooling creates a new identity boundary that traditional AppSec does not fully cover. API keys, tokens, MCP servers, and connected AI services behave like machine identities embedded in the software factory. That means approval, revocation, and auditability are now part of both IAM and application governance, not separate concerns. Practitioners should treat AI credentials and connectors as governed identities with lifecycle ownership.

MCP governance exposes the difference between policy and runtime control. A policy that marks a server unauthorized is only useful if the developer environment can stop its use before data access occurs. This is a named enforcement gap that many programmes miss: governance written at review time but not enforced at execution time. Practitioners should assume the control fails where the workflow remains able to bypass the policy.

Shadow AI is becoming a compliance and exposure problem before it is a model-risk problem. The article shows that unmanaged AI adoption introduces data paths, secrets exposure, and audit gaps even when no model itself is compromised. That makes the immediate issue operational governance, not abstract AI policy. Practitioners should align AI oversight with software supply chain and identity lifecycle controls, especially where secrets and connector permissions are involved.

AIBOM discipline is now a prerequisite for trustworthy AI adoption. A living AI bill of materials gives teams a way to connect discovery, ownership, approval state, and exposure path in one control plane. Without that, enforcement becomes inconsistent and exceptions accumulate faster than reviews can clear them. Practitioners should treat AI inventory quality as a control objective, not an administrative output.

From our research library:

What this signals

AIBOM discipline is becoming a practical control, not a documentation exercise: teams now need a living inventory that ties AI assistants, MCP servers, models, packages, and secrets to ownership and approval state. Without that linkage, enforcement becomes a matter of luck rather than governance, and the developer surface stays opaque to both security and audit functions.

Developer AI tooling should be treated as part of the identity plane when it carries credentials, access scopes, or delegated actions. That means teams need to review AI secrets with the same discipline they apply to other machine identities, because the exposure path is the same even when the interface is a coding assistant or an MCP connector.


For practitioners

  • Build a living AI inventory Track code assistants, MCP servers, models, AI packages, infrastructure platforms, and AI secrets as separate governed asset classes with owners and review states.
  • Attach explicit authorization states Assign every newly discovered AI component to needs review, authorized, or unauthorized, and tie each state to a defined workflow outcome.
  • Block unauthorized MCP execution at runtime Stop developers from using MCP servers that fail review by enforcing the decision inside the IDE or connected workflow before data access occurs.
  • Treat API keys and tokens as governed machine identities Track AI service credentials with the same ownership, revocation, and audit expectations used for other non-human identities.
  • Define policy for localhost-only MCP use Allow approved MCP servers to run locally when needed, but prevent them from reaching production or remote infrastructure unless separately authorised.

Key takeaways

  • AI governance in the developer toolchain fails when visibility is treated as the end state rather than the first control.
  • AI assistants, MCP servers, packages, and secrets create a governance surface that spans AppSec, IAM, and audit accountability.
  • Enforcement has to happen where developers work, or unauthorized AI usage will continue to outpace policy reviews.

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 define the specific risk controls and attack patterns relevant to this term.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageThe article repeatedly discusses leaked API keys and tokens in AI developer workflows.
NHI-04 — Insecure AuthenticationAI services, MCP servers, and tokens rely on authentication paths that must be governed.
NHI-05 — Overprivileged NHIMCP servers and AI services often request scopes broader than the task requires.
Recommendation — Scan developer environments for exposed AI secrets and revoke anything discovered outside approved scope. Validate how AI tools authenticate and block any connector that bypasses approved identity controls. Reduce AI connector scopes to the minimum access needed for each approved use case.
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseThe article describes governance failures where delegated AI access can be used beyond intended scope.
Recommendation — Constrain delegated AI privileges so tool access cannot exceed the approved trust boundary.

Key terms

  • AI Governance: AI governance is the set of controls used to discover, classify, approve, restrict, monitor, and revoke AI-enabled access. It connects identity, data, and policy so organisations can manage what AI can reach, what it can share, and when it should be stopped.
  • MCP Server: An MCP server is a tool endpoint that connects an AI agent to external systems and data sources through Model Context Protocol. Because it extends what the agent can reach, it becomes part of the identity and access surface and must be reviewed like any other privileged connector.
  • AIBOM: An AI Bill of Materials is a structured inventory of the components, data sources, prompts, connectors, and dependencies that shape an AI system. It helps security teams understand what the model can access, where risk enters the stack, and which changes require governance review.
  • Shadow AI: AI agents, copilots, or connected tools operating without full visibility or governance from security teams. Shadow AI becomes an identity problem when those systems authenticate with unmanaged tokens, service accounts, or OAuth apps that can reach production resources.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management. It helps security and identity practitioners apply lifecycle control to the credentials and delegated access paths that modern AI toolchains depend on.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 20, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org