Setting up the Static Analyzer Command Line Utility
For static analysis, download a small Command Line Utility. When you extract the utility to your local disk, you can use its command line interface (CLI) to perform security analysis.
About this task
- When the IRX file is generated for compiled languages, application byte code files are converted into an Intermediate Representation of the code.
- When an IRX file is generated for scripting languages, source files are included in the encrypted IRX file.
- When you use the Visual Studio plug-in, IRX file generation and upload happens automatically from the IDE.
Procedure
What to do next
If you are running the Command Line Utility on a computer that is behind a proxy, use one of these methods for specifying the proxy so that the Command Line Utility can connect to the cloud:
- Command Line Utility CLI and supported integrated development
environments (IDE): Set this global or system environment variable so that the
proxy is automatically recognized:
- Windows:
APPSCAN_OPTS=-Dhttps.proxyHost=<proxy> -Dhttps.proxyPort=<port> - Linux and macOS:
APPSCAN_OPTS="-Dhttps.proxyHost=<proxy> -Dhttps.proxyPort=<port>"
Where
<proxy>is the host name of the proxy server and<port>is the port number that the proxy server is using.Or, each time that you use the CLI or IDE (launched from a command prompt or terminal), you can set the Command Line Utility to use the proxy by issuing a command:
- Windows™:
set "APPSCAN_OPTS=-Dhttps.proxyHost=<proxy> -Dhttps.proxyPort=<port>" - Linux™ and macOS:
export APPSCAN_OPTS="-Dhttps.proxyHost=<proxy> -Dhttps.proxyPort=<port>"
- Windows:
- Maven: If you added the static
analysis plug-in to Maven, you can add the property to the
MAVEN_OPTSenvironment variable globally or you can add the property to each command.
- Static Analyzer Command Line Utility updates are available on
a regular basis and details listed in
Recent
updates. Updates may include:
- New language support
- Updated language support (new files types associated with supported languages, for example)
- New features
- Fixes
- Plugins automatically download the latest Static Analyzer Command Line Utility when they run.
- If you try to prepare code for scanning using an outdated version of the Static Analyzer Command Line Utility, you may see a message directing you to update the utility to the latest version. Upgrade to the latest Static Analyzer Command Line Utility based on your operating system (Windows, Linux, Mac).
- If you are using AppScan Go!, accept and install the latest update if an update is offered.