Giter Club home page Giter Club logo

anadroid's Introduction

Pushdown OO Taint-Flow analysis.

Ucombinator maintained fork. Original from Shuying at https://github.com/shuyingliang/pushdownoo.

Requirements

Scala 2.9.1

The reason didn't move to 2.10:

  • StackOverflow error in Scala 2.10
  • Code changes such as case class must have parameters
  • Scala 2.9.1 works perfectly with Play 2.0.4

JVM

Compiled successfully with the following JDKs:

  • OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~12.04.1).
  • Oracle JDK 6 and 7. If you're on Mac, use the Oracle JDK. Compiling openJDK on Mac is complicated and prone to failure.

Graphviz

For converting to svg dyck state graph. (It will get choked on large dot files)

Ensure the graphviz is installed at /usr/local/bin/dot.

Compile

cd pdafordalvik
make compile

Run

Still in pdafordalvik folder:

java -jar artifacts/PushdownOO_Exflow.jar org.ucombinator.dalvik.cfa.cesk.RunAnalysis \
    [--k <number>] [--gc] [--lra] [--aco] [--godel] [--dump-graph] \
    [--interrupt-after <number-of-states>] \
    [--interrupt-after-time <number of minutes>] \
    path/to/your/filename.apk

e.g.

java -jar artifacts/PushdownOO_Exflow.jar org.ucombinator.dalvik.cfa.cesk.RunAnalysis \
    --k 1 --gc --lra --aco --godel --dump-graph ./test/Bookworm.apk

For Intent Fuzzer

java -jar artifacts/PushdownOO_Exflow.jar org.ucombinator.dalvik.cfa.cesk.RunAnalysis \
    --k 1 --gc --lra --aco --godel --for-intent-fuzzer --intraprocedural \
    ./test/Twitter_3.7.1.apk

Note: The feature of producing flow-sensitive paths in text report (apposed to in graph before) with intent operations/data involves, is not yet fully tested. At least, the output is produced after the depth first search on the analyzed graphs, which can take a long time!

In case of large apps, please use JVM options (before -jar) to increase run time heap/stack like this (or larger):

-XX:MaxPermSize=512m -Xms512m  -Xmx1024M -Xss1024m

For DaCapo benchmark evaluation

  • The benchmark apks locates in benchmark-dacapo-apks
  • During analysis, --obranches [number] for branch optimization to termiate fast safely.

anadroid's People

Contributors

leifandersen avatar maggieddie avatar michaelballantyne avatar shuyingliang avatar

Watchers

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