The PT Application Inspector plugin finds vulnerabilities and undocumented features in application source code. In addition to code analysis, built-in modules detect errors in configuration files and vulnerabilities in third-party components and libraries used in application development. The plugin supports the following languages: C#, Go, Java, JavaScript, Kotlin, PHP, Python, Ruby, SQL, Solidity, TypeScript, Scala, C/C++, Objective-C, and Swift.
Note. Scanning of C/C++ and Objective-C projects is not currently supported in macOS.
You can enable or disable the plugin in an open project by clicking the icon in the bottom right toolbar. If it is not the first time you are opening the project, the plugin is enabled automatically (scan and action history is saved). You can also set up the plugin to be automatically enabled when a new project is opened.
When the plugin is enabled, the .ai folder is created in the project. This folder contains a database, log files, and a configuration file. For Git to ignore the .ai folder, create an empty file .gitignore in the project folder.
For the plugin to operate correctly, the PT Application Inspector code analyzer is required. You can install it automatically by clicking Download Analyzer in the pop-up notification in the IntelliJ IDEA interface or manually by downloading it from the link in the instructions below.
To manually install the code analyzer:
Download the archive with the analyzer using one of the links:
In macOS, run the following command to remove the com.apple.quarantine attribute:
xattr -d com.apple.quarantine <analyzer_file_path.pkg>Then run the installation file and follow the instructions.
In Windows and Linux, unpack the archive to one of the following locations:
In Windows: %LOCALAPPDATA%\Application Inspector Analyzer
In Linux: ~/application-inspector-analyzer

To stop scanning a project, click Stop Scan in the PT Application Inspector panel or close the scan progress bar in the bottom toolbar.

Some vulnerabilities have additional exploitation conditions displayed on the Additional Conditions tab.
When you scroll through the sections of the diagram, the vulnerability information is automatically pinned until you move on to another vulnerability. If you want to view the information about a certain vulnerability while working on the code, you can pin this vulnerability manually.
Several vulnerabilities can have the same exit point. If these vulnerabilities belong to the same type, they are grouped together and displayed as one problem with different exploitation options. You can view detailed information about such vulnerabilities in the [PT AI] Vulnerability Details panel.
Note. If you confirm one vulnerability from the group, the whole problem will be confirmed automatically. To discard an entire problem, you must discard all the vulnerabilities in the group.
The PT Application Inspector plugin contains a set of tools for managing detected vulnerabilities. With these tools, you can do the following:
You can start the assistant from the pop-up notification that appears when the scan is completed or by clicking the Assistant button and choose to go through the whole scenario or only certain steps.

How to get a recommendation:
Select a vulnerability on the Detected vulnerabilities tab or by clicking Suggest fix in the code editor context menu.
Go to the How to Fix tab.
Click Create.
You can apply the suggested fix or generate an alternative option.

The PT Application Inspector plugin can be integrated with PT AI Enterprise Edition. The integration allows all team members to work with the source code from different environments, which makes the development process more secure.
To configure the integration:
In the main menu of IntelliJ IDEA, click Tools → PT Application Inspector → Connect to PT AI Server.
Specify the PT AI Enterprise Server address and click Connect. 
Send a local project for scanning to PT AI Enterprise Server with or without saving the results on the server. 
For more information about the integration, see the PT AI Enterprise Edition User Guide.
To configure the plugin settings, select File → Settings → Tools → PT Application Inspector.
The plugin configuration page contains the following sections of settings.
General section:
Server settings section:
Assistant section:
ai.languageModels.user roleFor the correct operation of the PT Application Inspector plugin, the following technical requirements must be met:
Supported 64-bit OS:
Supported macOS:
If you have any questions about the plugin, follow the links in the Help & Feedback section on the plugin configuration page to get the necessary information, join our community, or report an issue.
By default, the PT Application Inspector plugin collects anonymous usage data and sends it to our experts so that they can better understand how to improve the product. We do not share the collected information with third parties. We do not collect source code or IP addresses. To stop the data collection, disable the Allow telemetry collection setting.