Skip to Content
EntropyEntropy
  • Article
  • Open Access

17 April 2026

26 Pages

NEF-DHR: A Non-Equivalent Functional Dynamic Heterogeneous Redundancy Architecture for Endogenous Safety and Security

,
and
1
Department of Computer Science and Technology, Huaiyin Normal University, Huai’an 223300, China
2
School of Engineering, Yuxi Normal University, Yuxi 653100, China
3
Yunnan Key Laboratory of Smart City in Cyberspace Security, Yuxi 653100, China
4
Purple Mountain Laboratories, Nanjing 211111, China
This article belongs to the Section Complexity

Abstract

Endogenous safety and security (ESS), which advocates for designing systems that are inherently safe and secure by nature, has emerged as a pivotal paradigm for addressing the inherent vulnerabilities of information systems. The Dynamic Heterogeneous Redundancy (DHR) architecture serves as its typical implementation by introducing dynamic, heterogeneous, redundant executors with equivalent function (EF) into the information system. However, the functional equivalence property explicitly connects the system’s output to that of the individual executors, thereby creating potential security risks that adversaries could exploit. In addition, EF-DHR faces an inherent contradiction between functional equivalence and heterogeneous implementations (HIS), leading to high engineering costs and limited applicability. To address these problems, this paper proposes the Non-Equivalent Functional DHR (NEF-DHR) architecture, leveraging function secret sharing (FSS) theory to replace EF executors with NEF components, which fundamentally eliminates the EF-HIS contradiction. Specifically, we propose the concept of ‘terminal executor output information entropy loss’ to formalize the risk of output information interception by adversaries and theoretically prove that NEF-DHR improves unpredictability and resistance to attacks. Experimental results further validate that NEF-DHR exhibits lower error rates under various attack levels, with enhanced robustness and superior ESS performance. Additionally, we generalize the DHR architecture based on three core properties (indistinguishability, output recoverability, verification) and classify ESS into three types with corresponding DHR variants. This work advances the application of entropy theory in ESS and provides a novel entropy-enhanced solution for the large-scale deployment of DHR security systems.

1. Introduction

The rapid proliferation of complex information systems in cyberspace has brought unprecedented convenience, but it has also exacerbated security and safety risks, characterized by inherent vulnerabilities and backdoors that are difficult to eradicate [1,2,3,4]. Traditional perimeter-based security measures (e.g., firewalls [5,6,7] and intrusion detection systems [8,9,10]) are ineffective in addressing these endogenous risks, as they merely suppress surface-level threats rather than addressing the root cause of vulnerability evolution. In this context, the endogenous safety and security (ESS) theory [11] has been proposed, redefining vulnerabilities and backdoors as intrinsic attributes of information systems and advocating for security guarantees derived from internal system dynamics rather than external additions. As a core implementation of ESS, the Dynamic Heterogeneous Redundancy (DHR) architecture leverages the principle of ‘functional equivalence and heterogeneous implementation’ to enhance system security [12]. By deploying multiple functionally equivalent (EF) but heterogeneously implemented (HIS) executors, DHR reduces the probability of common-mode vulnerabilities, making it difficult for adversaries to manipulate outputs to evade detection [13]. In the traditional DHR architecture (referred to as EF-DHR), multiple EF-HIS executors run simultaneously. Upon receiving a system input, each executor independently produces an intermediate result. These results are then fed into a dedicated component—the decision module—which applies a predefined decision strategy to render a final system output (see Figure 1 for details). Due to the EF property, the expected system output (in the absence of attacks) aligns with these intermediate results. Consequently, if an adversary compromises some (but fewer than half) of the executors, the decision module can readily identify any deviating intermediate results as outliers. Furthermore, the HIS property ensures, with high probability, that an adversary cannot compromise the majority of executors, as their heterogeneity implies distinct vulnerabilities or backdoors (formal definitions of EF and HIS are given in Section 3). Although the EF and HIS properties enhance the system security, the inherent contradiction between EF and HIS poses significant engineering challenges:
Figure 1. Traditional (equivalent functional) DHR (EF-DHR) architecture for endogenous safety and security. Data flow: system input x, intermediate output o i , final output y f i n a l , and online/offline executor switch; computational cost: O ( 1 ) input proxy, O ( | f | ) single executor, O ( k ) decision module for majority voting, and O ( m ) scheduling; security boundaries: inner security boundary encompasses all executors to protect heterogeneous implementation core, and outer security boundary encompasses input proxy and decision module to protect system input/output and dynamic scheduling; attack surfaces: input proxy (sniffing input x), executor communication link (sniffing o i , EF leads to full information leakage per Remark 1), and decision module (manipulating voting strategy and tampering with executor switch logic).
  • HIS demands that implementations be ‘as divergent as possible’, while EF requires ‘identical behavior’. Achieving perfectly identical behavior often necessitates adopting the same algorithmic logic or standard protocols, which leads to a convergence in the underlying implementation.
  • HIS is the key of DHR security, while the requirement of EF mandates the reuse of standard components to guarantee compatibility, but this leads to the homogeneity of vulnerabilities.
  • For the sake of engineering cost-effectiveness, a ‘pseudo’ HIS is often adopted, which means that modifications are made only at the upper application layer while the underlying infrastructure remains uniform. While this achieves the desired EF, the HIS is compromised, leaving the system with a common-mode failure foundation.
The aforementioned EF-HIS contradiction shows that designing multiple executors with consistent functionality but distinct implementations is not only costly but also technically arduous, severely limiting the widespread application of DHR. Resolving this EF-HIS contradiction has become a critical bottleneck in advancing ESS theory.
To address the aforementioned challenges, this paper proposes a Non-Equivalent Functional DHR (NEF-DHR) architecture enhanced by entropy theory, leveraging function secret sharing (FSS) to decompose traditional EF executors into non-equivalent functional (NEF) components. Unlike EF-DHR, NEF-DHR does not require components to be functionally equivalent; instead, the outputs of specific NEF component groups can be combined to reconstruct the expected system output. A key innovation of this work is the introduction of ‘terminal executor output information entropy loss’ as a quantitative metric to evaluate the security risk of output interception. Theoretical analysis proves that NEF-DHR achieves higher entropy retention than EF-DHR, as the randomization of NEF components (enabled by FSS) increases the uncertainty of intermediate outputs, thereby reducing the risk of adversarial interception and manipulation.
The main contributions of this paper are summarized as follows:
  • We propose the NEF-DHR architecture, which fundamentally eliminates the EF-HIS contradiction in traditional DHR by replacing EF executors with NEF component groups, and we give a theoretical analysis of the engineering cost complexity from quadratic to linear based on the number of functional entities.
  • We integrate entropy theory into ESS research, formalizing the security risk of output interception using information entropy loss and theoretically proving that NEF-DHR outperforms EF-DHR in entropy retention and security.
  • We validate with experimental results that NEF-DHR exhibits lower error rates under various attack levels, with enhanced robustness and superior ESS performance.
  • We classify ESS into three types (engineering ESS, module ESS, and obfuscated ESS) with corresponding DHR variants and generalize the DHR architecture based on three core properties (indistinguishability, output recoverability, and verification), providing a theoretical framework for future ESS research.
The remainder of this paper is structured as follows: Section 2 reviews related work on ESS, DHR, and entropy in information security. Section 3 introduces preliminary concepts, including FSS theory and information entropy. Section 4 details the technical design of the NEF-DHR architecture. Section 5 presents theoretical analysis of entropy loss and experimental validation of NEF-DHR’s superiority. Section 6 discusses the generalization of the DHR architecture. Finally, Section 7 concludes the paper.

3. Preliminaries

This section formalizes the fundamental definitions, notations, and core mechanisms of the ESS theory and its typical implementation—the traditional DHR architecture—to emphasize its core constraint of functional equivalence.

3.1. The ESS Theory

The ESS theory is rooted in the recognition of intrinsic imperfections in information systems: vulnerabilities, backdoors, and random faults are inevitable due to the complexity of system design, implementation, and operation [13]. A formal definition of ESS is given as follows:
Definition 1
(Endogenous Safety and Security, ESS). For an information system S with input space X and output space Y , even if adversaries exploit inherent vulnerabilities and backdoors or random faults occur, the probability that S generates incorrect outputs (i.e., y ∉ Y correct where Y correct denotes the set of valid outputs for input x ∈ X ) is bounded by an arbitrarily small value ϵ:
P r ( y ∉ Y correct ) ≤ ϵ .
The core objective of ESS is to ensure stable and reliable service provision, rather than passively preventing attacks.

3.2. The Traditional DHR Architecture

To achieve the ESS objective, the EF-DHR architecture is designed by integrating reliability theory and dissimilar redundancy principles [13]. Key notations and architectural components are defined first, followed by a detailed description of its operational process.

3.2.1. Key Notions and Components

