GithubHelp home page GithubHelp logo

flowdroid_jasmine's Introduction

FlowDroid_Jasmine

FlowDroid, in concert with Jasmine, could support taint analysis for Spring programs.

First, modify the fields in the config.properties and config.json files in the ./FlowDroid_Jasmine/dataleak/src/main/resources directory according to the actual situation.

{
  "source": "/Users/jasmine/FlowDroid_Jasmine/dataleak/src/main/resources/source.json",
  "main_class": "synthetic.method.dummyMainClass",
  "edge_config": "/Users/jasmine/FlowDroid_Jasmine/dataleak/src/main/resources/config.properties"
}

The main_class is the main class of the target project. If the target project does not have a main class, use the synthetic.method.dummyMainClass generated by Jasmine.

Then, add Sources and Sinks in the ./FlowDroid_Jasmine/soot-infoflow-android/SourcesAndSinks.txt file, and modify the main method lines 23 and 27 in class com.jasmine.analysis.Main according to the actual situation. Modify the value on line 88 in com.jasmine.analysis.SetUpApplication and the value of the following code in the method initializeSoot and getSootClassPath.

public class SetUpApplication implements ITaintWrapperDataFlowAnalysis{
    private void initializeSoot() {
    	...
    	dir.add("/Users/jasmine/demo/mall-admin-1.0/BOOT-INF/classes");
    	dir.add("/Users/jasmine/demo/mall-common-1.0/");
    	dir.add("/Users/jasmine/demo/mall-mbg-1.0/");
    	dir.add("/Users/jasmine/demo/mall-security-1.0/");
    	...
	}
	private static String getSootClassPath() {
   	 	...
    	String dependencyDirectory = "/Users/jasmine/demo/mall-admin-1.0/BOOT-INF/lib";
    	...
	}
}

After that, running FlowDroid_Jasmine and the taint analysis result in ./FlowDroid_Jasmine/log/ directory.

flowdroid_jasmine's People

Contributors

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