Java Vulnerabilities (by Snyk.io): Python3 Vulnerabilities (by Snyk.io):
This python file is the wrapper created to assist with various portions of the project. You should use it for various commands including:
This is a website hosting a Docker image that actively runs either Java or Python3 samples. The Java Notebook is only possible by utilitzing IJava. This is still under progress as the following are not active yet:
Please run the following command to get more information on how to use it ./cryptosouple.py
.
make tests
make
, this will build CryptoGuard and move the
jar to the current directoryscans
to scan all of the tests included in the source
clean
to clean the entire projectJAVA_HOME: Point to a valid Java 8 JDK Installation
JAVA7_HOME: Point to a valid Java 7 JDK Installation
ANDROID_SDK_HOME: Point to a valid Android JDK Installation
make env
to verify (and set) all of these variables by following the instructions.java -jar cryptoguard.jar -in source -s /rootPath
java -jar cryptoguard.jar -in source -s /rootPath -d /dependencies
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\").
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.
java -jar cryptoguard.jar -in jar -s /path/to/jar/my-jar.jar
java -jar cryptoguard.jar -in apk -s /path/to/apk/my-apk.apk
java -jar cryptoguard.jar -in java -s /path/to/java/file.java
java -jar cryptoguard.jar -in java -s /path/to/java/file1.java /path/to/java/file2.java
java -jar cryptoguard.jar -in class -s /path/to/java/file.class
java -jar cryptoguard.jar -in java -s /path/to/java/file1.class /path/to/java/file2.class
-s ~/tester/PBEUsage.class:~/tester/UrlFrameWorks.class:~/tester/NewTestCase1.class:~/tester/NewTestCase2.class
-m
, you can add the identifier of the other output formatsArgument -m D
java -jar cryptoguard.jar -in jar -s /path/to/jar/my-jar.jar -m D
This is a json file that represents a more simplified output
-m L
java -jar cryptoguard.jar -in jar -s /path/to/jar/my-jar.jar -m L
Argument -m SX
java -jar cryptoguard.jar -in jar -s /path/to/jar/my-jar.jar -m SX
This will ouput an xml file using the scarf_v1.2.xsd used by SWAMP.
By using the argument -Sconfig properties.file
, this will load the properties from within the file
java -jar cryptoguard.jar -in jar -s /path/to/jar/my-jar.jar -m SX -Sconfig properties.file
-s *.in
find -type f -name \*.java \>\> input.in
./samples/testable-jar/src/main/java/tester/UrlFrameWorks.java
./samples/testable-jar/src/main/java/tester/PasswordUtils.java
./samples/testable-jar/src/main/java/tester/Crypto.java
./samples/testable-jar/src/main/java/tester/PBEUsage.java
./samples/testable-jar/src/main/java/tester/NewTestCase2.java
./samples/testable-jar/src/main/java/tester/VeryBusyClass.java
./samples/testable-jar/src/main/java/tester/SymCrypto.java
./samples/testable-jar/src/main/java/tester/NewTestCase1.java
./samples/testable-jar/src/main/java/tester/LiveVarsClass.java
./samples/testable-jar/src/main/java/tester/PassEncryptor.java}
command to be used with cryptoguard java -jar -s input.in
java -jar -s ./samples/testable-jar/src/main/java/tester/UrlFrameWorks.java ... ./samples/testable-jar/src/main/java/tester/PassEncryptor.java
NOTE: This can be used with any type of input/output marshalling
make help
or java -jar cryptoguard.jar -h
for argument help.make env
Copyright © 2020 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.
If you find this project useful, please cite our CCS\'19 CryptoGuard paper and the thesis supporting the latest enhancements from within this fork.
@phdthesis{frantz2020enhancing,
title={Enhancing CryptoGuard's Deployability for Continuous Software Security Scanning},
author={Frantz, Miles},
year={2020},
school={Virginia Tech}
}