Let E = { E 1 , E 2 , … , E m } denote the set of m executors in EF-DHR, where each executor satisfies two core properties:
  • Functional Equivalence (EF): For any input x ∈ X , the output of each executor E i (denoted as o i = E i ( x ) ) belongs to Y correct , i.e., all executors generate valid outputs for the same input.
  • Heterogeneous Implementation (HIS): Executors differ in implementation details (e.g., hardware architecture, software language, and algorithm logic), minimizing the risk of common-mode vulnerabilities (i.e., no single attack input can compromise all executors).
A subset of E online ⊆ E with | E online | = k executors is selected to operate simultaneously (referred to as online executors), while the remaining m − k executors ( E offline = E ∖ E online ) are in standby mode (offline executors), where offline executors can be activated dynamically to replace compromised online executors, enhancing system adaptability.
The EF-DHR architecture also includes three core functional modules:
  • Input Proxy: Responsible for receiving external inputs and broadcasting them to all online executors in E online .
  • Decision Module: Collects intermediate outputs from online executors and generates the final system output via a predefined decision strategy (e.g., majority voting or weighted voting).
  • Scheduling Module: Manages the selection and switching of online/offline executors (not detailed herein, as it is not the focus of this work).

3.2.2. Quantification of EF-HIS Contradiction and Engineering Cost

For a DHR architecture with m executors/components and a system function f with computational complexity O ( | f | ) , the total engineering cost C is defined as the sum of implementation cost C I , compatibility cost C C , and maintenance cost C M , i.e.:
C = C I + C C + C M
  • Implementation cost: C I = m · c i · O ( | f | ) , where c i is the heterogeneous implementation coefficient ( c i ≥ 1 ; c i = 1 for homogeneous implementation, and c i > 1 for heterogeneous implementation with larger values indicating higher diversity).
  • Compatibility cost: C C = ξ · m · ( m − 1 ) · O ( | f | ) , where ξ is the functional equivalence compatibility factor ( ξ ∈ ( 0 , 1 ] ; ξ = 1 for strict functional equivalence requiring full protocol/algorithm alignment, and ξ → 0 for no equivalence constraint).
  • Maintenance cost: C M = μ · m · O ( | f | ) , where μ is the dynamic scheduling maintenance coefficient (a constant for fixed DHR scheduling strategies).
The EF-HIS contradiction is quantified by the EF-HIS conflict index Γ = c i · ξ . For traditional EF-DHR, strict functional equivalence mandates ξ ≈ 1 , and heterogeneous implementation requires c i > > 1 , leading to Γ > > 1 . A larger Γ indicates a more severe contradiction: the pursuit of higher heterogeneity (larger c i ) directly increases the cost of maintaining functional equivalence (fixed ξ ≈ 1 ), and vice versa.

3.2.3. Operational Process for Reliability Enhancement

The core objective of EF-DHR is to enhance the reliability of information transmission and processing. Its operational process follows four sequential steps, as illustrated below [13]:
  • Input Distribution: Upon receiving an input x ∈ X , the input proxy broadcasts x to all k online executors in E online .
  • Intermediate Output Generation: Each online executor E i ∈ E online processes x independently, generates an intermediate output o i = E i ( x ) , and transmits o i to the decision module.
  • Decision Making: The decision module collects all k intermediate outputs { o 1 , o 2 , … , o k } , applies the decision strategy (e.g., selecting the output with the highest frequency in the set), and determines the final system output y final .
  • Output Provision: The final output y final is transmitted to external users as the system’s formal response.

3.3. Superiority of EF-DHR: A Comparative Example

To intuitively illustrate the advantage of EF-DHR over traditional single-executor systems, we present a concrete attack scenario example. Consider an adversary aiming to tamper with the system output. Two scenarios are compared:
  • Traditional Single-Executor System: The system consists of only one executor E single . If the adversary compromises E single (e.g., via exploiting a vulnerability), they gain full control of the system and can arbitrarily tamper with the output o single = E single ( x ) , leading to a system failure.
  • EF-DHR System ( k > 2 ): Assume k = 3 online executors { E 1 , E 2 , E 3 } . Even if the adversary compromises one executor (e.g., E 1 ) and tampers with its output o 1 ′ , the other two executors ( E 2 and E 3 ) still generate valid outputs o 2 , o 3 ∈ Y correct . Using the majority voting strategy, the decision module will select the valid output (shared by E 2 and E 3 ) as y final , effectively resisting the attack. Additionally, the heterogeneous nature of E 1 , E 2 , and E 3 makes it difficult for the adversary to compromise multiple executors simultaneously, further enhancing system reliability.
This example demonstrates that EF-DHR improves system reliability by leveraging redundant heterogeneous executors. However, as noted earlier, the inherent EF-HIS contradiction still limits its practical deployment; this motivates the proposal of the NEF-DHR architecture in subsequent sections. To further elaborate on the anti-attack mechanism of EF-DHR, the heterogeneous implementation of executors is pivotal in suppressing common-mode vulnerabilities. Specifically, the diverse implementation details of executors make it extremely challenging for adversaries to identify and exploit shared vulnerabilities or weaknesses across multiple executors. A typical example is the heterogeneous deployment of operating systems: exploiting universal vulnerabilities across Windows, Linux, and macOS is technically arduous, which significantly reduces the success probability of attacks targeting the entire system.
The structural framework of the EF-DHR architecture is illustrated in Figure 1, where executors are denoted as E 1 , E 2 , … , E k , … , E m . Among them, the first k executors serve as online executors, while the remaining m − k are offline executors (owing to the dynamic nature of the DHR architecture, the distinction between online and offline executors is not fixed; this notation is adopted for simplicity of description). The functional mappings of these executors are represented by f 1 , f 2 , … , f k , … , f m , respectively, and the expected functional mapping of the entire system is denoted as f. A core constraint of the EF-DHR architecture is the functional equivalence of all executors, i.e., f 1 = f 2 = … = f k = … = f m = f . Consequently, under non-attack scenarios, the output of each executor (denoted as o i for E i ) is consistent with the expected system output o, leading to o 1 = o 2 = … = o k = … = o m = o .
As depicted in Figure 1, the EF-DHR architecture embodies three core characteristics, dynamism, heterogeneity, and redundancy, which collectively underpin its ability to achieve ESS. Detailed explanations are as follows:
  • Dynamism is reflected in two key operational strategies: (1) Attack-triggered executor replacement: The decision module evaluates the trustworthiness of each online executor based on the collected k intermediate results. If certain executors are identified as compromised (e.g., their outputs deviate from the valid output set Y correct ), the decision module triggers feedback mechanisms to replace the compromised online executors with offline ones. (2) Pre-planned executor rotation: Online executors are periodically switched with offline executors according to a predefined scheduling plan. These two strategies, namely reactive adjustment and proactive rotation, constitute the core scheduling mechanism of EF-DHR.
  • Heterogeneity is manifested in the deployment of k online executors with heterogeneous implementations but functional equivalence (EF-HIS). This design aims to minimize the risk of the entire system being compromised by a single attack, as the probability that all k heterogeneously implemented executors share the same vulnerabilities, backdoors, or random faults is theoretically negligible.
  • Redundancy is achieved by integrating k online executors and m − k offline executors, which is fundamentally different from traditional single-executor systems. This redundant configuration provides the physical and logical foundation for the aforementioned dynamism and heterogeneity, ensuring the system’s ability to maintain stable operation even when individual executors fail or are compromised.
