Skip to content

Revealing device-effect authorization inconsistency in MCP-based IoT systemsUncovering Device-Effect Authorization Inconsistencies in MCP-Based IoT Systems

Boyang Ma, Jinku Li, Ming Li, Jiasi Weng, Yue Zhang
Shandong University; Xidian University; Xi’an Aegiston Technology Co., Ltd; Guangzhou University
arXiv: 其他 AI 安全论文arXiv:2612.05686Originally published Indexed by this site · 2 days agoSelected AttacksSelectedAttention38

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The author proposes MICE to detect MCP-IoT device effect authorization inconsistencies; on 98 controlled samples it detected all 48 defects, with precision and recall both 100%.

Threat modelThe attacker has legitimate but restricted access to an MCP server that exposes device control tools, and the goal is to produce device effects that violate the authorization policy; the attacker can select tools, manipulate invocation parameters, construct invocation sequences and exploit authorization state changes, but cannot modify the server implementation, tamper with policies, or compromise the device infrastructure.

Questions
An MCP tool call being authorized does not mean that the device effects it produces are also authorized. Differences in execution paths, operation semantics, and authorization lifetimes may allow a restricted agent to access other devices, perform prohibited operations, or leave persistent interactions.
Methods
MICE uses EffectGraph to recover paths from tools to device operations, ScenarioForge to generate and execute stateful tests according to policies, and EffectOracle to independently collect backend events, normalize device effects, and determine violations.
Experiments and results
On the controlled benchmark, MICE detected all 48 defects with no false positives; Static-only had precision of 48.5% and recall of 66.7%. Of 1,524 processed repositories, 349 were flagged as potentially vulnerable; there are also BLE, Home Assistant and MQTT case studies.
Limitations and future work
The paper does not specifically discuss limitations. The controlled experiments use 98 Python samples and controlled backends; the real-repository results are static candidates, and the paper does not report the scale of manual review, the test budget values, the number of repetitions, or per-sample latency values.
Experimental setupControlled Benchmark(98 个 Python-based MCP server specimens)、Real-World Repository Corpus(1,616 个候选 GitHub repositories) et al. · precision、recall et al.
Metrics
precisionrecallFPRFNRmedian analysis latency95th-percentile analysis latencypotentially vulnerable repository rate
AI summaryand selection rationaleResearchers from Shandong University and other institutions propose in a paper that MCP-based IoT systems have a device-effect authorization inconsistency problem, namely that authorizing an LLM agent to call a tool does not necessarily authorize the device effects it causes, specifically manifesting as three types of inconsistency: device scope, operation semantics and authorization lifecycle. The MICE framework developed by the authors combines static path recovery, stateful testing constructed according to authorization policies and independent device-effect verification, and detects all 48 defects with no false positives on 98 benchmark samples covering 8 types of authorization problems. Analysis of 1616 candidate GitHub repositories successfully processed 1524, identifying 349 (22.90%) with potential authorization inconsistency, involving 331 owners. A case study of real MCP servers shows that in ble-mcp-server, descriptor writes are not constrained by the characteristic allowlist; in mcp-hass, generic service dispatch may lead to privilege escalation of operations; and in mcp-mqtt, device data remains readable via cache after the 50-millisecond collection window ends, and retained control commands are delivered to subsequently connected devices.

Researchers from Shandong University and other institutions propose in a paper that MCP-based IoT systems have a device-effect authorization inconsistency problem, namely that authorizing an LLM agent to call a tool does not necessarily authorize the device effects it causes, specifically manifesting as three types of inconsistency: device scope, operation semantics and authorization lifecycle. The MICE framework developed by the authors combines static path recovery, stateful testing constructed according to authorization policies and independent device-effect verification, and detects all 48 defects with no false positives on 98 benchmark samples covering 8 types of authorization problems. Analysis of 1616 candidate GitHub repositories successfully processed 1524, identifying 349 (22.90%) with potential authorization inconsistency, involving 331 owners. A case study of real MCP servers shows that in ble-mcp-server, descriptor writes are not constrained by the characteristic allowlist; in mcp-hass, generic service dispatch may lead to privilege escalation of operations; and in mcp-mqtt, device data remains readable via cache after the 50-millisecond collection window ends, and retained control commands are delivered to subsequently connected devices.

