Code Monkey home page Code Monkey logo

ubcbench's Introduction

UBCBench

UBCBench contains all benchmarks we designed for confirming our hypothesized findings while analyzing the three well-known static taint analysis tools, FlowDroid, Amandroid, and DroidSafe.

The master branch contains benchmarks for our extended journal paper Analyzing Android Taint Analysis Tools: FlowDroid, Amandroid, and DroidSafe published at IEEE Transactions on Software Engineering (TSE) journal. If you are looking for benchmarks used in our conference paper published at ISSTA'18 (Analyzing the analyzers: FlowDroid/IccTA, AmanDroid, and DroidSafe), please switch to the ISSTA branch.

UBCBench Results - DroidIccSourceSinks.xlsx

We ran all benchmarks with the three aforementioned tools, using the same tool configurations and sources and sinks list we described in our TSE paper. We analyzed all tool analysis results and provided our analysis results, along with the ground truth in the excel file called "UBCBench Results.xlsx".

Benchmark Names and Mappings

  • U-DB2.12: ConservativeModel1-3
  • U-DB4.15: HardCodedLocationTest
  • U-DB4.16: CallbacksIntentHandling
  • U-DB4.17: SetContentView
  • U-DB4.18: CallbacksInFragment
  • U-DB7.24: ViewCasting
  • U-DB10.6: ReflectiveSource
  • U-DB10.7: GetClass
  • U-DB10.8: ReflectionOverloaded
  • U-DB10.9: ReflectionRes
  • U-DB10.10: ReflectionDynamic
  • U-DB10.11: ReflectionAndroid
  • U-DB10.12: GetConstructor, ReturnConstructor

ubcbench's People

Contributors

dorawyy avatar linaqiu avatar zjbthomas avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ubcbench's Issues

FlowSensitivity does not better reflect flowsensitivity

This is the code fragment I decompiled from the apk file:

@Override // android.app.Activity
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_flow_sensitivity);
    TelephonyManager tpm = (TelephonyManager) getSystemService("phone");
    String deviceId = tpm.getDeviceId();
    Log.e("FlowSensitivity1", deviceId);
    Log.e("FlowSensitivity2", "123");
}

From this code,it is clear that there will only raise 1 leak path whether the taint analysis tool is flow-sensitivity or not.
But however when I watched the source code of this apk,I find the original design of it really makes sense.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_flow_sensitivity);

    TelephonyManager tpm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
    String deviceId = tpm.getDeviceId();    // Source: <android.telephony.TelephonyManager: java.lang.String getDeviceId()> -> _SOURCE_
    Log.e("FlowSensitivity1", deviceId);    // Sink1, Leak: <android.util.Log: int e(java.lang.String,java.lang.String)> -> _SINK_

    deviceId = "123";
    Log.e("FlowSensitivity2", deviceId);    // Sink2, No leak: <android.util.Log: int e(java.lang.String,java.lang.String)> -> _SINK_
}

This code difference may be caused by compilation optimization which eliminates differences in analysis results.
Considering that much analysis will directly be put on the apk file,maybe a better one which can show the difference is expected.

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.