By NHI Mgmt Group Editorial TeamDomain: Cyber SecuritySource: Arxan TechnologiesPublished June 18, 2026

TL;DR: AI-assisted testing becomes more useful when assistants can connect to real browsers, mobile devices, and execution environments through Model Context Protocol, according to Arxan Technologies. The governance question is no longer whether AI can draft tests, but whether the testing ecosystem can safely expose the tools and context needed to execute them.


At a glance

What this is: This is an analysis of how Model Context Protocol is extending AI-assisted testing from test generation into real browser and mobile execution.

Why it matters: It matters because identity, access, and governance controls now have to cover AI assistants that can reach testing tools, environments, and reporting systems as part of the quality workflow.

By the numbers:

  • Only 44% of developers are reported to follow security best practices for secrets management, exposing a significant developer behaviour gap.
  • When AWS credentials are exposed publicly, attackers attempt access within an average of 17 minutes and as quickly as 9 minutes in some cases.

👉 Read Arxan Technologies' analysis of MCP-enabled AI testing ecosystems


Context

Model Context Protocol is a structured way for AI assistants to connect to external tools and data sources instead of remaining confined to a chat interface. In testing workflows, that changes the governance problem from simple test generation to controlled execution across browsers, devices, CI/CD pipelines, and reporting systems.

The security issue is not just automation. It is delegated access to real environments, which creates an identity and authorisation question for AI-assisted testing teams: who or what is allowed to trigger runs, select devices, retrieve results, and interact with the systems that hold evidence and build artefacts? That intersection is where NHI governance becomes relevant, even in a testing-focused article.

For teams already operating across web, mobile, cloud testing infrastructure, and device farms, the article reflects a broader industry pattern: AI is moving closer to execution, and the surrounding control model is still catching up. That starting position is becoming typical, not exceptional.


Key questions

Q: How should security teams govern AI coding assistants that can execute commands?

A: Treat them as delegated non-human identities with bounded execution authority. Require human approval for destructive commands, keep command scopes narrow, and log every tool action. The key control question is not whether the assistant is helpful, but whether it can be prevented from acting outside intended scope when prompts, context, or rules are manipulated.

Q: Why do AI-assisted execution workflows create more risk than test generation alone?

A: Because execution reaches live systems, not just text output. A generated test cannot access a device farm, collect artefacts, or reuse credentials, but an execution-capable assistant can. That expands the control problem from content quality to runtime authorisation, session scoping, and evidence handling.

Q: What breaks when AI testing integrations are not scoped like privileged connectors?

A: The assistant can inherit more authority than the test needs. That leads to credential reuse, unclear audit trails, overbroad device access, and difficulty revoking access when the workflow changes. The result is an automation path that behaves like standing privilege instead of controlled delegation.

Q: How do teams compare static test generation with runtime test execution governance?

A: Static generation needs content review, but runtime execution needs access control, logging, and revocation. The difference is whether the output stays advisory or is allowed to interact with live environments. For practitioners, execution governance is the stricter model because it affects real systems and evidence stores.


Technical breakdown

How MCP connects AI assistants to test infrastructure

Model Context Protocol is a structured interface that lets an AI assistant call external tools with a defined context, rather than improvising access through ad hoc prompts or brittle scripting. In testing, that means the assistant can request a browser session, target a device, or retrieve execution evidence through a governed connection layer. The architectural shift is important because the assistant is no longer only producing text. It is participating in a workflow that crosses application boundaries, execution environments, and result stores. That makes the quality of the integration layer, not just the model output, the real control point.

Practical implication: treat MCP endpoints as privileged integration surfaces and review their authentication, scoping, and logging before exposing them to assistants.

Why browser and mobile testing need different governance than static generation

Static test generation only creates instructions, but execution requires live access to browsers, mobile apps, device farms, and test telemetry. Those environments are stateful and often hold session data, credentials, screenshots, and failure artefacts, which means the assistant may interact with material that is sensitive even when the test itself is not. The move from generation to execution therefore introduces runtime authorisation, session scoping, and evidence handling as first-class concerns. In practical terms, the question is not whether AI can author a test. It is whether the execution path is constrained enough to prevent uncontrolled access or unintended reuse of testing credentials.

Practical implication: separate test authoring permissions from test execution permissions and scope both to the smallest environment set possible.

Why ecosystem integration creates a new non-human access surface

As tools such as WebdriverIO, cloud test providers, and reporting systems become connected through AI workflows, the assistant itself begins to resemble a non-human identity that needs governance. That does not mean every tool-using system is an autonomous agent, but it does mean the access path must be treated as a machine-mediated identity boundary. Secrets, tokens, service accounts, and delegated credentials can all be used to bridge the assistant to the environment. Without lifecycle controls, the access path becomes harder to audit, rotate, and revoke than a traditional user session.

Practical implication: inventory AI-assisted test workflows as NHI-like access paths and apply the same lifecycle discipline you use for service accounts and API keys.


NHI Mgmt Group analysis

AI-assisted testing is becoming an identity governance problem, not just a quality engineering problem. Once assistants can execute against browsers, mobile apps, and test infrastructure, the key question becomes who controls the delegated access path. That shifts the governance burden from prompt quality to session scope, credential handling, and auditability. Practitioners should treat the test ecosystem as part of the identity plane, not a separate automation layer.

