SlideShare a Scribd company logo
1secureTF: A Secure TensorFlow Framework – Middleware 2020 1
secureTF: A Secure
TensorFlow Framework
Do Le Quoc, Franz Gregor, Sergei Arnautov,
Roland Kunkel, Pramod Bhatotia, Christof Fetzer
2secureTF: A Secure TensorFlow Framework – Middleware 2020 2
Cloud
Provider
Motivation
Data
Clients
Training
Data
Training Model Inference
How to ensure confidentiality and integrity of data, code (e.g., Python code), model and
computation with low performance overhead while retaining accuracy?
3secureTF: A Secure TensorFlow Framework – Middleware 2020 3
Application
Application Libraries
(Enclave)
Hypervisor
Container Engine
Operating System
Host
SGX (Software Guard eXtensions) is a set of processor extensions
for establishing a TEE inside an application
Intel SGX
Intel SGX protects the integrity and confidentiality of applications
4secureTF: A Secure TensorFlow Framework – Middleware 2020 4
Several works rely on Intel SGX to support secure machine learning:
• Privado [Microsoft Research 2019]
• Slalom [ICLR2019]
• Occlumency [MobiCom19]
• …
State-of-the-art systems
Limitations:
• Focuses only for secure inferences, not for training computation
• Does not support distributed setting
• Supports only a limited number of operators
5secureTF: A Secure TensorFlow Framework – Middleware 2020 5
Cloud Provider
User
secureTF: Overview
secureTF
(Enclave)
SGXTLS
(1) Remote Attestation
(2) Keys, certificate
transferring
(3) Computation results
Data & Code Model
6secureTF: A Secure TensorFlow Framework – Middleware 2020 6
Clients
Cloud Provider
Data
User TLS
Attestation &
policy
submitting
TLS
TLSTLS
Attestation &
secrets
provision
Training
Data
Inference
Training
Model
SGX
SGX
1. Protect against
attackers with
privileged/root
accesses
Configuration &
Attestation
Service (CAS)
SGX
2. Perform transparently
attestation & Key Management
secureTF: Design
7secureTF: A Secure TensorFlow Framework – Middleware 2020 7
TensorFlow Application (e.g., Python code)
secureTF TensorFlow Libraries
(Enclave)
Network Shield File system shield
M:N Threading
secureTF Controller
SCONE Runtime
Intel SGX Driver
Container (cgroups)
Host Operating System
Untrusted
Reduce #Enclave
entries/exits
Actively protect data,
model, and code
secureTF: Implementation
8secureTF: A Secure TensorFlow Framework – Middleware 2020 8
secureTF: Evaluation
0
500
1000
1500
2000
2500
Native
musl
Native
glibc
secureTF
SIM
secureTF
HW
Graphene
SGX
Latency(milliseconds)
Inception_v4 (163MB) Inception_v3 (91MB)
Lower
the better
secureTF incurs ~5% in SIM mode, ~22% overhead in HW mode compared to native versions
secureTF is ~1.1X – 1.4X faster than Graphene-SGX based system
9secureTF: A Secure TensorFlow Framework – Middleware 2020 9
secureTF: A Secure TensorFlow Framework
• Transparency: supports unmodified TensorFlow applications (both training and inferences)
• Security: provides end-to-end security for the input data, ML model, and application code
• Accuracy: maintains the same in the native TensorFlow framework
Conclusion
Thank you!
10secureTF: A Secure TensorFlow Framework – Middleware 2020 10
Products
https://sconedocs.github.io
https://scontain.com
Contact
do@scontain.com

More Related Content