The effectiveness of the EF-DHR architecture in addressing endogenous safety and security issues can be theoretically justified by drawing on Shannon’s channel coding theorem [22]. Building on this, the coding channel theory [11] was proposed to formally prove that the three core characteristics of EF-DHR enable a normalized solution to endogenous safety and security problems. This conclusion is summarized in the following lemma:
Lemma 1
(EF-DHR and ESS [11]). Systems based on the EF-DHR architecture satisfy the endogenous safety and security property as defined in Definition 1.
While Lemma 1 confirms that EF-DHR-based systems satisfy the ESS property, they still face inherent security risks related to information leakage. Specifically, adversaries can sniff and analyze the system output to infer the output of individual executors, thereby gaining valuable information to launch more targeted attacks; this poses a non-negligible threat to endogenous safety and security. To quantitatively characterize this risk, we formally define the concept of terminal executor output information entropy loss, which quantifies the amount of information an adversary can obtain from the system output to infer the executors’ outputs.
Definition 2
(Terminal Executor Output Information Entropy Loss). Let A denote an adversary. Define P [ A ( E i ) ] as the probability that A successfully infers the expected output of executor E i . For an EF-DHR system S with m executors { E 1 , E 2 , … , E m } , the original information entropy of S (characterizing the uncertainty of executors’ outputs from the adversary’s perspective) is defined as
H e f ( S ) = ∑ i = 1 m − log P A ( E i ) .
Given the system output o, the conditional probability that A infers E i ’s output is denoted as P [ A ( E i ) | o ] , and the corresponding conditional information entropy (uncertainty of executors’ outputs after observing o) is
H e f ( S | o ) = ∑ i = 1 m − log P A ( E i ) | o ,
The terminal executor output information entropy loss is then defined as the difference between the original information entropy and the conditional information entropy:
L e f ( S ; o ) = H e f ( S ) − H e f ( S | o ) .
Intuitively, L e f ( S ; o ) quantifies the amount of information about executors’ outputs that is leaked to the adversary through the system output o; a larger value indicates more severe information leakage.
Remark 1.
In traditional EF-DHR systems, the system output o is exactly the expected output of each executor E i (i.e., o i = o for all i as established in Section 3.2). This implies that once the adversary observes o, they can definitively infer the expected output of every executor E i , leading to
P A ( E i ) | o = 1 , ∀ i ∈ { 1 , 2 , … , m } .
Substituting Equation (4) into Equation (2), the conditional information entropy becomes H e f ( S | o ) = 0 . Combining this with Equation (3), the terminal executor output information entropy loss simplifies to
L e f ( S ; o ) = H e f ( S ) ,
This result indicates that traditional EF-DHR systems suffer complete information entropy loss: all the original uncertainty about executors’ outputs (characterized by H e f ( S ) ) is eliminated after the adversary observes the system output o. From the perspective of Definition 1, a smaller L e f ( S ; o ) corresponds to less information available to the adversary for inferring executors’ outputs. Thus, traditional EF-DHR systems, with L e f ( S ; o ) = H e f ( S ) , face significant endogenous security risks due to severe information leakage.

4. Materials and Methods

As elaborated in Section 3, traditional EF-DHR architectures face two core limitations that hinder their ESS performance: (1) the inherent contradiction between heterogeneous implementation and functional equivalence of executors, which increases engineering design difficulty and cost; (2) severe terminal executor output information entropy loss (cf. Remark 1), where the consistent system and executor outputs provide explicit clues for adversaries to infer executor behaviors, undermining system security. To address these issues and further enhance ESS, this section proposes a NEF-DHR architecture. The core design philosophy of NEF-DHR is to decompose each EF executor in traditional DHR into multiple non-equivalent functional components. From an adversary’s perspective, the outputs of these components are independent and pseudorandom, while the original executor output can be accurately reconstructed by combining the intermediate outputs of specific component groups. This design not only eliminates the EF-HIS contradiction but also reduces information leakage (i.e., lowers terminal executor output information entropy loss) by breaking the direct correlation between system output and executor outputs, thereby enhancing system ESS.
The implementation of NEF-DHR relies on two key technical pillars: function decomposition (to realize executor-to-component transformation) and function secret sharing (to guarantee the security and feasibility of decomposition). Additionally, a shuffle mechanism is introduced to further obfuscate the correlation between component outputs and original executor outputs. Detailed descriptions of these methods are provided below.

4.1. Function Decomposition

The fundamental step in designing NEF-DHR is to decompose the system’s original function f into non-equivalent sub-functions, which serves as the theoretical basis for replacing EF executors with non-equivalent components. A formal definition of this function decomposition is given as follows:
Definition 3
(Function Decomposition). Given a system function f, let D denote a decomposition algorithm. If D can split f into a set of n sub-functions,
D ( f ) = { f 1 , f 2 , … , f n } ,
and there exists a reconstruction algorithm R that can recover f using l sub-functions selected from D ( f ) , i.e.,
R ( f 1 , f 2 , … , f l ) = f , s . t . D R ( f ) = { f 1 , f 2 , … , f l } ⊆ D ( f ) ,
then f is said to be l-decomposable. Here, n (the size of the sub-function set in Equation (6)) is required to be a polynomial function of l (i.e., n = poly ( l ) ) to ensure computational feasibility.
To match the design requirements of NEF-DHR, the decomposition algorithm D and reconstruction algorithm R must satisfy the following four core properties:
1. 
Multi-Reconstruction: For a given decomposition D ( f ) = { f 1 , f 2 , … , f n } , there exist m distinct reconstruction algorithms R 1 , R 2 , … , R m that can independently recover f using disjoint subsets of D ( f ) . Formally,
R 1 ( f 11 , f 12 , … , f 1 k 1 ) = f 1 = f , s . t . D 1 ( f ) { f 11 , f 12 , … , f 1 k 1 } ⊆ D ( f ) , R 2 ( f 21 , f 22 , … , f 2 k 2 ) = f 2 = f , s . t . D 2 ( f ) { f 21 , f 22 , … , f 2 k 2 } ⊆ D ( f ) , … R m ( f m 1 , f m 2 , … , f m k m ) = f m = f , s . t . D m ( f ) { f m 1 , f m 2 , … , f m k m } ⊆ D ( f ) ,
where D i ( f ) ≠ D j ( f ) for all i ≠ j .
2. 
Recoverability: For any fixed i ∈ { 1 , 2 , … , m } , the output of f can be uniquely reconstructed by combining the outputs of sub-functions in D i ( f ) . This property is inherently satisfied by the reconstruction algorithms R 1 , … , R m defined in Equation (8).
3. 
Pseudorandomness: From an external observer (adversary)’s perspective, the sub-functions f i j ∈ D i ( f ) are mutually independent and pseudorandom. Moreover, the output of each f i j is independent of the output of the original function f, ensuring no information leakage about f from individual sub-function outputs.
4. 
Efficiency: The computational complexity of each sub-function f i j is bounded by poly ( | f | , k i ) , where | f | denotes the complexity (size) of the original function f, k i = | D i ( f ) | , and poly ( · ) denotes polynomial-time complexity. This ensures that the decomposition does not introduce excessive computational overhead.
Remark 2.
Definition 3 provides a theoretical framework for transforming traditional EF-DHR into NEF-DHR. Specifically, (1) the m reconstruction algorithms R 1 , … , R m correspond to the m EF executors E 1 , … , E m in traditional EF-DHR (where f i = f for all i); (2) the disjoint sub-function sets D 1 ( f ) , … , D m ( f ) correspond to the non-equivalent functional components in NEF-DHR. The four properties of function decomposition are tailored to NEF-DHR’s design goals: multi-reconstruction enables the replacement of multiple EF executors with non-equivalent component groups; recoverability guarantees the system’s basic service correctness; pseudorandomness directly addresses the terminal executor output information entropy loss issue (cf. Remark 1) by obfuscating the correlation between component outputs and f; efficiency ensures the practical deployability of NEF-DHR.
To adapt function decomposition to the specific characteristics of EF-DHR (i.e., multiple EF executors), we further define EF-DHR Function Decomposition as follows:
Definition 4
(EF-DHR Function Decomposition). For an EF-DHR system with m executors E 1 , E 2 , … , E m (where f i = f for all i due to functional equivalence), if each executor’s function f i can be k i -decomposed (cf. Definition 3) via the decomposition algorithm D and reconstruction algorithms R i (as in Equation (8)), then the EF-DHR system is said to be ( k 1 , k 2 , … , k m ) -decomposable. Here, f i j (for i ∈ { 1 , … , m } , j ∈ { 1 , … , k i } ) denotes the j-th sub-function of the i-th executor’s function f i .
Based on Definition 4, we can map sub-functions to physical components, leading to the definition of EF-DHR Executor Decomposition:
Definition 5
(EF-DHR Executor Decomposition). The m heterogeneous EF executors E 1 , E 2 , … , E m in a traditional EF-DHR system can be decomposed into non-equivalent functional components as
E 1 = E 11 + E 12 + … + E 1 k 1 , E 2 = E 21 + E 22 + … + E 2 k 2 , … E m = E m 1 + E m 2 + … + E m k m ,
where E i j is a physical component designed to implement the sub-function f i j (cf. Definition 4).
Definitions 3–5 collectively complete the theoretical transformation from EF-DHR to NEF-DHR: the original m EF executors (with consistent outputs) are replaced by ∑ i = 1 m k i non-equivalent components (with pseudorandom, independent outputs), while the system’s expected output can be recovered by combining component outputs in predefined groups. This design fundamentally eliminates the EF-HIS contradiction and reduces information leakage, thereby enhancing system ESS.
Remark 3.
Unlike EF-DHR (where ESS performance depends only on the number of online/offline executors k and m), the ESS of NEF-DHR is also correlated with the size n of the sub-function set D ( f ) (cf. Equation (6)). A larger n implies more pseudorandom sub-functions, which increases the uncertainty of component outputs from the adversary’s perspective, further reducing terminal executor output information entropy loss.

4.2. FSS for Decomposition Implementation

