Source-linked AI summary

k-Nearest Neighbor Classification over Semantically Secure Encrypted Relational Data

Bharath K. Samanthula, Yousef Elmehdwi, Wei Jiang

arXiv:1403.5001v3cs.CR

TL;DR

Encrypted cloud outsourcing makes existing privacy-preserving classification techniques unsuitable for the paper’s setting. The paper introduces PPkNN, a secure k-NN classifier over semantically secure encrypted data, and reports confidentiality, query privacy, access-pattern protection, and empirical efficiency; its security model assumes semi-honest parties, while secret-sharing alternatives require at least three parties.

  • Problem

    Existing privacy-preserving classification techniques are not applicable when data are encrypted and hosted on an outsourced cloud database.

  • Method

    The paper proposes PPkNN, a secure k-NN classification protocol over semantically secure encrypted data using staged encrypted processing.

  • Results

    The protocol protects data confidentiality, the user’s query, and data access patterns, and its performance is evaluated empirically.

  • Takeaways & Limitations

    The work provides a cloud-based encrypted-data classification solution that returns the class label while keeping sensitive records, queries, and access patterns protected.

  • Takeaways & Limitations

    The proposed work concentrates on a two-party setting and assumes participating parties are semi-honest and non-colluding.

Abstract

from arXiv · show

Data Mining has wide applications in many areas such as banking, medicine, scientific research and among government agencies. Classification is one of the commonly used tasks in data mining applications. For the past decade, due to the rise of various privacy issues, many theoretical and practical solutions to the classification problem have been proposed under different security models. However, with the recent popularity of cloud computing, users now have the opportunity to outsource their data, in encrypted form, as well as the data mining tasks to the cloud. Since the data on the cloud is in encrypted form, existing privacy preserving classification techniques are not applicable. In this paper, we focus on solving the classification problem over encrypted data. In particular, we propose a secure k-NN classifier over encrypted data in the cloud. The proposed k-NN protocol protects the confidentiality of the data, user's input query, and data access patterns. To the best of our knowledge, our work is the first to develop a secure k-NN classifier over encrypted data under the semi-honest model. Also, we empirically analyze the efficiency of our solution through various experiments.

1 Introduction

The paper addresses privacy-preserving classification when sensitive data and computation are outsourced to a cloud in encrypted form. It proposes encrypted k-NN classification designed to protect the database, query record, and data access patterns.

  • Motivation: Encrypted outsourced data makes existing privacy-preserving classification techniques difficult or inapplicable because mining normally requires computations over unencrypted data.Perturbation lacks semantic security and accuracy, while secure multi-party computation assumes distributed rather than encrypted data.
  • Privacy requirements: Cloud-based data mining must protect encrypted database contents, the user’s query record, and data access patterns.The cloud may infer sensitive information by observing which records are accessed, even when stored data are encrypted.
  • Contribution: The proposed PPkNN protocol executes k-nearest neighbor classification over semantically secure encrypted data outsourced to the cloud.The protocol models an encrypted database owner, an authorized querying user, and cloud computation over the outsourced data.
  • Security goals: The protocol is intended to reveal only the class label to the authorized user while hiding intermediate results and access patterns from the cloud and user.Randomized encryptions and random numbers obscure which records are nearest neighbors, and the user does not participate in subsequent computations.
  • Evaluation: The paper evaluates the proposed protocol under different parameter settings and discusses its organization around protocols, security, performance, and future work.The introduction identifies the detailed protocol in Section 5 and empirical performance analysis in Section 6.

2 RELATED WORK

Related work covers privacy-preserving data mining, encrypted query processing, security definitions, and cryptographic building blocks. The paper positions PPkNN as more demanding than encrypted k-NN querying and extends prior work with new primitives, proofs, and empirical evaluation.

  • Privacy-preserving data mining: Existing privacy-preserving classification methods assume distributed data or perturbation, whereas PPkNN addresses encrypted data hosted by a cloud.Perturbation can lose accuracy and semantic security, while distributed methods do not match the outsourced encrypted-database setting.
  • Encrypted query processing: Encrypted query processing does not directly solve PPkNN because neighbors, majority-class computation, and access patterns must remain private.The paper identifies these requirements as exceeding those of simple k-NN queries over encrypted data.
  • Prior work: The paper extends prior secure k-NN query work into a classifier that protects data confidentiality, query privacy, and data access patterns.The earlier protocol corresponds to secure neighbor retrieval, while PPkNN adds a new classification stage.
  • Novelty: Compared with the preliminary work, this paper adds SMIN, SMINn, and SF primitives, formal security proofs, a new Stage 2, and real-dataset experiments.It also discusses possible extensions toward the malicious model and includes additional empirical results.
  • System setting: The paper adopts Paillier encryption for a two-party setting, whereas secret-sharing implementations require at least three independent parties.The authors note that secret sharing may provide more efficient running time, while two-party deployment may be easier and cheaper in practice.
  • Threat model: Security is defined using simulation-based secure multiparty computation notions under a semi-honest, non-colluding threat model.The protocol execution image should be computationally indistinguishable from a simulation based on a party’s private input and output.

