Abstract
In Internet of Things (IoT) systems in which a large number of IoT devices are connected to each other and to third-party servers, it is crucial to verify whether each device operates appropriately. Although anomaly detection can help with this verification, individual devices cannot afford this process because of resource constraints. Therefore, it is reasonable to outsource anomaly detection to servers; however, sharing device state information with outside servers may raise privacy concerns. In this paper, we propose a method to compute the distance privately for even using inner product functional encryption and we use this method to compute an advanced metric, namely p-powered error, for anomaly detection in a privacy-preserving manner. We demonstrate implementations on both a desktop computer and Raspberry Pi device to confirm the feasibility of our method. The experimental results demonstrate that the proposed method is sufficiently efficient for use in real-world IoT devices. Finally, we suggest two possible applications of the proposed computation method for distance for privacy-preserving anomaly detection, namely smart building management and remote device diagnosis.
1. Introduction
Anomaly detection is defined as the identification of abnormal data, events, or phenomena that deviate significantly from common observations and cannot be described using any well-known notion of normal behavior [1]. Since its first appearance as an intrusion detection system in 1987 [2], anomaly detection has evolved in several fields, including statistics, medicine, manufacturing processes, machine learning, cyber security, and computer vision.
In particular, in Internet of Things (IoT) ecosystems, where a large number of IoT devices are connected and communicate with each other and third-party servers, it is crucial to verify whether each device operates appropriately [3]. IoT devices may malfunction because of initial faults during the manufacturing process, software bugs, mechanical failures of parts during operation, extreme changes in the surrounding environment, and malicious attacks by attackers. In real-world scenarios, an IoT ecosystem comprises of servers and several IoT devices, and it is reasonable to assume that servers are responsible for detecting such anomalous states in IoT devices because most IoT devices do not have sufficient computational resources to detect failures and recover from abnormal states. In this setup, all the normal-state information of each device, such as power consumption, network connections, and temperature, should be maintained in safe storage, and servers may periodically check whether the current state of each device is significantly different from the stored normal state. Mean absolute error and mean squared error are commonly considered to evaluate the difference (and similarity) between two state vectors. However, in 2018, Shalyga et al. [4] showed that the mean p-powered error is more effective in predicting short-term anomalies when p is greater than two on the SWaT dataset [5]. Here, the mean p-powered error is defined as , where and are the normal state vector and the current state vector, respectively, with dimension n. According to the experiments in [4], the best choice for p is .
Meanwhile, privacy concerns regarding IoT devices have arisen over the past decades as IoT ecosystems rapidly expand to industries, cities, houses, and personal wearable devices [6,7,8]. Sensor data are highly detailed, precise, and personal. Furthermore, the combination of data from multiple sensors may allow attackers to infer additional information more accurately, which is not possible with a single sensor [9]. In 2017, Nesa et al. showed that the occupancy of a room can be determined by fusing data, such as humidity, temperature, illumination level, and CO2 [10] with very high accuracy (up to 99.09%). This prediction becomes more precise as the number of fusion parameters increases. Therefore, privacy protection must be considered in IoT ecosystems. A recent controversy at Carnegie Mellon University over super-sensing IoT devices called Mites demonstrated potentially serious privacy concerns with IoT-based smart building management systems [11].
To protect the privacy of IoT devices, all the information collected from IoT devices must be encrypted before being transmitted to the anomaly detection server. In addition, it is desirable that an anomaly detection process should be conducted on the encrypted data instead of the original data. Furthermore, the encryption operations must be sufficiently lightweight to be run on IoT devices.
To satisfy the aforementioned requirements, we consider functional encryption (FE); we provide a formal definition of FE in the following section. FE is a special type of encryption algorithm that satisfies the following properties: let m be a plaintext and E(m) be a ciphertext of m. Given E(m), an individual with additional information, that is, a secret key bound to a function f, can only obtain , whereas they cannot learn the original plaintext m. Inner product encryption (IPE) is a special form of FE whose function is the inner product, and both the ciphertext and secret key are associated with vectors. Given a secret key for the coefficient vector and ciphertext for the plaintext vector , we can obtain only the inner product values through decryption but no further information about . We say that there is a function-hiding property when information about is protected, as well as that about . In 2018, Kim et al. [12] proposed a practical function-hiding IPE (FHIPE) scheme. In [12] and several related works, such as [13], FHIPE was used to compute vector-related metrics, such as distance and distance, in a privacy-preserving manner. These metrics have been used for biometric authentication, nearest neighbor (NN) searches on encrypted data, and secure linear regression. However, the general distance (), which is necessary for evaluating the mean p-powered error for advanced anomaly detection [4], has not been considered in previous studies.
In this study, we generalize the distance over the FHIPE scheme as a new distance metric for privacy-preserving anomaly detection, where denotes an even number. To be precise, our problem statement is as follows: Given a ciphertext E for a vector and a secret key bound to a vector , compute the distance, for even p, using the FHIPE scheme (the mean p-powered error computation needs an additional operation, division by n. For simplicity, we omit this throughout the paper, as its computation is trivial.). Our experimental results indicate that the computation of this new metric in the ciphertext domain is efficient and applicable to highly resource-constrained IoT devices. We also suggest two applications using our method for privacy-preserving anomaly detection, i.e., smart building management and remote device diagnosis.
1.1. Related Works
Several applications, including biometric authentication, location-based services, data mining, and anomaly detection, encode data into vectors and then measure the distance or similarity between the vectors [13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]. The vectors used in these applications may contain sensitive information. Therefore, extensive research has been conducted to measure the distance between two vectors while maintaining data privacy. Wang et al. [17] and Im, Jeon, and Lee [16] have proposed methods that encrypt a vector representing a facial image using homomorphic encryption (HE) and calculated the Euclidean distance between the encrypted vectors without decrypting them. Kang et al. [30] have shown that HE can be used to outsource a service that remotely detects whether a component of an industrial machine has diverted from its normal operating condition, without disclosing the private information of the data owner. Several previous studies used FE instead of HE. Kim et al. [12] proposed a biometric authentication method based on Hamming distance and nearest neighbor search based on distance using FHIPE. Zhou and Ren [14] proposed a biometric authentication method, called Passbio, that supports both Hamming distance and Euclidean distance. Their method does not reveal the actual distance, but only indicates whether the distance is within a predefined threshold. Kwon and Lee [31] commented on two vulnerabilities of Passbio and proposed a countermeasure against these vulnerabilities. Lee et al. [15] proposed an efficient biometric authentication method specialized for Hamming distance. Li and Jung [18] used HE and FE to encrypt geometric locations. The aforementioned applications use the Euclidean distance to evaluate the similarity between two vectors. In other applications, distance metrics, such as the Hamming distance, cosine similarity, and Mahalanobis distance, have also been used [29]. For example, the data-mining applications proposed in [20,21,22,32] calculated the cosine similarity in a privacy-preserving manner using HE, secure multiparty computation, and oblivious transfer. In studies on anomaly detection, HE and differential privacy were used to construct privacy-preserving anomaly detection systems. Alabdulatif et al. [23,24] proposed cloud-based anomaly detection systems for IoT using HE. Mehnaz and Bertino [25] also proposed a cloud-based anomaly detection system using HE. They adopted the edge computing approach in one of the stages comprising anomaly detection and used additive HE for secure aggregation of individual values from edge devices. Lyu et al. [26] proposed a privacy-preserving collaborative anomaly detection method with differential privacy. However, to the best of our knowledge, this study is the first work on general distance calculations in a privacy-preserving manner.
1.2. Contributions
- We propose a method to compute the distance for an even number over FHIPE. We use this distance to compute the mean p-powered error for anomaly detection.
- To demonstrate the feasibility for IoT ecosystems, we implement the proposed method in C++ and conduct experiments on a prototype system composed of a desktop computer (as a server) and the Raspberry Pi (as an IoT device) system. The experimental result shows that the proposed method is sufficiently efficient to be applied to IoT ecosystems in terms of execution times and memory usage.
- We present two possible applications of the proposed distance computation method for privacy-preserving anomaly detection, i.e., smart building management and remote device diagnosis. Accordingly, we suggest a protocol involving multiple IoT devices and two servers.
In the remainder of this paper, Section 2 describes the preliminaries of the proposed work. Section 3 explains the proposed method on how to compute the distance over FHIPE for an even number p. Section 4 provides the performance analysis. Section 5 describes a general framework for privacy-preserving anomaly detection for IoT systems. Section 6 discusses the limitation of the proposed method and presents a future research direction. Conclusions are given in Section 7.
2. Preliminaries
2.1. Barreto–Naehrig Curve (BN Curve)
If computations in the extension of the prime field are feasible, an elliptical curve defined over is known as a pairing-friendly curve [33]. Specifically, the elliptical curve over should be non-supersingular and contain a subgroup whose embedding degree k is not considerably large. Barreto and Naehrig proposed a method for constructing pairing-friendly elliptical curves with an embedding degree [33]. This is can be expressed as: for nonzero b. For , they parameterized the order q of the elliptical curve group and the characteristic r as follows:
2.2. Cryptographic Pairing
Let and be additive groups of prime order q and and be generators of and , respectively. Subsequently, a mapping function is defined as , which is used to map the elements of and onto , which is a multiplicative group of prime order q. , , and denote the identity elements of , , and , respectively. We define the map e as a cryptographic pairing when the tuple (q, , , , e) satisfies the following properties [34]:
- The map e and group operations in , , and are efficiently computable.
- The map e is bilinear for all , and a, b∈. That is,
- The map e is nondegenerate for , . That is,
Generally, cryptographic pairings that satisfy these three properties consist of group operations on elliptical curves and finite fields. Specifically, and are asymmetric, that is, , and they are elliptical curve subgroups of prime order q. is a subgroup of the finite field for the embedding degree k, and its order is q. In this study, we use a cryptographic pairing on the BN curve, and a bilinear environment is defined as a tuple [34]. For notational convenience, we also define a pairing-product operation. Given and , the product of the pairings for the two vectors and is defined as follows:
2.3. FHIPE
In this study, we used the FHIPE scheme proposed by Kim et al. [12]. is defined as . The dimensions n of vectors and are given as parameters, and S is a subset of , which specifies the possible range of the inner product.
- 1.
- Select a bilinear environment according to the security parameter .
- 2.
- Choose a matrix , where refers to a group of square matrices whose elements belong to the finite field and an inverse matrix exists.
- 3.
- Compute .
- 4.
- Output the public parameter and master secret key .
- 1.
- Choose a uniformly random element .
- 2.
- Using the master key and vector , output the secret key such that .
- 2.
- Choose a uniformly random element .
- 2.
- Using the master key and vector , output the ciphertext such that .
- 1.
- Using the public parameter , secret , and ciphertext , compute and .
- 2.
- Find a solution for . If z exists, it is the inner product of and , denoted as . Output z if it exists; otherwise, output ⊥, which indicates that no solution exists.
2.4. and Distances over FHIPE
Kim et al. [12] proposed an encoding method based on the FHIPE scheme to compute the distance (Hamming distance) between two binary vectors. Given two binary vectors , vectors and are encoded as and by changing the zeroes in and to . Subsequently, the Hamming distance between and is .
Jeon and Lee [13] used the square of the distance (squared Euclidean distance) as a metric of similarity in a face authentication system. They designed three operations, namely, , , and , using the encoding method proposed by Kim et al. [12]:
- 1.
- Construct an -dimensional vector from .
- 2.
- Output .
- 1.
- Construct an -dimensional vector from .
- 2.
- Output .
- 1.
- Calculate .
- 2.
- Output z. z satisfies
3. Proposed Method
We present a method for computing the distance over FHIPE for an even number p. Technically, we compute the p-powered distance. However, computing the distance as the p-th root from the p-powered distance is trivial.
Given two vectors and , the p-powered distance can be calculated as follows:
where the last equality comes from the fact that p is even. For the two n-dimensional vectors and , the ⊙ operator denotes element-wise multiplication, i.e., , and denotes the t-th Hadamard power of for any , i.e., and for [35]. Note that in (6) is expressed as a sum of p-th powers of binomial . Therefore, we can apply the binomial theorem, , to each term . Consequently, , and we obtain:
We encode and to and over a ring as follows:
where for . Thus, we observe that:
Accordingly, a generalized form of the p-powered distance computation protocol over FHIPE is defined as =, , , , which is obtained from using for a security parameter , degree , the dimension of the input vectors, and the range S of the inner product. These four operations are defined as follows:
- 1.
- Select a bilinear environment according to the security parameter .
- 2.
- Choose a matrix for , where is a group of square matrices whose elements belong to the finite field and an inverse matrix exists.
- 3.
- Compute .
- 4.
- Output the public parameter and master secret key .
- 1.
- Construct a vector as described previously (8).
- 2.
- Output .
- 1.
- Construct a vector as described previously (9).
- 2.
- Output .
- 1.
- Calculate .
- 2.
- Output z. z satisfies .
4. Performance Analysis
To verify the feasibility of the proposed method, we implemented in C++ using the FHIPE library developed in a previous study [13] (our algorithm and code are available at https://github.com/inhaislab/FHIPE-Lp-Distance (accessed on 19 April 2023)). As shown in Table 1, we also used NTL 11.3.2 [36] for integer, vector, and matrix arithmetic, MCL 1.51 [37] for pairing-based cryptography, and GMP 6.1.2 [38] for big number arithmetic. We applied to our testing programs on desktop PC and Raspberry Pi. The programs were run on a desktop computer with 16 GB main memory, an AMD Ryzen5 3600 6-Core processor @ 3.60 GHz, and Ubuntu 20.04 (using Windows 11 Pro WSL2), and on a Raspberry Pi 2 model B with 1 GB RAM and a quad-core ARM Cortex-A7 processor @ 900 MHz. MCL 1.51 [37] provides various parameter sets for bilinear environments. Among these, we selected SNARK1, which is one of the most frequently used parameter sets for Ethereum.
Table 1.
Experimental setup for performance analysis.
We measured the execution times for the four operations of with and . For each combination, 100 measurements were averaged. Figure 1 shows the experimental results on the desktop PC. The exact numerical data are given in the Appendix A (See Table A1, Table A2, Table A3 and Table A4.) Based on the results, it can be deduced that and are the dominant operations. In particular, the execution time for increases exponentially as p increases. For example, it took 0.01 s, 0.07 s, 0.56 s, 6.07 s, 57.3 s for , respectively, when n is 64. Notably, the main operation in is the discrete logarithm (DL) computation. The complexity of solving a DL problem is when a well-known general method is used, that is, the baby-step giant-step method. It must be noted that S, which is the range of the solution of the DL problem, satisfies , where m is the maximum difference between the two vector elements and . This explains the exponential growth in execution time with an increase in p. We also observe that the time increases slowly as n increases because the execution time is proportional to . also consumes a significant amount of time, for example, 6.65 s on average when n = 64 and p = 10, because it involves complex matrix operations, such as inverse computation. However, and consume negligible time compared with and . For example, they only took 24.77 ms and 21.80 ms, respectively, when n = 64. This is because they involve relatively lower cost operations, such as matrix-vector multiplication and elliptical-curve point multiplication.
Figure 1.
Execution time (ms) of the operations of on a desktop PC.
We also measured the execution time on the Raspberry Pi. and were not considered in this experiment because these operations are expected to run not on IoT devices but on high-end servers. Thus, the implementation on an IoT device, that is, Raspberry Pi, requires only and . Figure 2 shows the experimental results for these operations. The exact numerical data are provided in the Appendix A. (See Table A5 and Table A6.) The overall tendencies of and on the Raspberry Pi were similar to those of the previous experiment on the desktop PC. Between the two operations, required slightly shorter execution times than on both the desktop and Raspberry Pi, up to approximately 33% on the desktop and approximately 50% on the Raspberry Pi. Notably, even a combination of the largest parameters, that is, , requires only a few seconds for execution. To be precise, the execution times were 3.82 s and 2.58 s for and , respectively. Under typical settings with [4], the time required was less than a second.
Figure 2.
Execution time (ms) of EncodeX and EncodeY on Raspberry Pi.
Finally, we compared the proposed method with previous privacy-preserving anomaly detection methods. In particular, we focused on the distance metric to identify anomaly. Table 2 demonstrates that all the previous privacy-preserving anomaly detection methods were based on either Euclidean distance ( distance) or absolute error ( distance). Even though a customized nonlinear metric based on Gaussian distribution was used in [25], it was computed on plaintext. Therefore, it cannot be directly compared with the proposed method. By examining the distance metric as a quantitative property, we can see that the proposed method is the first anomaly detection method that performs distance computation over ciphertext using the distance metric for .
Table 2.
Comparison of privacy-preserving anomaly detection methods (* computed in plaintext).
5. Applications
In this section, we propose a general framework for privacy-preserving anomaly detection in IoT systems. We present two examples of this framework: smart building management and remote device diagnosis. Our basic assumption is that each IoT device has several normal states defined by its specifications. Each of these states can be represented as a latent vector, that is, a feature vector, by applying a neural network model as a feature extractor. The normal-state vectors are stored, and anomaly detection is performed by comparing the current state with the normal states. An anomaly is defined as an event in which the current feature vectors are not sufficiently close to any of the stored normal feature vectors in terms of the distance metric. We used as a building block for privacy-preserving anomaly detection.
As shown in Figure 3,the framework is composed of two servers and several IoT devices. denotes the set up server. We assume that the normal-state vectors are provided to as a specification of each target device. In the device registration stage, performs for that device, encrypts into using with the corresponding of the device, and transfers the results to an anomaly detection server for registration. stores for each device, and stores for each device. When a device must be analyzed for an anomaly, it obtains temporal access to in after it passes proper authentication. It encrypts the state vector into using and sends the results to with a request for an anomaly detection service. Upon receiving this request, determines whether the device is currently in a normal state based on an NN search using the distance. Thus, computes for to M for this device and checks whether at least one of these distances is smaller than a predefined threshold. Otherwise, an anomaly is asserted.
Figure 3.
Example framework for privacy-preserving anomaly detection.
To verify the feasibility of the above-mentioned application framework, we conducted additional experiments on the Secure Water Treatment (SWaT) dataset [5]. SWaT is a time series anomaly dataset provided by iTrust of Singapore University of Technology and Design (SUTD). The data in SWaT were collected using 24 sensors and 27 actuators on the water treatment testbed over 11 days through six steps: water storing, pre-treatment and chemical dosing, fine filtration, dechlorination, removing inorganic impurities, and water storing for distribution. Therefore, the SWaT dataset can be interpreted as a 51-dimensional time series dataset. Each time series is composed of numerical sensor and actuator values measured every second. We can model the water treatment application considered in the SWaT dataset using the components in Figure 3 as follows: the and are the third party participants that are in charge of detecting anomalies in the entire water treatment system, and each IoT device in Figure 3 represents a water treatment plant. In each individual water treatment plant, a feature vector is created through a neural network-based feature extractor. Feature extraction is essentially a dimensionality reduction process. For this purpose, we used an encoder with three hidden fully connected layers of dimensions , , and n, respectively. This encoder can be viewed as the encoding layers of an autoencoder. Using an autoencoder is a well-established approach in the literature in time series anomaly detection [39]. We considered a hyperparameter n to represent the size of the final latent vectors, i.e., feature vectors. We tested , and 32. This n corresponds to the vector size, n, in the experiment in Section 4. Among the 51 sensors and actuators, we removed six unstable data columns as in [39]. To represent the short-term temporal behavior of each sensor and actuator, we considered 60 consecutive measurements, i.e., 60 s for each sensor or actuator. Consequently, an input for the feature extractor consists of 45 time series with each series containing 60 measurements. In other words, a single input is a 60 × 45 matrix and the output is an n-dimensional feature vector. The feature vector is encrypted through the and operations for registration and anomaly detection, respectively.
For our experiment, we used the same experimental setup as that in Section 4 (see Table 1). The feature extractor was implemented in C++ to extract feature vectors. Then, each IoT device conducted feature extraction followed by (or ). The experimental results measured at the anomaly detection stage, i.e., the time for feature extraction plus is presented in Figure 4. According to the results, the time required for feature extraction was roughly on the same order as that for . Note that the total computation time on Raspberry Pi was only 0.6396 s even for the combination of largest hyperparameters, that is, and .
Figure 4.
Total execution time for feature extraction and in Raspberry Pi. The line and bars represent the execution times of feature extraction and operations, respectively.
5.1. Smart Building Management
The first application scenario involves smart building management. As already discussed in Section 1, IoT-based smart building management systems can cause serious privacy issues if the collected data are not properly protected [11]. We assume that belongs to the facility management department in a campus comprising several buildings, and belongs to another department. Managers should be responsible for managing the IoT devices of their department, which is accomplished by observing the measured status.
An IoT device must be registered in advance using the following procedure. The device manager requests that the facility management department register the IoT device. The department then issues a unique device id and conducts for the device to create its . Referring to the device specifications, obtains the normal-state vectors and encrypts them into using with . The manager then stores in the department database for .
Subsequently, anomaly detection is performed as follows: a manager who wants to investigate a suspicious in their department requests temporal access from to . After authenticating this request, sends (, ) to and (, ) to . Device executes using with the current feature vector to output . Subsequently, sends (, , ) to in the department. validates the session and solves an encrypted NN search problem to obtain the minimum mean p-powered error by calculating for . If the error is below a certain threshold, the device is considered healthy.
5.2. Remote Device Diagnosis
The second application scenario is remote device diagnosis. We assume that an IoT appliance manufacturing company provides self-diagnosis services to its clients and that the company knows the normal states of its devices before release. The company configures and such that all s for the devices are stored in and not shared with and ensures that all the encrypted normal-state vectors of each device are stored in .
When a user of wants to know whether their IoT appliance is working well, the user allows the device to initiate an anomaly detection protocol in a manner similar to that described in Section 5.1. The device pulls from and uses to encrypt the current state in and sends it to . Finally, the device displays the result received from to the user.
5.3. Possible Attacks and Mitigation on Our Systems
In this subsection, we address the possible attacks against each component of our system.
- Attack to devices: an attacker may attempt to extract either the state vector or by observing the memory of a device while encryption is performed with . However, this type of physical threat can be mitigated using a a trusted execution environment.
- Network attack: attackers may attempt to sniff the communication between a device and servers or steal the normal-state vectors stored in the database. As the vectors are encrypted by and , attackers learn no information about the vectors, even when they obtain the encrypted vectors. Attackers may attempt to perform replay attacks and man-in-the-middle attacks on the communication between a device and servers to manipulate data. These attacks can be prevented by marking with a timestamp and authenticating with a message authentication code or digital signature of the server on every request and response.
- Attack to servers: if is compromised, s for all devices may be leaked. Therefore, we assume that is protected with a proper mechanism. We also assume that is trustworthy. In other words, it does not attempt to recover the device information with . Under this assumption, the only concern involves , which may want to recover any useful information from its database of encrypted feature vectors. (This also includes the case where is compromised from outside attackers.) However, this is prevented by the security property of FHIPE. For this, however, and must be strictly separated to ensure that they do not share with each other.
6. Limitation
The proposed method works only when the degree p is even. In (6), the distance is composed of terms that are p-powers of . Since it is not possible to compute an absolute value using FHIPE, we replaced with . This is only possible when p is even. To be precise, . However when p is odd, this equality does not hold. To resolve this issue, we may consider a naive method for odd p as follows: given a maximum difference m between two vector elements and , we can compute by computing the inner product of and using FHIPE. If , then . Otherwise, if , this implies that is actually greater than and for . Therefore, the actual absolute value can be computed as . However, the above approach requires FHIPE Setup, KeyGen, Encrypt, and Decrypt for each absolute value term separately. This may raise both performance and security issues. Therefore, a more advanced solution is required for odd p, which will be a future research direction.
7. Conclusions
In this study, we developed a method to compute the distance privately using FHIPE for even . The proposed method is the first anomaly detection method that performs distance computation over ciphertext using the distance metric for . Our experimental results demonstrate that the proposed method is sufficiently efficient for use in real-world IoT devices. For example, and require only 787 ms and 430 ms, respectively, for a typical setting with and on a Raspberry Pi IoT device according to the experimental results in Section 4. Based on additional experiments using the SWaT dataset in Section 5, the time required to extract a 32-dimensional feature vector from a 60 × 45 input matrix using a three-layer fully connected neural network is 0.2604 s. If a typical setting is considered with [4], the time for on the Raspberry Pi side is 0.1944 s and the time for on the server side is 0.4222 s. Therefore, the total computation time for anomaly detection is s when there are M possibilities for normal states. Assuming that M is not very large, e.g., , the overall anomaly detection operation can be completed in a few seconds in a typical setting with . Therefore, the distance can be used to compute the mean p-powered error for anomaly detection without revealing the actual state of IoT devices. Even though the anomaly detection server computes the distance between encoded state vectors of an IoT device, it never sees the actual values of these vectors. Thus, the proposed method is expected to be useful for outsourcing anomaly detection in a privacy-preserving manner. We suggest two practical scenarios for privacy-preserving anomaly detection: a smart building management system and remote device diagnosis.
Author Contributions
Conceptualization, M.-K.L.; software, D.-H.R. and S.-Y.J.; writing—original draft, D.-H.R.; writing—review and editing, S.-Y.J., J.H. and M.-K.L. All authors have read and agreed to the published version of the manuscript.
Funding
This study was supported in part by the Korea Institute of Energy Technology Evaluation and Planning (KETEP) and Ministry of Trade, Industry & Energy (MOTIE) of the Republic of Korea (No. 20214000000820) and in part by the Inha University Research Grant (2022).
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The data presented in this study are openly available at https://github.com/inhaislab/FHIPE-Lp-Distance (accessed on 19 April 2023).
Acknowledgments
We thank Hee-Yong Kwon for his help in preparing time series data for our experiments.
Conflicts of Interest
The authors declare no conflict of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| FE | Functional encryption |
| IPE | Inner product encryption |
| FHIPE | Function-hiding inner product encryption |
| DL | Discrete logarithm |
| NN | Nearest neighbor |
Appendix A
In this appendix, we provide the full numerical results of the experiments explained in Section 4.
Table A1.
Execution time (ms) of operation on desktop PC.
Table A2.
Execution time (ms) of operation on desktop PC.
Table A3.
Execution time (ms) of operation on desktop PC.
Table A4.
Execution time (ms) of operation on desktop PC.
Table A5.
Execution time (sec) of operation on Raspberry Pi.
Table A6.
Execution time (sec) of operation on Raspberry Pi.
References
- Chandola, V.; Banerjee, A.; Kumar, V. Anomaly Detection: A Survey. ACM Comput. Surv. 2009, 41, 1–58. [Google Scholar] [CrossRef] [Scilit]
- Denning, D. An Intrusion-Detection Model. IEEE Trans. Softw. Eng. 1987, SE-13, 222–232. [Google Scholar] [CrossRef] [Scilit]
- Shafiq, M.; Tian, Z.; Bashir, A.K.; Du, X.; Guizani, M. CorrAUC: A malicious bot-IoT traffic detection method in IoT network using machine-learning techniques. IEEE Internet Things J. 2020, 8, 3242–3254. [Google Scholar] [CrossRef] [Scilit]
- Shalyga, D.; Filonov, P.; Lavrentyev, A. Anomaly Detection for Water Treatment System based on Neural Network with Automatic Architecture Optimization. arXiv 2018, arXiv:1807.07282. [Google Scholar]
- iTrust lab of Singapore University of Technology and Design (SUTD). Available online: https://itrust.sutd.edu.sg/itrust-labs-home/itrust-labs_swat (accessed on 16 January 2023).
- Meteriz, Ü.; Y𝜄ld𝜄ran, N.F.; Kim, J.; Mohaisen, D. Understanding the Potential Risks of Sharing Elevation Information on Fitness Applications. In Proceedings of the 2020 IEEE 40th International Conference on Distributed Computing Systems (ICDCS), Singapore, 29 November–1 December 2020; pp. 464–473. [Google Scholar]
- Tabassum, M.; Kosiński, T.; Frik, A.; Malkin, N.; Wijesekera, P.; Egelman, S.; Lipford, H.R. Investigating Users’ Preferences and Expectations for Always-Listening Voice Assistants. Proc. ACM Interact. Mob. Wearable Ubiquitous Technol. 2020, 3, 1–23. [Google Scholar] [CrossRef] [Scilit]
- Ma, T.; Kim, S.D.; Wang, J.; Zhao, Y. Privacy Preserving in Ubiquitous Computing: Challenges & Issues. In Proceedings of the 2008 IEEE International Conference on e-Business Engineering, Xi’an, China, 22–24 October 2008; pp. 297–301. [Google Scholar]
- Hall, D.; Llinas, J. An introduction to multisensor data fusion. Proc. IEEE 1997, 85, 6–23. [Google Scholar] [CrossRef] [Scilit]
- Nesa, N.; Banerjee, I. IoT-Based Sensor Data Fusion for Occupancy Sensing Using Dempster–Shafer Evidence Theory for Smart Buildings. IEEE Internet Things J. 2017, 4, 1563–1570. [Google Scholar] [CrossRef] [Scilit]
- Guo, E.; Ryan-Mosley, T. Inside the Bitter Campus Privacy Battle over Smart Building Sensors, MIT Technology Review, 3 April 2023. Available online: https://www.technologyreview.com/2023/04/03/1070665/cmu-university-privacy-battle-smart-building-sensors-mites/?truid=&utm_source=the_download&utm_medium=email&utm_campaign=the_download.unpaid.engagement&utm_term=&utm_content=04-03-2023&mc_cid=bcaff9641c&mc_eid=fa860b1d8f (accessed on 19 April 2023).
- Kim, S.; Lewi, K.; Mandal, A.; Montgomery, H.; Roy, A.; Wu, D.J. Function-Hiding Inner Product Encryption Is Practical. In Proceedings of the Security and Cryptography for Networks, Amalfi, Italy, 5–7 September 2018; Catalano, D., De Prisco, R., Eds.; Springer: Cham, Switzerland, 2018; pp. 544–562. [Google Scholar]
- Jeon, S.Y.; Lee, M.K. Acceleration of Inner-Pairing Product Operation for Secure Biometric Verification. Sensors 2021, 21, 2859. [Google Scholar] [CrossRef] [Scilit]
- Zhou, K.; Ren, J. PassBio: Privacy-Preserving User-Centric Biometric Authentication. IEEE Trans. Inf. Forensics Secur. 2018, 13, 3050–3063. [Google Scholar] [CrossRef] [Scilit]
- Lee, J.; Kim, D.; Kim, D.; Song, Y.; Shin, J.; Cheon, J.H. Instant Privacy-Preserving Biometric Authentication for Hamming Distance; Cryptology ePrint Archive, Report 2018/1214; IACR. 2018. Available online: https://eprint.iacr.org/2018/1214 (accessed on 21 April 2023).
- Im, J.H.; Jeon, S.Y.; Lee, M.K. Practical Privacy-Preserving Face Authentication for Smartphones Secure Against Malicious Clients. IEEE Trans. Inf. Forensics Secur. 2020, 15, 2386–2401. [Google Scholar] [CrossRef]
- Wang, X.; Xue, H.; Liu, X.; Pei, Q. A Privacy-Preserving Edge Computation-Based Face Verification System for User Authentication. IEEE Access 2019, 7, 14186–14197. [Google Scholar] [CrossRef] [Scilit]
- Li, X.Y.; Jung, T. Search me if you can: Privacy-preserving location query service. In Proceedings of the 2013 Proceedings IEEE INFOCOM, Turin, Italy, 14–19 April 2013; pp. 2760–2768. [Google Scholar]
- Wei, F.; Vijayakumar, P.; Kumar, N.; Zhang, R.; Cheng, Q. Privacy-Preserving Implicit Authentication Protocol Using Cosine Similarity for Internet of Things. IEEE Internet Things J. 2021, 8, 5599–5606. [Google Scholar] [CrossRef] [Scilit]
- Murugesan, M.; Jiang, W.; Clifton, C.; Si, L.; Vaidya, J. Efficient privacy-preserving similar document detection. VLDB J. 2010, 19, 457–475. [Google Scholar] [CrossRef] [Scilit]
- Gheid, Z.; Challal, Y. An efficient and privacy-preserving similarity evaluation for big data analytics. In Proceedings of the 2015 IEEE/ACM 8th International Conference on Utility and Cloud Computing (UCC), Limassol, Cyprus, 7–10 December 2015; pp. 281–289. [Google Scholar]
- Li, D.; Chen, C.; Lv, Q.; Shang, L.; Zhao, Y.; Lu, T.; Gu, N. An algorithm for efficient privacy-preserving item-based collaborative filtering. Future Gener. Comput. Syst. 2016, 55, 311–320. [Google Scholar] [CrossRef] [Scilit]
- Alabdulatif, A.; Kumarage, H.; Khalil, I.; Yi, X. Privacy-preserving anomaly detection in cloud with lightweight homomorphic encryption. J. Comput. Syst. Sci. 2017, 90, 28–45. [Google Scholar] [CrossRef] [Scilit]
- Alabdulatif, A.; Khalil, I.; Kumarage, H.; Zomaya, A.Y.; Yi, X. Privacy-preserving anomaly detection in the cloud for quality assured decision-making in smart cities. J. Parallel Distrib. Comput. 2019, 127, 209–223. [Google Scholar] [CrossRef] [Scilit]
- Mehnaz, S.; Bertino, E. Privacy-preserving Real-time Anomaly Detection Using Edge Computing. In Proceedings of the 2020 IEEE 36th International Conference on Data Engineering (ICDE), Dallas, TX, USA, 20–24 April 2020; pp. 469–480. [Google Scholar]
- Lyu, L.; Law, Y.W.; Erfani, S.M.; Leckie, C.; Palaniswami, M. An improved scheme for privacy-preserving collaborative anomaly detection. In Proceedings of the 2016 IEEE International Conference on Pervasive Computing and Communication Workshops (PerCom Workshops), Sydney, NSW, Australia, 14–18 March 2016; pp. 1–6. [Google Scholar]
- Mukherjee, S.; Chen, Z.; Gangopadhyay, A. A privacy-preserving technique for Euclidean distance-based mining algorithms using Fourier-related transforms. VLDB J. 2006, 15, 293–315. [Google Scholar] [CrossRef] [Scilit]
- Kikuchi, H.; Nagai, K.; Ogata, W.; Nishigaki, M. Privacy-preserving similarity evaluation and application to remote biometrics authentication. Soft Comput. 2010, 14, 529–536. [Google Scholar] [CrossRef] [Scilit]
- Bringer, J.; Chabanne, H.; Favre, M.; Patey, A.; Schneider, T.; Zohner, M. GSHADE: Faster privacy-preserving distance computation and biometric identification. In Proceedings of the 2nd ACM Workshop on Information Hiding and Multimedia Security, Santa Barbara, CA, USA, 27–28 June 2014; pp. 187–198. [Google Scholar]
- Kang, H.E.D.; Kim, D.; Kim, S.; Kim, D.D.; Cheon, J.H.; Anthony, B.W. Homomorphic Encryption as a secure PHM outsourcing solution for small and medium manufacturing enterprise. J. Manuf. Syst. 2021, 61, 856–865. [Google Scholar] [CrossRef] [Scilit]
- Kwon, H.Y.; Lee, M.K. Comments on “PassBio: Privacy-Preserving User-Centric Biometric Authentication”. IEEE Trans. Inf. Forensics Secur. 2022, 17, 2816–2817. [Google Scholar] [CrossRef] [Scilit]
- Jia, Q.; Guo, L.; Jin, Z.; Fang, Y. Privacy-Preserving Data Classification and Similarity Evaluation for Distributed Systems. In Proceedings of the 2016 IEEE 36th International Conference on Distributed Computing Systems (ICDCS), Nara, Japan, 27–30 June 2016; pp. 690–699. [Google Scholar]
- Barreto, P.S.L.M.; Naehrig, M. Pairing-Friendly Elliptic Curves of Prime Order. In Proceedings of the 12th International Conference on Selected Areas in Cryptography, Kingston, ON, Canada, 11–12 August 2005; Springer: Berlin/Heidelberg, Germany, 2005. [Google Scholar]
- El Mrabet, N.; Joye, M. Guide to Pairing-Based Cryptography; CRC Press: Boca Raton, FL, USA, 2017. [Google Scholar]
- Fallat, S.M.; Johnson, C.R. Hadamard powers and totally positive matrices. Linear Algebra Appl. 2007, 423, 420–427. [Google Scholar] [CrossRef] [Scilit]
- A Library for Doing Numbery Theory (NTL). Available online: https://www.shoup.net/ntl (accessed on 16 January 2023).
- A Portable and Fast Pairing-Based Cryptography Library. Available online: https://github.com/herumi/mcl (accessed on 16 January 2023).
- The GNU MP Bignum Library. Available online: https://gmplib.org/ (accessed on 16 January 2023).
- Wang, C.; Wang, B.; Liu, H.; Qu, H. Anomaly detection for industrial control system based on autoencoder neural network. Wirel. Commun. Mob. Comput. 2020, 2020, 8897926. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).



