Next Article in Journal
A Three-Layer Distributed Architecture with Cloud-Based Predictive Modeling for Intelligent Greenhouse Monitoring and Forecasting in Semi-Arid Environments
Previous Article in Journal
FairAI: A Blockchain- and IPFS-Enabled Framework for Verifiable Ethical Federated Learning with Proof-Based Approval-Gated Aggregation
Previous Article in Special Issue
AERO-GUARD: A Post-Quantum Mutual Authentication Drone Protocol with Homomorphic Encryption for Secure Road Surveillance in Smart Cities
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

TDT-Pipe: A Security-Aware Architecture for Trustworthy IoT Digital Twins

by
Vincenzo De Angelis
Department of Information Engineering, Infrastructure and Sustainable Energy (DIIES), University Mediterranea of Reggio Calabria, Via dell’Università 25, 89124 Reggio Calabria, Italy
Future Internet 2026, 18(9), 458; https://doi.org/10.3390/fi18090458
Submission received: 9 July 2026 / Revised: 22 August 2026 / Accepted: 25 August 2026 / Published: 27 August 2026
(This article belongs to the Special Issue AI-Driven Security, Privacy, and Trust for the Internet of Things)

Abstract

Digital Twins rely on continuous data exchanges between physical assets, Internet of Things devices, communication infrastructures, and software representations. In MQTT-based deployments, however, successful message delivery does not guarantee that a telemetry value is authentic, authorized, fresh, structurally valid, or appropriate for updating the active twin state. This paper presents TDT-Pipe, a security-aware telemetry-to-Digital-Twin pipeline that separates message transport from update admission. The architecture integrates secure publication, registry-based device control, edge validation, provenance generation, controlled state management, quarantine, auditing, and policy-based views. Telemetry messages are protected through payload digests and device-specific HMACs, while validation predicates classify them as verified, suspicious, or untrusted and map each class to apply, quarantine, or reject actions. The formal model links active values to the events that produced them and supports security properties covering authentication, integrity, freshness, replay protection, controlled state modification, audit traceability, and view confinement. A lightweight prototype is used to assess the feasibility of the approach. The evaluation indicates that the proposed validation, provenance, and controlled-admission mechanisms can be integrated into IoT Digital Twin pipelines while keeping the processing overhead limited.

1. Introduction

Digital Twins (DTs) are software representations of physical entities, processes, or environments that are continuously informed by operational data. Unlike static models, DTs are commonly characterized by an ongoing relationship with their physical counterparts, through which measurements, events, and state changes are reflected in the digital representation. Prior work highlights continuous synchronization and data exchange as central characteristics of DT systems and distinguishes digital models, digital shadows, and Digital Twins according to the degree and direction of data integration [1,2]. In this perspective, the practical value of a DT depends on the quality and timeliness of the information connecting the physical and digital domains.
Internet of Things (IoT) technologies provide a natural sensing and communication layer for this connection. Distributed sensors and embedded devices observe the physical environment [3,4] and generate the telemetry used to update the DT. Such deployments commonly involve heterogeneous devices, constrained communication links, multiple data consumers, and asynchronous data flows. MQTT is particularly attractive in this context because its lightweight publish–subscribe model decouples telemetry producers from consumers and allows multiple services to receive data through topic-based subscriptions [5,6,7]. An MQTT broker can therefore connect a large set of sensing devices to DT components without requiring publishers to know which applications will consume their measurements.
This architectural decoupling does not, by itself, make the resulting DT state trustworthy. A message reaching a broker or subscriber may have been generated by an unauthorized source, altered in transit or within an intermediary, published under an inappropriate topic, delayed, duplicated, replayed, or delivered out of order. More generally, IoT ecosystems expose authentication, authorization, integrity, privacy, and trust challenges that arise from device heterogeneity, distributed communication, and the interaction of multiple administrative domains [8,9,10]. Empirical assessments of consumer IoT devices also show that replay weaknesses and deficiencies in authentication and reliability remain relevant in real products [11].
Transport security and broker-side access control are important parts of a protected deployment, but they address only part of the telemetry-to-DT path. In a brokered architecture, transport protection terminates at communication endpoints and does not necessarily provide end-to-end evidence that the subscriber received exactly the message generated by the registered publisher. Moreover, transport delivery does not determine whether the message is fresh, whether it has already been processed, whether its payload satisfies the expected structure, or whether it is authorized to modify a particular DT field. Research on MQTT has consequently considered end-to-end confidentiality, integrity, and accountability mechanisms that complement conventional transport protection [12,13]. These mechanisms demonstrate the importance of protecting or documenting message flows, but a DT additionally requires an explicit admission decision that determines how each delivered message affects its operational state.
The same need arises for provenance and controlled disclosure. A trustworthy DT should make it possible to determine which event produced an active value, why a message was accepted or refused, and which consumers may observe a field or its provenance reference. General provenance models provide concepts for describing entities, activities, agents, and derivations, while accountability mechanisms associate actions with verifiable evidence or responsibility [14,15]. Nevertheless, these concerns are often treated separately from message authentication, replay prevention, semantic validation, quarantine, and DT state modification.
This paper addresses this gap through TDT-Pipe, a security-aware architecture for controlling the complete path from IoT telemetry publication to Digital Twin state update. The key design principle is that message delivery and state admission are distinct operations. A telemetry message is allowed to modify the active DT state only after the Edge Security Gateway has verified the claimed device, topic authorization, payload structure, payload digest, HMAC, sequence number, timestamp, and semantic plausibility. The resulting decision is mapped to one of three explicit actions: verified updates are applied, authenticated updates that raise warning conditions are quarantined, and messages failing mandatory checks are rejected. A provenance record is generated for every processed message, active values remain linked to the events that produced them, and policy-based views restrict the fields and provenance references released to each consumer.
The main contributions of this work are the following:
  • a telemetry-to-DT architecture that separates MQTT delivery from application-layer update admission;
  • a formal message, registry, and validation model covering source authentication, topic authorization, structural validation, payload integrity, freshness, replay protection, and semantic plausibility;
  • controlled DT state management combining active values, provenance references, quarantine, audit history, and field-level consumer views;
The remainder of the paper is organized as follows. Section 2 discusses Digital Twin foundations, IoT and MQTT security, provenance, accountability, and access control. Section 3 introduces the system model and design requirements, and Section 4 presents the proposed architecture. Section 5 formalizes telemetry messages, device profiles, and validation decisions. Section 6 describes the architectural components. Section 7 reports the experimental evaluation, Section 8 presents the security analysis, and Section 10 concludes the paper.

2. Related Work

Research on Digital Twins has established the main definitions, enabling technologies, and application domains of the paradigm [1,16,17]. Manufacturing and modelling studies further refine the distinction between digital models, digital shadows, and Digital Twins, and characterize DT components, roles, values, and implementation challenges [2,18,19,20,21,22]. These contributions clarify what a DT is and why synchronization matters, but they generally stop before the message-level admission question addressed here: whether a delivered telemetry message should be allowed to modify an active twin field.
IoT and DT security studies provide complementary motivation. IoT surveys discuss heterogeneous devices, communication protocols, authentication, authorization, privacy, trust, and policy enforcement as recurring security concerns [5,8,9]. DT-oriented security architectures show how a twin can support supervision of industrial automation systems [23], while empirical analyses of consumer IoT devices expose replay, authentication, and reliability weaknesses that make source and message assumptions fragile [11]. The relevance of lightweight and real-time edge processing also extends to safety-critical industrial IoT monitoring. For example, TinyLSN targets real-time marine pipeline leakage detection with a lightweight IoT-oriented model [24], while distributional knowledge harmonization has been studied for acoustic-emission-based leak pattern recognition across heterogeneous operating conditions [25]. TDT-Pipe takes a narrower operational perspective: it protects the DT update boundary before incoming telemetry can modify a modelled entity.
MQTT-related work addresses the communication layer and message evidence. The OASIS MQTT standard defines the lightweight publish–subscribe protocol widely used for IoT telemetry routing [6], and protocol-specific analyses highlight attacks such as SlowITe against MQTT services [26]. Other work strengthens MQTT exchanges at the message-flow level. MQTT-E introduces end-to-end encryption for publish–subscribe communication through proxy re-encryption [12]. Other MQTT security schemes combine mutual authentication, access-control lists, and message encryption to strengthen the broker-mediated communication path [27]. Blockchain-, Merkle-tree-, and IPFS-based mechanisms support integrity verification, accountability, and non-repudiation for exchanged MQTT messages [13]. These mechanisms are useful foundations, but they do not address the final DT-state transition: after delivery and verification, a message may still be stale, duplicated, structurally invalid, semantically suspicious, or unauthorized for a specific twin field.
Table 1 summarizes the boundary between representative related approaches and TDT-Pipe. The comparison focuses on functionality because the referenced systems protect different layers, use different cryptographic and storage assumptions, and expose different semantics to applications.
From a performance perspective, the compared mechanisms also introduce different kinds of overhead. Transport-security and broker-level mechanisms mainly add communication and session-management costs; end-to-end encryption schemes add cryptographic processing on the publishing and receiving path; blockchain/IPFS-based approaches introduce additional storage, consensus, or external-verification costs; and ABE-based DT access-control schemes add policy-evaluation and cryptographic data-access costs. By contrast, TDT-Pipe concentrates its overhead at the DT admission boundary, where the dominant costs are payload canonicalization, digest computation, HMAC verification, registry lookup, provenance creation, and audit insertion.
The comparison shows that TDT-Pipe is complementary to communication-layer and data-sharing mechanisms. MQTT-E and related MQTT security schemes protect the exchange between MQTT participants; blockchain-based accountability mechanisms make message exchange verifiable or non-repudiable; and DT access-control frameworks regulate who can access DT data after it exists. By contrast, TDT-Pipe focuses on the admission boundary between a delivered telemetry message and the active DT state. Its novelty is the explicit link between message validation, update decision, DT-state effect, provenance event, quarantine outcome, audit record, and policy-controlled view generation. Therefore, the proposed model does not replace end-to-end encryption, broker hardening, or blockchain accountability; it defines the missing control point that decides whether a delivered telemetry item is allowed to become an active Digital Twin value.
Provenance and access-control literature addresses the evidence and disclosure dimensions of this problem. W3C PROV provides an interoperable vocabulary for entities, activities, agents, and derivations [14]; accountability work studies how actions can be associated with durable evidence [15]; and IoT access-control research and XACML provide models for policy-based resource authorization [31,32]. The contribution of TDT-Pipe is to combine these strands around each telemetry-to-state transition: validation produces a decision, action, reason code, and event identifier; verified messages update the active state; suspicious messages are quarantined; rejected messages remain only in audit history; and consumer views expose only authorized values and provenance references.

