English | Japanese
SILRTool is a tool to help users who use Contrast.
It is necessary to add a layer and environment variables to the target function when performing serverless IAST analysis. This tool will help you do that.
- Windows8.1, 10, 11
- macOS 11(Big Sur) or higher
- jre1.8
There are several binaries on Release page. You can use SILRTool without build process.
- SILRTool_X.X.X.zip
If you are downloading for the first time, please download this binary.
As jre folder(1.8.0_202) is included, you can useSILRToolwithout installing JRE. - SILRTool_X.X.X.exe
If you have already downloaded the zip, you can update SILRTool just by replacing the exe file.
- SILRTool_X.X.X.cli7z
Unzip this file with the command below.# Installing p7zip brew install p7zip # Unzip command 7z x SILRTool_X.X.X.cli7z
Please create a AWS profile(following files) by aws configure or by hand.
- ~/.aws/config
specify region and format. - ~/.aws/credentials
Authentication info(token, secretkey)
Installing the AWS Cli is not required. If there is the above profile, it will work.
- Set the Region, Layer Arn and Environment in
Generalpreference page.
- Execute Load Function
- Check the target function
- Execute Add Layer or Rmv Layer
Modify the following line of build.gradle according to your environment.
compile group: 'org.eclipse.swt', name: 'org.eclipse.swt.win32.win32.x86_64', version: '4.3'
//compile group: 'org.eclipse.swt', name: 'org.eclipse.swt.win32.win32.x86', version: '4.3'
//compile group: 'org.eclipse.platform', name: 'org.eclipse.swt.cocoa.macosx.x86_64', version: '3.109.0', transitive: false//compile group: 'org.eclipse.swt', name: 'org.eclipse.swt.win32.win32.x86_64', version: '4.3'
compile group: 'org.eclipse.swt', name: 'org.eclipse.swt.win32.win32.x86', version: '4.3'
//compile group: 'org.eclipse.platform', name: 'org.eclipse.swt.cocoa.macosx.x86_64', version: '3.109.0', transitive: false//compile group: 'org.eclipse.swt', name: 'org.eclipse.swt.win32.win32.x86_64', version: '4.3'
//compile group: 'org.eclipse.swt', name: 'org.eclipse.swt.win32.win32.x86', version: '4.3'
compile group: 'org.eclipse.platform', name: 'org.eclipse.swt.cocoa.macosx.x86_64', version: '3.109.0', transitive: falsegradlew clean jar./gradlew clean jarjar file will be created under build\libs.
gradlew cleanEclipse eclipse./gradlew cleanEclipse eclipseRefresh your project in Eclipse. Clean and Build if necessary.
Specify com.contrastsecurity.csvdltool.Main class and execute Java. SILRTool will launch.
- Using launch4j.
- We prepare ready-to-use configuration file for launch4j.
- Correct the path according to your environment.
- Setting to bundle a jre folder to exe file is already enabled.
- Using javapackager.
- If bundle jre, place the jre folder anywhere on the file system.
- If needed, correct lines 3 to 7 in jarpackage.sh.
- run
jarpackage.sh.app folder will be created under./jarpackage.sh
build\libs/bundle.
First of all, get the certificate file(pfx) and the certificate password.
- Check arias
keytool -list -v -storetype pkcs12 -keystore C:\Users\turbou\Desktop\SILRTool_work\XXXXX.pfx # Enter a certificate password.
- Sign
Using sign4j in launch4j.cd C:\Program Files (x86)\launch4j\sign4j sign4j.exe java -jar jsign-2.0.jar --alias 1 --keystore C:\Users\turbou\Desktop\SILRTool_work\XXXXX.pfx --storepass [] C:\Users\turbou\Desktop\SILRTool_work\common\SILRTool_1.0.1.exe
- Confirm Digital Signatures
You can confirm the signature in the properties of the exe file.
- Install certifiate to your PC.
Double-click the pfx file to install into KeychainAccess. At that time, certificate password is needed.
After installation, copy theCommon Name. - Sign
Using codesign.codesign --deep -s "Contrast Security, Inc." -v SILRTool_1.0.1.app - Confirm Digital Signatures
codesign -d --verbose=4 SILRTool_1.0.1.app
- Windows
Using 7-Zip. - macOS
# Installing p7zip brew install p7zip # Compress 7z a SILRTool_1.0.1.cli7z SILRTool_1.0.1.app/