3 Privacy-Preserving Protocols

This section presents two-party semi-honest privacy-preserving primitives and combines them to construct secure operations for encrypted k-NN classification. The protocols compute encrypted products, distances, comparisons, minima, bit operations, and class frequencies while limiting information revealed to the parties.

  • The protocols operate in a two-party semi-honest setting with Paillier’s secret key held only by P2 and the public key available to both parties.
  • Core primitives: Secure Multiplication computes Epk(a ∗b) for encrypted inputs without revealing a or b to either party.P1 randomizes encrypted inputs, P2 decrypts and multiplies them, and P1 removes the random factors homomorphically.
  • Core primitives: Secure Squared Euclidean Distance computes Epk(|X−Y|2) for encrypted m-dimensional vectors, with P1 obtaining the encrypted output.It uses homomorphic subtraction, Secure Multiplication for each squared coordinate difference, and local homomorphic aggregation.
  • Comparison and aggregation: Secure Bit-OR and Secure Frequency extend the primitive set to encrypted bit disjunction and encrypted class-frequency computation.Secure Frequency outputs encrypted frequencies known only to P1 and reveals no information about the listed classes, values, or frequencies.
  • Comparison and aggregation: SMIN compares encrypted values through a randomly selected functionality and returns encrypted bits and an encrypted secret for the minimum to P1.P1 chooses either u > v or v > u privately, so the comparison result remains oblivious to P2.
  • Comparison and aggregation: SMINn iteratively applies SMIN in an hierarchical fashion to compute the encrypted minimum and its corresponding encrypted secret without revealing the input values.The protocol uses SMIN as its building block and combines pairwise minima across iterations.

4 Security Analysis of Privacy-Preserving Primitives under the Semi-Honest Model

The security analysis proves that the proposed privacy-preserving primitives are secure under the semi-honest model by showing that simulated and actual execution images are computationally indistinguishable. The proofs rely on semantic security, randomization, and composition across protocol building blocks.

  • Security under the semi-honest model is established by showing that each protocol’s simulated execution image is computationally indistinguishable from its actual execution image.An execution image includes exchanged messages and information computed from those messages.
  • SM and SSED: SM’s security follows because encrypted and decrypted intermediate values are computationally indistinguishable from random values after semantic encryption and random masking.The analysis concludes that SM is secure under the semi-honest model.
  • SM and SSED: SSED inherits security from SM because its remaining operations are non-interactive homomorphic computations performed locally by P1.P1 and P2 jointly compute encrypted squared coordinate differences, after which P1 aggregates them locally.
  • SMIN: SMIN prevents P1 from learning u, v, their secrets, or the comparison result, while P2 receives only random or pseudo-random information and not the actual result.The comparison functionality is known only to P1, making the actual comparison result oblivious to P2.
  • Composed protocols: SMINn is secure by sequential composition because it iteratively uses secure SMIN instances and passes encrypted outputs between iterations.The proof invokes the Composition Theorem and notes that SMINn has no other interactive steps.
  • Composed protocols: SBOR and SF are secure under the semi-honest model because their interactive portions reduce to secure SM or produce computationally indistinguishable encrypted and randomized views.The analyses conclude security for SBOR and SF from the underlying SM protocol and simulation arguments.

5 The Proposed Protocol

