GithubHelp home page GithubHelp logo

secure-software-engineering / droidforce Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 15.0 43.79 MB

DroidForce Project Repository. See our ARES'2014 paper for the details on DroidForce.

License: GNU Lesser General Public License v2.1

Java 100.00%

droidforce's People

Contributors

bnord01 avatar stevenarzt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

droidforce's Issues

Exception at Instrumentation

I changed my SDK few days ago for professional reason and reinstalled it. Tried to instrument from Eclipse as well from my Server and I get this error:

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/MoreObjects
    at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:91)
    at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:72)
    at soot.DexClassProvider.classesOfDex(DexClassProvider.java:121)
    at soot.DexClassProvider.readDexFile(DexClassProvider.java:97)
    at soot.DexClassProvider.buildDexIndex(DexClassProvider.java:88)
    at soot.DexClassProvider.find(DexClassProvider.java:56)
    at soot.SourceLocator.getClassSource(SourceLocator.java:75)
    at soot.SootResolver.bringToHierarchy(SootResolver.java:209)
    at soot.SootResolver.bringToSignatures(SootResolver.java:266)
    at soot.SootResolver.bringToBodies(SootResolver.java:304)
    at soot.SootResolver.processResolveWorklist(SootResolver.java:167)
    at soot.SootResolver.resolveClass(SootResolver.java:131)
    at soot.Scene.tryLoadClass(Scene.java:679)
    at soot.Scene.loadBasicClasses(Scene.java:1339)
    at soot.Scene.loadNecessaryClasses(Scene.java:1418)
    at de.ecspride.Settings.initialiseSoot(Settings.java:120)
    at de.ecspride.Main.main(Main.java:44)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.MoreObjects
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    ... 17 more

I guess that this error only happens on my installation but it would kind of critical that I success in solving it? Does someone has an idea? It appears to be related to guava but this library is exported in the heros project...

java.lang.RuntimeException: getInvokeExpr() called with no invokeExpr present! at soot.jimple.internal.AbstractStmt.getInvokeExpr(AbstractStmt.java:56)

Good afternoon,

As a TUM Student, I take part in the Securing Android practical course.
Therefore, we're trying to instrument many APK from the FDroid repository (Open Source Android Repository) and for some unknown reason we get this error:

Exception in thread "main" java.lang.RuntimeException: getInvokeExpr() called with no invokeExpr present!
at soot.jimple.internal.AbstractStmt.getInvokeExpr(AbstractStmt.java:56)
at de.ecspride.pep.PolicyEnforcementPoint.instrumentSourceToSinkConnections(PolicyEnforcementPoint.java:363)
at de.ecspride.pep.PolicyEnforcementPoint.doAccessControlChecks(PolicyEnforcementPoint.java:198)
at de.ecspride.pep.PolicyEnforcementPoint.onResultsAvailable(PolicyEnforcementPoint.java:139)
at soot.jimple.infoflow.Infoflow.runAnalysis(Infoflow.java:415)
at soot.jimple.infoflow.Infoflow.computeInfoflow(Infoflow.java:137)
at soot.jimple.infoflow.android.SetupApplication.runInfoflow(SetupApplication.java:698)
at de.ecspride.Main.runFlowDroid(Main.java:114)
at de.ecspride.Main.main(Main.java:84)

The APK I tried can be found here:
https://f-droid.org/repo/com.doomy.overflow_4.apk

Did we miss something or is it really a bug in the InstrumentationPEP ?

java.io.FileNotFoundException: ./sootOutput/AndroidManifest.xml

Good afternoon,

As a TUM Student, I take part in the Securing Android Praktikum.
Therefore, we're trying to instrument many APK from the FDroid repository (Open Source Android Repository) and for some unknown reason (even if the app is pretty trivial), we get this error:

java.io.FileNotFoundException: ./sootOutput/AndroidManifest.xml (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.(FileInputStream.java:146)
    at soot.jimple.infoflow.android.axml.ApkHandler.addFilesToApk(ApkHandler.java:213)
    at soot.jimple.infoflow.android.axml.ApkHandler.addFilesToApk(ApkHandler.java:121)
    at de.ecspride.util.UpdateManifestAndCodeForWaitPDP.replaceManifest(UpdateManifestAndCodeForWaitPDP.java:161)
    at de.ecspride.Main.runFlowDroid(Main.java:150)
    at de.ecspride.Main.main(Main.java:84)
Exception in thread "main" java.lang.RuntimeException: error when writing new manifest: java.io.FileNotFoundException: ./sootOutput/AndroidManifest.xml (No such file or directory)
    at de.ecspride.util.UpdateManifestAndCodeForWaitPDP.replaceManifest(UpdateManifestAndCodeForWaitPDP.java:164)
    at de.ecspride.Main.runFlowDroid(Main.java:150)
    at de.ecspride.Main.main(Main.java:84)

The Instrumented apk, can be found there

Did we miss something or is it really a bug in the InstrumentationPEP

-d is not a valid command but still in the help

Hey,

I think you removed the -d option from the parsing of the command line (InstrumentationPEP/Settings.java) but it remains in the help (printHelp).

It would be actually nice to have this debug option if possible! ๐Ÿ™

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.