Deploying a Java IAST agent
This topic explains how to create a Java IAST agent type on your web server.
Before you begin
The simplest and most effective way to use IAST is to deploy it as a
WAR
file servlet on your web server. When this is not possible, for example when running IAST on
a Quarkus framework, the IAST agent can be installed as a Java agent using a
JAR file.Support:
Only web application servers
running JRE/JDK 1.8 or higher are supported.
- If the server where IAST is running is behind a proxy:
- For a transparent proxy, use any one of the following Java properties when
running the server:
- Standard Java
properties:
-Dhttps.proxyHost={proxy_ip} -Dhttps.proxyPort={proxy_port} - Custom Java
properties:
-DIast.proxyHost={proxy_ip} -DIast.proxyPort={proxy_port} - Environment
variables:
IAST_PROXY_HOST={proxy_ip} IAST_PROXY_PORT={proxy_port}
- Standard Java
properties:
- If a certificate is needed to communicate externally (for example, to pass a
transparent proxy), supply a valid certificate and run the following command to
import it to the keystore:Note:If you have installed JRE with default settings, the keystore name is
cacertsand it is protected by the passwordchangeit. Otherwise, replace the-storepass,-keystore, and-filevalues with your own.keytool.exe -import -storepass "changeit" -keystore "C:\Program Files (x86)\Java\jre1.8.0_144\lib\security\cacerts" -alias certificate.cer -file "C:\certificate.cer" -noprompt
- For a transparent proxy, use any one of the following Java properties when
running the server:
- For IAST agent versions prior to 1.14.2, if both the compile-time and the runtime
Java versions are 9 or higher, add the following flag to the java run
command:
–Djava.lang.invoke.stringConcat=BC_SB
Procedure
Running a Java agent with security manager
About this task
You can run the Java agent with security manager:
- As a war file on Tomcat or
- As a jar file on servers other than Tomcat. Contact the AppScan support team for guidance.
To run the Java agent with security manager as war on Tomcat: