Giter VIP home page Giter VIP logo

jg3233 / privacyguard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yang-sec/privacyguard

0.0 0.0 0.0 3.16 MB

PrivacyGuard is a platform that combines blockchain smart contract and TEE to enable transparent enforcement of private data computation and fine-grained usage control. This repo includes prototype implementation and evaluation programs.

License: MIT License

Makefile 0.84% C++ 27.25% C 13.09% JavaScript 0.70% CMake 0.10% Python 0.28% Shell 0.01% Solidity 0.62% PHP 57.11%

privacyguard's Introduction

Dear readers, we kindly note that this repo provides a proof-of-concept implementation of PrivacyGuard, not a product. An older generation of Intel SGX is used. We recommend readers to use it as a workflow reference rather than a system baseline. Thanks!

Entities to be run in the cloud:

  • iDA (iDataAgent)
  • DB (Data Broker)
  • CEE (Contract Execution Environment)

Entities to be run remotely

  • DC (Data Consumer)
  • DO (Data Owner)

System requirements

  • OS: Ubuntu 16.04 LTS
  • Intel SGX driver, PSW, SDK

Deployed contracts (on Ethereum Rinkeby)

  • DataBroker Contract: 0x7CAC532e3E93666247a56D987e25AEa5050B8cee
  • DataOwner Contract: 0x208D3CEdFE8918298A726264B578A9BA2AE8c85B

How to run

  • To build all programs: bash ./allmake
  • To clean all programs: bash ./allclean
  • Executables will appear in individual directories.

System workflow for single data usage case with 1 DO, 1 iDA, 1 CEE

  1. DO publishes its data usage policy through Ethereum smart contracts.
  2. DO remotely attests iDA's enclave.
  3. DC observes DO's contract from blockchain and parses the policy.
  4. DC invokes the smart contract by sending a transaction with the required deposit amount to call the contract's request() function.
  5. DC sends a REQUEST message to DO's iDataAgent.
  6. iDataAgent checks DC's deposit amount in the contract and then deploys CEE.
  7. iDataAgent and DC remotely attest CEE's enclave.
  8. With the secure channel establish by step 6, iDataAgent provisions DO's data decryption key K_data to CEE.
  9. CEE performs data operation.
  10. CEE securely provisions C_result, Hash(C_result), Hash(K_result) to DC; K_result to iDA. Then destructs the enclave.
  11. DC calls the contract's computationComplete() function with Hash(K_result).
  12. DO calls the contract's completeTransaction() function with K_result.

Publication

The paper titled "PrivacyGuard: Enforcing Private Data Usage Control with Blockchain and Attested Off-chain Contract Execution" appeared in ESORICS 2020, Sep 14-18, 2020.

privacyguard's People

Contributors

yang-sec avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.