Why it was selectedThe paper points out that MCP tool authorization does not necessarily constrain actual device effects, and identifies 349 open-source repositories with potential authorization inconsistency among 1524.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The core problem is that an MCP tool call is authorized, yet its actual device effects may still exceed authorization.

    Core problem: MCP tool-level authorization is inconsistent with underlying device effects, and existing tool access restrictions cannot guarantee that device operations comply with authorization policies.

    • Problem scenario: MCP servers can control IoT devices through interfaces such as Home Assistant, MQTT, and BLE. The authors state that consequences of unauthorized access can include sensitive data exposure, unauthorized device modifications, and unintended physical operations.
    • Three types of inconsistency: Device Scope Inconsistency refers to alternative paths or dynamic resource resolution crossing device scope; Operation Semantics Inconsistency refers to actual effects exceeding permitted operations; Authorization Lifetime Inconsistency refers to interactions exceeding the authorization validity period.
    • Insufficient existing analysis: The authors argue that checking individual tools in isolation cannot cover alternative paths to the same device functionality; changing only call parameters makes it difficult to trigger state-dependent issues such as revocation, expiration, and group membership changes; tool descriptions and responses also do not necessarily reflect actual device effects.
    • Core idea: MICE uses a shared authorization policy to connect tool execution paths with device effects, uses static analysis to guide stateful testing, and then determines violations based on independently observed backend events, rather than treating the absence of a check directly as a vulnerability.
    • Threat model:
      • Goal: The attacker attempts to access unauthorized devices, perform prohibited operations, or trigger device interactions that exceed the authorization lifetime.
      • Knowledge and privileges: The attacker has legitimate but restricted access to an MCP server that exposes device control tools.
      • Capabilities: Can select tools, manipulate call parameters, construct tool call sequences, and exploit state changes such as permission revocation, expiration, or device group updates.
      • Boundaries and victim system: The victim is an MCP-based IoT system; the attacker cannot modify the server implementation, tamper with authorization policies, or compromise the underlying device infrastructure. The detection inputs are the server, explicit policies, and controlled device backends.
  2. What related research exists?

    Related work covers tool-based agent security, IoT authorization and interaction, device effect analysis, and authorization enforcement.

    Tool-based agents and MCP security

    • Lin et al. (2025), Kim et al. (2026), Zhao et al. (2026): Study the MCP ecosystem dataset, the agentic AI attack-defense landscape, and MCP toolchain attacks, respectively; related attacks also involve cross-tool control transfer, plugin contamination, and tool selection manipulation.
    • AgentBound, AgentSentinel, ACE: Protect agents through declarative permissions, runtime monitoring, or separation of planning and execution; AttriGuard, FragFuse, and OAuth account-linking research involve tool call attribution, access control bypass, and the identity context of connectors.
    • Description-code inconsistency, runtime-acquired authority, effect-aware approval (2026): The authors state that these works are closer to execution semantics but do not determine whether an approved tool call produces an approved device operation; MICE confirms effects at the device interface according to explicit policies.

    IoT authorization and cross-path protection

    • Fernandes et al. (2016) and SmartAuth, ContexIoT, etc.: Extend from smart home permissions to authorization expressions such as capability, purpose, context, and situation, and study multi-user homes and optimistic access control.
    • FlowFence, WAVE, Droplet, P-verifier, SandTrap: Constrain information flow, delegation, and encrypted data flow, respectively, or strengthen policy enforcement in cloud IoT and trigger-action platforms.
    • Jia et al. (2020, 2021): Study separated device management channels and IoT cloud messaging protocols; based on this, the authors point out that protection on one interface does not necessarily constrain another path to the same device, and a similar boundary exists at the MCP tool layer.

    IoT interactions, device effects, and authorization analysis

    • Zhou et al. (2019), IoTGuard, IoTSafe, etc.: Reconstruct interactions among devices, apps, and the cloud, discover physical interaction chains, and enforce security policies; the authors state that MICE focuses on whether effects exceed the caller's permissions, even if the final device state itself is safe.
    • TAPFixer, behavior models, and MQTTActic: Verify automation rules, compare declared and observed behavior, and analyze MQTT logic flaws; MICE follows the idea of separating reported execution from independent observation.
    • PeX, CanCheck, Talisman, and time/model-driven authorization enforcement: Recover permission checks, analyze reference monitors, or consider operation order and runtime state; the authors argue that a suspicious path alone cannot establish a policy violation, so MICE chains static paths, stateful execution, and backend confirmation.

    Experimental comparisons and data: The controlled benchmark comparisons are Static-only (EffectGraph-only), Dynamic (ScenarioForge & EffectOracle), w/o Lifecycle, and w/o Group Change; 98 Python MCP server specimens constructed by the authors are used, and the real-ecosystem analysis uses 1,616 candidate GitHub repositories.

  3. How does the paper address this problem?

    MICE uses static paths to guide stateful testing, then uses independent backend events to determine whether device effects exceed authorization.

    MICE does not treat statically discovered missing checks directly as vulnerabilities; instead, it sequentially recovers candidate paths, executes authorization-related state transitions, and confirms violations with independent device events. The overall workflow is shown in Figure 4.

    Problem setting and effect-oriented analysis

    • The inputs are the MCP server source code, explicit authorization policies, and controlled device backends; the goal is to find execution traces that produce unauthorized device effects. Policies can come from task restrictions, deployment configurations, or documented security guarantees.
    • Static findings are called potential inconsistencies, and only those supported by independent backend events are treated as confirmed violations; the analysis focuses on semantic device effects and does not infer unverified physical consequences.
    • Three design elements correspond to three types of challenges: analyzing paths around device effects rather than individual tools; generating stateful scenarios from authorization constraints; and verifying semantic effects rather than tool responses.

    EffectGraph: recovering paths from tools to device operations

    • Tool entry identification: Parses Python source code into an AST and extracts tool registrations, function definitions, and calls from function decorators and explicit handler registries.
    • Device path recovery: Traces function calls from tool entries and identifies candidate sinks such as Home Assistant service calls, MQTT publication/subscription, and BLE GATT operations.
    • The graph is defined as G=(VT∪ VF∪ VD,E), where the three types of nodes represent tool entries, intermediate functions, and device operation sinks, and edges represent recovered call relationships.
    • Authorization annotation: Records source locations, candidate operations, and identified authorization checks, and compares alternative paths; regardless of whether a check is identified, this alone is not used to determine a violation.

    ScenarioForge: policy-driven stateful testing

    • Each scenario is written as S=⟨ P,σ0,τ0,τc⟩, containing in order the policy, initial state, authorization positive-control sequence, and candidate sequence that tests specific constraints.
    • The templates in Figure 5 cover device scope, operation scope, parameter bounds, revocation, expiration, subject binding, group membership, and persistence; for example, repeating the same call after a group membership change.
    • Algorithm 1 instantiates scenarios according to constraints, compatible templates, and tool bindings. Tools with recovered paths enter a high-priority group, deterministically ordered within the group; tools without paths retain fallback ordering, and selection is finally made within the test budget B.
    • During execution, the positive control is run first to confirm that device functionality is available under legitimate conditions, then the candidate sequence is executed and authorization state transitions are applied; calls, authorization states, tool responses, and independent backend events are recorded.

    EffectOracle: independent observation and violation adjudication

    • Event collection: Records operations at the controlled device boundary through an independent backend audit channel and associates them with scenario steps and authorization context, so it does not depend on whether the tool reports success or failure.
    • Semantic normalization: Converts events into effects containing subject, device, operation, parameters, occurrence time, and persistence according to backend mappings; events that cannot be reliably mapped remain unresolved.
    • Policy adjudication: Judges according to the policy applicable at the time the effect occurs, and classifies scenarios as violation observed, no violation observed, or inconclusive.
    • Report content: For observed violations, provides the triggering call sequence, the violated policy constraint, backend events, and available source locations for subsequent review.
  4. What experiments did the paper conduct?

    The experiments cover controlled detection, ablation and efficiency, an ecosystem analysis of 1,524 repositories, and three real server case studies.

    Experimental setup

    • Controlled benchmark: 98 Python-based MCP server specimens, including 48 constructed authorization flaws and 50 negative specimens, covering eight categories: device scope, operation semantics, parameter bounds, revocation, expiration, subject binding, dynamic group membership, and persistent operations.
    • Real repositories: 1,616 MCP-IoT candidate GitHub repositories were collected as of October 29, 2026; 100 were randomly sampled for static analysis, and another 29 convenience samples were used for exploratory analysis.
    • Comparison methods: Static-only (EffectGraph-only), Dynamic (ScenarioForge & EffectOracle), w/o Lifecycle, w/o Group Change, and full MICE.
    • Metrics and determination: The controlled experiments count TP, FP, and FN according to ground-truth labels and report precision, recall, FPR, and FNR; efficiency metrics are the per-sample median and 95th-percentile analysis latency.
    • Runtime environment: The controlled experiments were executed sequentially on Windows 11 with Python 3.12.14, and all device interactions used controlled backends; the paper did not use LLM review and did not report the number of repeated experiments.
    • Real cases: ble-mcp-server, mcp-hass, and mcp-mqtt were examined; BLE used the original handlers, and MQTT used the original implementation and a local MQTT broker.

    Main results

    The detection accuracy on the controlled benchmark is as follows, according to Table II; the Dynamic and MICE rows have identical values.

    Swipe horizontally to read the table

    MethodTPFPFNPrecisionRecall
    Static-only (EffectGraph-only)32341648.5%66.7%
    Dynamic (ScenarioForge & EffectOracle)4800100%100%
    w/o Lifecycle30018100%62.5%
    w/o Group Change4206100%87.5%
    MICE4800100%100%
    • Authors' explanation of misclassification: Static-only's FPs mainly come from legitimate device operations that remain reachable in fixed implementations, and FNs come from incomplete path recovery in alias-based and cross-file implementations.
    • Authors' interpretation of the ablations: Independent device effect verification can correct misclassifications caused by static reachability; the lifecycle and group membership scenarios show that authorization-related state also needs to be executed.
    • Result boundaries: These accuracy figures come from the controlled benchmark constructed by the authors and cannot be directly regarded as the confirmed vulnerability detection rate on real repositories.

    Efficiency and real-repository ecosystem analysis

    • Efficiency: Figure 6 reports a cumulative static analysis time of 4.32 seconds for 100 randomly sampled repositories, and the main text gives an average throughput of 23.2 repositories/s; the per-sample median and 95th-percentile latency declared in the experimental setup are not given numerical values.
    • Overall candidates: Of 1,616 candidate repositories, 1,524 were successfully processed (94.3%); of these, 349 were labeled potentially vulnerable (22.90%), based on authorization-sensitive operations and no identified authorization policy indicators, not dynamic confirmation.
    • Type distribution: DSI 262 (75.07%), ALI 182 (52.15%), OSI 11 (3.15%); 95 have both DSI and ALI, and 7 have all three types; categories can overlap.

    Device category, interface, and popularity distribution

    • Device categories: In Table III, gateway has 85 DSI (28.1%), and all 11 OSI candidates also belong to gateway; the main text separately reports 98/302 (32.45%) potentially vulnerable gateway repositories and 48/163 (29.45%) for lighting.
    • Device interfaces: In Table IV, the DSI proportions are MQTT 92.0%, Zigbee 92.3%, and Home Assistant 84.5%; ALI is 66.1% for Bluetooth and 70.0% for OPC UA. Interface labels can overlap, and circle area represents the within-interface candidate rate.
    • Popularity and developers: Of the 349 candidate repositories, 298 (85.39%) have fewer than 10 stars; the main text of Figure 7 reports 29.27% for the 100–999 stars group and 15.29% for the 10–99 stars group. The 349 repositories involve 331 owners, and 317 (95.77%) have only one flagged repository.

    Security cases of three real servers

    • ble-mcp-server: Figure 9 shows that characteristic write checks both global write permission and the allowlist, while descriptor write has only the global check; in the original handler experiments, a characteristic write outside the allowlist was rejected, and a descriptor write reached the BLE transport. The authors state that this may expose an alternative resource modification surface.
    • mcp-hass: The generic service dispatcher allows the caller to choose the service domain, operation, target entity, and parameters, and no task-specific operation restriction was identified in the tool handler; the authors believe that, when backend credentials allow it and there are no other equivalent restrictions, operations beyond the task scope may occur.
    • mcp-mqtt: In experiments with the original implementation and a local broker, data produced after the 50-ms collection window was still accessible through the cache retrieval interface; retained control messages were also delivered to device clients that connected subsequently. The authors discuss persistent data access and control after temporary authorization ends based on this.

    Other ablations and analyses

    • Lifecycle: After removal, FN is 18 and recall is 62.5% (Table II).
    • Group Change: After removal, FN is 6 and recall is 87.5% (Table II).
    • High-star repositories: Of the 52 repositories with at least 100 stars, 11 have DSI, 2 have OSI, and 9 have ALI, for a total of 14 flagged with at least one category.
    • Owner co-occurrence: 101 owners (30.51%) involve multiple types of inconsistency, of which 8 involve all three types; of these 101 owners, 93 have only one flagged repository.
  5. What are some points that can be further explored?

    The paper does not specifically discuss limitations; the scope of evidence consists of a controlled Python benchmark, static repository screening, and three case studies.

    Limitations and future directions noted by the authors

    The paper does not specifically discuss limitations. The Conclusion summarizes the three types of inconsistency, MICE's combined design, and ecosystem findings, and proposes that both the tools an agent can invoke and the physical effects they can produce should be controlled, but it does not explicitly list future research plans.

    Scope of experimental coverage

    • Controlled subjects: Detection accuracy and ablations are evaluated only on 98 Python-based MCP server specimens, including 48 flawed and 50 negative specimens; all device interactions use controlled backends (§V-A, Table II).
    • Real-repository evidence: Of 1,616 candidate repositories, 1,524 were successfully processed, and 349 were flagged based on authorization-sensitive operations and no identified authorization policy indicators; the paper calls these results potential inconsistencies/candidates and does not report the scale of dynamic confirmation or manual review for all candidates (§III-B, §V-C).
    • Case scope: The real implementation analysis includes ble-mcp-server, mcp-hass, and mcp-mqtt; the MQTT experiments use the original implementation and a local broker, and the BLE experiments use the original handlers (§V-D).
    • Efficiency and statistical information: The efficiency figure covers 100 randomly sampled repositories and reports cumulative time; the paper does not report the number of repetitions of the controlled experiments, the value of ScenarioForge's test budget B, scenario execution time, or per-sample median/95th-percentile latency values (Algorithm 1, §V-A, Figure 6).
    • Analysis capability boundaries: The Python implementation of EffectGraph parses the AST; EffectOracle keeps events without reliable semantic mappings as unresolved and can classify scenarios as inconclusive (§IV-B).
  6. Summarize the main content of the paper

    MICE combines static paths, stateful testing and backend effect verification to discover MCP-IoT cross-layer authorization violations.

    This is an authorization security detection study for MCP-based IoT systems, focusing on cross-layer discrepancies between tool invocation permissions and actual device effects.

    • Problem: The authors divide the problem into three types of inconsistency: device scope, operation semantics, and authorization lifetime; the attacker has legitimate but restricted server access, can manipulate tool invocations and authorization state, but cannot modify the server, policies, or device infrastructure.
    • Method: EffectGraph recovers paths from tool entry points to device operations and annotates checks; ScenarioForge generates positive controls, candidate sequences and state transitions according to policies; EffectOracle independently collects backend events, normalizes semantic effects, and then adjudicates according to the policy in effect at the time the effect occurs.
    • Controlled results: On 98 samples, MICE detected all 48 constructed defects and correctly classified 50 negative specimens, with precision and recall both 100%; Static-only was 48.5% and 66.7% respectively (Table II).
    • Role of state testing: After removing lifecycle exploration, recall was 62.5%, and after removing group-membership transitions, 87.5% (Table II). The authors therefore argue that observing device effects alone is insufficient; authorization-related states must also be exercised.
    • Ecosystem and cases: Of 1,524 successfully processed repositories, 349 (22.90%) were flagged as potentially vulnerable; these are static candidates. The three cases involve, respectively, check discrepancies across different attribute write interfaces in BLE, Home Assistant generic service dispatch, and MQTT data accessibility after the 50-ms collection window and subsequent delivery of retained commands.
    • Authors' conclusion: MCP-IoT authorization should not only determine which tools an agent can invoke, but should also constrain which physical-world effects it can produce; statically suspicious paths need to be combined with stateful execution and independent backend evidence to distinguish potential weaknesses from observed policy violations.
Read originalarxiv.org