Skip to main content
QUICK REVIEW

[Paper Review] TensorSCONE: A Secure TensorFlow Framework using Intel SGX

Roland Kunkel, Do Le Quoc|arXiv (Cornell University)|Feb 12, 2019
Security and Verification in ComputingComputer Science45 references34 citations
TL;DR

TensorSCONE integrates TensorFlow with the SCONE shielded execution framework to enable secure, unmodified TensorFlow computations on untrusted cloud infrastructure using Intel SGX, with training on CPU and secure classification via TensorFlow Lite.

ABSTRACT

Machine learning has become a critical component of modern data-driven online services. Typically, the training phase of machine learning techniques requires to process large-scale datasets which may contain private and sensitive information of customers. This imposes significant security risks since modern online services rely on cloud computing to store and process the sensitive data. In the untrusted computing infrastructure, security is becoming a paramount concern since the customers need to trust the thirdparty cloud provider. Unfortunately, this trust has been violated multiple times in the past. To overcome the potential security risks in the cloud, we answer the following research question: how to enable secure executions of machine learning computations in the untrusted infrastructure? To achieve this goal, we propose a hardware-assisted approach based on Trusted Execution Environments (TEEs), specifically Intel SGX, to enable secure execution of the machine learning computations over the private and sensitive datasets. More specifically, we propose a generic and secure machine learning framework based on Tensorflow, which enables secure execution of existing applications on the commodity untrusted infrastructure. In particular, we have built our system called TensorSCONE from ground-up by integrating TensorFlow with SCONE, a shielded execution framework based on Intel SGX. The main challenge of this work is to overcome the architectural limitations of Intel SGX in the context of building a secure TensorFlow system. Our evaluation shows that we achieve reasonable performance overheads while providing strong security properties with low TCB.

Motivation & Objective

  • Securely execute machine learning computations on untrusted infrastructure using TEEs (Intel SGX).
  • Enable running unmodified TensorFlow applications within shielded enclaves without sacrificing accuracy.
  • Balance confidentiality, integrity, and performance while supporting both training and classification.
  • Provide end-to-end secure communication and trusted deployment workflows via attestation and Docker-based distribution.

Proposed method

  • Integrate TensorFlow with SCONE to run unmodified TensorFlow applications inside SGX enclaves.
  • Use SCONE shields (file system, network, and user-level threading) to protect IO and data in untrusted hosts.
  • Employ end-to-end TLS for secure communication between the enclave and clients.
  • Distribute secure deployments via Docker and leverage SCONE attestation for remote integrity proof.
  • Support training on CPU (SGX-restricted) and classification using TensorFlow Lite for smaller memory footprints.
  • Develop a custom toolchain to compile and run TensorFlow and TensorFlow Lite inside SCONE-enables environments.

Experimental results

Research questions

  • RQ1Can secure execution of TensorFlow workloads be achieved on untrusted cloud infrastructure using SGX with minimal performance overhead?
  • RQ2How can TensorFlow applications be run transparently (unmodified) inside SGX enclaves without degrading accuracy?
  • RQ3What architectural adaptations are required to support training and inference securely in a shielded environment?
  • RQ4What are the practical deployment steps (attestation, TLS, Docker) to enable secure distributed ML workloads?

Key findings

  • TensorSCONE provides secure execution of existing TensorFlow applications inside SGX with low trusted computing base (TCB).
  • Training is performed on CPU (no SGX-backed GPU support in this design), while classification can leverage TensorFlow Lite for reduced memory footprint.
  • Shields protect file system and network I/O, enabling end-to-end TLS and integrity checks to prevent Iago-style and memory-manipulation attacks.
  • A practical deployment pathway exists via Docker, SCONE attestation, and a dedicated toolchain for building TensorFlow inside SCONE.
  • Evaluation shows reasonable performance overheads for secure ML workloads on CIFAR-10 and microbenchmarks, while preserving accuracy and data confidentiality.

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.