Code Monkey home page Code Monkey logo

cryptoguard's Introduction

CryptoGuard: Source Code

An program analysis tool to find cryptographic misuse in Java and Android.

Prerequisites to use CryptoGuard on Source code:

  1. Download and Install JDK 7.
  2. Set JAVA7_HOME environment variable.
  3. Download and Install Gradle.

Prerequisites to use CryptoGuard on Jar:

  1. Download and Install JDK (version >= 7).
  2. Set JAVA_HOME environment variable.
  3. Download and Install Gradle.

Prerequisites to use CryptoGuard on Apk:

  1. Download and Install JDK (version >= 7).
  2. Set JAVA_HOME environment variable.
  3. Download and Install Android SDK
  4. Set ANDROID_SDK_HOME
  5. Download and Install Gradle.

Build CryptoGuard

  1. Run cd /path/to/cryptoguard
  2. Run gradle clean build

Run CryptoGuard to analyze source code:

You need to run CryptoGuard on JDK 7 to analyze source codes. If the project does not have any external dependencies then run,

cd /path/to/cryptoguard && /usr/local/jdk1.7.0_80/bin/java -jar main/build/libs/main.jar "source" "/path/to/project/root" "" 1

If the project have external dependencies then first gather the dependencies under a folder that is relative to the project root (e.g., “build/dependencies”), then run

cd /path/to/cryptoguard && /usr/local/jdk1.7.0_80/bin/java -jar main/build/libs/main.jar "source" "/path/to/project/root" "build/dependencies" 1

Note that if you have multiple subprojects with external dependencies, then you have to gather all the corresponding subproject dependencies under a path that is relative to each of the subprojects.

Run CryptoGuard to analyze Jar:

cd /path/to/cryptoguard && java -jar main/build/libs/main.jar "jar" "/path/to/jar/my-jar.jar" "" 1

Run CryptoGuard to analyze Apk:

cd /path/to/cryptoguard && java -jar main/build/libs/main.jar "apk" "/path/to/apk/my-apk.apk" 1

If you have any questions or suggestions, please email to [email protected].

Disclaimer

CryptoGuard is a research prototype under GNU General Public License 3.0

Copyright © 2018 CryptoGuard

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3.0 for more details.

You should have received a copy of the GNU General Public License 3.0 along with this program. If not, see https://www.gnu.org/licenses/gpl-3.0.html.

Reference

If you find this project useful, please cite our CCS'19 CryptoGuard paper.

cryptoguard's People

Contributors

cryptoguardorg avatar kelloggm avatar lordamit avatar rigority avatar sazzad114 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.