The key challenge in implementing NEF-DHR is to find a decomposition algorithm D that satisfies the four properties in Definition 3. Function secret sharing (FSS) [24], a cryptographic primitive for secure function computation, naturally meets these requirements. FSS enables the decomposition of a function f into multiple sub-functions such that: (1) the original function can be reconstructed by combining all sub-function outputs; (2) individual sub-functions and their outputs do not leak any information about f.
The core properties of FSS are summarized in the following lemma, which confirms its suitability for NEF-DHR:
Lemma 2
(Randomness and Independence of FSS [24]). A function secret sharing scheme consists of two polynomial-time algorithms: a decomposition algorithm D and a reconstruction algorithm R . For any function f,
D ( f ) = { f 1 , f 2 , … , f k } ,
and
R ( f 1 , f 2 , … , f k ) = f ,
where X is the input space of f. The sub-functions f 1 , … , f k and their outputs are mutually independent and pseudorandom, and no information about f can be inferred from any subset of sub-functions or their outputs.
The alignment between FSS properties and the four requirements of function decomposition (Definition 3) is verified as follows: (1) Multi-Reconstruction: By generating m distinct sets of random variables via FSS, m disjoint sub-function groups D 1 ( f ) , … , D m ( f ) can be obtained, each enabling the reconstruction of f. (2) Recoverability: This is directly guaranteed by the reconstruction algorithm R of FSS (cf. Lemma 2). (3) Pseudorandomness: The randomness and independence of FSS sub-functions (cf. Lemma 2) exactly match this requirement, ensuring no information leakage about f from component outputs. (4) Efficiency: Existing studies have proven that FSS operates in polynomial time with respect to the input size | X | and decomposition scale k i , satisfying the efficiency requirement.
Due to these advantages, FSS is adopted as the core implementation tool for function decomposition in NEF-DHR.

4.3. Shuffle Mechanism for Enhanced Obfuscation

In traditional EF-DHR, the ordered outputs of executors allow adversaries to map outputs to specific executors, facilitating inference attacks. This issue is exacerbated in NEF-DHR, where the reconstruction of original executor outputs relies on combining ordered component outputs. If an adversary sniffs the intermediate outputs of components and infers their order, they can potentially reconstruct the original executor outputs with minimal attempts, undermining the pseudorandomness advantage of FSS.
To address this problem, we introduce a shuffle mechanism in NEF-DHR. A predefined random seed (known only to components and the decision module) is used to randomize the order of intermediate outputs transmitted from components to the decision module. From the adversary’s perspective, the received component outputs are in a meaningless random order. Without the random seed, the adversary cannot determine which components belong to the same reconstruction group, significantly increasing the difficulty of reconstructing original executor outputs. This mechanism further enhances the uncertainty of component outputs (i.e., reduces terminal executor output information entropy loss) and strengthens system ESS.
The structural framework of the NEF-DHR architecture (integrating function decomposition, FSS, and shuffle) is illustrated in Figure 2.
Figure 2. Non-equivalent functional DHR (NEF-DHR) architecture for endogenous safety and security. Data flow: system input x, FSS sub-output s i j , intermediate output O i , and final output y f i n a l ; computational cost: input proxy O ( 1 ) , single NEF component O ( | f | / t ) (t is the number of sub-functions per executor, FSS decomposition reduces per-component cost), decision module O ( Σ K i + m ) for reconstruction, majority voting and scheduling; security boundaries: core security boundary encompasses NEF components and shuffle mechanism to protects FSS-based pseudorandom sub-functions and output permutation, and system security boundary encompasses all modules for end-to-end protection with zero entropy loss (Theorem 1); attack surfaces: input proxy (sniffing input x, same as EF-DHR), component communication link (sniffing π ( { s i j } ) , pseudorandomness and shuffle leads to no useful information leakage), and decision module (manipulating reconstruction/voting, requires pre-shared seed compromise).
For NEF-DHR, the elimination of strict functional equivalence enables ξ → 0 , and the FSS-based non-equivalent component design retains heterogeneous implementation ( c i > > 1 ) with Γ → 0 , fundamentally resolving the contradiction. NEF-DHR reduces the total engineering cost complexity from quadratic to linear with respect to the number of functional entities, and the conflict index Γ → 0 eliminates the EF-HIS contradiction, as shown in Table 1.
Table 1. Complexity comparison between EF-DHR and NEF-DHR.
The complexity comparison above quantitatively reflects the inherent engineering cost advantage of NEF-DHR over EF-DHR from a theoretical perspective. Due to the limitations of the current simulation-based research framework (lack of physical heterogeneous deployment environments and industrial engineering test resources), the quantitative experimental verification of engineering cost-efficiency (e.g., error rate per unit cost) is not carried out in this paper. Follow-up research will build a physical DHR testbed; collect actual development, deployment and maintenance cost data; and conduct a more in-depth quantitative analysis of the engineering feasibility of NEF-DHR.

5. Results

This section first presents the complete architecture of NEF-DHR, integrating the function decomposition (Section 4.1) and shuffle mechanism (Section 4.3) proposed earlier. Subsequently, we provide rigorous theoretical proofs to verify that NEF-DHR enhances endogenous safety and security (ESS). Finally, extensive experimental results are presented to quantitatively validate the superiority of NEF-DHR over traditional functionally equivalent DHR (EF-DHR) under various attack scenarios.

5.1. NEF-DHR Architecture

The NEF-DHR architecture is constructed by integrating function decomposition (based on function secret sharing, FSS) and the shuffle mechanism, with its detailed structure illustrated in Figure 2. Unlike traditional EF-DHR, which relies on physical heterogeneous and functionally equivalent executors, NEF-DHR eliminates physical executors and replaces them with non-equivalent functional components; executors in NEF-DHR are merely logical constructs used for theoretical analysis and comparison with EF-DHR. For simplicity, the distinction between online and offline executors is ignored in the architectural description, as the core innovation lies in the executor-to-component transformation.
The operational workflow of NEF-DHR is as follows:
  • Executor Decomposition: Each logical executor E i (corresponding to an EF executor in traditional DHR) is decomposed into k i non-equivalent functional components E i 1 , E i 2 , … , E i k i via the FSS-based function decomposition method (Definitions 4 and 5). These components implement disjoint sub-functions of the original system function f, and their outputs are pseudorandom and independent from an adversary’s perspective.
  • Component Shuffling: Using a pre-shared random seed (known only to components and the decision module), the order of all components { E i j } i = 1 , j = 1 m , k i is randomized. The intermediate outputs of the shuffled components are then transmitted to the decision module. This step obfuscates the correlation between components and logical executors, preventing adversaries from inferring component groups corresponding to specific executors.
  • Result Reconstruction and Decision-Making: The decision module uses the pre-shared random seed to reorder the shuffled intermediate outputs. Instead of reconstructing logical executors, it directly combines the intermediate outputs of predefined component groups (via FSS reconstruction algorithms R i ) to generate valid results corresponding to each logical executor. Finally, the decision module applies a majority voting strategy to these results to produce the final system output.
This design fundamentally eliminates the inherent contradiction between functional equivalence (EF) and heterogeneous implementation (HIS) in traditional EF-DHR, as NEF-DHR no longer requires physical executors with both properties. Meanwhile, the pseudorandomness of component outputs and the shuffle mechanism jointly address the terminal executor output information entropy loss issue.
Remark 4.
Although physical EF executors are removed, the NEF components are still physical. However, as the intermediate outputs of NEF components are independent and disclose no information about the expected output before being (logically) combined by the decision module, the resulting attack surfaces are substantially harder to exploit.

5.2. Theoretical Analysis

