Functions

Last updated: Oct 27, 2026


The VS Code extension of Fluid Attacks has these functions:

To use these functions, click the Fluid Attacks extension in the activity bar of VS Code. You can also click the repository files with a red dot in the explorer of VS Code. This page tells you how to use these functions. Custom Fix and Autofix have their own pages with more details.

See vulnerable file and code line

You can see the vulnerabilities that the Fluid Attacks platform reports directly in the IDE.

To start from the Fluid Attacks extension icon, follow these steps:

  1. Click the Fluid Attacks icon in the activity bar of VS Code. The extension shows a list of the vulnerability types in your code.

    See reported vulnerability types in the Fluid Attacks VS Code extension
  2. Click the vulnerability type that you want to examine. The extension shows all the affected files.

    See reported vulnerabilities in the Fluid Attacks VS Code extension
  3. Select a file. The line of code with the vulnerability has a red underline.

    See vulnerable line of code in the Fluid Attacks VS Code extension

To start from the explorer of VS Code, follow these steps:

  1. Open the project of the Git repository that Fluid Attacks tests. The files with vulnerabilities have red dots.

  2. Click a file to open it. You can also click the X icon to open the panel with the problems of all the files.

    See vulnerable files in the Fluid Attacks VS Code extension

    If you use the panel, click an item to open the file and see the vulnerable line of code.

    See a list of vulnerable files in the Fluid Attacks VS Code extension
  3. Find the vulnerable lines of code. They have a red underline.

Request reattacks

Reattacks are the retests where Fluid Attacks examines if your code fixes correct the vulnerabilities.

To request reattacks from the Fluid Attacks extension icon, follow these steps:

  1. Click the Fluid Attacks extension in the activity bar of VS Code.

  2. Click the name of the vulnerability type to expand it.

  3. Click a vulnerability. Some icons appear.

  4. Click the shield icon to request a reattack.

    Find reattack option in the Fluid Attacks VS Code extension
  5. Write a description of the fix that you applied.

  6. Press Enter. Wait for the notification that shows that you sent the request.

  7. If you want, refresh the view. If the underline of the vulnerability changes from red to blue, the Fluid Attacks platform received your request.

To start from the explorer of VS Code, follow these steps:

  1. Click the file to open it.

  2. Right-click the underlined code.

  3. Select the Request reattack option.

    Request a reattack from the Fluid Attacks VS Code extension
  4. Write a description of the fix that you applied.

  5. Press Enter. Wait for the notification that shows that you sent the request.

Go to Criteria and vulnerability on the platform

The VS Code extension of Fluid Attacks has external links to the Fluid Attacks database (DB). It also has links to the report of the vulnerability on the Fluid Attacks platform.

The primary subjects of the DB are the standards, requirements, and vulnerability types that set the results of security testing.

To open these external links from the Fluid Attacks extension icon, follow these steps:

  1. Click the extension in the activity bar of VS Code.
  2. Right-click the vulnerability type that you want to examine.
  3. Select Go to Criteria or Go to Finding.
Follow external links in the Fluid Attacks VS Code extension

To open the link to the DB from the explorer of VS Code, follow these steps:

  1. Click the file to open it.

  2. Right-click the vulnerable line.

  3. Select Go to criteria.

    Open vulnerability documentation from the Fluid Attacks VS Code extension

To open the link to the vulnerability on the Fluid Attacks platform from the explorer of VS Code, follow these steps:

  1. Click the file to open it.

  2. Hover over the vulnerable line. A pop-up window shows the definition and the external link.

    Open link to the platform from the Fluid Attacks VS Code extension
  3. Click the link to the vulnerability URL on the Fluid Attacks platform.

View vulnerability description

Fluid Attacks has full documentation about its classification of vulnerabilities.

To see the description of a vulnerability type (also known as a weakness) from the Fluid Attacks extension icon, follow these steps:

  1. Click the Fluid Attacks extension in the activity bar of VS Code.

  2. Right-click the vulnerability type that you want to examine.

  3. Select See Finding description. The editor view splits and shows the related documentation of Fluid Attacks in VS Code. This documentation includes the attack vector, threat, severity score, and average remediation time.

    See vulnerability description from the Fluid Attacks VS Code extension

To see the vulnerability description from the explorer of VS Code, follow these steps:

  1. Click the file to open it.

  2. Right-click the vulnerable line.

  3. Select See Finding description.

    See vulnerable line description from the Fluid Attacks VS Code extension

    The editor shows the vulnerability description and other details on the right side.

    View finding description in the Fluid Attacks VS Code extension

Use AI-generated fix options

The VS Code extension of Fluid Attacks uses artificial intelligence to generate fix suggestions. You can use two functions:

  • Custom Fix: Generates step-by-step guides about how to fix your code.
  • Autofix: Generates a suggested pull request with the fixed code automatically. Be careful with this function, because its suggestions change your codebase.

See dependency update options

The VS Code extension can show update options for vulnerable dependencies that software composition analysis (SCA) detects. To see them, hover over the vulnerability and click the wrench icon. To learn what the update options mean, read Update dependencies.

Get dependency update options on the Fluid Attacks VS Code extension

SCA Remediation

For SCA vulnerabilities, the extension has an SCA Remediation panel that shows the available fix versions for the vulnerable dependency. To open it, follow these steps:

  1. Click the Fluid Attacks extension in the activity bar of VS Code.
  2. Expand the vulnerability type that you want to examine.
  3. Click a vulnerable file to select it.
  4. Click the Get Custom Fix icon. As an alternative, right-click the file. Then, select Get Custom Fix.

The SCA Remediation panel opens and shows this information:

  • The currently installed version of the vulnerable dependency
  • A maximum of three fix options. Each option shows the target version, the number of vulnerabilities that it resolves for each severity level (Critical, High, Medium, Low), and the estimated update impact:
    • Safe Update: Updates to the nearest secure version, with a low risk of breaking changes
    • Complete Fix: Updates to the latest secure version, which resolves all the known vulnerabilities in that dependency
    • Minimum Fix: Applies the smallest version change that resolves the vulnerability

Apply SCA Fix

The extension can apply the recommended dependency fix to your project files automatically. To apply it, follow these steps:

  1. Click the Fluid Attacks extension in the activity bar of VS Code.
  2. Expand the vulnerability type that you want to examine.
  3. Hover over an SCA vulnerability.
  4. Click the Apply SCA Fix icon.

As an alternative, follow these steps:

  1. Open the vulnerable dependency file in the editor.
  2. Put your cursor on the vulnerable line.
  3. Right-click the vulnerable line.
  4. Select Apply SCA Fix.

After you start the fix, the extension does these actions:

  • Uploads the related dependency files and applies the fix with git apply.
  • Updates the manifest files (for example, package.json or requirements.txt) with the new version.
  • Shows a warning if the automatic update of the lock files fails (for example, package-lock.json). The warning tells you to generate them again with your package manager (for example, npm install).
  • Shows a notification with the fix strategy, the target version, and a confidence level.
  • Shows a Retry option if it cannot apply the fix.

Refresh button

To make sure that the extension shows your actions, for example, reattack requests and treatment assignments, click the refresh button.

Refresh the Fluid Attacks VS Code extension

After the refresh, the vulnerability underlines show their status:

  • Blue: Reattack requested or on hold
  • Yellow: Accepted treatment applied ("Temporarily accepted" or "Indefinitely accepted")

On this page