3. System Model and Design Requirements

This paper considers an IoT-enabled Digital Twin (DT) in which distributed physical devices publish measurements and status updates used to maintain a synchronized software representation of a monitored environment. The reference instantiation is a smart-building DT composed of rooms, sensors, environmental variables, occupancy states, and energy-related measurements. The proposed model is not tied to a specific building platform: it formalizes the update pipeline that connects IoT telemetry to a DT state and defines the validation conditions under which a telemetry payload is allowed to modify that state.
The core observation behind TDT-Pipe is that transport delivery and DT update admission are different operations. A telemetry message that reaches an MQTT broker is not necessarily a valid update for the DT. Before a physical value changes the DT state, the system verifies the source identity, topic authorization, payload structure, payload integrity, sequence number, timestamp, and semantic plausibility of the update.

3.1. Reference Scenario

The reference scenario consists of a smart building with multiple rooms. Each room may include temperature sensors, humidity sensors, CO2 sensors, occupancy sensors, door sensors, and energy meters. Devices publish telemetry to topic namespaces associated with the monitored room and metric. The DT maintains the current logical state of the building and exposes controlled views to consumers such as administrators, energy services, automation components, and external analytics services.
For each DT entity e, the system maintains an active-state map X e , a provenance-reference map A e , and a quarantine set Γ e . The map X e contains the latest values admitted into the DT, A e links each active value to the event that produced it, and Γ e contains authenticated updates that were not admitted because they raised a warning condition.

3.2. Entities

The system includes the following logical entities.
  • IoT device: a physical or simulated sensing device that produces measurements or status updates. Each device is identified by a stable identifier d.
  • Secure publisher: the publication function associated with the device. It constructs the canonical telemetry message, assigns the sequence number and timestamp, computes the payload digest, and generates the integrity tag.
  • MQTT broker: the message-routing component that decouples publishers from consumers. The broker delivers messages, but it does not decide whether a telemetry payload may update the DT.
  • Device Registry: the logical authority that stores, for each device, the validation key, authorized topics, topic-specific payload rules, freshness parameters, sequence state, and DT-field mapping.
  • Edge Security Gateway: the validation point that subscribes to telemetry topics, evaluates the validation predicates, assigns a decision, and advances the validated sequence state when appropriate.
  • Provenance Manager: the component that creates a provenance record for each processed message and associates accepted or quarantined updates with an event identifier.
  • Digital Twin State Manager: the component that applies verified updates and stores suspicious updates in quarantine.
  • Policy-Based View Generator: the component that exposes field-level views of the DT according to consumer role and purpose.
  • Audit Store: the trusted repository that preserves provenance records and the ordered validation history of DT fields.
Table 2 summarizes the logical components of TDT-Pipe and their respective roles.

3.3. Threat Surface and Design Requirements

The architecture addresses attacks and faults that may occur between physical sensing and DT state update. These include payload tampering, unauthorized publishing, topic misuse, replay of old messages, stale delivery, unintended modifications before validation, and excessive exposure of DT data to consumers. Physical compromise of a sensor, extraction of its validation key, and complete compromise of trusted infrastructure components are outside the scope of the present model and are discussed as limitations.
The design requirements are the following.
  • R1—Source authentication: each update admitted to the DT pipeline must be associated with a registered device and a valid device-specific integrity tag.
  • R2—Topic authorization: a device must be able to update only the topic namespaces explicitly assigned to it.
  • R3—Payload integrity: any modification of the payload or protected message metadata must be detected before the DT state is modified.
  • R4—Freshness and anti-replay: repeated, expired, or out-of-order updates must not overwrite the active DT state.
  • R5—Provenance and auditability: each processed update must be associated with a record that supports reconstruction of its claimed source identifier, validation result, and effect on the DT.
  • R6—Controlled DT state management: only verified updates may modify the active state, while authenticated but suspicious updates must be quarantined.
  • R7—Selective disclosure: consumers must receive only the DT fields and provenance references authorized by their role and purpose.

4. Proposed Architecture

TDT-Pipe is a security-aware pipeline for IoT-based Digital Twins. Its purpose is to make the DT update operation explicit and verifiable. A telemetry message is admitted into the active DT state only after passing a sequence of mandatory validation predicates. Messages that fail at least one mandatory predicate are rejected, while authenticated messages that raise a warning condition are quarantined and recorded for accountability.

4.1. Architecture Overview

Figure 1 reports the logical architecture. IoT devices generate measurements. Secure publishers transform measurements into authenticated update messages. The MQTT broker transports the messages to the Edge Security Gateway. The gateway validates each message using the Device Registry and produces a decision, an action, and a reason code. The Provenance Manager creates the corresponding audit record. Finally, the DT State Manager applies or quarantines the update, while the Audit Store preserves the processing history.

4.2. Why Application-Layer Integrity Is Required

Transport-layer protection is necessary but not sufficient for a trustworthy DT update pipeline. TLS protects a connection between two endpoints during transmission. In a brokered architecture, the device-to-broker TLS session terminates at the broker, while downstream delivery takes place through a separate connection. Therefore, the validation layer requires application-level evidence that the message it receives is the message generated by the registered publisher.
Broker authentication also does not determine whether a payload is authorized for a specific DT field, whether the message is fresh, or whether it has already been processed. A previously valid message may be republished through a new protected connection, and TLS would protect that new transmission without identifying it as a replay. For these reasons, TDT-Pipe binds the payload digest to the device identity, topic, timestamp, and sequence number through a device-specific HMAC.
The Edge Security Gateway must receive the original envelope generated by the publisher. Any transformation performed before validation changes the protected content and causes verification to fail.

4.3. Update Lifecycle

Figure 2 illustrates the validation sequence for an incoming DT update, whose lifecycle consists of seven logical steps.
  • An IoT device generates a new measurement or status update.
  • The Secure Publisher associates the update with the appropriate MQTT topic, generation timestamp, and sequence number, and computes a digest of the payload.
  • The Secure Publisher constructs the protected message and generates its integrity tag using the key associated with the device.
  • The MQTT Broker forwards the complete publisher-generated message to the Edge Security Gateway without modifying its protected fields.
  • The Edge Security Gateway verifies the device profile, topic authorization, payload structure, payload integrity, sequence number, freshness, and semantic plausibility of the update.
  • The Provenance Manager records the source of the message, the validation outcome, the reason for the decision, and the action selected for the Digital Twin. The resulting record is forwarded to the Audit Store.
  • Verified and suspicious updates are forwarded to the Digital Twin State Manager for application or quarantine, whereas rejected updates are preserved only in the Audit Store.

5. Formal Update Model

This section defines the telemetry message, the device profile, the integrity material, and the validation rule used by TDT-Pipe.

5.1. Telemetry Message

Let d be the device identifier carried by the message, let D denote the set of registered and active device identifiers, and let t o p i c be the MQTT topic on which the device publishes. The i-th message generated by d is represented as
m i d = d , t o p i c , t s i , s e q i , p a y l o a d i , p i , τ i d ,
where t s i is the generation timestamp, s e q i is a monotonically increasing sequence number for the device-topic stream, p a y l o a d i is the domain payload, p i is the digest of the payload, and τ i d is the message integrity tag.
Table 3 summarizes the fields of the telemetry message and their roles.
The canonical representation used by the cryptographic functions is denoted by can ( · ) . It serializes fields in a deterministic order and with deterministic encodings. This prevents two different encodings from representing the same protected message ambiguously.
Throughout the formal model, the same notation is used for the corresponding message fields and registry parameters. In particular, subscript i identifies the processed message, superscript d identifies the claimed device, and t o p i c identifies the device-topic stream to which the sequence state and payload rules apply.

5.2. Device Profile

Each device d is associated with the registry profile
R ( d ) = K d , T d , S d , P d , Δ d w a r n , Δ d m a x , ϵ d , s d , μ d .
Here, K d is the active symmetric validation key of device d; T d is the set of topics authorized for d; S d and P d map each authorized topic to its structurally valid and semantically plausible payload sets, respectively, with P d ( t o p i c ) S d ( t o p i c ) ; Δ d w a r n and Δ d m a x are the warning and maximum delivery delays; ϵ d is the tolerated future-timestamp offset; s d ( t o p i c ) is the largest sequence number already admitted for the device-topic stream; and μ d ( t o p i c ) = ( e , f ) maps an authorized topic to field f of DT entity e. The mapping μ d is defined for every t o p i c T d . In a deployment, K d is associated with lifecycle metadata such as a key identifier, version, validity interval, and status. For compactness, the formal model writes K d for the currently active key version. The timing parameters are registry-controlled and may be configured per device, or per device class in an implementation, to reflect expected network delay and bounded clock skew.
The timing parameters satisfy
0 < Δ d w a r n < Δ d m a x , ϵ d 0 .
Structural validity is expressed through the predicate
PayloadValid ( d , t o p i c , p a y l o a d i ) p a y l o a d i S d ( t o p i c ) .
Semantic plausibility is evaluated separately through
PayloadPlausible ( d , t o p i c , p a y l o a d i ) p a y l o a d i P d ( t o p i c ) .
For example, a CO2 message may contain the expected fields, data types, and unit, making PayloadValid true, while reporting a value outside the operationally plausible range, making PayloadPlausible false. As a concrete rule-based instantiation, an indoor CO2 update may be considered plausible when the unit is ppm and the value belongs to an operational range such as 350 v a l u e 5000 . Similarly, an indoor temperature update may be considered plausible when the unit is Celsius and the value belongs to a building-specific range such as 10 v a l u e 40 . These numerical bounds are deployment parameters rather than universal constants. Values outside these ranges do not necessarily indicate forgery: if the mandatory authentication, freshness, and structure checks succeed, they are classified as suspicious and quarantined rather than silently applied. In the evaluated configuration, PayloadPlausible is instantiated with topic-specific rule sets stored in the Device Registry. More generally, the predicate can be implemented by static rules, context-dependent thresholds, or dynamic domain models, because the admission logic only requires its Boolean outcome.

5.3. Integrity Material

For each device d, the secure publisher and the validation layer share the symmetric key K d . Let H ( · ) be a collision-resistant hash function. The payload digest is
p i = H can ( p a y l o a d i ) .
The protected message body is
c i d = can ( d , t o p i c , t s i , s e q i , p i ) .
The integrity tag is computed as
τ i d = HMAC K d ( c i d ) .
The tag binds the payload digest to the device identity, topic, timestamp, and sequence number. Any unauthorized modification of the payload or of the authenticated metadata is detected either by the payload-digest comparison or by the HMAC verification.

5.4. Validation Predicates and Decision Rule

