Support
Shark for Java

Deploying Invicti Shark for JAVA – Windows/Linux (JBOSS 7.4 Standalone + WAR File)

This document is for:
Invicti Enterprise On-Demand, Invicti Enterprise On-Premises

This guide explains how you can run a Java application in JBOSS and then use Invicti Shark to run an interactive application security testing (IAST) scan for that application.

Step 1: Prepare Invicti Shark for Java

In this example, the test application is deployed to the following URL: http://127.0.0.1:8080/axexample-java/ (in a production environment, you will need to change this to the hostname you will use for your deployment).

  1. Create a new target for your URL.
  2. Download Invicti Shark for Java from the Invicti UI and retain the Shark (IAST and SCA).jar file for the next step. (In our example, Shark (IAST and SCA).jar is saved to C:\Shark\). Change the paths accordingly if you are using the Java IAST Sensor on Linux.

Step 2: Deploy Invicti Shark and the required components

Windows:

  • Edit the contents of the %JBOSS_HOME%\bin\standalone.conf.bat file and add the following to the bottom of the file:

rem *** Shark settings

set "JAVA_OPTS=%JAVA_OPTS% -Dacusensor.debug.log=ON"

set "MODULE_OPTS=-javaagent:C:\Shark\Shark (IAST and SCA).jar

Linux:

  • Edit the contents of the %JBOSS_HOME%/bin/standalone.conf file and add the following to the bottom of the file:

# *** Shark settings

JAVA_OPTS="$JAVA_OPTS -Dacusensor.debug.log=ON"

MODULE_OPTS="-javaagent:/shark/Shark (IAST and SCA).jar"

Step 3: Deploy your application and start your JBOSS server

  1. Ensure that your web application is deployed.
  2. From the command line, navigate to your %JBOSS_HOME%\bin folder, and launch JBOSS.

Step 4: Test and scan your web application

  1. Point your browser to your web application to confirm it is running as intended.
  2. Run a scan on your URL. The scan summary will confirm that Invicti Shark was detected and used for the scan.

Invicti Help Center

Our Support team is ready to provide you with technical help.

Go to Help Center This will redirect you to the ticketing system.