Skip to main content
QUICK REVIEW

[Paper Review] Privacy-Preserving Spam Filtering using Functional Encryption

Sicong Wang, Naveen Karunanayake|arXiv (Cornell University)|Dec 8, 2020
Spam and Phishing DetectionComputer Science25 references4 citations
TL;DR

This paper proposes a privacy-preserving spam filtering framework using functional encryption that enables a server to classify encrypted emails without accessing their plaintext content. By integrating a quadratic functional encryption scheme with a hybrid neural network (quadratic + multi-layer perceptron), the system achieves over 96% accuracy on real-world datasets while eliminating the need for back-and-forth communication between client and server, unlike FHE-based approaches.

ABSTRACT

Traditional spam classification requires the end-user to reveal the content of its received email to the spam classifier which violates the privacy. Spam classification over encrypted emails enables the classifier to classify spam email without accessing the email, hence protects the privacy of email content. In this paper, we construct a spam classification framework that enables the classification of encrypted emails. Our classification model is based on a neural network with a quadratic network part and a multi-layer perception network part. The quadratic network architecture is compatible with the operation of an existing quadratic functional encryption scheme that enables our classification to predict the label of encrypted emails without revealing the associated plain-text email. The evaluation results on real-world spam datasets indicate that our proposed spam classification model achieves an accuracy of over 96%.

Motivation & Objective

  • To address the privacy leakage in traditional spam filtering, where email content is exposed to servers or service providers.
  • To enable server-based spam classification on encrypted emails without requiring the end-user to be online or engage in back-and-forth communication.
  • To integrate functional encryption with deep learning for secure, private text classification on encrypted data.
  • To evaluate the performance and efficiency of the proposed system on real-world spam datasets.
  • To compare the proposed functional encryption-based approach with existing FHE-based solutions in terms of accuracy and computational overhead.

Proposed method

  • The system uses a two-part neural network: a quadratic network component compatible with a quadratic functional encryption scheme for processing encrypted inputs.
  • The output of the quadratic network is a plaintext embedding vector, which is then passed to a multi-layer perception (MLP) network for final label prediction.
  • Emails are represented as a document-term matrix with integer-valued features, enabling compatibility with functional encryption's integer-only input requirements.
  • Model weights and biases are quantized to 8-bit integers to reduce computational overhead, though this causes a minor accuracy drop.
  • Functional encryption is used such that the decryption key allows only the evaluation of a specific function (spam prediction) on the encrypted input, not full plaintext access.
  • The system is implemented using TensorFlow and evaluated on multiple real-world spam datasets, including TREC07p.

Experimental results

Research questions

  • RQ1Can a deep learning-based spam classifier be built to operate directly on encrypted email data using functional encryption?
  • RQ2How does the accuracy of the proposed privacy-preserving model compare to traditional plaintext-based models?
  • RQ3What is the computational overhead of prediction in the proposed functional encryption-based system?
  • RQ4How does the proposed system compare to FHE-based spam classification in terms of communication patterns and performance?
  • RQ5To what extent can intermediate layer outputs leak information about the original email content?

Key findings

  • The proposed spam classification model achieves an accuracy of over 96% on three real-world spam datasets, demonstrating strong performance comparable to plaintext-based models.
  • The system eliminates the need for back-and-forth communication between client and server, making it suitable for asynchronous email processing.
  • Average prediction time ranges from 22 to 40 seconds per email, depending on vocabulary size, with the highest overhead due to the discrete logarithm phase in decryption.
  • The model's intermediate layer outputs leak significant information about word presence, with a private learning model achieving over 90% accuracy in detecting specific words from the output embeddings.
  • While FHE-based logistic regression achieves faster predictions, the functional encryption approach offers better communication efficiency and is more suitable for server-side classification.
  • Reducing the input vector length from 5,000 to 4,000 features reduces prediction time by 4 seconds with only a 0.2%–0.5% drop in accuracy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.