This subsection formally proves that NEF-DHR satisfies the ESS property and eliminates terminal executor output information entropy loss. The core conclusions are summarized in Theorem 1.
Theorem 1.
For any NEF-DHR system S ′ , the following properties hold:
(i) 
S ′ satisfies the endogenous safety and security (ESS) property (as defined in Definition 1);
(ii) 
For any system output o, the terminal executor output information entropy loss L e f ( S ′ ; o ) = 0 .
Proof. 
The first part: NEF-DHR satisfies the ESS property.
In NEF-DHR, the decision module reconstructs results corresponding to logical executors { E i } i = 1 m by combining component outputs. From a functional perspective, the logical executors of NEF-DHR are equivalent to the physical executors of EF-DHR (both implement the system function f). Moreover, the non-equivalent components (derived from FSS) ensure the heterogeneity of logical executors; since sub-functions are pseudorandom and independent, the probability that multiple logical executors share common-mode vulnerabilities is negligible.
Thus, NEF-DHR can be regarded as a logical extension of EF-DHR. By Lemma 1 (EF-DHR and ESS), which states that EF-DHR systems satisfy the ESS property, we conclude that the NEF-DHR system S ′ also satisfies the ESS property.
This completes the proof of the first part.
The second part: Terminal executor output information entropy loss of NEF-DHR is zero.
Recall from Definition 2 (Terminal Executor Output Information Entropy Loss) that L e f ( S ′ ; o ) = H e f ( S ′ ) − H e f ( S ′ | o ) , where H e f ( S ′ ) is the original information entropy (uncertainty of executor outputs from the adversary’s perspective) and H e f ( S ′ | o ) is the conditional information entropy (uncertainty after observing system output o).
By Lemma 2 (Randomness and Independence of FSS), the sub-functions (implemented by components) and their outputs are pseudorandom and independent of the original function f. Combined with the shuffle mechanism, the system output o (generated by combining component outputs) is statistically independent of the outputs of logical executors { E i } i = 1 m . For an adversary A , observing o does not provide any additional information to infer the outputs of logical executors. Formally, this implies
P A E i = P A E i | o ∀ i ∈ { 1 , 2 , … , m } ,
where P [ A ( E i ) ] and P [ A ( E i ) | o ] are the prior and posterior probabilities of A successfully inferring E i ’s output, respectively.
Substituting Equation (12) into the definitions of H e f ( S ′ ) and H e f ( S ′ | o ) , we obtain H e f ( S ′ ) = H e f ( S ′ | o ) . Thus,
L e f ( S ′ ; o ) = H e f ( S ′ ) − H e f ( S ′ | o ) = 0 .
This completes the proof of the second part.
The proof of Theorem 1 is thus concluded.  □
Remark 5.
NEF-DHR is a generalized form of traditional EF-DHR. When setting k 1 = k 2 = … = k m = 1 (each logical executor is decomposed into a single component), the function decomposition and reconstruction algorithms simplify to
D i ( f i ) = f i = f , R i ( f i ) = f i = f ,
for all i ∈ { 1 , 2 , … , m } . In this case, NEF-DHR degenerates into EF-DHR, as the non-equivalent components are equivalent to the physical executors of EF-DHR. This generalization confirms the compatibility and extensibility of NEF-DHR.
Remark 6.
In practical systems, achieving zero entropy and absolute independence across different components is difficult (if not impossible). Therefore, all theoretical results presented in this paper are derived from an idealized NEF-DHR model.
Remark 7.
Although the stochastic component selection does not affect the overall performance of the NEF-DHR architecture system due to the recoverability property guaranteed by the FSS theory, the combination of intermediate outputs (given by different components to construct a single logical executor) needs more time and memory. Denoting such resource requirements by R T M , it is easy to follow that C o v ( R T M , D F S S ) > 0 , where D F S S is the decomposition complexity (similar to k given in Lemma 2) and C o v ( μ , ν ) is the covariance of μ and ν.

5.3. Experimental Validation

We note that the following experiments validate the security (error rate) performance, not the engineering cost. Quantitative cost-efficiency experiments require physical heterogeneous hardware/software deployment and long-term industrial data, which are beyond the scope of this theoretical work. To quantitatively validate the superiority of NEF-DHR in enhancing ESS, we conducted comparative experiments between NEF-DHR and traditional EF-DHR under various attack scenarios. This subsection details the experimental setup, evaluation metrics, and result analysis.

5.3.1. Experimental Setup

Before presenting the detailed results, we first give the information of the simulation environment as shown in Table 2. And all experimental data are simulated.
Table 2. The simulation environment information.
Test Models: Two types of models were simulated: (1) EF-DHR models with k (number of online executors) set to 3, 5, 7, 9, and 11 (small-scale) and 31, 51, 71, 91, and 111 (large-scale); (2) NEF-DHR models with the same number of logical executors as EF-DHR. For NEF-DHR, each logical executor was decomposed into components of three complexity levels (Low: three components; Medium: five components; High: seven components), with the distribution of complexity levels following a Gaussian pattern (Table 3 for small-scale and Table 4 for large-scale). A shared pool of 50 components was generated for NEF-DHR, and components were randomly selected to construct logical executors.
Table 3. Details of simulated NEF-DHR models.
Table 4. Details of simulated NEF-DHR models.
Attack Scenarios: Attack intensity was quantified by the Attack Rate (AR), defined as the fraction of executors (EF-DHR) or components (NEF-DHR) controlled by the adversary. Three AR values were tested: 0.1 (low attack), 0.3 (medium attack), and 0.5 (high attack). The number of compromised entities was ⌈ A R · k ⌉ (rounded up to the nearest integer) for both architectures to ensure fair comparison. For EF-DHR, we assumed that once an executor is compromised, the adversary gains complete control over it and can manipulate its output. To maximize the impact on the final system output, the adversary would change all intermediate results produced by the compromised executors to the same malicious value. This assumption simulates a practical worst-case scenario where the adversary’s goal is to forcefully alter the system’s final output. Under our threat model for NEF-DHR, once a component is compromised, the attack propagates through all logical executors that contain it, and their corresponding intermediate results are subsequently corrupted.
Evaluation Metric: The DHR architecture enhances the ESS from the Reliable Communication perspective, so Error Rate (ER) is adopted to measure system security, the same as in [11]. E R = c / k , where c is the number of compromised logical/physical executors. A lower ER indicates better security; if E R ≥ 0.5 , the majority voting strategy fails, and the system cannot guarantee correct output.
Table 3 and Table 4 present the number of NEF components belonging to each logical executor in the NEF-DHR architecture. For example, in Table 3, the second line ‘ 5 , 1 , 3 , 1 ’ indicates that there are five logical executors in total: one of them is of low complexity (containing three NEF components), three are of medium complexity (containing five NEF components each), and the remaining one is of high complexity (containing seven NEF components).

5.3.2. Small-Scale System Experiments (k = 3, 5, 7, 9, and 11)

Table 5, Table 6 and Table 7 present the ER values of EF-DHR and NEF-DHR under different AR levels. The key observations are as follows:
Table 5. Error rates of EF-DHR and NEF-DHR models ( A R = 0.1 ).
Table 6. Error rates of EF-DHR and NEF-DHR models ( A R = 0.3 ).
Table 7. Error rates of EF-DHR and NEF-DHR models ( A R = 0.5 ).
Low Attack (AR = 0.1, Table 5): NEF-DHR outperforms EF-DHR in most cases. Specifically, NEF-DHR achieves an ER of 0.00 (no compromised executors) when k = 3 , 5 , 11 , whereas EF-DHR exhibits ER values of 0.33, 0.20, and 0.18, respectively. The minor exceptions (NEF-DHR ER = 0.29 for k = 7 , 0.22 for k = 9 ) are attributed to statistical fluctuations in the stochastic component selection process, which do not affect the decision module’s ability to generate correct outputs.
Medium Attack (AR = 0.3, Table 6): NEF-DHR maintains superior or equivalent performance. For k = 3 , 5 , NEF-DHR achieves an ER of 0.00, while EF-DHR has an ER of 0.33 and 0.40. For k = 7 , 9 , the two architectures have the same ER (0.43 and 0.33), and for k = 11 , NEF-DHR reduces the ER from 0.36 (EF-DHR) to 0.18.
High Attack (AR = 0.5, Table 7): NEF-DHR demonstrates significant robustness. All EF-DHR models fail with an E R ≥ 0.5 , as the majority voting strategy is ineffective. In contrast, NEF-DHR maintains an ER < 0.5 for k = 3 (0.00), k = 5 (0.40), and k = 11 (0.36), ensuring the decision module can still generate correct outputs via majority voting.

5.3.3. Large-Scale System Experiments (k = 31, 51, 71, 91, and 111)

Large-scale experiments were conducted to verify the scalability of NEF-DHR (Table 4 for component distribution and Table 8, Table 9 and Table 10 for results). The trends are consistent with small-scale experiments:
Table 8. Error rates of EF-DHR and NEF-DHR models ( A R = 0.1 ).
Table 9. Error rates of EF-DHR and NEF-DHR models ( A R = 0.3 ).
Table 10. Error rates of EF-DHR and NEF-DHR models ( A R = 0.5 ).
Low Attack (AR = 0.1, Table 8): NEF-DHR outperforms EF-DHR for k = 31 , 51 , 71 , with the ER reduced by 50% (from 0.13 to 0.06 for k = 31 ) or even to 0.00 (for k = 51 ). The exceptions for k = 91 , 111 are negligible due to stochastic fluctuations.
Medium Attack (AR = 0.3, Table 9): NEF-DHR reduces the ER by 16–45% for k = 31 , 51 , 71 , 91 . For example, when k = 31 , the ER decreases from 0.32 (EF-DHR) to 0.16 (NEF-DHR).
High Attack (AR = 0.5, Table 10): NEF-DHR maintains effective operation for most large-scale systems. All EF-DHR models fail with an E R ≥ 0.5 , while NEF-DHR achieves an ER < 0.5 for k = 31 (0.23), k = 51 (0.45), and k = 71 (0.44), demonstrating strong scalability in resisting high-intensity attacks.
The experimental results consistently demonstrate that NEF-DHR outperforms traditional EF-DHR in terms of ESS performance: (1) NEF-DHR achieves a lower or equivalent ER under all attack levels; (2) under high attack intensity (AR = 0.5), NEF-DHR maintains effective operation (ER < 0.5) for most configurations, while EF-DHR completely fails; (3) NEF-DHR exhibits good scalability, with its superiority maintained in large-scale systems. These findings validate that the integration of function decomposition and the shuffle mechanism effectively enhances system robustness and ESS.
This section verifies the superior anti-attack performance of NEF-DHR over EF-DHR from the perspective of security error rate under different attack intensities via simulation experiments. The quantitative analysis of engineering cost-efficiency is not included in this study, as it requires the support of physical heterogeneous hardware/software deployment and long-term industrial operational data. The theoretical cost model has clearly demonstrated the engineering cost advantage of NEF-DHR, and the experimental verification of cost-efficiency will be the focus of our subsequent research.

