Giter Site home page Giter Site logo

sandscout's Introduction

SandScout

SandScout is a framework to extract, decompile, formally model, and analyze iOS sandbox profiles as logic-based programs. We use our Prolog-based queries to evaluate file-based security properties of the container sandbox profile for iOS 9.0.2 and discover seven classes of exploitable vulnerabilities.

The SandScout paper (SandScout: Automatic Detection of Flaws in iOS Sandbox Profiles), presented at ACM CCS 2016, details the architecture and implementation of SandScout and our findings.

SandScout is open source software released under the 3-clause BSD license.

Authors:

  • Luke Deshotels, North Carolina State University
  • Răzvan Deaconescu, University POLITEHNICA of Bucharest
  • Mihai Chiroiu, University POLITEHNICA of Bucharest
  • Lucas Davi, Technische Universitat Darmstadt
  • William Enck, North Carolina State University
  • Ahmad-Reza Sadeghi, Technische Universitat Darmstadt

Please note that this repo represents the SandScout project as of 2016 when the SandScout paper was published. A more up to date and powerful version can be found in the iOracle repo.

Project files

This is a short explanation of each file you might find in this directory.

test-cases/*.sb: Files ending in .sb are sandbox profiles. The container profile we have been using for testing is from iOS 9.0.2. As of 5/14/16, we had to manually remove a line because of a bug in SandBlaster. This should get fixed soon.

convertToProlog.sh: This is our main shell script. It runs other scripts to convert SBPL to Prolog and output our query results. Usage:

convertToProlog.sh <SBPL Profile> <outputFileForPLFacts> <PLRulesToUse> <outputFileForFactsAndRules>

facts.pl: This is a prolog database of all facts output by our SBPL to Prolog compiler, smartPly.py.

rules.pl: These prolog rules act sort of like functions which help us make queries. Our queries are defined in this file, but they are called by script.pl.

factsAndRules.pl: Concatenation of facts.pl and rules.pl which is used to process queries.

script.pl: This is a script which loads libraries and databases into Prolog and calls our queries.

smartPly.py: This Python script uses the ply library which provides lex and yacc for Python. This is the script that tokenizes and parses SBPL. It also outputs the Prolog facts.

Usage

You should be able to run the whole system by using the following example command:

./convertToProlog.sh containerManualPruning.sb facts.pl rules.pl factsAndRules.pl

sandscout's People

Contributors

alecdeshotels avatar costincarabas avatar razvand avatar

Watchers

 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.