Join our Newsletter — 33% off our NHI Course
Home FAQ Cyber Security Why do MCP connections increase risk when LLMs…
Cyber Security

Why do MCP connections increase risk when LLMs can reach developer tools and CI/CD systems?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated August 24, 2026 Domain: Cyber Security

MCP increases risk because it gives an LLM structured access to real systems, including files, commands, logs, and pipelines. That expands the chance of secret exposure, command injection, dependency tampering, and overprivileged execution. The core issue is boundary control. If the server cannot validate intent and scope, automation can cross from helpful assistance into unsafe system change.

Why This Matters for Security Teams

MCP changes the risk profile because it turns an LLM from a text-producing system into a system that can invoke developer tools, inspect files, and trigger operational workflows. That is not just another integration layer. It creates a decision point where model output can become a real-world action, often faster than human review can intervene. Current guidance suggests that the critical issue is not the transport itself, but whether the server can constrain scope, intent, and privilege at runtime.

This is why MCP should be evaluated alongside the broader agentic AI attack surface documented in OWASP Agentic Applications Top 10 and the control expectations in the OWASP Top 10 for Agentic Applications 2026. Once a model can access CI/CD, package registries, or secret stores, the blast radius includes code integrity, build provenance, and release trust. NHIMG research on Guide to the Secret Sprawl Challenge shows how quickly secrets exposure becomes an operational problem when automated workflows are allowed to roam across environments.

In practice, many security teams encounter this only after an MCP-enabled assistant has already touched a pipeline, a repo, or a token it was never meant to see.

How It Works in Practice

The safest way to think about MCP is as a controlled execution boundary, not a generic AI integration. An LLM should not receive broad standing access to developer tools. Instead, access should be issued per task, tied to workload identity, and verified against the specific action being requested. That means the policy engine evaluates the request at runtime, rather than assuming the model can be mapped to a fixed human role.

In practice, that usually means combining short-lived credentials, narrow tool scopes, and strong logging. A model that needs to read build logs should not also be able to modify deployment variables or fetch secrets from a vault. Where possible, use workload identity primitives and ephemeral tokens so the agent proves what it is and what it is allowed to do at the moment of the request. The NIST AI Risk Management Framework and CSA MAESTRO agentic AI threat modeling framework both align with this runtime-first posture.

  • Issue JIT access for one task, not reusable long-lived tokens.
  • Separate read, write, and execute permissions for each MCP server.
  • Log tool calls, retrieved data, and downstream side effects.
  • Block secrets from model-visible context unless they are absolutely required.
  • Revoke credentials automatically when the task completes or changes scope.

NHIMG analysis of Analysis of Claude Code Security shows why this matters in code-centric workflows: once an assistant can propose, patch, and execute, the line between help and system change disappears without tight control gates. These controls tend to break down when MCP is wired into shared CI/CD runners with inherited credentials, because the agent can pivot from observation into deployment before policy or review catches up.

Common Variations and Edge Cases

Tighter MCP controls often increase operational friction, requiring organisations to balance faster automation against stronger containment. That tradeoff is real, especially in developer environments where teams expect fast iteration and broad tool access. Best practice is evolving, but there is no universal standard for this yet: the safest pattern is still least privilege, runtime authorisation, and aggressive credential expiry.

Edge cases usually appear where the assistant is allowed to chain multiple tools, such as reading source, editing config, and triggering CI/CD from the same session. In those environments, static RBAC breaks down because the model’s next action is not reliably predictable from its initial prompt. The safer approach is intent-based authorisation, where the server decides whether a specific action matches the current task context. This is especially important when MCP endpoints can reach package managers, deployment pipelines, or secret managers. NHIMG’s reporting on Moltbook AI agent keys breach and AI LLM hijack breach illustrates how exposed keys and weak boundaries quickly become lateral movement paths once an agent is allowed to act on its own.

The biggest exception is highly regulated or air-gapped environments, where tool access is already constrained and all actions pass through human approval. Even there, the risk does not disappear. It simply shifts to approval bypass, overbroad service accounts, and hidden credential reuse across the pipeline.

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, OWASP Non-Human Identity Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10A2Covers unsafe tool use and over-privileged agent actions through MCP.
OWASP Non-Human Identity Top 10NHI-03Addresses secret sprawl and credential exposure in MCP-connected workflows.
CSA MAESTROTMS-04Maps to threat modeling for agent toolchains and CI/CD reachability.
NIST AI RMFSupports runtime governance and accountability for autonomous AI actions.
NIST Zero Trust (SP 800-207)AC-4Zero trust aligns with request-level authorization for MCP tool access.

Define ownership, risk checks, and escalation paths for each MCP-enabled agent workflow.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on August 24, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org