Let t v be the validation time at the Edge Security Gateway. Given a message m i d , the gateway evaluates the following mandatory predicates. In these predicates, s d ( t o p i c ) denotes the stored sequence state before processing the current message.
C 1 ( m i d ) d D ,
C 2 ( m i d ) t o p i c T d ,
C 3 ( m i d ) PayloadValid ( d , t o p i c , p a y l o a d i ) ,
C 4 ( m i d ) p i = H can ( p a y l o a d i ) ,
C 5 ( m i d ) τ i d = HMAC K d ( c i d ) ,
C 6 ( m i d ) s e q i > s d ( t o p i c ) ,
C 7 ( m i d ) ϵ d t v t s i Δ d m a x .
In order, these predicates check device registration, topic authorization, structural payload validity, payload-digest consistency, HMAC validity, sequence freshness, and timestamp freshness. The device-registration predicate is evaluated first, since the remaining predicates require the corresponding registry profile. If at least one mandatory predicate is false, the message is classified as Untrusted and cannot modify the active DT state or advance the validated sequence state.
Two warning predicates are evaluated only after all mandatory predicates succeed:
W 1 ( m i d ) t v t s i > Δ d w a r n ,
W 2 ( m i d ) ¬ PayloadPlausible ( d , t o p i c , p a y l o a d i ) .
Predicate W 1 identifies a message that is admissible but delayed beyond the expected threshold. Predicate W 2 identifies a structurally valid and authenticated payload that violates the topic-specific plausibility constraints. Both C 7 and W 1 compare the device-generated timestamp with the gateway validation time. They therefore rely on a bounded-skew assumption rather than on perfect clock synchronization: ϵ d tolerates limited future-dated timestamps, while Δ d w a r n and Δ d m a x define the warning and rejection thresholds for delayed messages. If a constrained device exhibits persistent clock drift beyond these configured bounds, valid measurements may be quarantined or rejected until the device is resynchronized or its registry profile is adjusted.
The validation decision is
δ ( m i d ) = Untrusted , if j { 1 , , 7 } : ¬ C j ( m i d ) , Suspicious , if j = 1 7 C j ( m i d ) W 1 ( m i d ) W 2 ( m i d ) , Verified , if j = 1 7 C j ( m i d ) ¬ W 1 ( m i d ) ¬ W 2 ( m i d ) .
The corresponding action is
α ( m i d ) = Apply , if δ ( m i d ) = Verified , Quarantine , if δ ( m i d ) = Suspicious , Reject , if δ ( m i d ) = Untrusted .
We write δ i and α i for the decision and action returned for message m i d when these values are stored in provenance records or passed to downstream components.
For a verified or suspicious message, the gateway advances the validated sequence state by setting
s d ( t o p i c ) s e q i .
A suspicious message advances the sequence state because it is authenticated, structurally valid, fresh, and newer than the previously processed message, even though its value is quarantined. Sequence gaps are permitted, which prevents permanent stream desynchronization when a message is lost. Messages with s e q i s d ( t o p i c ) are treated as replayed or out-of-order updates.
Table 4 summarizes the validation decisions, their corresponding actions, and their effects on the DT state.

6. Component Design

This section describes the behavior of each architectural component according to the formal model defined above.

6.1. Secure Publisher

The Secure Publisher is the origin of an authenticated device-topic stream. For every new measurement, it increments the local sequence number associated with the publication topic, obtains the generation timestamp, computes p i , builds c i d , computes τ i d , and publishes m i d . The per-topic sequence counters are stored persistently; resetting a counter requires explicit stream reconfiguration.
The publisher does not decide whether a value is operationally plausible. That decision is made by the validation layer using the topic-specific rules stored in the Device Registry. This separation keeps the source-side function limited to source authentication, payload integrity, and ordering evidence.

6.2. MQTT Broker

The broker provides topic-based message delivery. It may authenticate clients and protect transport sessions, but permission to change a DT field is evaluated by the Edge Security Gateway through topic authorization, payload validation, integrity verification, freshness validation, and sequence checking.
The topic is included in the protected body c i d . Therefore, moving a valid message to another topic causes the HMAC verification to fail or causes the topic-authorization predicate to fail.

6.3. Device Registry

The Device Registry defines the admissible behavior of each telemetry source. The profile R ( d ) associates the device with its active validation key, allowed topics, topic-specific payload sets, timing parameters, last admitted sequence number for each authorized topic, and DT-field mapping. The registry is also the natural control point for device and key lifecycle management: a deployment can bind K d to a key identifier, key version, validity interval, and status value such as active, suspended, or revoked. Predicate C 1 is therefore interpreted over the set D of registered and active devices.
Table 5 summarizes the information contained in each device registry profile.
Device onboarding creates a registry profile, provisions the initial validation key through a protected manufacturing, administrative, or enrollment channel, and activates the authorized topics. Key rotation installs a new key version at the Secure Publisher and updates the active registry entry, optionally allowing a short overlap window during migration. Revocation or offboarding changes the profile status or removes the device from D , so subsequent messages fail the registration predicate before HMAC validation can authorize them. Plausibility rules can be derived from sensor specifications, physical constraints, commissioning data, calibration procedures, or operational policies, and then updated in the registry as deployment knowledge evolves. These lifecycle operations can be automated through an external key-management or configuration-management service, but their effect on the update-admission model is captured by the active registry profile used at validation time.

6.4. Edge Security Gateway

The Edge Security Gateway is the admission-control point for DT updates. It implements the decision rule of Section 5.4. Algorithm 1 describes the complete validation procedure.
Algorithm 1 Validation of an incoming telemetry message
Require: Message m i d = d , t o p i c , t s i , s e q i , p a y l o a d i , p i , τ i d and validation time t v .
Ensure: Decision δ i , action α i , and reason code η i .
  1:
Retrieve R ( d ) from the Device Registry.
  2:
if  R ( d ) does not exist then
  3:
      return  ( Untrusted , Reject , UnknownDevice ) .
  4:
end if
  5:
if  t o p i c T d  then
  6:
      return  ( Untrusted , Reject , UnauthorizedTopic ) .
  7:
end if
  8:
if  ¬ PayloadValid ( d , t o p i c , p a y l o a d i )  then
  9:
      return  ( Untrusted , Reject , InvalidPayload ) .
10:
end if
11:
p i H ( can ( p a y l o a d i ) ) .
12:
if  p i p i  then
13:
      return  ( Untrusted , Reject , InvalidDigest ) .
14:
end if
15:
c i d can ( d , t o p i c , t s i , s e q i , p i ) .
16:
if  τ i d HMAC K d ( c i d )  then
17:
      return  ( Untrusted , Reject , InvalidTag ) .
18:
end if
19:
if  s e q i s d ( t o p i c )  then
20:
      return  ( Untrusted , Reject , ReplayOrOutOfOrder ) .
21:
end if
22:
if  t v t s i < ϵ d  or  t v t s i > Δ d m a x  then
23:
      return  ( Untrusted , Reject , InvalidTimestamp ) .
24:
end if
25:
d e l a y e d ( t v t s i > Δ d w a r n ) .
26:
i m p l a u s i b l e ¬ PayloadPlausible ( d , t o p i c , p a y l o a d i ) .
27:
if  d e l a y e d  and  i m p l a u s i b l e  then
28:
      Set s d ( t o p i c ) s e q i .
29:
      return  ( Suspicious , Quarantine , DelayedAndImplausible ) .
30:
else if  d e l a y e d  then
31:
      Set s d ( t o p i c ) s e q i .
32:
      return  ( Suspicious , Quarantine , Delayed ) .
33:
else if  i m p l a u s i b l e  then
34:
      Set s d ( t o p i c ) s e q i .
35:
      return  ( Suspicious , Quarantine , ImplausiblePayload ) .
36:
else
37:
      Set s d ( t o p i c ) s e q i .
38:
      return  ( Verified , Apply , ValidUpdate ) .
39:
end if
The gateway produces exactly one decision, one action, and one reason code for each processed message. The reason code allows the provenance layer to record why an update was accepted, quarantined, or rejected.

6.5. Provenance Manager

The Provenance Manager receives the message, validation time, gateway identifier, decision, action, and reason code produced by the Edge Security Gateway. Its purpose is to create one provenance record for every processed message.
If the Device Registry contains a mapping for the device and topic, the manager obtains
( e i , f i ) = μ d ( t o p i c ) .
If no mapping exists, as may occur for an unknown device or unauthorized topic, it assigns e i = and f i = .
The provenance record is
r i d = e i d i , d , t o p i c , e i , f i , t s i , t v , s e q i , p i , δ i , α i , η i , g ,
where e i d i is a unique event identifier and g identifies the validating gateway. The value d is the device identifier claimed by the message; it represents an authenticated source only when the integrity-tag verification succeeds.
The record is forwarded to the Audit Store. For actions Apply and Quarantine, the manager also forwards the original message, e i , f i , e i d i , α i , and η i to the Digital Twin State Manager. Rejected messages are preserved only through their provenance records.
The Provenance Manager therefore creates the event identifier once, records the complete validation outcome, and supplies the information required by both the DT State Manager and the Audit Store.

6.6. Digital Twin State Manager

For each Digital Twin entity e, let F e denote the set of fields represented by the twin. The Digital Twin State Manager maintains
D T ( e ) = X e , A e , Γ e ,
where X e ( f ) is the current active value of field f, A e ( f ) is the event identifier that produced the current active value, and Γ e is the set of quarantined updates associated with entity e.
Let V be the value domain and EID the set of event identifiers. The maps satisfy X e : F e V { } and A e : F e EID { } , with X e ( f ) = if and only if A e ( f ) = .
If no verified value is available for field f, then
X e ( f ) = , A e ( f ) = .
If α i = Apply , the state manager performs
X e i ( f i ) p a y l o a d i ,
and
A e i ( f i ) e i d i .
Multiple authorized device-topic streams may map to the same DT field. In this case, the latest verified update processed by the Digital Twin State Manager replaces the active value, while the Audit Store preserves the events generated by all authorized sources.
If α i = Quarantine , the active value and its provenance reference remain unchanged. The state manager creates
q i = f i , p a y l o a d i , t s i , e i d i , η i
and adds it to the quarantine set:
Γ e i Γ e i { q i } .
Figure 3 summarizes how the validation actions affect the active DT state, the quarantine area, and the audit history. A rejected message does not modify X e , A e , or Γ e . A quarantined update never modifies the active state; any later approval must be represented as a new update and a new provenance event. Conversely, discard, retention, or removal of quarantined records is handled as an administrative follow-up action and is recorded through the audit layer rather than by rewriting the original validation decision.

6.7. Policy-Based View Generator

