Join our Newsletter — 33% off our NHI Course
Home› FAQ› Governance, Ownership & Risk› Why do AI agents, MCP servers, and model…
Governance, Ownership & Risk

Why do AI agents, MCP servers, and model files create compliance risk even when code scans pass?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 11, 2026 Domain: Governance, Ownership & Risk

They often carry runtime behaviour, delegated access, or execution paths that traditional code and dependency scanners do not inspect. A clean SAST or SCA result does not prove the model or agent is governed, because the risky behaviour may live in the artefact, configuration, or tool connection rather than the source code.

Why code scans miss the real compliance surface

AI agents, MCP servers, and model files can all change behaviour without changing much source code. Compliance risk appears when the control plane is outside the code path, for example in runtime permissions, model instructions, tool registration, authorization policy, secrets handling, or deployment configuration. That means a clean SAST or SCA result can coexist with a system that is still effectively ungoverned.

Model files are especially deceptive because they can embed instructions, routing, safety bypasses, or tool-use assumptions that scanners treat as inert artefacts. Likewise, an MCP server may expose powerful tools through its authorization model, not through its repository code, so the real control question is what the system can do at runtime, not only what the code imports.

For compliance teams, the important distinction is between static code quality and governed execution. A repository may be free of obvious vulnerabilities while the deployed agent still has delegated access to production data, external APIs, or privileged actions that were never reviewed as part of the scan.

Where the risk actually lives in AI artefacts and tool chains

The risk usually concentrates in the artefact boundary rather than the application source. An agent can inherit permissions from a human, a service account, or an upstream platform, then use tools, plugins, or connectors that were added after code review. In that case, the scan passes because the code is unchanged, while the operational blast radius grows through configuration and trust relationships.

MCP servers deserve particular scrutiny because the security question is often about authorization, audience binding, and token handling, not just server-side code correctness. The same applies to model files that are distributed as “content” but function as executable policy carriers, especially when they determine which tools can be called, which data can be read, or which prompts are trusted.

This is why agentic systems often need governance controls that look more like access review, change control, and runtime policy enforcement than traditional application scanning. If the artefact can trigger actions, move data, or chain tools, it belongs in the compliance scope even when no vulnerable library appears in the dependency tree.

What auditors and security teams should verify instead

Start by asking what the artefact can do after deployment, not what the repository contains before release. If an AI agent can reach external systems, read secrets, invoke tools, or act on behalf of a user, those capabilities should be inventoryable, approved, and periodically revalidated.

It also helps to separate three reviews: code integrity, runtime authorization, and artefact governance. Code scans answer one question, but compliance depends on whether the deployed agent, MCP endpoint, or model package is governed with documented ownership, change history, and access boundaries. When those controls are missing, the system may be technically clean and operationally non-compliant at the same time.

Practitioners should treat indirect execution paths as first-class assets. That includes prompt templates, tool registries, model weights, server configuration, environment variables, and any secret or token that gives the artefact authority. If the control is only visible after launch, then launch-time review and post-deployment monitoring become part of the compliance evidence set.

Risk and Threat Considerations

These systems create a false sense of assurance because standard scanners are built to inspect code structure, not delegated authority or runtime intent. The result is exposure that can persist even when the build looks clean, especially if a model file or MCP server can invoke privileged tools, access sensitive data, or reuse standing credentials.

Failure mechanism: The compliance failure occurs when runtime permissions, tool connections, or embedded instructions change behaviour outside the scanned source tree, leaving unreviewed execution paths in production.

Impact: Organisations can approve software that still violates least privilege, access governance, or change-control expectations, and a compromise of the artefact can then translate directly into unauthorised actions or data exposure.

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 and OWASP Non-Human Identity Top 10 address the attack surface, NIST SP 800-53 Rev 5 and CSA Cloud Controls Matrix set the technical controls, and ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseAI agents and delegated runtime access can create privilege abuse risk beyond code scans.
Recommendation — Enforce per-action authorization and bounded agent privilege before deployment.
OWASP Non-Human Identity Top 10NHI-06 — Insecure Cloud Deployment ConfigurationsMCP servers and model artefacts often fail through runtime configuration, not source code.
Recommendation — Review deployment settings and tool exposure as part of release approval.
NIST SP 800-53 Rev 5CM-5 — Access Restrictions for ChangeRuntime tool connections and authority changes require controlled approval and traceability.
AC-6 — Least PrivilegeThe core compliance issue is excessive runtime authority despite clean scans.
AU-2 — Event LoggingRuntime actions and delegated tool use need evidence beyond source-code inspection.
Recommendation — Restrict and document changes that expand an artefact’s execution authority. Limit each agent, server, and model path to the minimum required privilege. Log agent actions and privileged tool invocations for auditability.
ISO/IEC 27001:2022A.5.15 — Access controlArtifact-driven runtime access must be governed as an access-control issue.
A.8.9 — Configuration managementModel files and MCP servers often carry risk in configuration and deployment state.
A.8.15 — LoggingCompliance evidence requires visibility into what the artefact actually did.
Recommendation — Define and enforce access rules for agents, servers, and model-linked tools. Baseline and review runtime configuration as part of change control. Collect logs that show tool use, data access, and privileged actions.
CSA Cloud Controls MatrixIAM — Identity and Access ManagementAgent and MCP compliance depends on controlling runtime identity and authorisation.
Recommendation — Map each artefact’s effective access paths to an owned IAM control.

Practitioner Guidance

What to verify: Confirm that every AI artefact has an owner, an approved purpose, a defined runtime authority boundary, and a revocation path for tools or credentials it can reach. If you cannot point to the permissions it uses in production, the scan result is incomplete.

Decision rule: If the model, agent, or MCP server can execute actions or access data beyond what the repository itself shows, require runtime governance evidence before treating the release as compliant. If it only passes static scanning, treat that as a code-quality signal, not as control assurance.

Practitioner takeaway: The real question is not whether the artefact’s code is clean, but whether its deployed authority is visible, bounded, and reviewable.

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 October 11, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org