6. Discussion

This section starts with a comparative analysis of the traditional functionally equivalent DHR (EF-DHR) architecture and our proposed Non-Equivalent Functional DHR (NEF-DHR) architecture, followed by an in-depth exploration of the connotation of endogenous safety and security (ESS). Three subtypes of ESS are formally defined: obfuscated ESS (oESS), module ESS (mESS), and engineering ESS (eESS), with corresponding DHR architectures tailored for each subtype. Furthermore, we delve into the essential characteristics of DHR architectures; regardless of whether they are functionally equivalent, non-equivalent, or other innovative variants, all serve as implementation approaches to achieve ESS.

6.1. Properties of (N)EF-DHR Architectures

As elaborated earlier, the core tenet of DHR architectures is to ensure the reliability of target functionalities through multiple heterogeneous entities (either functionally equivalent or non-equivalent). This design inherently increases the difficulty for adversaries to exploit vulnerabilities that would compromise the system’s correct output. A critical observation is that as long as these heterogeneous entities (whether equivalent or non-equivalent) satisfy specific fundamental properties, the DHR architecture built upon them will fulfill the ESS property (briefly introduced in Section 3). This subsection provides formal definitions of these properties and rigorously proves the aforementioned conclusion.
We first focus on the properties required for functional entities in EF-DHR and NEF-DHR architectures, which are categorized into three core dimensions: heterogeneous implementation, independence, and restructuring.

6.1.1. Heterogeneous Implementation

Two engineering implementations of functional entities, denoted H I ( f i ) and H I ( f j ) , are not considered heterogeneous if there exists any input that causes both implementations to deviate from their expected normal outputs. Formally,
If ∃ x such that H I ( f i ) ( x ) ≠ f i ( x ) ∧ H I ( f j ) ( x ) ≠ f j ( x ) , then H I ( f i ) = H I ( f j ) .
In practice, verifying this property exhaustively is infeasible, especially for large input spaces. Therefore, we adopt a pragmatic criterion: two engineering implementations are deemed heterogeneous (denoted H I ( f i ) = x H I ( f j ) ) if no publicly known input or method can induce simultaneous deviations from their normal outputs, as validated by professional testing.

6.1.2. Independence

Independence requires that each functional entity is implemented heterogeneously and that no actionable information about one entity can be inferred from others. Three perspectives are proposed to define this independence, corresponding to different DHR architectural designs:
  • (1) Independence of EF Entities
This type of independence is tailored for EF-DHR architectures, where functional entities are functionally equivalent but heterogeneously implemented. Two implementation strategies are proposed to achieve it:
  • A. Engineering Independence
This strategy relies solely on engineering diversity to ensure independence, for example adopting central processing units (CPUs) and operating systems (OSs) with distinct architectures. Formally, suppose the heterogeneous implementation of each functional entity can be decomposed into m modular components H I 1 , … , H I m . For a given input set I where all functional entities are consistent (i.e., f 1 ( x ) = … = f n ( x ) for x ∈ I ), the following conditions must hold:
{ k ∈ [ m ] : H I k ( f i ) = x H I k ( f j ) } ≥ α m , ∀ f i , f j , i ≠ j , { j ∈ [ n ] : H I k ( f i ) = x H I k ( f j ) } ≥ β n , ∀ k ∈ [ m ] , i ∈ [ n ] ,
where α m (a function of m) quantifies the minimum heterogeneity between any two functional entities and β n (a function of n) reflects the overall heterogeneity distribution across all entities. It is straightforward to verify that traditional EF-DHR architectures satisfy engineering independence.
  • B. Obfuscated Independence
While engineering independence increases the difficulty of identifying common vulnerabilities between entities, it fails to prevent adversaries from inferring information about other entities from a compromised one or deducing entity properties from the final system output. To address this limitation, functional obfuscation is integrated with heterogeneous implementation: first, generate indistinguishably obfuscated versions of the target function f, denoted i O ( f 1 ) , … , i O ( f n ) ; then, perform heterogeneous implementation on these obfuscated functions to obtain H I ( i O ( f 1 ) ) , … , H I ( i O ( f n ) ) . This combination ensures that adversaries cannot distinguish between different obfuscated entities, thus achieving a higher level of independence.
  • (2) Independence of NEF Entities
This type of independence balances the security guarantees of obfuscated independence and the implementation costs of engineering independence. It achieves conditional functional indistinguishability at a moderate cost by decomposing each equivalent functional entity f i into multiple non-equivalent sub-functional units f i 1 , … , f i t , which must satisfy three core properties:
  • Pseudorandomness: No sub-functional unit reveals information about other units or the original entity. Formally, for a given security parameter λ , there exists a negligible function n e g l ( λ ) such that for all u ∈ [ t ] , all probabilistic polynomial-time (PPT) adversaries A , and a random algorithm R a n d ( · ) ,
    P A f i u ( · ) ( x ) = 1 − P A R a n d ( · ) ( x ) = 1 ≤ n e g l ( λ ) .
  • Recovery: There exists an efficient reconstruction algorithm Recv ( · ) that can recover the original output f i ( x ) from the sub-functional units. Formally,
    f i ( x ) = Recv ( f i 1 ( x ) , … , f i t ( x ) ) , ∀ i ∈ [ n ] .
    For example, the reconstruction algorithm R defined in Equation (7) satisfies this property.
  • Compactness: The size of each sub-functional unit is bounded by a polynomial in the security parameter λ . Formally, there exists a polynomial p ( · ) such that | f i u | ≤ p ( λ ) for all u ∈ [ t ] .
The core idea of this independence is to protect the privacy of functional entities by decomposing them into pseudorandom sub-units; hence, it is termed module independence.

6.1.3. Restructuring

The heterogeneous implementation methods (for engineering independence) and the algorithms underlying obfuscated independence and module independence must be non-deterministic and efficient. This ensures the ability to generate multiple distinct sets of required (sub-)functional entities dynamically, enabling the system to adjust its internal structure without altering the target functionality—a key feature for resisting adaptive attacks.

6.2. Categories of ESS

Based on the aforementioned independence properties, ESS is categorized into three subtypes, each corresponding to a specific DHR architectural design:
  • Obfuscated ESS (oESS): A DHR architecture that satisfies obfuscated independence.
  • Module ESS (mESS): A DHR architecture that satisfies module independence.
  • Engineering ESS (eESS): A DHR architecture that satisfies engineering independence.
Theorem 2.
If functional entities can be heterogeneously implemented, the following hold: (1) the EF-DHR architecture achieves eESS; (2) the NEF-DHR architecture achieves mESS; (3) the iO-DHR architecture (obfuscated DHR) achieves oESS.
First, we formalize the three ESS subtypes based on independence properties:
  • Engineering ESS (eESS): A system S achieves e E S S if its functional entities satisfy engineering independence and ESS core Definition 1, i.e., P r y ∈ Y c o r r e c t ≤ ϵ with ϵ determined by engineering heterogeneity alone.
  • Module ESS (mESS): A system S achieves m E S S if its functional entities satisfy module independence (pseudorandomness/recovery/compactness) and Definition 1, i.e., P r y ∈ Y c o r r e c t ≤ ϵ with ϵ determined by module-level pseudorandom heterogeneity.
  • Obfuscated ESS (oESS): A system S achieves oESS if its functional entities satisfy obfuscated independence and Definition 1, i.e., P r y ∈ Y c o r r e c t ≤ ϵ with ϵ determined by indistinguishability obfuscation and heterogeneous implementation.
Proof of (1): EF-DHR achieves eESS.
  • EF-DHR deploys m functionally equivalent (EF) and heterogeneously implemented (HIS) executors, which satisfy the engineering independence conditions
    { k ∈ [ m ] : H I k ( f i ) = x H I k ( f j ) } ≥ α m
  • EF-DHR’s heterogeneous implementation (diverse hardware/OS/algorithms) ensures a minimum heterogeneity between any two executors, satisfying α m ≥ 1 (empirically validated in Section 6.2 real-system tests).
    { j ∈ [ n ] : H I k ( f i ) = x H I k ( f j ) } ≥ β n
  • EF-DHR’s dynamic scheduling ensures heterogeneous distribution across all executors, satisfying β n ≥ 1 . Then, by Lemma 1, EF-DHR satisfies the ESS core definition with ϵ determined by the number of heterogeneous executors and majority voting. Thus, EF-DHR meets the formal definition of eESS.□
