Homomorphic encryption device and method for control systems that discloses a portion of non-ptivate outcome
Patent Information
- Application Number
- KR1020250016146
- Authority / Receiving Office
- KR · KR
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-02-07
- Publication Date
- 2026-08-14
Smart Images

Figure PAT00021_ABST
Abstract
Description
Technology Field
[0001] The present invention relates to a homomorphic encryption device and method that discloses only specific information of a control system. Background Technology
[0003] Network control systems are increasingly likely to suffer serious physical damage due to rising cyber attacks, necessitating effective security measures. To address these threats, an encrypted control system has been proposed.
[0004] An encrypted control system utilizes homomorphic encryption to perform control operations on encrypted data without decryption, thereby maintaining security during all processes of transmitting or computing data at the network layer and protecting sensitive information.
[0005] However, there are limitations in detecting and responding to tampering attacks that may occur in encrypted control systems. One existing anomaly detection method is to generate a warning when a residual signal exceeds a threshold. However, since computing devices without secret keys can only use encrypted residual signals, it is difficult to directly detect tampering attacks. Additionally, while bootstrapping can be used to implement comparison operations between residual signals and thresholds on encrypted data, this entails a heavy computational burden and is inefficient, thus imposing limitations on the implementation of automated anomaly detection systems.
[0006] Therefore, to address these issues, a new method is needed to directly and efficiently detect tampering attacks even on computing devices without secret keys, and research is required to enhance the security and practicality of encrypted control systems through this. Prior art literature
[0008] Korean Registered Patent Publication No. 10-2462113 The problem to be solved
[0009] The present invention has been devised to solve the above-mentioned problems, and the objective of the present invention is to provide a homomorphic encryption device and method that discloses only specific information (residual signal) of a control system. means of solving the problem
[0011] A homomorphic encryption method for disclosing only specific information of a control system according to an embodiment of the present invention for achieving the above objective comprises: a step of generating a ciphertext by applying a predetermined encryption technique to an input signal of the control system; a step of modifying the ciphertext by adding a random number vector designed so that the random component of the ciphertext becomes 0; and a step of calculating a residual signal in an encrypted state from the modified ciphertext and disclosing a specific component of the residual signal as plaintext.
[0012] A homomorphic encryption device for disclosing only specific information of a control system according to an embodiment of the present invention for achieving the above objective comprises: a ciphertext generation unit that generates a ciphertext by applying a predetermined encryption technique to an input signal of the control system; a ciphertext modification unit that modifies the ciphertext by adding a random number vector designed so that the random component of the ciphertext becomes 0; and a disclosure unit that calculates a residual signal in an encrypted state from the modified ciphertext and discloses a specific component of the residual signal as plaintext. Effects of the invention
[0014] According to one aspect of the present invention described above, by disclosing a residual signal of an encrypted control system in plaintext, an apparatus and method are provided for efficiently detecting tampering attacks without the need to implement comparison operations on the ciphertext, and security can be enhanced by minimizing the amount of data disclosed. Furthermore, while the present invention considers a situation in which information about the residual signal is disclosed, it can also be utilized to disclose other information depending on the application.
[0015] Furthermore, since tampering attack detection is possible in both static and dynamic control systems, it can be flexibly applied in various control system environments; and because the signal for anomaly detection is naturally exposed in plaintext without the introduction of additional computational processes, it becomes possible to detect and identify tampering attacks by entities that do not possess the secret key. Brief explanation of the drawing
[0017] FIG. 1 is a schematic diagram showing a control system that detects tampering attacks through outlier detection based on a homomorphic encryption technique according to an embodiment of the present invention. FIG. 2 is a diagram illustrating an internal block of a homomorphic encryption device according to an embodiment of the present invention, And, FIG. 3 is a flowchart showing the process of disclosing only specific information of a homomorphic encryption device according to an embodiment of the present invention. Specific details for implementing the invention
[0018] The following detailed description of the invention refers to the accompanying drawings, which illustrate specific embodiments in which the invention may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the invention. It should be understood that various embodiments of the invention are different but need not be mutually exclusive. For example, specific shapes, structures, and characteristics described herein may be implemented in other embodiments without departing from the spirit and scope of the invention in relation to one embodiment. It should also be understood that the location or arrangement of individual components within each disclosed embodiment may be changed without departing from the spirit and scope of the invention. Accordingly, the following detailed description is not intended to be limiting, and the scope of the invention is limited only by the appended claims, including all equivalents to those claimed therein, provided appropriately described. Similar reference numerals in the drawings refer to the same or similar functions across various aspects.
[0019] The components according to the present invention are defined by functional distinction rather than physical distinction, and can be defined by the functions each performs. Each component may be implemented as hardware or as program code and processing units that perform each function, and the functions of two or more components may be included and implemented in a single component. Therefore, it should be noted that the names assigned to the components in the following embodiments are not intended to physically distinguish each component but are assigned to imply the representative function performed by each component, and that the technical concept of the present invention is not limited by the names of the components.
[0020] Preferred embodiments of the present invention will be described in more detail below with reference to the drawings.
[0021] FIG. 1 is a schematic diagram showing a control system that detects tampering attacks through outlier detection based on a homomorphic encryption technique according to an embodiment of the present invention.
[0022] The illustrated control system includes an actuator (110), a controller (120), and a sensor (130).
[0023] The sensor (130) measures the system state and generates an output, and the generated output is encrypted and transmitted as the input y(t) of the controller (120). At this time, the generated data is encrypted using a representative encryption system, specifically an LWE (Learning With Errors) based encryption technique, where the LWE based encryption technique refers to a post-quantum cryptography technique that supports both addition and multiplication in the ciphertext.
[0024] That is, the integer modular set Z q:=Message m∈ with elements of {0, 1, ..., q-1} as components It is encrypted as shown in Equation 1 below through an LWE-based encryption technique.
[0025]
[0026] Here, A∈ is a random matrix, and sk∈ is a secret key, and e∈ is a small error injected. The length of the secret key N∈N is a parameter that determines the security level.
[0027] The ciphertext of mathematical formula 1 is decrypted using a secret key as shown in mathematical formula 2 below.
[0028]
[0029] In this way, when a secret key is given, decrypting the ciphertext yields a value obtained by adding a small error e to the plaintext m.
[0030] The controller (120) is a state variable as a ciphertext based on isomorphism. x (t), output u (t), anomaly detection signal for outlier detection r Calculate (t), which can be expressed as Equation 3 and Equation 4, respectively.
[0031]
[0032]
[0033] In mathematical equations 3 and 4, matrices F, G, P, Q, H, and J are all assumed to be integer matrices.
[0034] Then, the controller (120) compares the anomaly detection signal r(t) as plaintext with a reference threshold, and if the magnitude of r(t) exceeds the reference threshold, it determines that a modulation attack has occurred and triggers an alarm.
[0035] Meanwhile, when the controller (120) calculates the abnormality detection signal r(t), the ciphertextr (t) can be expressed as in Equation 5 below, where the random part A r (t)·sk + e r If it is possible to force (t) to remain at 0, the effect of naturally disclosing the above anomaly detection signal r(t) as plaintext can be obtained.
[0036]
[0037] Here, r(t)∈Z q is a residual signal, and A r (t) and e r (t) is the initial value of the state variable as a ciphertext x (0) and input y These are values determined from the random part of (t) through mathematical formulas 3 and 4.
[0038] Below, through Figure 2, we will explain a method for naturally disclosing the residual signal of the anomaly detection signal r(t) as plaintext without a decoding process.
[0039] FIG. 2 is a diagram illustrating the internal blocks of a homomorphic encryption device according to an embodiment of the present invention.
[0040] The illustrated homomorphic encryption device includes a ciphertext generation unit (210), a ciphertext modification unit (220), and a disclosure unit (230).
[0041] The ciphertext generation unit (210) generates a ciphertext by applying a predetermined encryption method to the input signal of the control system. The predetermined encryption method may be, for example, an LWE-based encryption method, and it goes without saying that any other encryption method may be applied depending on the requirements and performance characteristics of the control system.
[0042] The ciphertext modification unit (220) modifies the ciphertext by adding a random number vector designed so that the random number component of the ciphertext becomes 0. At this time, the ciphertext modification unit (220) modifies the ciphertext in the static control system and the dynamic control system as follows.
[0043] First, in a static control system, the ciphertext modification unit (220) modifies the ciphertext by multiplying the ciphertext generated through the ciphertext generation unit (210) by a plaintext matrix and adding a random number vector belonging to the kernel space of the plaintext matrix. At this time, the random number vector is characterized by satisfying a vertical relationship with the plaintext matrix.
[0044] To explain this in more detail through a formula, the ciphertext modification unit (220) modifies the plaintext matrix K∈ in the ciphertext Enc(m) generated through mathematical formula 1. Multiply by the following mathematical formula 6. At this time, the random number part A·sk + e, which corresponds to the random component in the ciphertext Enc(m), will be replaced with B for the explanation.
[0045]
[0046] Then, the ciphertext modification unit (220) modifies the ciphertext K·Enc(m) as in Equation 7 below so that Km is naturally revealed in the ciphertext K·Enc(m).
[0047]
[0048] Here, B ⊥ is an element of vector B belonging to the kernel space of plaintext matrix K, where B=B ⊥ + B ∥ It can be expressed as follows, where the kernel space of K refers to the set of all vectors that become zero when multiplied by K. That is, B ⊥ If it belongs to kernel space, then K·B ⊥ =0 always holds, and therefore B ⊥ can be considered as a vector perpendicular to K.
[0049] Meanwhile, Enc′(m), Enc(m), and Km are B due to the equivalence of information ∥Even if specific information such as [the text] is disclosed, it is impossible to reverse calculate the plaintext m or the secret key based on it, and through this, it can be seen that disclosing specific information does not affect security.
[0050] Next, in the dynamic control system, the ciphertext generation unit (210) generates a ciphertext by encrypting an initial state value and an input signal, and the ciphertext modification unit (220) modifies the ciphertext based on Zero-Dynamics. Before describing in detail the operation of the ciphertext generation unit (210) and the ciphertext modification unit (220), Zero-Dynamics will be briefly explained.
[0051] Zero-dynamics refers to the movement of the internal state z(t) when the output of the control system is maintained at zero, and is derived from the relationship between matrices F, G, H, and J in a linear dynamic system expressed as Equation 3. Additionally, when the output is maintained at zero, the state variable z(t) is described as movement in kernel space, which can be expressed as Equation 8 below.
[0052]
[0053] In this way, the control system separates the state x(t) into state variables z(t) and v(t) using the coordinate transformation matrix T according to the Byrnes-Isidori Normal Form, where z(t) is the state variable governing the zero-dynamics and v(t) is the state variable directly affecting the output. Finally, the dynamics in which the output r(t) of the control system maintains 0 are verified, and in this case, the zero-dynamics condition can be expressed as Equation 9 below.
[0054]
[0055] That is, in the dynamic control system, the ciphertext generation unit (210) separates the initial state value of the dynamic control system into a first state variable z (0) and a second state variable v (0), and applies a predetermined encryption technique, for example, an LWE-based encryption technique, to the first and second state variables and the input signal y (t) to derive an encrypted state variable and an input signal as shown in Equation 10 below.
[0056]
[0057] Then, the ciphertext generation unit (210) generates a ciphertext such as the following mathematical formula 11 using the encrypted state variable and input signal.
[0058]
[0059] Here, the message r(t) is determined by z(0), v(0), and y(t), and the random component B r (t) is B z (0), B v (0), B y It is determined by (t).
[0060] The ciphertext correction unit (220) is a random component B within the ciphertext. r In order for (t) to satisfy the zero-dynamic condition shown in Equation 12 below, the random component is modified to become zero by adjusting it to a value calculated based on the encrypted state variable and the input signal. At this time, the modified ciphertext for each of the encrypted state variable and the input signal can be expressed as Equation 13 below, and in this case, the output ciphertext can be expressed as Equation 14 below.
[0061]
[0062]
[0063]
[0064] The disclosure unit (230) calculates the residual signal in the modified ciphertext in an encrypted state and discloses a specific component r(t) of the residual signal as plaintext.
[0065] Additionally, although not illustrated, the illustrated homomorphic encryption device may further include a modulation attack detection unit, and the modulation attack detection unit detects a modulation attack by determining whether a modulation attack has occurred by comparing a specific component disclosed through the disclosure unit (230) with a reference threshold. At this time, if the magnitude of the specific component of the residual signal exceeds the threshold, the modulation attack detection unit determines that a modulation attack has occurred and triggers an alarm.
[0066] FIG. 3 is a flowchart illustrating the process of disclosing only specific information of a homomorphic encryption device according to an embodiment of the present invention.
[0067] The homomorphic encryption device generates a ciphertext by applying a predetermined encryption technique to the input signal of the control system. (S301)
[0068] Then, the homomorphic encryption device modifies the ciphertext by adding a random number vector designed such that the random component of the ciphertext generated in S301 becomes 0 (S303), calculates a residual signal in the modified ciphertext in an encrypted state, and discloses a specific component of the residual signal as plaintext (S305).
[0069] The homomorphic encryption method of the present invention, which discloses only specific information, can be implemented in the form of program instructions that can be executed through various computer components and recorded on a computer-readable recording medium. The computer-readable recording medium may include program instructions, data files, data structures, etc., either individually or in combination.
[0070] The program instructions recorded on the above-mentioned computer-readable recording medium may be those specifically designed and configured for the present invention, or they may be those known and available to those skilled in the art of computer software.
[0071] Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tapes; optical recording media such as CD-ROMs and DVDs; magneto-optical media such as floptical disks; and hardware devices specifically configured to store and execute program instructions such as ROM, RAM, and flash memory.
[0072] Examples of program instructions include machine code, such as that generated by a compiler, as well as high-level language code that can be executed by a computer using an interpreter, etc. The hardware device may be configured to operate as one or more software modules to perform processing according to the present invention, and vice versa.
[0073] Although various embodiments of the present invention have been illustrated and described above, the present invention is not limited to the specific embodiments described above. It is understood that various modifications can be made by those skilled in the art without departing from the essence of the invention as claimed in the claims, and such modifications should not be understood individually from the technical spirit or perspective of the present invention. Explanation of the symbols
[0075] 110: Actuator 120: Controller 130: Sensor 210: Ciphertext generation section 220: Ciphertext Modifier 230: Public section
Claims
Claim 1 A homomorphic encryption method that discloses only specific information of a control system, comprising: a step of generating a ciphertext by applying a predetermined encryption technique to an input signal of the control system; a step of modifying the ciphertext by adding a random number vector designed such that the random component of the ciphertext becomes zero; and a step of calculating a residue signal in an encrypted state from the modified ciphertext and disclosing a specific component of the residue signal as plaintext. Claim 2 A homomorphic encryption method according to claim 1, wherein, when the control system is a static control system, the step of modifying the ciphertext is to modify the ciphertext by multiplying the ciphertext by a plaintext matrix and then adding a random number vector belonging to the kernel space of the plaintext matrix, wherein the random number vector satisfies a vertical relationship with the plaintext matrix. Claim 3 A homomorphic encryption method according to claim 1, wherein, when the control system is a dynamic control system, the step of generating the ciphertext is to separate the initial state value of the dynamic control system into a first state variable and a second state variable, apply the predetermined encryption technique to the first and second state variables and an input signal, and generate the ciphertext using the first and second state variables and the input signal to which the encryption technique is applied. Claim 4 A homomorphic encryption method according to claim 3, wherein the step of modifying the ciphertext is to modify the random component to become zero by adjusting the random component to a value calculated based on the first and second state variables and input signals to which the encryption technique is applied, so that the random component within the ciphertext satisfies the Zero-Dynamics condition. Claim 5 A homomorphic encryption device that discloses only specific information of a control system, comprising: a ciphertext generation unit that generates a ciphertext by applying a predetermined encryption technique to an input signal of the control system; a ciphertext modification unit that modifies the ciphertext by adding a random number vector designed such that the random component of the ciphertext becomes zero; and a disclosure unit that calculates a residue signal in the modified ciphertext in an encrypted state and discloses a specific component of the residue signal as plaintext.