GithubHelp home page GithubHelp logo

droidcat's Introduction

DroidCat

This is a fork of DroidCat project, original source code can be found here.
DroidCat is a dynamic malware detection and categorization technique using supervised learning algorithms on behavioral characterization of Android apps.

You can find usage information at https://chapering.github.io/droidcat.

Usage

Note: This repo is going to be completed. Results are not reproducable yet. I tried to make results reproducable.

  1. First install Docker.
  2. Open a terminal and run ./build.sh to set up the right environment in Docker.
  3. Then run ./run.sh. This will open a bash shell in your docker container.
  4. Then go to home directory cd /home.
  5. Clone this repo: git clone https://github.com/saba96/droidcat.git
  6. Then cd ./droidcat.
  7. Now run scripts/cgInstr.sh <Your APK file>. You can expect to see instrumented apk file under cg.instrumented folder now. If there is no file, an error may have occured so please check out-dynInstr-cg folder to find possible error in instr-.err.

You can find usage information at https://chapering.github.io/droidcat.

droidcat's People

Contributors

chapering avatar saba96 avatar

Stargazers

 avatar

Watchers

 avatar

droidcat's Issues

Unable to run cgInstr.sh script

Hi

I wanted to run the analyzer for my project, but I am getting some errors:

+ tee out-dynInstr-cg/instr-automatic.call.recorder.hd.real.all.superfree.Easy.pro.out
DUA-Forensics args to Soot: -w -cp /Users/akshatsinha/Documents/droidcat/libs/droidfax.jar:/libs/android.jar -p cg verbose:false,implicit-entry:true -p cg.spark verbose:false,on-fly-cg:true,rta:false -d /Users/akshatsinha/Documents/droidcat/cg.instrumented/ -process-dir /Users/akshatsinha/Documents/APKs_Analysis/PlayStore/y/automatic.call.recorder.hd.real.all.superfree.Easy.pro.apk
Soot started on Fri Jun 18 13:02:58 CDT 2021
java.lang.NullPointerException: Cannot invoke "String.split(String)" because the return value of "java.lang.System.getProperty(String)" is null
	at soot.JastAddJ.Program.initPaths(Program.java:350)
	at soot.SootResolver.<init>(SootResolver.java:88)
	at soot.Singletons.soot_SootResolver(Singletons.java:808)
	at soot.SootResolver.v(SootResolver.java:93)
	at soot.Scene.tryLoadClass(Scene.java:674)
	at soot.Scene.loadBasicClasses(Scene.java:1272)
	at soot.Scene.loadNecessaryClasses(Scene.java:1351)
	at soot.Main.run(Main.java:243)
	at soot.Main.main(Main.java:147)
	at dua.Forensics.main(Forensics.java:102)
	at dynCG.sceneInstr.main(sceneInstr.java:96)


Ouuups... something went wrong! Sorry about that.
Follow these steps to fix the problem:
1.) Are you sure you used the right command line?
    Click here to double-check:
    https://ssebuild.cased.de/nightly/soot/doc/soot_options.htm

2.) Not sure whether it's a bug? Feel free to discuss
    the issue on the Soot mailing list:
    https://github.com/Sable/soot/wiki/Getting-help

3.) Sure it's a bug? Click this link to report it.
    https://github.com/Sable/soot/issues/new?title=java.lang.NullPointerException+when+...&body=Steps+to+reproduce%3A%0A1.%29+...%0A%0AFiles+used+to+reproduce%3A+%0A...%0A%0ASoot+version%3A+%3Cpre%3Etrunk%3C%2Fpre%3E%0A%0ACommand+line%3A%0A%3Cpre%3E-w+-cp+%2FUsers%2Fakshatsinha%2FDocuments%2Fdroidcat%2Flibs%2Fdroidfax.jar%3A%2Flibs%2Fandroid.jar+-p+cg+verbose%3Afalse%2Cimplicit-entry%3Atrue+-p+cg.spark+verbose%3Afalse%2Con-fly-cg%3Atrue%2Crta%3Afalse+-d+%2FUsers%2Fakshatsinha%2FDocuments%2Fdroidcat%2Fcg.instrumented%2F+-process-dir+%2FUsers%2Fakshatsinha%2FDocuments%2FAPKs_Analysis%2FPlayStore%2Fy%2Fautomatic.call.recorder.hd.real.all.superfree.Easy.pro.apk%3C%2Fpre%3E%0A%0AMax+Memory%3A%0A%3Cpre%3E204800MB%3C%2Fpre%3E%0A%0AStack+trace%3A%0A%3Cpre%3Ejava.lang.NullPointerException%3A+Cannot+invoke+%26%2334%3BString.split%28String%29%26%2334%3B+because+the+return+value+of+%26%2334%3Bjava.lang.System.getProperty%28String%29%26%2334%3B+is+null%0A%09at+soot.JastAddJ.Program.initPaths%28Program.java%3A350%29%0A%09at+soot.SootResolver.%26%2360%3Binit%26%2362%3B%28SootResolver.java%3A88%29%0A%09at+soot.Singletons.soot_SootResolver%28Singletons.java%3A808%29%0A%09at+soot.SootResolver.v%28SootResolver.java%3A93%29%0A%09at+soot.Scene.tryLoadClass%28Scene.java%3A674%29%0A%09at+soot.Scene.loadBasicClasses%28Scene.java%3A1272%29%0A%09at+soot.Scene.loadNecessaryClasses%28Scene.java%3A1351%29%0A%09at+soot.Main.run%28Main.java%3A243%29%0A%09at+soot.Main.main%28Main.java%3A147%29%0A%09at+dua.Forensics.main%28Forensics.java%3A102%29%0A%09at+dynCG.sceneInstr.main%28sceneInstr.java%3A96%29%0A%3C%2Fpre%3E
    Please be as precise as possible when giving us
    information on how to reproduce the problem. Thanks!

Any help to run the analyzer for apks is appreciated!

Thanks
Akshat

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.