The Policy-Based View Generator derives consumer-specific representations from the internal DT state. Let u be a consumer, r o l e ( u ) its authorized role, and p u r p o s e ( u ) the declared purpose of the request.
For DT entity e, the policy returns two field sets:
O u X ( e ) , O u A ( e ) = Policy r o l e ( u ) , p u r p o s e ( u ) , e ,
where O u X ( e ) F e identifies the active values visible to u, and O u A ( e ) O u X ( e ) identifies the corresponding provenance references visible to u.
The function Policy is an abstraction of the authorization decision rather than a new policy language. It can be implemented by a rule-based policy store or by an XACML-compatible pattern in which a Policy Enforcement Point submits the consumer identity, role, purpose, requested entity, requested field, provenance flag, and quarantine-access flag to a Policy Decision Point [32]. Policy rules are versioned and updated through a separate administration function. The generated view can therefore be associated with a policy identifier and policy version in the audit history, while policy updates affect future view-generation decisions without modifying past provenance records.
The resulting view is
V i e w u ( D T ( e ) ) = X e | O u X ( e ) , A e | O u A ( e ) ,
where the restriction operator selects only the authorized fields, as illustrated by the examples of consumer-specific DT views in Table 6. The quarantine set Γ e is excluded from ordinary operational views and is available only through a separate security-analysis authorization.

6.8. Audit Store

The Audit Store is a trusted repository that preserves the provenance records generated by the Provenance Manager. It supports reconstruction of the validation and processing history of DT updates.
For each event identifier, the Audit Store provides
GetRecord ( e i d i ) = r i d .
For each DT field f of entity e, the Audit Store maintains the ordered sequence
History ( e , f ) = e i d 1 , e i d 2 , , e i d n ,
containing the events whose provenance records include e i = e and f i = f . The sequence is ordered by validation time and event identifier. It may include applied, quarantined, and rejected updates for which a valid DT mapping was available. Events produced by unknown devices or unauthorized topics have e i = f i = and remain available only in the global audit history.
The value A e ( f ) identifies only the event that produced the current active value. By contrast, History ( e , f ) preserves the complete validation history associated with the field. Since the provenance record stores the payload digest rather than the historical payload value, the Audit Store reconstructs the origin, validation result, and action of each event, but not the previous physical values after they have been overwritten in the active DT state.

7. Experimental Evaluation

This section evaluates the practical cost of the application-layer mechanisms introduced by TDT-Pipe before a telemetry message is admitted into the active Digital Twin (DT) state. The evaluation focuses on five aspects: integrity-protection operations, per-message processing latency, update throughput, memory footprint, and audit persistence. The goal is to isolate the cost of the proposed update-admission logic, rather than to benchmark a complete MQTT deployment. The measured path therefore includes payload canonicalization, digest computation, message authentication, registry-based validation, provenance record creation, audit insertion, and controlled state update.
The workload is synthetic but structured according to the smart-building scenario used throughout the paper. It contains 20 rooms, each exposing five telemetry streams: temperature, humidity, CO2, occupancy, and energy. This configuration produces 100 registered device-topic streams. For each device, the Device Registry stores the validation key and the authorized topics. For each device-topic stream, it stores the payload rules, sequence state, freshness parameters, plausibility rules, and mapping to the corresponding DT field.
The same Python prototype was executed on two platforms. The first platform is a commodity laptop equipped with an Intel Core i7-7500U CPU at 2.70 GHz, 2 physical cores and 4 logical CPUs, 7.6 GiB of RAM, Ubuntu 20.04 with Linux kernel 5.15, and Python 3.8.10. The second platform is a Raspberry Pi 4 Model B equipped with a Broadcom BCM2711 quad-core ARM Cortex-A72 processor, 8 GB of RAM, and SD-card storage. Cryptographic operations are implemented with the standard Python hashlib and hmac libraries. The laptop provides a commodity reference host, while the Raspberry Pi 4 represents a low-cost edge-gateway platform. The measurements should therefore be read as prototype-level results for a single-process Python implementation, not as an optimized native implementation; nevertheless, running the same code on the Raspberry Pi 4 provides a direct indication of the overhead on constrained edge hardware.
The benchmark generates device identifiers, topic names, timestamps, sequence numbers, registry entries, provenance records, and DT state updates. Unless otherwise stated, registry lookup, validation state, provenance records, and DT state updates are maintained in memory. This choice makes the first four experiments focus on application-layer computation. Audit persistence is evaluated separately using SQLite, so that the cost of non-volatile audit storage can be observed explicitly. Consequently, the latency and throughput measurements do not include MQTT broker delay, network transmission, TLS session handling, physical sensor acquisition, or database-backed DT state management.
All performance experiments use warm-up executions and repeated measurements. Timing results are reported in microseconds (µs) for per-operation and per-message latency, while throughput is reported in processed messages per second. In the integrity-protection microbenchmark, each operation is measured over 9 repetitions, with 5000 iterations per repetition and 1000 warm-up iterations. The per-operation time is obtained by dividing the elapsed time of each repetition by the number of iterations. In the latency experiment, each repetition processes 10,000 messages after a warm-up of 1000 messages, and 5 repetitions are used. In the throughput experiment, each configuration processes 10,000 messages per repetition, with 5 repetitions and a warm-up of 1000 messages for each evaluated mode. Resource usage is measured over 30,000-message workloads. Audit persistence is measured over 3 repetitions of 100 messages for each persistence mode, because the per-message commit configuration is intentionally conservative and much slower than the other configurations. The plots report median values across repetitions. When p95 latency is reported, it is computed inside each repetition from the per-message timings; the value reported in the plot is the median of those p95 values across repetitions.

7.1. Integrity-Protection Operation Cost

The first experiment measures the cost of the integrity-protection operations used by TDT-Pipe. It evaluates three operations: deterministic JSON canonicalization followed by SHA-256 digest computation over the payload, HMAC-SHA256 generation over the protected message body, and HMAC-SHA256 verification. Payload sizes range from 128 B to 32 KB and denote the target size of the synthetic telemetry payload.
Figure 4 shows the same qualitative behavior on both platforms. Payload canonicalization and digest computation increase with payload size because the full payload representation must be serialized and processed by SHA-256. On the laptop, the median digest cost grows from approximately 5.7 µs for 128 B payloads to approximately 181.5 µs for 32 KB payloads. On the Raspberry Pi 4, the same operation grows from approximately 26.3 µs to approximately 422.1 µs. The Raspberry Pi 4 is slower in absolute terms, as expected for an edge-class device, but the scaling behavior is consistent with the laptop measurements.
By contrast, HMAC-SHA256 generation and verification remain almost constant across payload sizes. On the laptop, both operations remain around 11–12 µs. On the Raspberry Pi 4, they remain around 44–45 µs. This is a consequence of the protected message format: the HMAC is computed over a compact body containing the device identifier, topic, timestamp, sequence number, and payload digest, rather than over the complete payload. Payload size therefore has little effect on authentication-tag generation and verification, while canonicalization and digest computation dominate the integrity-processing cost for larger payloads.

7.2. Per-Message Processing Latency

The second experiment measures per-message latency along the main stages of the TDT-Pipe update path. The workload contains valid telemetry messages with 512 B payloads and 100 registered device-topic streams. The measured path is divided into secure publication, gateway validation, provenance record creation, and DT state action.
Figure 5 shows that most of the latency is concentrated in secure publication and gateway validation. On the laptop, these stages require approximately 27.8 µs and 28.7 µs, respectively. On the Raspberry Pi 4, they require approximately 93.6 µs and 97.6 µs. Secure publication includes payload canonicalization, SHA-256 digest computation, protected-body construction, HMAC-SHA256 generation, and message creation. Gateway validation includes the in-memory registry lookup, topic authorization check, structural payload validation, digest recomputation, digest comparison, HMAC recomputation and verification, sequence-number validation, timestamp freshness validation, semantic plausibility checking, and sequence-state update.
The remaining stages are lighter. Provenance record creation requires approximately 5.4 µs on the laptop and 17.6 µs on the Raspberry Pi 4. The DT state action requires approximately 1.2 µs on the laptop and 4.5 µs on the Raspberry Pi 4 for valid updates. The complete measured path has a median latency of approximately 64.3 µs on the laptop and 218.6 µs on the Raspberry Pi 4. The corresponding median p95 values are approximately 80.4 µs and 241.2 µs. The stage distribution is therefore preserved across platforms: secure publication and gateway validation dominate the cost, while provenance creation and active-state update add a smaller overhead.

7.3. Pipeline Throughput

The third experiment evaluates the throughput of the in-memory update path. Throughput is computed as the number of processed messages divided by the elapsed processing time. Two configurations are compared. The first is a direct-update baseline, where a received payload is mapped to the corresponding DT field and applied directly. The second is the full TDT-Pipe pipeline, which includes secure publication, validation, provenance record creation, audit insertion, and controlled state update.
Figure 6 shows that the direct-update baseline remains approximately constant as payload size increases. On the laptop, the baseline ranges from approximately 3.8 × 10 5 to 4.1 × 10 5 messages/s. On the Raspberry Pi 4, it remains close to 1.0 × 10 5 messages/s. This behavior is expected because the baseline does not inspect, canonicalize, hash, or authenticate the payload content; it mainly performs in-memory mapping and assignment operations.
The full TDT-Pipe pipeline exhibits the expected decreasing trend as payload size increases. On the laptop, the median throughput decreases from approximately 16.6k messages/s for 128 B payloads to approximately 6.4k messages/s for 8 KB payloads. On the Raspberry Pi 4, it decreases from approximately 5.0k messages/s to approximately 2.5k messages/s over the same payload-size range. The decrease is mainly caused by the increasing cost of canonicalizing and hashing larger payloads, as observed in Figure 4. The HMAC cost remains comparatively stable, while the payload digest cost grows with the amount of data to be processed.
The gap between the baseline and TDT-Pipe quantifies the cost of enforcing application-layer integrity, freshness validation, anti-replay protection, topic authorization, semantic admission control, provenance creation, audit insertion, and controlled DT state management. Although this overhead is substantial relative to a minimal in-memory assignment, the protected pipeline still processes thousands of messages per second on both platforms. The result supports the feasibility of the approach for moderate-rate edge telemetry workloads, while also showing the expected capacity reduction on constrained hardware.

7.4. Memory Footprint