Proof of (2): NEF-DHR achieves mESS.
  • NEF-DHR decomposes each EF executor into non-equivalent functional components via FSS, which satisfies the three core properties of module independence:
  • Pseudorandomness: By Lemma 2, FSS sub-functions are pseudorandom with P r [ A f i u ( · ) ( x ) = 1 ] − P r [ A R a n d ( · ) ( x ) = 1 ] ≤ n e g l ( λ ) , satisfying the pseudorandomness condition.
  • Recovery: NEF-DHR’s FSS reconstruction algorithm R ensures f i ( x ) = R e c v ( f i 1 ( x ) , … , f i t ( x ) ) for all i ∈ [ n ] , satisfying the recovery condition.
  • Compactness: FSS sub-functions have polynomial size in the security parameter λ , satisfying f i u ≤ p o l y ( λ ) .
By Theorem 1, NEF-DHR satisfies the ESS core definition with ϵ → 1 (zero entropy loss). Thus, NEF-DHR meets the formal definition of mESS.  □
Proof of (3): iO-DHR achieves oESS.
  • iO-DHR generates indistinguishably obfuscated versions of f ( i O ( f 1 ) , … , i O ( f n ) ) and deploys heterogeneous implementation on these obfuscated functions, satisfying obfuscated independence:
  • Indistinguishability obfuscation ensures that no PPT adversary can distinguish between i O ( f i ) and i O ( f j ) for i ≠ j (per indistinguishability obfuscation core definition).
  • Heterogeneous implementation of obfuscated functions ensures no common-mode vulnerabilites across H I ( i O ( f i ) ) (per definition in Section 6.1.1).
iO-DHR inherits the DHR majority voting mechanism, so it satisfies the ESS core definition with ϵ = n e g l ( λ ) (negligible error probability from obfuscation and heterogeneity). Thus, iO-DHR meets the formal definition of oESS.  □
Detailed corresponding DHR architectures are illustrated in Figure 3.
Figure 3. Three types of DHR architecture. (a) EF-DHR achieving engineering ESS (eESS) with functionally equivalent heterogeneous executors. (b) NEF-DHR achieving module ESS (mESS) with FSS-based non-equivalent components and shuffle mechanism. (c) iO-DHR achieving obfuscated ESS (oESS) with indistinguishably obfuscated functions and heterogeneous implementation.
The three ESS subtypes differ in security requirements, heterogeneity implementation scope, and additional costs:
Security Level: eESS only requires sufficient engineering heterogeneity between entities; oESS demands both heterogeneous implementation and indistinguishability of obfuscated entities (the highest security); mESS relaxes the obfuscation requirement to conditional pseudorandomness (intermediate security).
Heterogeneity Requirement: eESS requires heterogeneous implementation of all target functions; oESS only requires heterogeneity of the underlying operations of the indistinguishability obfuscator (iO); mESS requires heterogeneity of the pseudorandom sub-functional units.
A summary of the three ESS subtypes and their corresponding DHR architectures is provided in Table 11.
Table 11. Comparisons of different ESS and corresponding DHR architectures.
Note that mESS (NEF-DHR) and oESS (iO-DHR) are currently conceptual models: simulated experiments for mESS are presented in Section 5.3, while experiments for oESS will be conducted in future work. Here, we present experimental results of eESS (EF-DHR) on real-world systems to validate its effectiveness. As introduced in Section 2, several practical devices have been developed based on the EF-DHR architecture (eESS). Figure 4 illustrates two representative designs: EF-DHR-Web Server (EF-DHR-WS) and EF-DHR-Router (EF-DHR-RT).
Figure 4. Practical designs of EF-DHR devices.
Penetration tests were conducted on ten EF-DHR-based devices: Domain Name System (DNS), Router (RT), Memory (MM), Web Server (WS), Advanced Driving Assistance System (ADAS), Telematics BOX (T-BOX), Cloud (CL), 5G Unified Data Management (UDM), Switch (SW), and Data Center (DC). Additionally, some of these devices (ADAS, T-BOX, etc.) were tested by professional hackers in the 6th ’Qiangwang’ International Elite Challenge on Cyber Mimic Defense (QWEC). The attacking methods included data exfiltration, traffic generation attacks, universal protocol command decoding, and privilege escalation, among others.
Consistent with the core tenet of ESS (prioritizing normal service provision over attack elimination, Section 3), the performance metric adopted here is ’Service Normality (SN)’—whether the system continues to provide normal services after attacks. Table 12 presents the Penetration Testing Times (PTTs) and Hacking Times (HTs) during QWEC, where ’/’ indicates that the corresponding device was not tested in QWEC.
Table 12. Penetration test and hacking (QWEC) results over different EF-DHR devices (in hundreds).
The experimental results (all SN = Y) demonstrate that despite millions of penetration tests and hacking attempts, none of the EF-DHR devices were fully compromised (even if individual executors were breached), and all maintained normal service provision. This validates the effectiveness of eESS and the EF-DHR architecture in real-world scenarios.

6.3. Generalization of DHR Architecture

To further reveal the essence of DHR architectures, we note that the aforementioned EF-DHR, NEF-DHR, and iO-DHR are specific implementation methods rather than fundamental characteristics. The previously summarized properties (heterogeneous implementation, independence, and restructuring) are also implementation-oriented. A deeper analysis shows that the core goals of heterogeneous implementation and independence are to ensure the system can output and verify correct results regardless of whether it is under attack. Restructuring, on the other hand, emphasizes that the system’s internal functional features are not fixed and can be dynamically adjusted via non-deterministic algorithms without altering the target functionality.
Based on these core goals, we generalize the DHR architecture through three abstract fundamental properties, which are independent of specific implementation methods:
  • Indistinguishability
Let I m p l ( f ; r ) denote a non-deterministic implementation algorithm that generates an implementation of the target function f using a random parameter r. Let U = ( I m p l ( f ; r 1 ) , … , I m p l ( f ; r s ) ) be a set of existing implementations. For a security parameter λ , there exists a negligible function n e g l ( λ ) such that for any efficient distinguisher D and any two new random parameters r 1 * , r 2 * ∉ { r 1 , … , r s } ,
P D I m p l ( f ; r 1 * ) ( U ) = 1 − P D I m p l ( f ; r 2 * ) ( U ) = 1 ≤ n e g l ( λ ) .
This property ensures that new implementations are indistinguishable from each other to adversaries, preventing the inference of implementation-specific vulnerabilities.
  • Output Recovery
Let D be the domain of f augmented with ⊥ (representing invalid outputs from illegal operations). For any implementation f ¯ = I m p l ( f ; r ) and any input x, there exists an efficient recovery algorithm R e c v ( · ) such that
P R e c v ( f ¯ ; x ) ∈ D ≥ 1 − n e g l ( λ ) .
This property guarantees that the system can reliably recover valid outputs from any legitimate implementation.
  • Verification Let y i = R e c v ( I m p l ( f ; r i ) , x ) for i = 1 , … , s (outputs from multiple implementations). There exists an efficient verification algorithm V e r f ( · ) such that
    P V e r f ( y 1 , … , y s ) = 1 ∣ y i = f ( x ) for a majority of i ≥ 1 − n e g l ( λ ) .
This property ensures that the system can correctly verify the validity of outputs using a majority consensus mechanism, even if some implementations are compromised.
These three abstract properties capture the essence of DHR architectures: indistinguishability prevents adversary targeting, output recovery ensures basic functionality, and verification guarantees result correctness. Any architecture that satisfies these three properties can be deemed a DHR architecture and thus achieve ESS.
  • Future Work: In this paper, we present the conceptual model NEF-DHR and validate its performance through simulated experiments. For future work, we will focus on practical design and real-system validation, following the plan outlined below. First, simple tasks such as Private Information Retrieval (PIR) using point functions will be considered. Then, more complicated tasks such as Private Set Intersection (PSI) with Oblivious Pseudorandom Functions (OPRFs) will be addressed. Moreover, we plan to extend the architecture to machine learning tasks, as well as secure database querying and data aggregation. For all the aforementioned tasks, we aim to perform validations on real devices. Considering that hardware implementation is challenging in the EF-DHR architecture, this also remains a key challenge.

7. Conclusions

