GithubHelp home page GithubHelp logo

joeyjiaojg / seal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from seandroid-analytics/seal

0.0 0.0 0.0 113 KB

SEAndroid Analytics Library for live device analysis

License: Apache License 2.0

Python 100.00%

seal's Introduction

SEAL: SEAndroid Analytics Library for live device analysis

SEAL is a SEAndroid live device analysis tool. It can perform policy analysis on Android devices (real or emulated) connected through ADB. Devices must be rooted or running a debug build. Running the tool on a non-rooted production device will yield incomplete results.

usage: seal [-h] [--adb ADB] [--device <DEVICE>]
               {polinfo,files,processes} ...

positional arguments:
  {polinfo,files,processes}
                        sub-command help
    polinfo             Show policy info from device
    files               List all files on the device
    processes           List all processes on the device

optional arguments:
  -h, --help            show this help message and exit
  --adb ADB             Path to your local root adb if not in your $PATH
  --device <DEVICE>     Specify a device to work with

The tool offers functionality through a set of subcommands. The current ones are:

  • polinfo - view policy statistics from a connected device
  • files - list files on the device, optionally filtering to show only files a specific process has access to
  • processes - list processes on the device, optionally filtering to show only processes that have access to a specific file/path

A graphical frontend to the SEALv1 tool is available as SEALX. An equivalent graphical tool for SEALv2 is in the works.

Obtaining SEAL

SEAL is available in two versions, SEALv1 and SEALv2. SEALv2 is the current version. SEALv1 can deal with SELinux policies up to version 29, and with Android up to version 5.1; for more recent Android and SELinux policy versions, SEALv2 is required.

###SEALv2 SEALv2 may be obtained by cloning this repository. From the command line, do:

$ git clone [email protected]:seandroid-analytics/seal.git

The SEALv2 library requires the setools library from SEToolsv4. The setools library is also distributed as part of the AOSP tree, where it is distributed as a prebuilt. After downloading the AOSP tree in $WORKING_DIRECTORY, the setools package will be in

$WORKING_DIRECTORY/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages

To use this package, add this path to your $PYTHONPATH; for example, on Ubuntu 14.04 LTS add this to your .profile:

export PYTHONPATH="$WORKING_DIRECTORY/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages:$PYTHONPATH"

SEALv2 also requires the Android Debug Bridge to be installed and in your $PATH. You may use the ADB which comes with the Android SDK (recommended), or install it through your distribution's package manager.

###SEALv1 SEALv1 is no longer being developed. SEALv1 can be downloaded from GitHub as a release.

The SEALv1 library requires the Python bindings to libapol and libqpol from SEToolsv3. These can be obtained on Ubuntu 14.04 LTS by installing the python-setools package. SEALv1 also requires the Android Debug Bridge to be installed and in your $PATH. You may use the ADB which comes with the Android SDK (recommended), or install it through your distribution's package manager.

Running SEAL

From the resulting directory, run:

$ python seal.py [GLOBAL OPTIONS] <subcommand> [OPTIONS]

Reporting bugs

You can report bugs in the project issue tracker.

License

Copyright (C) 2015 Aalto University

SEAL is licensed under the Apache License 2.0 (see LICENSE).

SEAL is an open source project being developed at Aalto University as part of the Intel Collaborative Research Institute for Secure Computing (ICRI-SC).

seal's People

Contributors

joeyjiaojg 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.