The fourth experiment evaluates the memory footprint of the benchmarked process. The workload processes 30,000 messages for 512 B and 8 KB payloads under both the direct-update baseline and the full TDT-Pipe pipeline. During the processing loops, single-process CPU utilization remains close to one fully used core on both platforms. Since this value is nearly constant and does not distinguish the configurations, the resource comparison focuses on peak resident set size (RSS), which captures the memory footprint of the Python process during the workload.
Figure 7 shows consistent memory usage across the two platforms. For 512 B payloads, the direct-update baseline uses approximately 81 MB of peak RSS, while the full TDT-Pipe pipeline uses approximately 97 MB. For 8 KB payloads, peak RSS increases to approximately 299–301 MB for the baseline and 315–317 MB for the full pipeline. The additional memory associated with TDT-Pipe is therefore approximately 16 MB in the evaluated workloads. This increase is mainly due to the message metadata, provenance records, validation results, and audit entries maintained by the protected path.

7.5. Audit Persistence Cost

The fifth experiment evaluates the cost of persisting audit records. This experiment complements the in-memory measurements above, because practical non-repudiation and accountability requirements normally require audit and provenance records to be stored on non-volatile media. The in-memory configuration therefore represents a volatile reference case, while the SQLite configurations represent database-backed audit insertion. Three configurations are compared: in-memory audit append, SQLite insertion with a batch commit every 100 records, and SQLite insertion with one commit per processed message. The last configuration is intentionally conservative and represents a worst-case synchronization policy.
Figure 8 shows that audit persistence can dominate the end-to-end cost when records are forced to durable storage. On the laptop, in-memory audit append reaches approximately 9.8k messages/s, SQLite with batch commits reaches approximately 235 messages/s, and SQLite with per-message commits reaches approximately 3 messages/s. On the Raspberry Pi 4, in-memory audit append reaches approximately 4.6k messages/s, SQLite with batch commits reaches approximately 2.0k messages/s, and SQLite with per-message commits reaches approximately 70 messages/s.
These values should be interpreted as storage-dependent measurements rather than as a general indication that one platform is faster than the other. The laptop used in the experiment is equipped with a conventional hard disk, whereas the Raspberry Pi 4 uses SD-card storage. SQLite performance is strongly affected by the storage medium, filesystem, cache behavior, journaling configuration, and commit policy. The important observation is therefore not that one platform is universally faster for persistence, but that durable audit storage introduces a deployment-dependent bottleneck. Batching audit commits substantially improves throughput compared with forcing a synchronization for every message, and should be preferred when the application can tolerate bounded buffering of audit records.

7.6. Discussion

The experimental results lead to four main observations. First, HMAC-SHA256 generation and verification remain stable across payload sizes because they process the compact protected body rather than the complete payload. Payload canonicalization and digest computation scale with payload size and become the dominant integrity-processing cost for larger telemetry messages.
Second, secure publication and gateway validation are the principal contributors to per-message latency. For 512 B payloads, the complete measured path requires approximately 64.3 µs on the laptop and 218.6 µs on the Raspberry Pi 4. The Raspberry Pi 4 is slower in absolute terms, but the stage-level distribution remains similar. This indicates that the proposed processing model scales predictably from a commodity host to a constrained edge platform.
Third, the protected pipeline maintains throughput in the thousands of messages per second on both platforms. The laptop processes approximately 6.4k–16.6k protected updates/s across the evaluated payload sizes, while the Raspberry Pi 4 processes approximately 2.5k–5.0k protected updates/s. These values are lower than the direct-update baseline, as expected, but they quantify the cost of the additional security, provenance, freshness, anti-replay, authorization, and controlled-admission mechanisms.
Fourth, persistent audit storage is the most deployment-sensitive component. In-memory evaluation is useful for isolating application-layer computation, but durable audit insertion depends strongly on the storage backend and synchronization policy. The SQLite results show that per-message durable commits can severely reduce throughput, whereas batched commits provide a more practical trade-off between persistence cost and audit durability. For deployments with stricter non-repudiation requirements, the storage backend and commit policy should therefore be selected as part of the system design rather than treated as an implementation detail.
Finally, the evaluation should be interpreted as a prototype-level assessment of the update-admission path. Broker scheduling, network delay, TLS session management, and physical sensor acquisition are outside the measured path and remain part of future deployment-level validation.

8. Security Analysis

This section analyzes the security guarantees provided by TDT-Pipe. The analysis first specifies the assumptions under which the guarantees hold and the symbolic verification model used to support the main correspondence claims. It then describes the effects of the three possible validation actions and proves the main properties concerning active-state safety, authentication, integrity, freshness, controlled state modification, audit traceability, and view confinement.

8.1. Security Assumptions

The adversary may observe, inject, modify, delay, replay, reorder, or remove telemetry messages transmitted between a Secure Publisher and the Edge Security Gateway. The communication path and the MQTT broker may therefore deliver arbitrary messages to the gateway.
For each non-compromised device d, the adversary is assumed not to know the validation key K d . HMAC is assumed to be unforgeable without knowledge of the key. The hash function H ( · ) is assumed to provide collision and second-preimage resistance, and the canonical representation can ( · ) is assumed to be deterministic.
The Device Registry, Edge Security Gateway, Provenance Manager, Digital Twin State Manager, Policy-Based View Generator, and Audit Store are assumed to be trusted and to execute the operations defined by the model correctly. The stored sequence state s d ( t o p i c ) is assumed not to be rolled back.
Under these assumptions, a valid HMAC shows that a message was generated by an entity holding the key associated with the claimed device identifier. It does not guarantee that the corresponding physical sensor is uncompromised or that the reported measurement is physically correct.

8.2. Effects of Message Processing

A primed symbol denotes the value of a state component after processing message m i d . Every processed message produces one provenance record r i d , which is appended to the audit history H :
H = H | r i d ,
where | denotes sequence concatenation.
The remaining changes depend on the action selected by the Edge Security Gateway.
  • Apply.
The action is Apply only when all mandatory predicates are true and both warning predicates are false. Let
μ d ( t o p i c ) = ( e i , f i ) .
The sequence state of the corresponding device-topic stream is updated as
s d ( t o p i c ) = s e q i
The active value and its provenance reference are updated as
X e i ( f i ) = p a y l o a d i
and
A e i ( f i ) = e i d i .
All other sequence-state entries, active values, and provenance references remain unchanged. The quarantine sets are also unchanged.
  • Quarantine.
The action is Quarantine when all mandatory predicates are true but at least one warning predicate is true. The sequence state is updated as
s d ( t o p i c ) = s e q i .
The active values and their provenance references remain unchanged:
X = X and A = A .
The quarantine record is added to the quarantine set associated with the mapped entity:
Γ e i = Γ e i { q i } .
All other quarantine sets remain unchanged.
  • Reject.
The action is Reject when at least one mandatory predicate is false. No operational state is modified:
s d ( t o p i c ) = s d ( t o p i c ) , X = X , A = A , Γ = Γ .
The only effect of the rejected message is the insertion of its provenance record into the Audit Store.

8.3. Security Properties

Property 1
(Active-state safety). For every entity e and field f, if an active value exists, then its provenance reference identifies a verified update whose action was Apply and whose digest matches the active value.
More precisely, if
X e ( f ) ,
then there exists an event identifier e i d i such that
A e ( f ) = e i d i ,
and the record
r i d = GetRecord ( e i d i )
satisfies
e i = e , f i = f , δ i = Verified , α i = Apply ,
and
p i = H can ( X e ( f ) ) .
Proof. 
The proof proceeds by induction on the number of processed messages.
Before the first message is processed, each active field is either empty or has been initialized with a value already satisfying the property. Therefore, the property holds initially.
Assume that the property holds after processing a finite number of messages. Consider the next message.
If its action is Apply, the Provenance Manager creates record r i d with decision Verified, action Apply, event identifier e i d i , and mapping ( e i , f i ) . Predicate C 4 guarantees that
p i = H can ( p a y l o a d i ) .
The Digital Twin State Manager then assigns
X e i ( f i ) = p a y l o a d i
and
A e i ( f i ) = e i d i .
The newly active value is therefore linked to the record of the same verified and applied update. Its digest also satisfies
p i = H can ( X e i ( f i ) ) .
All other active fields remain unchanged and continue to satisfy the induction hypothesis.
If the action is Quarantine, neither X nor A is modified. Therefore, all active values and their provenance references remain unchanged and continue to satisfy the property.
If the action is Reject, neither X nor A is modified. A rejected message cannot introduce a new active value or replace an existing one.
Since the property is preserved in all three cases, it holds after any finite sequence of processed messages.    □
Property 2
(Authentication and topic authorization). Every message assigned either Apply or Quarantine is associated with a registered device, uses an authorized topic, and has a valid device-specific HMAC.
Formally,
α i { Apply , Quarantine }
implies
d D , t o p i c T d , τ i d = HMAC K d ( c i d ) .
Proof. 
An Apply or Quarantine action is produced only after all mandatory predicates succeed. Predicates C 1 , C 2 , and C 5 respectively verify device registration, topic authorization, and the HMAC. Therefore, all three stated conditions hold.
Because the topic is included in the protected body c i d , moving a valid message to another topic changes the authenticated content. The original HMAC is then invalid. Moreover, the Device Registry uses the mapping μ d ( t o p i c ) = ( e , f ) to identify the specific Digital Twin entity and field associated with the authorized device-topic stream. Therefore, an applied message can modify only that mapped field.    □
Property 3
(Payload and metadata integrity). Every message assigned either Apply or Quarantine has a payload matching its transmitted digest and a valid HMAC protecting the digest and the security-relevant metadata.
Formally,
p i = H can ( p a y l o a d i )
and
τ i d = HMAC K d can ( d , t o p i c , t s i , s e q i , p i ) .
Proof. 
An Apply or Quarantine action requires both C 4 and C 5 to be true. Predicate C 4 establishes that the received payload produces the received digest. Predicate C 5 establishes that the device identifier, topic, timestamp, sequence number, and payload digest match the protected body used to generate the HMAC.
Changing the payload without changing p i causes C 4 to fail. Changing the payload together with p i , or changing any protected metadata, requires a new valid HMAC. Under the assumed unforgeability of HMAC, an adversary that does not know K d cannot produce that tag except with negligible probability.    □
Property 4
(Replay and freshness safety). A message can be applied or quarantined only if it is newer than the greatest previously admitted message of the same device-topic stream and its timestamp falls within the accepted interval.
Therefore,
α i { Apply , Quarantine }
implies
s e q i > s d ( t o p i c )
and
ϵ d t v t s i Δ d m a x .
Proof. 
An Apply or Quarantine action requires predicates C 6 and C 7 to be true. Predicate C 6 requires the received sequence number to be greater than the stored sequence state. Predicate C 7 requires the timestamp to fall within the configured interval.
After an applied or quarantined message, the gateway sets
s d ( t o p i c ) s e q i .
The stored sequence state therefore never decreases. A later message carrying the same or a smaller sequence number fails C 6 and is rejected. Similarly, a message that is expired or excessively future-dated fails C 7 and is rejected without modifying the sequence state or the active DT state.    □
Property 5
(Controlled state modification). Only an Apply action can modify the active value map X or the provenance-reference map A.
A Quarantine action satisfies
X = X and A = A ,
while a Reject action satisfies
s d ( t o p i c ) = s d ( t o p i c ) , X = X , A = A , Γ = Γ .
Proof. 
The result follows directly from the three message-processing rules. The Apply rule assigns a new payload and event identifier to X e i ( f i ) and A e i ( f i ) . The Quarantine rule changes only the sequence state, the corresponding quarantine set, and the audit history. The Reject rule changes only the audit history.
Consequently, a suspicious value cannot overwrite an active value, and a rejected value cannot affect any operational state. A quarantined value can become active only through a later message that is processed as a new Apply event.    □
Property 6
(Audit traceability). Every processed message produces one provenance record. Every active value is linked to the event that produced it, and every quarantined value is linked to its quarantine event.
Proof. 
By construction, the Edge Security Gateway produces exactly one decision, one action, and one reason code for each processed message. The Provenance Manager uses this information to create one record r i d with a unique identifier e i d i and appends it to the Audit Store.
For an applied message, the DT State Manager sets
A e i ( f i ) = e i d i .
The active value is therefore linked to the record that produced it. For a quarantined message, the event identifier is stored in
q i = f i , p a y l o a d i , t s i , e i d i , η i .
Rejected messages are not associated with an active or quarantined value, but their records remain available in the global audit history. Hence, the validation decision and its effect can be reconstructed for every processed message.    □
Property 7
(View confinement). A consumer can receive only the active fields and provenance references selected by the applicable policy.
The released view is
V i e w u ( D T ( e ) ) = X e | O u X ( e ) , A e | O u A ( e ) .
Moreover,
O u A ( e ) O u X ( e ) .
Proof. 
The restriction operator removes every entry whose field is not contained in the selected field set. Therefore, X e | O u X ( e ) contains no active value outside O u X ( e ) , and A e | O u A ( e ) contains no provenance reference outside O u A ( e ) .
Since O u A ( e ) O u X ( e ) , a provenance reference cannot be exposed when the corresponding active field is not visible. The quarantine set Γ e is not included in the ordinary view. The property holds provided that the policy is correctly configured and the Policy-Based View Generator remains trusted.    □