This paper addresses the inherent contradiction between ‘equivalent functional’ and ‘heterogeneous’ properties in traditional EF-DHR architectures by generalizing it to the NEF-DHR architecture. Integrating function secret sharing and shuffle technology, NEF-DHR replaces EF executors with non-equivalent components, reducing engineering complexity and enhancing robustness via intrinsic randomness. Theoretical proofs based on ‘terminal executor output information entropy loss’ and simulated experiments confirm NEF-DHR’s superior anti-attack performance with lower error rates. We further classify ESS into eESS, mESS, and oESS, matching with EF-DHR, NEF-DHR, and iO-DHR respectively. The essence of DHR is generalized as three core properties: indistinguishability, output recovery, and verification. In addition to enhancing the endogenous security (ESS) properties of information systems and addressing the EF-HIS contradiction, the contributions and findings presented in this paper may offer new insights for future research on ESS and DHR. Future work will focus on practical design and real-system validation of mESS and oESS architectures.

Author Contributions

Conceptualization, B.J. and Y.K.; methodology, B.J. and Y.K.; software, Y.K. and H.C.; validation, Y.K. and H.C.; formal analysis, B.J. and Y.K.; investigation, Y.K.; resources, B.J. and Y.K.; data curation, Y.K. and H.C.; writing—original draft preparation, B.J. and Y.K.; writing—review and editing, B.J. and Y.K.; visualization, B.J. and Y.K.; supervision, B.J. and Y.K.; project administration, B.J.; funding acquisition, B.J., Y.K. and H.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the General Program for Basic Science (Natural Science) Research of Jiangsu Colleges and Universities grant number 25KJB520004, Huai’an Basic Research (Natural Science) Program grant number HAB2024063, Scientific Research Fund Project of the Department of Education of Yunnan Province grant number 2026J2513, Yunnan Key Laboratory of Smart City in Cyberspace Security grant number 202105AG070010, and Cyber Resilience Integrated Services Technology Infrastructure of Purple Mountain Laboratories grant number ZL042402. The APC was funded by the Scientific Research Fund Project of the Department of Education of Yunnan Province.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Dataset available on request from the authors.

Acknowledgments

The authors would like to thank colleagues of Purple Mountain Laboratories for their efforts in designing EF-DHR devices and performing penetration tests on them. In addition, the authors would like to thank candidates of QWEC for their efforts in hacking EF-DHR devices.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Ma, L.; Zhang, X.; Wang, K.; Hou, X.; Chen, L.; Han, W.; Du, X. Generative adversarial message passing-based anomaly detection. J. King Saud Univ. Comput. Inf. Sci. 2025, 37, 5. [Google Scholar] [CrossRef] [Scilit]
  2. Paul, S.; Ding, F.; Utkarsh, K.; Liu, W.; O’Malley, M.J.; Barnett, J. On Vulnerability and Resilience of Cyber-Physical Power Systems: A Review. IEEE Syst. J. 2022, 16, 2367–2378. [Google Scholar] [CrossRef] [Scilit]
  3. Duo, W.; Zhou, M.; Abusorrah, A. A Survey of Cyber Attacks on Cyber Physical Systems: Recent Advances and Challenges. IEEE/CAA J. Autom. Sin. 2022, 9, 784–800. [Google Scholar] [CrossRef] [Scilit]
  4. Sengan, S.; Subramaniyaswamy, V.; Nair, S.K.; Indragandhi, V.; Manikandan, J.; Ravi, L. Enhancing cyber–physical systems with hybrid smart city cyber security architecture for secure public data-smart network. Future Gener. Comput. Syst. 2020, 112, 724–737. [Google Scholar] [CrossRef] [Scilit]
  5. Yadav, R.S.; Likhar, P. Firewall: A Vital Constituent of Network Security. In Information Technology Security: Modern Trends and Challenges; Springer Nature Singapore: Singapore, 2024; pp. 47–67. [Google Scholar]
  6. Dawadi, B.R.; Adhikari, B.; Srivastava, D.K. Deep Learning Technique-Enabled Web Application Firewall for the Detection of Web Attacks. Sensors 2023, 23, 2073. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  7. Klein, A. Subverting Stateful Firewalls with Protocol States. In Proceedings of the 29th Annual Network and Distributed System Security Symposium, San Diego, CA, USA, 24–28 April 2022. [Google Scholar]
  8. Shi, D.; Xu, M.; Qin, Z.; Zhong, Y. Local enhanced toeplitz neural network for in-vehicle network intrusion detection. J. King Saud Univ. Comput. Inf. Sci. 2025, 37, 8. [Google Scholar] [CrossRef] [Scilit]
  9. Manivannan, D. Recent endeavors in machine learning-powered intrusion detection systems for the Internet of Things. J. Netw. Comput. Appl. 2024, 229, 103925. [Google Scholar] [CrossRef] [Scilit]
  10. Djaidja, T.E.T.; Brik, B.; Mohammed Senouci, S.; Boualouache, A.; Ghamri-Doudane, Y. Early Network Intrusion Detection Enabled by Attention Mechanisms and RNNs. IEEE Trans. Inf. Forensics Secur. 2024, 19, 7783–7793. [Google Scholar] [CrossRef] [Scilit]
  11. Wu, J. Cyberspace Endogenous Safety and Security; Science Press: Beijing, China, 2020. [Google Scholar]
  12. Wu, J. Problems and solutions regarding generalized functional safety in cyberspace. Secur. Saf. 2022, 1, 2022001. [Google Scholar] [CrossRef] [Scilit]
  13. Wu, J. Development paradigms of cyberspace endogenous safety and security. Sci. China Inf. Sci. 2022, 65, 156301. [Google Scholar] [CrossRef] [Scilit]
  14. Wu, J. Introduction to Cyberspace Mimic Defense; Science Press: Beijing, China, 2017. [Google Scholar]
  15. Gipiškis, R.; Chiaro, D.; Preziosi, M.; Prezioso, E.; Piccialli, F. The Impact of Adversarial Attacks on Interpretable Semantic Segmentation in Cyber–Physical Systems. IEEE Syst. J. 2023, 17, 5327–5334. [Google Scholar] [CrossRef] [Scilit]
  16. Wu, J. Cyberspace Endogenous Safety and Security. Engineering 2022, 15, 179–185. [Google Scholar] [CrossRef] [Scilit]
  17. Ji, X.; Wu, J.; Jin, L.; Huang, K.; Chen, Y.; Sun, X.; You, W.; Huo, S.; Yang, J. Discussion on a new paradigm of endogenous security towards 6G networks. Front. Inf. Technol. Electron. Eng. 2022, 23, 1421–1450. [Google Scholar] [CrossRef] [Scilit]
  18. Xin, Y. Protection architecture of endogenous safety and security for industrial control systems. Secur. Saf. 2023, 2, 2023001. [Google Scholar] [CrossRef] [Scilit]
  19. Guo, J.; Xu, M. ZTESA—A Zero-Trust Endogenous Safety Architecture: Gain the endogenous safety benefit, avoid insider threats. In Proceedings of the International Symposium on Computer Applications and Information Systems, Shenzhen, China, 25–27 February 2022; p. 122500S. [Google Scholar]
  20. Dwork, C.; Lynch, N.; Stockmeyer, L. Consensus in the Presence of Partial Synchrony. J. ACM 1988, 35, 288–323. [Google Scholar] [CrossRef] [Scilit]
  21. Zhong, W.; Wu, W.; An, G.; Ren, J.; Yu, S. Dissimilar Redundancy Structure Design for Carrier Landing Guidance Computer and Reliability Analysis. In Proceedings of the First Symposium on Aviation Maintenance and Management-Volume II; Springer: Berlin/Heidelberg, Germany, 2014; pp. 379–385. [Google Scholar]
  22. Shannon, C.E. A mathematical theory of communication. Bell Syst. Tech. J. 1948, 379–423. [Google Scholar] [CrossRef] [Scilit]
  23. Wu, J. The Principle of Cyberspace Mimic Defense. In Cyberspace Mimic Defense: Generalized Robust Control and Endogenous Security; Springer International Publishing: Cham, Switzerland, 2020; pp. 371–493. [Google Scholar]
  24. Boyle, E.; Gilboa, N.; Ishai, Y. Function Secret Sharing. In Proceedings of the Advances in Cryptology—34th Annual International Conference on the Theory and Applications of Cryptographic Techniques, Sofia, Bulgaria, 26–30 April 2015; pp. 337–367. [Google Scholar]
  25. Boyle, E.; Gilboa, N.; Ishai, Y. Function Secret Sharing: Improvements and Extensions. In Proceedings of the ACM SIGSAC Conference on Computer and Communications Security, Vienna, Austria, 24–28 October 2016; pp. 1292–1303. [Google Scholar]
  26. Boyle, E. Recent Advances in Function and Homomorphic Secret Sharing. In Proceedings of the Progress in Cryptology—INDOCRYPT, Chennai, India, 10–13 December 2017; pp. 1–26. [Google Scholar]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.