This is official reporitory for the Argus-SAF. This repository have updated JN-SAF to SANT in order to have more precision.
Depend on Jawa
by editing
build.sbt
:
libraryDependencies += "com.github.arguslab" %% "jawa" % VERSION
Depend on Amandroid
by editing
build.sbt
:
libraryDependencies += "com.github.arguslab" %% "amandroid" % VERSION
Note that: Depend on Amandroid will automatically add Jawa as dependency. If you use Maven or Gradle, you should translate it to corresponding format.
Requirement: Java 10
$ java -jar argus-saf_***-version-assembly.jar
In order to take part in Argus-SAF development, you need to:
-
Install the following software:
- IntelliJ IDEA 14 or higher with compatible version of Scala plugin
-
Fork this repository and clone it to your computer
$ git clone https://github.com/arguslab/Argus-SAF.git
-
Open IntelliJ IDEA, select
File -> New -> Project from existing sources
(if from initial window:Import Project
), point to the directory where Argus-SAF repository is and then import it asSBT project
. -
When importing is finished, go to Argus-SAF repo directory and run
$ git checkout .idea
in order to get artifacts and run configurations for IDEA project.
-
[Optional] To build Argus-SAF more smooth you should give 2GB of the heap size to the compiler process.
-
if you use Scala Compile Server (default):
Settings > Languages & Frameworks > Scala Compile Server > JVM maximum heap size
-
if Scala Compile Server is disabled:
Settings > Build, Execution, Deployment > Compiler > Build process heap size
-
-
Build Argus-SAF from command line: go to Argus-SAF repo directory and run
$ tools/bin/sbt clean compile test
- Generate fat jar: go to Argus-SAF repo directory and run
$ tools/bin/sbt assembly
Install JN-Saf
and NativeDroid
:
$ tools/scripts/install.sh
You can install either one by:
$ tools/scripts/install.sh jnsaf
$ tools/scripts/install.sh nativedroid
After install JN-Saf
and NativeDroid
. Run:
$ tools/scripts/benchmark_cli.sh droidbench
$ tools/scripts/benchmark_cli.sh iccbench
$ tools/scripts/benchmark_cli.sh nativeflowbench
- Install nativedroid:
$ tools/scripts/install.sh nativedroid
- Start nativedroid server:
$ python nativedroid/nativedroid/server/native_droid_server.py /tmp/binaries nativedroid/nativedroid/data/sourceAndSinks/NativeSourcesAndSinks.txt nativedroid/data/sourceAndSinks/TaintSourcesAndSinks.txt
- Use NativeDroidClient.scala to communicate with the nativedroid server to perform native analysis.
- If python code in Intellij shows unresolved imports, you should manually import the nativedroid folder as a python module and set Python SDK. Recommend to use a python virtualenv to install nativedroid with it's required python packages.
Bazel integration in progress. Ignore all the BUILD files for now.
To contribute to the Argus-SAF, please send us a pull request from your fork of this repository!
For more information on building and developing Argus-SAF, please also check out our guidelines for contributing. People who provided excellent ideas are listed in contributor.
If you don't know what to contribute,
you can checkout the issue tracker with help wanted
label, and claim one to help yourself warm up with Argus-SAF.