8.4. Symbolic Verification with ProVerif

To complement the manual security arguments, we modeled the security-critical part of TDT-Pipe in ProVerif. ProVerif is a symbolic verifier for cryptographic protocols in the applied pi calculus and is commonly used to analyze secrecy and correspondence properties under a Dolev–Yao adversary [33]. Similar modeling practice has been used for large-scale protocol analyses such as TLS 1.3, which separate claims across symbolic, computational, and implementation-oriented artifacts and make clear which guarantees are supported by each abstraction [34]. The complete ProVerif files and execution scripts are available in a public GitHub repository: https://github.com/vincenzodeangelisrc/TDT-Pipe (accessed on 20 August 2026).
The ProVerif analysis abstracts the cryptographic operations symbolically. The payload digest, the protected canonical body, and the HMAC are represented as constructors over bitstrings. The protected_body constructor assumes an unambiguous and consistently implemented canonical encoding; the correctness of the concrete serialization and canonicalization procedure is outside the symbolic model. The MQTT path is modeled as public and controlled by the attacker; hence, the adversary can observe, inject, modify, drop, reorder, and replay messages. The device validation keys for non-compromised devices are private names. The Sensor-to-Secure-Publisher channels are private, which captures the explicit assumption that the local sensor-to-publisher link is trusted. The Device Registry is represented by two registered device-topic streams, each associated with its own validation key and authorized topic. This finite registry is a representative instance of the general rule defined in Section 5.2: the gateway first enforces the registered device-topic association and then verifies payload-digest consistency and the HMAC over the protected body.
The ProVerif validation uses three complementary models, each with a distinct purpose.
  • The main pipeline model represents the complete symbolic actor chain: Sensor, Secure Publisher, untrusted MQTT broker/channel, Edge Security Gateway, Provenance Manager, and DT State Manager. It includes two registered streams, one unauthorized topic, per-stream symbolic locks around the sequence-state check-and-insert operation, and private channels from the gateway to the downstream managers.
  • A bounded atomic-replay model isolates the sequence-state behavior for two gateway inputs. It represents the already accepted device-topic-sequence triple explicitly for the second input and checks whether an exact reuse of that triple can produce a second gateway acceptance under a sequential gateway abstraction. The same model also checks that exact replay inputs can reach the rejection branch and that a distinct second valid update can still be accepted.
  • A bounded honest-execution model is used only as a reachability sanity check. It verifies that both registered streams can reach gateway_accept. This model is not used as an adversarial security proof. It provides an independent sanity check that the device-specific validation conditions are satisfiable and that the corresponding direct honest flows can reach gateway_accept. Because it is a simplified model, it does not establish reachability in the replicated main pipeline model.
The main pipeline model verifies the following symbolic properties. First, the private validation keys of the two non-compromised devices remain secret. Second, gateway acceptance implies a prior secure publication of the same device, topic, payload, sequence value, and timestamp. ProVerif proves this authentication correspondence in the non-injective form, meaning that accepted messages originate from matching secure publications, without claiming global injective authentication for the replicated gateway process. Third, a message on the modeled unauthorized topic cannot be accepted. Fourth, under the private Sensor-to-Secure-Publisher assumption, every accepted payload is linked to a corresponding sensor-measurement event. Fifth, provenance and DT-state processing events can only originate from gateway-validated telemetry. This last property is expressed from the downstream managers back to the gateway validation event, so it is a safety property: it states that downstream processing is not triggered by unvalidated data. It does not claim eventual durable storage or eventual DT-state application for every accepted message.
The reachability sanity model gives the expected ProVerif result not event(...) is false for both registered device-topic streams. In other words, the negation of gateway acceptance is false in the bounded honest execution, so both modeled honest flows are reachable. These checks are reported separately from the adversarial properties because reachability is not itself a security guarantee.
Replay protection requires a more careful interpretation. In the formal update model, replay resistance is enforced by the monotonic sequence predicate and by updating the stored sequence state only after successful validation. In the ProVerif pipeline model, this behavior is represented symbolically by a seen table and by per-stream locks that make the check-and-insert operation atomic for each device-topic stream. Because global injective correspondence over a replicated gateway and mutable sequence state is stronger than what the main symbolic abstraction is intended to establish, replay is checked in a separate focused model.
The bounded atomic-replay model checks the following representative property: after one valid update has been accepted, an exact reuse of the same device-topic-sequence triple cannot produce a second acceptance in the modeled two-input sequential execution. ProVerif proves this safety property through the negated gateway_second_accept event query in which the current second input is constrained to reuse the stored device, topic, and sequence values. The repeated variables in the query encode equality between the current and stored stream identifiers. The model also includes reachability checks to avoid a vacuous interpretation of this result. ProVerif finds traces reaching replay_rejected for both registered streams, which shows that exact replays are represented and are routed to the rejection branch. It also finds a trace reaching gateway_second_accept for a distinct valid second update, showing that the model does not reject every second input indiscriminately. Together, these results show that, in the bounded two-input sequential abstraction, an exact replay can reach the replay-filtering branch but cannot produce a second acceptance, whereas a distinct valid update can still be accepted.

9. Discussion and Limitations

TDT-Pipe focuses on the update-admission boundary between delivered telemetry and active Digital Twin state modification. Several deployment mechanisms are therefore complementary to the model rather than embedded directly in it. First, the paper assumes that device validation keys are provisioned before telemetry validation and remain secret for non-compromised devices. In a practical deployment, key provisioning, protected storage, rotation, revocation, and device onboarding/offboarding are lifecycle operations of the Device Registry, possibly integrated with an external key-management service, PKI-assisted enrollment, secure elements, TPM/TEE support, or manufacturing-time provisioning. These operations do not change the validation predicates themselves, but they determine which device profiles, topics, and key versions are active at a given time. For deployments with hundreds or thousands of devices, this lifecycle automation is necessary for scalability; the present model specifies how the active registry state is enforced at update admission, but it does not prescribe a complete enterprise key-management protocol.
The monotonic sequence mechanism has a similarly explicit scope. It assumes that each Secure Publisher maintains a persistent per-topic counter and that the gateway maintains persistent per-stream sequence state. Lost messages do not permanently desynchronize the stream, because sequence gaps are accepted as long as the next received value is greater than the stored value. Exceptional cases such as device reboot with counter loss, counter exhaustion, or long offline periods require an explicit recovery action rather than silent acceptance of lower sequence numbers. A deployment can handle these cases by using non-volatile counters, large sequence spaces, stream epochs or key versions, administrative resynchronization, or device re-enrollment through the Device Registry. Such recovery actions update the active registry state and should be recorded in the audit trail.
A stronger limitation arises when a device key is extracted. Since the proposed telemetry format uses symmetric message authentication, possession of the validation key is equivalent to possession of the corresponding device’s authentication capability. An adversary holding that key can generate cryptographically valid messages for the device identity. The gateway can still enforce topic authorization, payload-structure checks, timestamp and sequence validation, semantic plausibility rules, quarantine, and audit traceability, but it cannot cryptographically distinguish the legitimate Secure Publisher from an attacker holding the same key. Mitigations include secure elements, protected key storage, trusted execution environments, remote attestation, rapid key revocation, and anomaly-detection or operator-review workflows for suspicious authenticated streams. The Edge Security Gateway and Device Registry are also part of the trusted computing base because they store validation material, authorization profiles, and sequence state. Their protection is therefore an important deployment concern: a compromise of these components may affect the validation of several device streams and should trigger containment and recovery procedures. Practical hardening measures include hardware-backed key storage, trusted execution environments, encrypted key stores, least-privilege separation between registry and validation services, audit-protected administrative operations, remote attestation where available, and rapid re-keying after a suspected breach. These mechanisms complement the proposed update-admission model and reduce the operational risk associated with trusted edge components.
Quarantine management is also treated as a controlled holding state rather than as the main contribution of the paper. The role of TDT-Pipe is to ensure that suspicious but authenticated telemetry does not silently modify the active DT state and that sufficient evidence is preserved for later inspection. The subsequent disposition of quarantined records is deployment-specific. For example, an operator or a domain-specific validation service may confirm the record and release a corrected update, discard it as anomalous, retain it for forensic analysis, or remove it according to a retention policy. These follow-up actions should be recorded as additional audit events and should not rewrite the original validation decision. Thus, the safety-relevant property addressed by the proposed model is the separation between initial admission and active-state modification; the design of a complete quarantine case-management workflow, including storage quotas, review deadlines, escalation rules, and deletion policies, is complementary to the proposed update-admission architecture.
Similarly, the Policy-Based View Generator specifies the information needed for field-level view confinement, but a complete policy administration interface is deployment-specific. The proposed model requires policy decisions to be explicit, versioned, and auditable, so that changes in access rules affect future views without altering historical provenance or audit records.
The timestamp predicates also assume bounded clock misalignment between the Secure Publisher and the Edge Security Gateway. In constrained IoT deployments, clock drift, intermittent synchronization, reboot events, or long offline periods may increase the difference between the device timestamp and the gateway validation time. If this difference exceeds the configured tolerance, the system may produce conservative false positives by quarantining or rejecting measurements that are authentic but temporally misaligned. This behavior is intentional from a safety perspective, because the gateway should not silently apply telemetry whose freshness cannot be established. Practical mitigations include NTP/PTP synchronization when available, registry-level clock-skew profiles for device classes, bounded adaptive tolerance based on observed drift, heartbeat or resynchronization messages, and administrative review before relaxing freshness parameters for a stream.
Finally, semantic plausibility is represented as a rule-based predicate in the evaluated device profile. This keeps the admission decision simple and transparent for fields with known physical constraints or admissible operating ranges. The same interface can also support richer deployments: time-varying operating regimes can integrate adaptive thresholds, learned plausibility models, context-aware rules, or human-in-the-loop review into the admission structure. In that case, TDT-Pipe provides the validation, quarantine, and provenance framework, while the domain-specific plausibility model supplies the decision logic used by the corresponding predicate.