PDF
TEEMon: A continuous performance monitoring framework for TEEs
PDF
Automatisez la détection des menaces et évitez les faux positifs
PDF
Cloud-Trust - a Security Assessment Model for Infrastructure as a Service (Ia...
DOCX
Cloud-Trust - a Security Assessment Model for Infrastructure as a Service (Ia...
PPTX
CCSA NGX R71 Course Overview
PDF
'Moon' Security Management System for OPNFV
PPTX
Security & fault tolerance in fresco
PPTX
Top 5 Priorities for Cloud Security
TEEMon: A continuous performance monitoring framework for TEEs
Automatisez la détection des menaces et évitez les faux positifs
Cloud-Trust - a Security Assessment Model for Infrastructure as a Service (Ia...
Cloud-Trust - a Security Assessment Model for Infrastructure as a Service (Ia...
CCSA NGX R71 Course Overview
'Moon' Security Management System for OPNFV
Security & fault tolerance in fresco
Top 5 Priorities for Cloud Security

What's hot (18)

PDF
Network Function Virtualization - Security Best Practices AtlSecCon 2015
PDF
The Intersection of Security and DevOps
PDF
LCJ2010-KaiGai-sepgsql
PPTX
Under-reported Security Defects in Kubernetes Manifests
DOCX
message passing interface
PPTX
What Questions Do Programmers Ask About Configuration as Code?
PDF
The Intersection of Security & DevOps
PDF
a famework for analyzing template security and privacy in biometric authenti...
PPTX
Extract Network and System resource for analysis of Network Security Modeling
PPTX
Microservices docker-security
PDF
Infrastructure as (Secure) Code
PPTX
Shhh!: Secret Management Practices for Infrastructure as Code
PDF
Virtual Networking Security - Network Security
PPTX
Locking Down Your Cloud
PPTX
AWS Security Ideas - re:Invent 2016
PDF
Securing an NGINX deployment for K8s
PPTX
Characteristics of Defective Infrastructure as Code Scripts in Continuous Dep...
PPTX
Network-Project-in-Linux
Network Function Virtualization - Security Best Practices AtlSecCon 2015
The Intersection of Security and DevOps
LCJ2010-KaiGai-sepgsql
Under-reported Security Defects in Kubernetes Manifests
message passing interface
What Questions Do Programmers Ask About Configuration as Code?
The Intersection of Security & DevOps
a famework for analyzing template security and privacy in biometric authenti...
Extract Network and System resource for analysis of Network Security Modeling
Microservices docker-security
Infrastructure as (Secure) Code
Shhh!: Secret Management Practices for Infrastructure as Code
Virtual Networking Security - Network Security
Locking Down Your Cloud
AWS Security Ideas - re:Invent 2016
Securing an NGINX deployment for K8s
Characteristics of Defective Infrastructure as Code Scripts in Continuous Dep...
Network-Project-in-Linux
Ad

Similar to secureTF: A Secure TensorFlow Framework (20)

PPTX
SECRY - Secure file storage on cloud using hybrid cryptography
PDF
Improved Secure Cloud Transmission Protocol
PDF
IMPROVED SECURE CLOUD TRANSMISSION PROTOCOL
PDF
IMPROVED SECURE CLOUD TRANSMISSION PROTOCOL
PDF
IMPROVED SECURE CLOUD TRANSMISSION PROTOCOL
PDF
PDF
IRJET- Storage Security in Cloud Computing
PDF
IRJET- Public Key Infrastructure (PKI) Understanding for Vxworks RTOS using A...
PDF
Fpga based encryption design using vhdl
PDF
Working Survey of Authentication Header and Encapsulating Security Payload
PDF
Go3611771182
PPT
Websecurity
PDF
Data security framework for cloud computing networks
PDF
Analysis Of Internet Protocol ( IP ) Datagrams
PDF
CrAlSim: A Cryptography Algorithm Simulator
PDF
End to end IoT Solution using Mongoose OS.
PDF
Making networks secure with multi-layer encryption
PDF
Analysis of Security and Compliance using Oracle SPARC T-Series Servers: Emph...
PDF
2010.hari_kannan.phd_thesis.slides.pdf
PPTX
Advancing IoT Communication Security with TLS and DTLS v1.3
SECRY - Secure file storage on cloud using hybrid cryptography
Improved Secure Cloud Transmission Protocol
IMPROVED SECURE CLOUD TRANSMISSION PROTOCOL
IMPROVED SECURE CLOUD TRANSMISSION PROTOCOL
IMPROVED SECURE CLOUD TRANSMISSION PROTOCOL
IRJET- Storage Security in Cloud Computing
IRJET- Public Key Infrastructure (PKI) Understanding for Vxworks RTOS using A...
Fpga based encryption design using vhdl
Working Survey of Authentication Header and Encapsulating Security Payload
Go3611771182
Websecurity
Data security framework for cloud computing networks
Analysis Of Internet Protocol ( IP ) Datagrams
CrAlSim: A Cryptography Algorithm Simulator
End to end IoT Solution using Mongoose OS.
Making networks secure with multi-layer encryption
Analysis of Security and Compliance using Oracle SPARC T-Series Servers: Emph...
2010.hari_kannan.phd_thesis.slides.pdf
Advancing IoT Communication Security with TLS and DTLS v1.3
Ad

More from LEGATO project (20)

PDF
Scrooge Attack: Undervolting ARM Processors for Profit
PDF
A practical approach for updating an integrity-enforced operating system
PDF
PipeTune: Pipeline Parallelism of Hyper and System Parameters Tuning for Deep...
PDF
LEGaTO: Machine Learning Use Case
PPTX
Smart Home AI at the edge
PPTX
LEGaTO: Low-Energy Heterogeneous Computing Use of AI in the project
PPTX
LEGaTO Integration
PPTX
LEGaTO: Use cases
PPTX
LEGaTO: Software Stack Programming Models
PPTX
LEGaTO: Software Stack Runtimes
PPTX
LEGaTO Heterogeneous Hardware
PPTX
LEGaTO: Low-Energy Heterogeneous Computing Workshop
PDF
TZ4Fabric: Executing Smart Contracts with ARM TrustZone
PDF
Infection Research with Maxeler Dataflow Computing
PDF
Smart Home - AI at the edge
PDF
FPGA Undervolting and Checkpointing for Energy-Efficiency and Error-Resiliency
PDF
Device Data Directory and Asynchronous execution: A path to heterogeneous com...
PDF
Scheduling Task-parallel Applications in Dynamically Asymmetric Environments
PDF
RECS – Cloud to Edge Microserver Platform for Energy-Efficient Computing
PDF
Secure Task-Based Programming with OmpSs and SGX
Scrooge Attack: Undervolting ARM Processors for Profit
A practical approach for updating an integrity-enforced operating system
PipeTune: Pipeline Parallelism of Hyper and System Parameters Tuning for Deep...
LEGaTO: Machine Learning Use Case
Smart Home AI at the edge
LEGaTO: Low-Energy Heterogeneous Computing Use of AI in the project
LEGaTO Integration
LEGaTO: Use cases
LEGaTO: Software Stack Programming Models
LEGaTO: Software Stack Runtimes
LEGaTO Heterogeneous Hardware
LEGaTO: Low-Energy Heterogeneous Computing Workshop
TZ4Fabric: Executing Smart Contracts with ARM TrustZone
Infection Research with Maxeler Dataflow Computing
Smart Home - AI at the edge
FPGA Undervolting and Checkpointing for Energy-Efficiency and Error-Resiliency
Device Data Directory and Asynchronous execution: A path to heterogeneous com...
Scheduling Task-parallel Applications in Dynamically Asymmetric Environments
RECS – Cloud to Edge Microserver Platform for Energy-Efficient Computing
Secure Task-Based Programming with OmpSs and SGX

Recently uploaded (20)

PPTX
2Systematics of Living Organisms t-.pptx
PPTX
ECG_Course_Presentation د.محمد صقران ppt
PDF
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
PPTX
Comparative Structure of Integument in Vertebrates.pptx
PDF
bbec55_b34400a7914c42429908233dbd381773.pdf
PDF
SEHH2274 Organic Chemistry Notes 1 Structure and Bonding.pdf
PDF
Unveiling a 36 billion solar mass black hole at the centre of the Cosmic Hors...
PPT
The World of Physical Science, • Labs: Safety Simulation, Measurement Practice
PDF
CAPERS-LRD-z9:AGas-enshroudedLittleRedDotHostingaBroad-lineActive GalacticNuc...
DOCX
Viruses (History, structure and composition, classification, Bacteriophage Re...
PPTX
2. Earth - The Living Planet Module 2ELS
PDF
Biophysics 2.pdffffffffffffffffffffffffff
PDF
HPLC-PPT.docx high performance liquid chromatography
PPTX
The KM-GBF monitoring framework – status & key messages.pptx
PPTX
ognitive-behavioral therapy, mindfulness-based approaches, coping skills trai...
PDF
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
PPTX
GEN. BIO 1 - CELL TYPES & CELL MODIFICATIONS
PPTX
Classification Systems_TAXONOMY_SCIENCE8.pptx
PPTX
Introduction to Cardiovascular system_structure and functions-1
PDF
. Radiology Case Scenariosssssssssssssss
2Systematics of Living Organisms t-.pptx
ECG_Course_Presentation د.محمد صقران ppt
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
Comparative Structure of Integument in Vertebrates.pptx
bbec55_b34400a7914c42429908233dbd381773.pdf
SEHH2274 Organic Chemistry Notes 1 Structure and Bonding.pdf
Unveiling a 36 billion solar mass black hole at the centre of the Cosmic Hors...
The World of Physical Science, • Labs: Safety Simulation, Measurement Practice
CAPERS-LRD-z9:AGas-enshroudedLittleRedDotHostingaBroad-lineActive GalacticNuc...
Viruses (History, structure and composition, classification, Bacteriophage Re...
2. Earth - The Living Planet Module 2ELS
Biophysics 2.pdffffffffffffffffffffffffff
HPLC-PPT.docx high performance liquid chromatography
The KM-GBF monitoring framework – status & key messages.pptx
ognitive-behavioral therapy, mindfulness-based approaches, coping skills trai...
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
GEN. BIO 1 - CELL TYPES & CELL MODIFICATIONS
Classification Systems_TAXONOMY_SCIENCE8.pptx
Introduction to Cardiovascular system_structure and functions-1
. Radiology Case Scenariosssssssssssssss

secureTF: A Secure TensorFlow Framework

  • 1. 1secureTF: A Secure TensorFlow Framework – Middleware 2020 1 secureTF: A Secure TensorFlow Framework Do Le Quoc, Franz Gregor, Sergei Arnautov, Roland Kunkel, Pramod Bhatotia, Christof Fetzer
  • 2. 2secureTF: A Secure TensorFlow Framework – Middleware 2020 2 Cloud Provider Motivation Data Clients Training Data Training Model Inference How to ensure confidentiality and integrity of data, code (e.g., Python code), model and computation with low performance overhead while retaining accuracy?
  • 3. 3secureTF: A Secure TensorFlow Framework – Middleware 2020 3 Application Application Libraries (Enclave) Hypervisor Container Engine Operating System Host SGX (Software Guard eXtensions) is a set of processor extensions for establishing a TEE inside an application Intel SGX Intel SGX protects the integrity and confidentiality of applications
  • 4. 4secureTF: A Secure TensorFlow Framework – Middleware 2020 4 Several works rely on Intel SGX to support secure machine learning: • Privado [Microsoft Research 2019] • Slalom [ICLR2019] • Occlumency [MobiCom19] • … State-of-the-art systems Limitations: • Focuses only for secure inferences, not for training computation • Does not support distributed setting • Supports only a limited number of operators
  • 5. 5secureTF: A Secure TensorFlow Framework – Middleware 2020 5 Cloud Provider User secureTF: Overview secureTF (Enclave) SGXTLS (1) Remote Attestation (2) Keys, certificate transferring (3) Computation results Data & Code Model
  • 6. 6secureTF: A Secure TensorFlow Framework – Middleware 2020 6 Clients Cloud Provider Data User TLS Attestation & policy submitting TLS TLSTLS Attestation & secrets provision Training Data Inference Training Model SGX SGX 1. Protect against attackers with privileged/root accesses Configuration & Attestation Service (CAS) SGX 2. Perform transparently attestation & Key Management secureTF: Design
  • 7. 7secureTF: A Secure TensorFlow Framework – Middleware 2020 7 TensorFlow Application (e.g., Python code) secureTF TensorFlow Libraries (Enclave) Network Shield File system shield M:N Threading secureTF Controller SCONE Runtime Intel SGX Driver Container (cgroups) Host Operating System Untrusted Reduce #Enclave entries/exits Actively protect data, model, and code secureTF: Implementation
  • 8. 8secureTF: A Secure TensorFlow Framework – Middleware 2020 8 secureTF: Evaluation 0 500 1000 1500 2000 2500 Native musl Native glibc secureTF SIM secureTF HW Graphene SGX Latency(milliseconds) Inception_v4 (163MB) Inception_v3 (91MB) Lower the better secureTF incurs ~5% in SIM mode, ~22% overhead in HW mode compared to native versions secureTF is ~1.1X – 1.4X faster than Graphene-SGX based system
  • 9. 9secureTF: A Secure TensorFlow Framework – Middleware 2020 9 secureTF: A Secure TensorFlow Framework • Transparency: supports unmodified TensorFlow applications (both training and inferences) • Security: provides end-to-end security for the input data, ML model, and application code • Accuracy: maintains the same in the native TensorFlow framework Conclusion Thank you!
  • 10. 10secureTF: A Secure TensorFlow Framework – Middleware 2020 10 Products https://sconedocs.github.io https://scontain.com Contact do@scontain.com