PPkNN classifies encrypted query records through secure neighbor retrieval and majority voting, while protecting data, queries, and access patterns under the semi-honest model.

  • Protocol overview: PPkNN is a privacy-preserving k-NN classification protocol constructed from secure protocol building blocks.The protocol operates on Alice’s outsourced encrypted database.
  • Protocol overview: Alice encrypts database attributes and outsources the encrypted database and future classification process to the cloud.The setting uses two non-colluding semi-honest providers: C1 receives the encrypted database, while C2 receives the secret key.
  • Stage 1: SRkNN: Stage 1 securely retrieves encrypted class labels for q’s k-nearest neighbors, leaving those labels known only to C1.Bob sends his query to C1 in encrypted form, and C1 and C2 jointly execute sub-protocols for retrieval.
  • Stage 2: SCMCk: Stage 2 computes the majority class among the encrypted neighbor labels, with only Bob learning q’s final class label.C1 and C2 jointly perform the majority vote after Stage 1.
  • Security properties: During neighbor retrieval, randomized permutation and encrypted vectors prevent C1 and C2 from identifying the record corresponding to the current minimum distance.Exactly one vector entry identifies the minimum through encrypted data, but neither provider can associate it with a specific tuple.
  • Security properties: The sequentially composed stages are claimed secure under the semi-honest model, protecting data confidentiality, query confidentiality, and data access patterns.The security arguments state that C1 and C2 learn no information from their respective encrypted or simulated views.
  • Scope: The presented security analysis targets the semi-honest model; extending PPkNN to the malicious model is identified as future work.A malicious provider may deviate from the protocol to gain additional information.
  • Efficiency: Stage 1 is expected to cost significantly more than Stage 2 because the number of unique class labels w is much smaller than the number of records n.The paper connects this observation to its empirical evaluation.

6 Empirical Results

Experiments evaluate PPkNN across dataset, neighbor-count, encryption-key, communication, and optimization settings. Stage 1 dominates computation, while offline precomputation and parallelism substantially improve its efficiency.

  • Dataset and Experimental Setup: Experiments used the Car Evaluation dataset with 1,728 records, six input attributes, four classes, and Paillier encryption at varied key sizes.A random query was executed over the encrypted dataset, and PPkNN stages were evaluated separately.
  • Performance of PPkNN: Stage 1 computation increased almost linearly with k and by almost sevenfold when the Paillier key size doubled from 512 to 1024 bits.For k=10, Stage 1 required 19.06 minutes at 512 bits and 127.72 minutes at 1024 bits.
  • Performance of PPkNN: Stage 2 required 0.118–0.285 seconds at K=512 bits and 0.789–1.89 seconds at K=1024 bits as k increased from 5 to 25.Its lower cost was attributed to SMAXw requiring significantly fewer computations than SMINn in Stage 1.
  • Performance of PPkNN: Stage 1 accounted for at least 99% of total PPkNN computation, reaching 99.98% for k=10 and K=512 bits.Total computation time grew almost linearly with both n and k.
  • Performance Improvement of PPkNN: Offline precomputation made Stage 1 around 33% faster; for k=10 and K=1024 bits, online costs were 84.47 versus 127.72 minutes.The reported online running-time improvement was 33.86%.
  • Performance Improvement of PPkNN: Parallel Stage 1 was almost six times more efficient than the serial version, with costs ranging from 12.02 to 55.5 minutes as k increased from 5 to 25.The implementation used six OpenMP threads on a six-core machine; the authors also identify map-reduce as a further option.
  • Performance Improvement of PPkNN: Bob’s computation cost was 4 milliseconds at K=512 bits and 17 milliseconds at K=1024 bits.The paper notes this is beneficial for issuing queries from resource-constrained devices.
  • Communication Costs: For k=10 and K=1024 bits, communication totaled 154.741 MB for Stage 1 and 0.037 MB for Stage 2, with corresponding delays of 123.79 and 0.0296 seconds.The total network delay was around two minutes and was substantially below total computation cost.

7 Conclusion

The paper presents PPkNN as a privacy-preserving k-NN protocol for encrypted cloud data and reports protection for data, queries, and access patterns. It identifies SMINn efficiency and extension beyond k-NN as future work.

  • Conclusion: PPkNN addresses encrypted outsourced classification by protecting data confidentiality, user-query confidentiality, and data access patterns.The conclusion positions the protocol for common data-mining classification applications.
  • Conclusion: The authors plan to investigate more efficient SMINn solutions because improving SMINn efficiency is an important first step for improving PPkNN performance.They also plan to extend the research to other classification algorithms.
Loading 1403.5001v3…