10. Conclusions

This paper presented TDT-Pipe, a security-aware architecture for controlling the path from IoT telemetry publication to Digital Twin state update. The proposal starts from the observation that MQTT delivery and DT admission are different operations: a broker can route a message successfully even when the message is unauthorized, modified, replayed, stale, structurally invalid, or unsuitable for automatic application. TDT-Pipe therefore introduces an explicit validation boundary between the communication layer and the active DT state.
The architecture combines a protected telemetry format, device-specific registry profiles, mandatory and warning predicates, provenance generation, controlled state management, quarantine, audit storage, and policy-based views. Each message binds its payload digest to the device identifier, topic, timestamp, and sequence number through a device-specific HMAC. The validation result is mapped deterministically to an Apply, Quarantine, or Reject action. This design connects message-level verification with the exact effect produced on the Digital Twin and preserves an event identifier for active and quarantined values.
The experimental evaluation provides a validation of the feasibility of the approach. The results suggest that source validation, integrity protection, provenance creation, audit insertion, and controlled state admission can be combined within an IoT Digital Twin pipeline with promising performance characteristics.
Overall, TDT-Pipe provides a unified foundation for trustworthy MQTT-fed Digital Twins by linking communication evidence, admission decisions, provenance, and state-management semantics. It complements existing work on Digital Twin architectures, IoT security, MQTT integrity, and provenance by defining not only whether a message is valid, but also whether and how that message is allowed to affect the active digital representation.

Funding

This research received no external funding.

Data Availability Statement

The data presented in this study are available from the corresponding author upon reasonable request.

Conflicts of Interest

The author declares no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
CPUCentral Processing Unit
DTDigital Twin
HMACHash-Based Message Authentication Code
HMAC-SHA256HMAC based on SHA-256
IPFSInterPlanetary File System
IoTInternet of Things
JSONJavaScript Object Notation
MQTTMessage Queuing Telemetry Transport
OASISOrganization for the Advancement of Structured Information Standards
RAMRandom Access Memory
SHA-256Secure Hash Algorithm 256-bit
TLSTransport Layer Security
W3CWorld Wide Web Consortium
XACMLeXtensible Access Control Markup Language

References

  1. Minerva, R.; Lee, G.M.; Crespi, N. Digital Twin in the IoT Context: A Survey on Technical Features, Scenarios, and Architectural Models. Proc. IEEE 2020, 108, 1785–1824. [Google Scholar] [CrossRef] [Scilit]
  2. Kritzinger, W.; Karner, M.; Traar, G.; Henjes, J.; Sihn, W. Digital Twin in manufacturing: A categorical literature review and classification. IFAC-PapersOnLine 2018, 51, 1016–1022. [Google Scholar] [CrossRef] [Scilit]
  3. Vidakis, N.; Lasithiotakis, M.A.; Karapidakis, E. Environmental monitoring through embedded system and sensors. In Proceedings of the 2017 52nd International Universities Power Engineering Conference (UPEC), Heraklion, Crete, 28–31 August 2017; pp. 1–7. [Google Scholar] [CrossRef] [Scilit]
  4. Lazzaro, A.; Merenda, M.; Praticò, F.G. Parasitic Monitoring of Road Constructions: Setting Up and Implementing a New System for Pavement-Tyre Friction. IEEE Access 2025, 13, 95358–95378. [Google Scholar] [CrossRef] [Scilit]
  5. Al-Fuqaha, A.; Guizani, M.; Mohammadi, M.; Aledhari, M.; Ayyash, M. Internet of Things: A Survey on Enabling Technologies, Protocols, and Applications. IEEE Commun. Surv. Tutor. 2015, 17, 2347–2376. [Google Scholar] [CrossRef] [Scilit]
  6. Banks, A.; Briggs, E.; Borgendale, K.; Gupta, R. MQTT, Version 5.0; OASIS Open: Woburn, MA, USA, 2019.
  7. Dakhia, Z.; Lazzaro, A.; Sebti, M.R.; Russo, M.; Merenda, M. On-Device Federated Learning for Energy-Efficient Smart Irrigation. Electronics 2025, 14, 4311. [Google Scholar] [CrossRef] [Scilit]
  8. Roman, R.; Zhou, J.; Lopez, J. On the features and challenges of security and privacy in distributed internet of things. Comput. Netw. 2013, 57, 2266–2279. [Google Scholar] [CrossRef] [Scilit]
  9. Sicari, S.; Rizzardi, A.; Grieco, L.; Coen-Porisini, A. Security, privacy and trust in Internet of Things: The road ahead. Comput. Netw. 2015, 76, 146–164. [Google Scholar] [CrossRef] [Scilit]
  10. Longo, G.; Lupia, F.; Merlo, A.; Pagano, F.; Russo, E. A data anonymization methodology for security operations centers: Balancing data protection and security in industrial systems. Inf. Sci. 2025, 690, 121534. [Google Scholar] [CrossRef] [Scilit]
  11. Lazzaro, S.; De Angelis, V.; Mandalari, A.M.; Buccafurri, F. A black-box assessment of authentication and reliability in consumer IoT devices. Pervasive Mob. Comput. 2025, 110, 102045. [Google Scholar] [CrossRef] [Scilit]
  12. Buccafurri, F.; De Angelis, V.; Lazzaro, S.; Vangala, A. MQTT-E: E2E encryption in MQTT via proxy re-encryption avoiding broker overloading. Ad Hoc Netw. 2025, 176, 103878. [Google Scholar] [CrossRef] [Scilit]
  13. Lazzaro, S.; Buccafurri, F. Achieving Accountability and Data Integrity in Message Queuing Telemetry Transport Using Blockchain and Interplanetary File System. Future Internet 2024, 16, 246. [Google Scholar] [CrossRef] [Scilit]
  14. World Wide Web Consortium. PROV-DM: The PROV Data Model; W3c Recommendation; World Wide Web Consortium: Cambridge, MA, USA, 2013. [Google Scholar]
  15. Buccafurri, F.; De Angelis, V.; Lazzaro, S. A Blockchain-Based Framework to Enhance Anonymous Services with Accountability Guarantees. Future Internet 2022, 14, 243. [Google Scholar] [CrossRef] [Scilit]
  16. Barricelli, B.R.; Casiraghi, E.; Fogli, D. A Survey on Digital Twin: Definitions, Characteristics, Applications, and Design Implications. IEEE Access 2019, 7, 167653–167671. [Google Scholar] [CrossRef] [Scilit]
  17. Fuller, A.; Fan, Z.; Day, C.; Barlow, C. Digital Twin: Enabling Technologies, Challenges and Open Research. IEEE Access 2020, 8, 108952–108971. [Google Scholar] [CrossRef] [Scilit]
  18. Negri, E.; Fumagalli, L.; Macchi, M. A Review of the Roles of Digital Twin in CPS-based Production Systems. Procedia Manuf. 2017, 11, 939–948. [Google Scholar] [CrossRef] [Scilit]
  19. Jones, D.; Snider, C.; Nassehi, A.; Yon, J.; Hicks, B. Characterising the Digital Twin: A systematic literature review. CIRP J. Manuf. Sci. Technol. 2020, 29, 36–52. [Google Scholar] [CrossRef] [Scilit]
  20. Semeraro, C.; Lezoche, M.; Panetto, H.; Dassisti, M. Digital twin paradigm: A systematic literature review. Comput. Ind. 2021, 130, 103469. [Google Scholar] [CrossRef] [Scilit]
  21. Rasheed, A.; San, O.; Kvamsdal, T. Digital Twin: Values, Challenges and Enablers From a Modeling Perspective. IEEE Access 2020, 8, 21980–22012. [Google Scholar] [CrossRef] [Scilit]
  22. VanDerHorn, E.; Mahadevan, S. Digital Twin: Generalization, characterization and implementation. Decis. Support Syst. 2021, 145, 113524. [Google Scholar] [CrossRef] [Scilit]
  23. Gehrmann, C.; Gunnarsson, M. A Digital Twin Based Industrial Automation and Control System Security Architecture. IEEE Trans. Ind. Inform. 2020, 16, 669–680. [Google Scholar] [CrossRef] [Scilit]
  24. Lu, Y.; Zhang, Y.; Liu, H.; Bader, S. TinyLSN: A Lightweight Network for Real-Time Marine Pipeline Leakage Detection in IoT Systems. IEEE Internet Things J. 2026, 13, 21104–21116. [Google Scholar] [CrossRef] [Scilit]
  25. Lu, Y.; Zhang, Y.; Liu, H.; Zhang, X.; Bader, S.; Rahardja, S. A Novel Lightweight Distributional Knowledge Harmonization Framework for Acoustic Emission-Based Marine Pipeline Leak Pattern Recognition. IEEE Trans. Ind. Inform. 2026, 1–12. [Google Scholar] [CrossRef] [Scilit]
  26. Vaccari, I.; Aiello, M.; Cambiaso, E. SlowITe, a Novel Denial of Service Attack Affecting MQTT. Sensors 2020, 20, 2932. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  27. Liu, Z.; Liang, T.; Lyu, J.; Lang, D. A security-enhanced scheme for MQTT protocol based on domestic cryptographic algorithm. Comput. Commun. 2024, 221, 1–9. [Google Scholar] [CrossRef] [Scilit]
  28. Bicocchi, N.; Fogli, M.; Giannelli, C.; Picone, M.; Virdis, A. Requirements and Design Architecture for Digital Twin End-to-End Trustworthiness. IEEE Internet Comput. 2024, 28, 31–39. [Google Scholar] [CrossRef] [Scilit]
  29. Dai, Y.; Wu, J.; Mao, S.; Rao, X.; Gu, B.; Qu, Y.; Lu, Y. Blockchain empowered access control for digital twin system with attribute-based encryption. Future Gener. Comput. Syst. 2024, 160, 564–576. [Google Scholar] [CrossRef] [Scilit]
  30. Qi, S.; Yang, X.; Yu, J.; Qi, Y. Blockchain-Aware Rollbackable Data Access Control for IoT-Enabled Digital Twin. IEEE J. Sel. Areas Commun. 2023, 41, 3517–3532. [Google Scholar] [CrossRef] [Scilit]
  31. Ouaddah, A.; Mousannif, H.; Abou Elkalam, A.; Ait Ouahman, A. Access control in the Internet of Things: Big challenges and new opportunities. Comput. Netw. 2017, 112, 237–262. [Google Scholar] [CrossRef] [Scilit]
  32. OASIS Open. eXtensible Access Control Markup Language (XACML), Version 3.0; OASIS Open: Woburn, MA, USA, 2013.
  33. Blanchet, B. Modeling and Verifying Security Protocols with the Applied Pi Calculus and ProVerif. Found. Trends Priv. Secur. 2016, 1, 1–135. [Google Scholar] [CrossRef] [Scilit]
  34. Bhargavan, K.; Blanchet, B.; Kobeissi, N. Verified Models and Reference Implementations for the TLS 1.3 Standard Candidate. In Proceedings of the 2017 IEEE Symposium on Security and Privacy (SP), San Jose, CA, USA, 22–24 May 2017; pp. 483–503. [Google Scholar] [CrossRef] [Scilit]
