> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/sast-and-sca/prezero/ai-sast.md).

# AI SAST

AI SAST builds on traditional static analysis by validating exploitability, adding contextual insights, and surfacing advanced issues such as IDOR.

## Why AI SAST is important <a href="#why-ai-sast-is-important" id="why-ai-sast-is-important"></a>

Traditional SAST produces high volumes of findings that require manual triage, and severity alone does not reflect whether a finding is actually exploitable in your application. Qwiet AI by Harness already reduces noise through Code Property Graph (CPG) analysis and data flow modeling. AI SAST adds a reasoning layer on top of these deterministic SAST results to classify exploitability, provide contextual explanations, and detect IDOR findings.

### Confidence Labeling <a href="#confidence-labeling" id="confidence-labeling"></a>

AI Confidence labels add an additional layer of intelligence to SAST findings by classifying each as **Confirmed Risk**, **Potential Risk**, or **Contextually Safe**, along with a short summary explaining the assessment. This helps you prioritize triage and quickly focus on the issues that matter most.

| Label                 | Description                                                                     |
| --------------------- | ------------------------------------------------------------------------------- |
| **Confirmed Risk**    | AI has validated that the vulnerability is exploitable based on code analysis   |
| **Potential Risk**    | The finding may be exploitable but requires additional context or manual review |
| **Contextually Safe** | AI has identified security controls that mitigate the risk                      |

To view confidence labels, open an application and go to the **Findings** tab. Labels appear in the findings list. You can also filter by **AI Confidence** to show only **Confirmed Risk**, **Potential Risk**, or **Contextually Safe** findings.

![AI Confidence labels in findings list](/files/yqPYR47eKty0uoEdWEJA)

### Contextual Explanation <a href="#contextual-explanation" id="contextual-explanation"></a>

Developers need to understand vulnerabilities quickly, but raw SAST output such as data flow paths can be hard to interpret. Open a finding and go to the **Description** tab. The **AI Analysis** section provides a plain language summary of how the vulnerability occurs in your code.

![AI Analysis section on the Description tab](/files/BHNpGgJSoPD7paNp3ziy)

### Confidence Reasoning <a href="#confidence-reasoning" id="confidence-reasoning"></a>

A confidence label on the findings list shows the outcome of AI validation. For more detail, open a finding and select the **AI Confidence Reasoning** tab. There you will see the **confidence score** (shown as a percentage), plus reasoning and an attack scenario:

* **Confidence score** - The percentage showing how certain the system is about the associated risk label. For example, 95% on a **Contextually Safe** label means the system is 95% sure that label is correct.
* **Reasoning** - Detailed explanation of why the finding received its assessment, including data flow analysis and missing protections where applicable
* **Attack scenario** - Step by step description of how an attacker could exploit the vulnerability

![AI Confidence Reasoning tab showing score, reasoning, and attack scenario](/files/GGk215A9fuurz58zObgO)

### IDOR Vulnerability Detection <a href="#idor-vulnerability-detection" id="idor-vulnerability-detection"></a>

Traditional SAST often misses **Insecure Direct Object Reference (IDOR)** findings because they require understanding authorization logic in your application, which rule based engines cannot capture. AI SAST builds on CPG based analysis to surface IDOR findings when **AI Findings** is enabled, alongside your other SAST results.

To view IDOR findings, open an application and go to the **Findings** tab. In the filter panel, select **Insecure Direct Object Reference** from the **Category** dropdown.

![IDOR filter under Category on the Findings tab](/files/o4YvUhRlUDVhUqRXLUsP)

## Configuring AI SAST <a href="#configuring-ai-sast" id="configuring-ai-sast"></a>

![](/files/mlZo7QhbBaWAQlpvEVi9)note

AI SAST is currently behind a feature flag. Contact your account team or the [Qwiet AI by Harness Customer Support Team](mailto:support@qwiet.ai) to enable this feature for your organization.

AI SAST capabilities are not enabled by default. Enable them manually in the **AI Features** section on the **Settings** tab at the organization or application level.

The **AI Features** section includes the following toggles:

* **AI Autofix** - Generates AI powered code fix suggestions for vulnerability findings. See [AutoFix](/sast-and-sca/prezero/autofix.md) for details. This is separate from AI SAST analysis below.
* **AI Findings** - Surfaces findings discovered by machine learning models, including IDOR
* **AI Confidence & Analysis** - Enables AI confidence labels, the **AI Confidence Reasoning** tab, and **AI Analysis** on the **Description** tab

### Organization level <a href="#organization-level" id="organization-level"></a>

1. Log in to the [Qwiet AI by Harness dashboard](https://app.shiftleft.io/login).
2. Open your organization and click the **Settings** tab.
3. In the **AI Features** section, enable or disable **AI Autofix**, **AI Findings**, and **AI Confidence & Analysis** as needed.

Organization level settings apply to all applications unless overridden at the application level.

### Application level <a href="#application-level" id="application-level"></a>

To override the organization setting for a specific application:

1. Open the application and click the **Settings** tab.
2. In the **AI Features** section, set **AI Autofix**, **AI Findings**, and **AI Confidence & Analysis** to **Inherit**, **Enable**, or **Disable** for each toggle.

* **Inherit** - Uses the organization level setting
* **Enable** - Enables the feature for this application only
* **Disable** - Disables the feature for this application only

![AI SAST configuration settings](/files/fCnPOj3sDktEDxccCwZg)

## Viewing your results <a href="#viewing-your-results" id="viewing-your-results"></a>

AI SAST findings appear in the Findings list alongside traditional SAST findings.

To access your results:

1. Log in to the [Qwiet AI by Harness dashboard](https://app.shiftleft.io/login)
2. In the list of Applications, find the one you're interested in and click to open.
3. Click the **Findings** tab to display a list of the issues identified.

![](/files/mlZo7QhbBaWAQlpvEVi9)note

AI confidence labels, AI analysis, and IDOR findings appear only on subsequent scans after you enable **AI Confidence & Analysis** and **AI Findings**, respectively. Run a new scan to view them; earlier scan results are not updated.

### Filtering AI findings <a href="#filtering-ai-findings" id="filtering-ai-findings"></a>

You can filter findings by:

* **AI Findings** - Show all findings or only AI powered findings
* **AI Confidence** - Filter by Confirmed Risk, Potential Risk, or Contextually Safe

![AI SAST findings filters](/files/1HQaSmYdRxw72Qk4L2DE)

## Providing Feedback <a href="#providing-feedback" id="providing-feedback"></a>

You can mark AI assessments as correct or incorrect to help improve accuracy over time.

### How to submit feedback <a href="#how-to-submit-feedback" id="how-to-submit-feedback"></a>

1. Open a finding with an AI assessment
2. Review the AI confidence label and reasoning
3. Click the feedback icon to indicate whether the assessment is accurate

Your feedback is logged and used to refine AI precision for future scans.