Model Context Protocol expands the attack surface wherever it binds AI to real tools. The protocol itself is a connector, but the risk comes from what it can reach: devices, browsers, result stores, and build systems. If those integrations are not tightly scoped, the assistant can inherit more authority than the testing task requires. The practitioner conclusion is simple: control the connector as carefully as the environment it touches.

Named concept: delegated execution trust gap. This is the gap between generating a test and being trusted to run it in a live environment. The article shows that AI value increases when execution is available, but so does the need to constrain what the assistant can touch, observe, and persist. Teams should close that gap with explicit authorisation, logging, and revocation paths.

Testing ecosystems are moving toward shared control planes, and that changes how platforms are evaluated. Vendor-by-vendor feature checks are less useful when the core issue is whether browser, mobile, device-farm, and reporting integrations can be governed consistently. The relevant question is whether the integration model supports enforceable access boundaries across tools. Practitioners should judge ecosystem designs by their control consistency, not just their functional breadth.

What this signals

AI-assisted testing will push more organisations to classify connectors, tokens, and service accounts as governed access paths rather than simple integration plumbing. The control challenge is not only whether the assistant can act, but whether its authority can be bounded, observed, and withdrawn without breaking the workflow.

Delegated execution trust gap: the industry is now exposing a gap between AI systems that can propose actions and AI systems that can safely execute them. Teams that already understand lifecycle discipline in NHI Lifecycle Management Guide will be better positioned to manage that shift, while broader control mapping to NIST Cybersecurity Framework 2.0 helps anchor it in governance, identify, protect, detect, respond, and recover.

Expect procurement and architecture reviews to ask a new question: which AI workflows are allowed to reach real execution environments, and how is that authority revoked when the workflow changes? That question will matter as much for testing as it does for other tool-connected AI systems.


For practitioners

  • Map AI-assisted test workflows as access paths Identify every place an assistant can trigger execution, retrieve evidence, or touch device and browser environments, then assign owners for each access path.
  • Separate authoring from execution permissions Give test-generation workflows different credentials, scopes, and approval rules from live execution workflows so a prompt-writing assistant cannot silently become an execution actor.
  • Scope secrets to the shortest viable runtime Use short-lived tokens or tightly bounded service accounts for test runs so credentials cannot be reused outside the intended browser or device session.
  • Log assistant-driven tool calls end to end Capture the tool call, the target environment, the user or system that authorized it, and the artefacts produced so auditors can reconstruct what the assistant did.
  • Review MCP integrations like privileged connectors Apply the same change control, review, and offboarding discipline to MCP endpoints that you would apply to any other privileged integration surface.

Key takeaways

  • AI-assisted testing is moving from content creation to live execution, which turns tool access into the main governance issue.
  • The central risk is delegated authority without tight scoping, logging, and revocation, especially where browsers, devices, and evidence stores are involved.
  • Teams should evaluate MCP-connected testing the way they evaluate privileged integrations, because the access path now matters as much as the test itself.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5, CIS Controls v8 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.AC-4MCP-connected testing needs controlled access and least-privilege boundaries.
NIST SP 800-53 Rev 5AC-6Delegated tool access in test workflows should follow least privilege.
CIS Controls v8CIS-5 , Account ManagementAI-driven test execution depends on accountable, revocable credentials.
NIST Zero Trust (SP 800-207)The connector should be verified and bounded before it can reach live environments.
MITRE ATT&CKTA0006 , Credential Access; TA0009 , CollectionAssistant-driven execution can expose credentials and collect artefacts if over-scoped.

Apply AC-6 to separate test authoring rights from live execution rights and minimise connector scope.


Key terms

  • Model Context Protocol: Model Context Protocol is an open protocol that lets AI agents connect to tools and data sources. It expands what an agent can reach, so governance has to cover not only the model and its prompts, but also every system that can receive or return agent-driven data.
  • Delegated Execution: Delegated execution is when software is allowed to perform actions on behalf of a user, process, or business function. In NHI governance, the risk is that the delegated actor may chain actions beyond the original intent, so controls must focus on scope, approval, and revocation.
  • Test Infrastructure: The environments and services used to validate software, including browsers, mobile devices, device farms, CI/CD pipelines, and reporting systems. These environments often carry sensitive data and privileged credentials, so they must be governed like production-adjacent access surfaces rather than disposable utilities.
  • Non-Human Identity (NHI): A digital identity assigned to a non-human entity such as a software application, service account, API key, bot, machine, or AI agent that enables it to authenticate and interact with systems without direct human involvement. NHIs now outnumber human identities in most enterprises by 25 to 50 times.

What's in the full article

Arxan Technologies' full article covers the operational detail this post intentionally leaves for the source:

  • How the WebdriverIO MCP project is wired to support real browser and mobile execution across environments.
  • The specific collaboration details behind Digital.ai Testing support in the WebdriverIO ecosystem.
  • Examples of how AI-assisted testing can move from intent to execution in practice.
  • The ecosystem integration context that product teams would need when implementing the connection.

👉 Arxan Technologies' full post covers the WebdriverIO MCP context and the ecosystem integration details behind the testing workflow.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, identity lifecycle, and secrets management in a practitioner-focused format. It is a strong fit for teams that need to govern delegated access paths across modern automation and AI workflows.
NHIMG Editorial Note
Published by the NHIMG editorial team on September 3, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org