Figure 1. High-level architecture of TDT-Pipe.
Figure 1. High-level architecture of TDT-Pipe.
Futureinternet 18 00458 g001
Figure 2. Validation sequence for an incoming DT update.
Figure 2. Validation sequence for an incoming DT update.
Futureinternet 18 00458 g002
Figure 3. Effect of the validation actions on the active DT state, quarantine area, and audit history.
Figure 3. Effect of the validation actions on the active DT state, quarantine area, and audit history.
Futureinternet 18 00458 g003
Figure 4. Cost of payload canonicalization and SHA-256 digest computation, HMAC-SHA256 generation, and HMAC-SHA256 verification on the laptop and Raspberry Pi 4 platforms.
Figure 4. Cost of payload canonicalization and SHA-256 digest computation, HMAC-SHA256 generation, and HMAC-SHA256 verification on the laptop and Raspberry Pi 4 platforms.
Futureinternet 18 00458 g004
Figure 5. Per-message processing latency of the main TDT-Pipe stages for 512 B payloads on the laptop and Raspberry Pi 4 platforms. Bars show median processing time; error bars indicate the median p95 value across repetitions.
Figure 5. Per-message processing latency of the main TDT-Pipe stages for 512 B payloads on the laptop and Raspberry Pi 4 platforms. Bars show median processing time; error bars indicate the median p95 value across repetitions.
Futureinternet 18 00458 g005
Figure 6. Throughput of direct Digital Twin updates and of the full TDT-Pipe update pipeline for increasing payload sizes on the laptop and Raspberry Pi 4 platforms.
Figure 6. Throughput of direct Digital Twin updates and of the full TDT-Pipe update pipeline for increasing payload sizes on the laptop and Raspberry Pi 4 platforms.
Futureinternet 18 00458 g006
Figure 7. Peak resident set size of the benchmarked process for direct updates and full TDT-Pipe processing on the laptop and Raspberry Pi 4 platforms.
Figure 7. Peak resident set size of the benchmarked process for direct updates and full TDT-Pipe processing on the laptop and Raspberry Pi 4 platforms.
Futureinternet 18 00458 g007
Figure 8. Audit persistence throughput for in-memory audit append, SQLite batched insertion, and SQLite per-message commit on the laptop and Raspberry Pi 4 platforms.
Figure 8. Audit persistence throughput for in-memory audit append, SQLite batched insertion, and SQLite per-message commit on the laptop and Raspberry Pi 4 platforms.
Futureinternet 18 00458 g008
Table 1. Functional comparison with representative MQTT and Digital Twin security approaches.
Table 1. Functional comparison with representative MQTT and Digital Twin security approaches.
ApproachBoundaryMain GuaranteeRelation to DT Admission
MQTT standard with transport security [6]MQTT deliveryBroker-mediated publish–subscribe delivery; TLS may be used in deployments.Delivery security does not decide whether a telemetry value may update a DT field.
MQTT-E [12]MQTT payload confidentialityEnd-to-end confidentiality with proxy re-encryption.Confidential delivery is complementary to deciding whether the payload should update the DT.
Security-enhanced MQTT
scheme [27]
MQTT client–broker pathMutual authentication, topic access control, and encrypted transmission.It secures MQTT communication; DT admission and provenance remain outside its scope.
MQTT blockchain/IPFS accountability [13]MQTT message evidenceBlockchain- and Merkle-based integrity, accountability, and non-repudiation.It records evidence for MQTT exchanges, but does not define DT quarantine or update effects.
DT trustworthiness
architecture [28]
DT platform architectureRequirements and design guidance for trustworthy
DT platforms.
It addresses DT trustworthiness broadly; TDT-Pipe specifies the per-message admission decision.
Blockchain/ABE DT access control [29,30]DT data accessFine-grained access control for DT/IoT data using blockchain and ABE.It protects data sharing after generation; TDT-Pipe decides whether incoming telemetry may become active DT state.
TDT-PipeDT update admissionHMACs, freshness, sequence checks, registry authorization, provenance, quarantine, audit, and policy views.It maps each processed message to apply, quarantine, or reject before the active DT state changes.
Table 2. Logical components of TDT-Pipe and their research role.
Table 2. Logical components of TDT-Pipe and their research role.
ComponentResponsibilitySecurity Property
IoT deviceProduces physical measurements and status updates.Source of telemetry data.
Secure publisherConstructs authenticated and ordered update messages.Source authentication and payload integrity.
MQTT brokerRoutes telemetry messages from publishers to the validator.Delivery decoupling.
Device RegistryDefines authorized devices, topics, keys, payload rules, and sequence state.Authentication and authorization basis.
Edge Security GatewayAssigns a validation decision to each incoming update.Integrity validation, freshness, anti-replay, and topic enforcement.
Provenance ManagerCreates provenance records and associates events with DT actions.Traceability and accountability.
DT State ManagerApplies or quarantines updates according to the validation action.Controlled state modification.
Policy-Based View GeneratorReleases different DT fields to different consumers.Selective disclosure and data minimization.
Audit StorePreserves validation records and event histories.Post-incident reconstruction.
Table 3. Logical structure of a telemetry message.
Table 3. Logical structure of a telemetry message.
FieldNotationMeaning
Device identifierdLogical identity of the telemetry source.
Topic t o p i c Namespace identifying the intended DT entity and field.
Timestamp t s i Claimed generation time of the update.
Sequence number s e q i Monotonic counter used for ordering and replay detection within the device-topic stream.
Payload p a y l o a d i Measurement or device-status value.
Payload digest p i Hash of the canonical payload representation.
Integrity tag τ i d HMAC computed over the protected message fields.
Table 4. Decision semantics for DT updates.
Table 4. Decision semantics for DT updates.
DecisionMandatory PredicatesWarning PredicatesEffect
VerifiedAll trueNone trueApply the payload to the active DT state, create provenance, and advance s d ( t o p i c ) .
SuspiciousAll trueAt least one trueStore the payload in quarantine, create provenance, keep the active DT value unchanged, and advance s d ( t o p i c ) .
UntrustedAt least one falseNot evaluated for state updateReject the payload, create a rejection record, and keep s d ( t o p i c ) unchanged.
Table 5. Registry profile associated with a device.
Table 5. Registry profile associated with a device.
FieldNotationPurpose
Validation key K d Verifies the HMAC tag generated by device d.
Key lifecycle metadataIdentifies the active key version, validity interval, and status of the device profile.
Allowed topics T d Defines the topics on which d may publish.
Structural payload rules S d ( t o p i c ) Defines payloads with the expected fields, types, units, and structure.
Plausible payload rules P d ( t o p i c ) Defines structurally valid payloads that satisfy the semantic constraints.
Warning delay Δ d w a r n Threshold for classifying an admissible message as delayed.
Maximum delay Δ d m a x Upper bound for message freshness.
Future-timestamp tolerance ϵ d Maximum accepted timestamp offset in the future.
Last admitted sequence s d ( t o p i c ) Largest sequence number already admitted to the device-topic stream.
DT mapping μ d ( t o p i c ) Maps an authorized topic to a DT entity and field.
Table 6. Example DT views for a smart-building scenario.
Table 6. Example DT views for a smart-building scenario.
ViewConsumerExposed Data
Administrative viewBuilding administratorAll authorized active values and their provenance references; quarantine access is handled separately.
Operational viewBuilding automation serviceOnly the active values required for building-control operations.
Energy viewEnergy optimization serviceSelected environmental and energy-consumption fields, without occupancy or device-level provenance.
Analytics viewExternal analytics serviceA limited subset of non-sensitive active fields, without provenance references or quarantined updates.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

De Angelis, V. TDT-Pipe: A Security-Aware Architecture for Trustworthy IoT Digital Twins. Future Internet 2026, 18, 458. https://doi.org/10.3390/fi18090458

AMA Style

De Angelis V. TDT-Pipe: A Security-Aware Architecture for Trustworthy IoT Digital Twins. Future Internet. 2026; 18(9):458. https://doi.org/10.3390/fi18090458

Chicago/Turabian Style

De Angelis, Vincenzo. 2026. "TDT-Pipe: A Security-Aware Architecture for Trustworthy IoT Digital Twins" Future Internet 18, no. 9: 458. https://doi.org/10.3390/fi18090458

APA Style

De Angelis, V. (2026). TDT-Pipe: A Security-Aware Architecture for Trustworthy IoT Digital Twins. Future Internet, 18(9), 458. https://doi.org/10.3390/fi18090458

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop