GithubHelp home page GithubHelp logo

zzrcxb / eaao Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 1.0 47 KB

Open-source release of "Everywhere All at Once: Co-Location Attacks on Public Cloud FaaS" (ASPLOS '24)

Dockerfile 0.48% Makefile 0.19% C 11.65% Python 70.19% Jupyter Notebook 17.49%

eaao's Introduction

EAAO

Open-source release of "Everywhere All at Once: Co-Location Attacks on Public Cloud FaaS" (ASPLOS'24). This repo contains the source code of a Google Cloud Run service that we used for fingerprinting and a library for interacting with the service.

You can clone the repo by running:

git clone https://github.com/zzrcxb/EAAO.git

Dependences

Python

Our scripts require Python >= 3.9 and Python libraries that are listed in requirements.txt. You can install those libraries by executing

pip3 install -r requirements.txt --user

Google Cloud CLI

Please refer to this Google Cloud documentation on installing Google Cloud CLI. I recommend the Docker option.

Code Structure

Google Cloud Run (GCR) Service

finp_service/ directory contains the source code of a Google Cloud Run service that helps fingerprinting a Google Cloud physical host.

Deploy the Service

To deploy the service using Google Cloud CLI, you can execute a command similar to:

gcloud run deploy <Service name> --region=<GCR region> --source=<Path to service directory> --memory=<Memory requirement in MiB>Mi --cpu=<CPU requirement> --max-instances=1000 --concurrency=1 --timeout=3600 --session-affinity --allow-unauthenticated

Please refer to Google Cloud's documentation on the command and documentation about deploying GCR services in general.

Please note that our experiment script requires setting concurrency=1 so that each WebSocket connection corresponds to exactly one container. It is also required to enable unauthenticated accesses --allow-unauthenticated.

The default service configuration that we used is:

--memory=512Mi --cpu=1 --max-instances=1000 --concurrency=1 --timeout=3600 --session-affinity --allow-unauthenticated

To learn more about deploying a service to Google Cloud Run via CLI, you can execute:

gcloud run deploy --help

After the deployment, you will get an URL to invoke the service. Please save the URL.

Toolkit for Invoking the Service

toolkit/ directory contains Python helper code that helps interact with the fingerprinting service. These interactions include launching and connecting to individual container instances, fingerprinting the physical host, running the rdseed covert channel to verify co-location, and executing arbitrary command in the container instance.

For example, validate.ipynb provides an example that uses the toolkit to launch containers and verify co-location (please follow the comment in the first block of the Jupyter notebook and put your service URL).

Minor Correction

Figure 6 in the paper requires a minor correction. Please refer to here for more details. This correction does not change fingerprint results nor co-location results.

eaao's People

Contributors

zzrcxb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mydevgh

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.