Skip to content

Update content and logo for vsode(AST-98735) #1164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
176 changes: 124 additions & 52 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img src="media/checkmarx_logo.png">
<img src="https://raw.githubusercontent.com/Checkmarx/ci-cd-integrations/main/.images/PluginBanner.jpg">
<br />
<div align="center">

Expand All @@ -13,6 +13,9 @@

<br />
<p align="center">
<a href="https://github.com/Checkmarx/ast-vscode-extension">
<img src="https://raw.githubusercontent.com/Checkmarx/ci-cd-integrations/main/.images/cx_x_icon.png" alt="Logo" width="80" height="80" />
</a>
<h3 align="center">VS Code Extension</h3>
<p align="center">
<a href="https://checkmarx.com/resource/documents/en/34965-68742-checkmarx-one-vs-code-extension--plugin-.html"><strong>Explore the docs »</strong></a>
Expand All @@ -25,73 +28,138 @@
<summary>Table of Contents</summary>
<ol>
<li><a href="#overview">Overview</a></li>
<li><a href="#key-features">Key Features</a></li>
<li><a href="#how-to-videos">How To Videos</a></li>
<li><a href="#prerequisites">Prerequisites</a></li>
<li><a href="#checkmarx-one-results">Checkmarx One Results</a></li>
<li><a href="#kics-realtime-scanner">KICS Realtime Scanner</a></li>
<li><a href="#checkmarx-sca-realtime-scanner">Checkmarx SCA Realtime Scanner</a></li>
<li><a href="#initial-setup">Initial Setup</a></li>
<li><a href="#contributing">Documentation</a></li>
<li><a href="#contributing">Contributing</a></li>
<li><a href="#license">License</a></li>
<li><a href="#feedback">Feedback</a></li>
<li><a href="#contact">Contact</a></li>
</ol>
</details>

## Overview

Checkmarx continues to spearhead the shift-left approach to AppSec by bringing our powerful AppSec tools into your IDE. This empowers developers to identify vulnerabilities and remediate them **as they code**.
The Checkmarx Visual Studio Code extension integrates seamlessly into your IDE, identifying vulnerabilities in your proprietary code, open source dependencies, and IaC files. The extension offers actionable remediation insights in real-time.
Checkmarx continues to spearhead the shift-left approach to AppSec by bringing our powerful AppSec tools into your IDE. This empowers developers to identify vulnerabilities and remediate them **as they code**. The Checkmarx Visual Studio Code plugin integrates seamlessly into your IDE, identifying vulnerabilities in your proprietary code, open source dependencies, and IaC files. The plugin offers actionable remediation insights in real-time.

- **Checkmarx One** allows developers to access the full functionality of their Checkmarx One account directly from their IDE, eliminating the need for developers to use the CxOne platform. With this integration, you can initiate new scans, review scan results, and receive guided remediation advice. Checkmarx offers comprehensive details about each vulnerability, including remediation recommendations, examples of effective fixes, and AI-generated code suggestions. The extension also lets you quickly navigate from a vulnerability to the associated source code, making it easier to identify and address problematic areas.

This tool requires authentication, using credentials from your Checkmarx One account.
The Checkmarx Visual Studio Code extension contains three separate tools:

- Checkmarx One Results

- KICS Realtime Scanner

- Checkmarx SCA Realtime Scanner

> The plugin is available on [marketplace](https://marketplace.visualstudio.com/items?itemName=checkmarx.ast-results). In addition, the code can be accessed [here](https://github.com/CheckmarxDev/ast-vscode-extension).

## Checkmarx One Results

This tool enables Checkmarx One users to access the full functionality of your Checkmarx One account directly from your IDE. You can run new scans or import results from scans run in your Checkmarx One account. Checkmarx provides detailed info about each vulnerability, including remediation recommendations and examples of effective remediation.

The extension enables you to navigate from a vulnerability to the relevant source code, so that you can easily zero-in on the problematic code and start working on remediation. This tool requires authentication, using credentials from your Checkmarx One account.


**GIF - Running a Scan from the IDE**
![Running a Scan from the IDE](https://raw.githubusercontent.com/Checkmarx/ci-cd-integrations/main/.images/vscode_running_scan.gif "Running a Scan from the IDE")

**GIF - Loading and Viewing Results**
![Loading and Viewing Results](https://raw.githubusercontent.com/Checkmarx/ci-cd-integrations/main/.images/vscode_running_scan.gif "Loading and Viewing Results")

### Key Features

- **Remediation Advice**
- Receive actionable results with remediation recommendations. Easily navigate from the results to the vulnerable code within the editor, allowing you to begin remediation immediately.
- Access one-click Auto Remediation options for open-source risks.
- Utilize the AI Security Champion feature for code remediation suggestions.
- **Pre-commit Scans**
- Run a new scan directly from your IDE before committing your code, or import scan results from your Checkmarx One account.
- **Checkmarx Static Analysis Security Auto Scanning**
- Perform local scans every few seconds on supported language files.
- Instantly scan code generated by Copilot.
- Hover over lines of code to view remediation advice and apply Quick Fixes.
- **Local SCA Scanning**
- Perform local scans looking for Open Source packages with known vulnerabilities
- **Checkmarx IAC Security Auto Scanning**
- A free tool that requires no Checkmarx account.
- Scans your code automatically, running in the background whenever you open or save an IaC file.
- Offers one-click Auto Remediation options.
- **Triage results**
- Adjust the severity, update the state, and add comments directly from the VS Code extension.

## How To Videos
- **Installation**
![](https://raw.githubusercontent.com/Checkmarx/ci-cd-integrations/main/.images/vscode_installation_and_initial_setup.gif)

- **Running a Scan**
![](https://raw.githubusercontent.com/Checkmarx/ci-cd-integrations/main/.images/vscode_running_scan.gif)

- **IAC Security Auto Remediation**
![](https://raw.githubusercontent.com/Checkmarx/ci-cd-integrations/main/.images/vscode_kics_auto_remediation.gif)

## Prerequisites
- **IAC Security Auto Scanning:**
You must have Docker installed and running in your environment

- **For Checkmarx One:**
You need to have a Checkmarx One account and be able to generate an API key for your account. To create an API key, see [Generating an API Key](https://checkmarx.com/resource/documents/en/34965-118315-authentication-for-checkmarx-one-cli.html#UUID-a4e31a96-1f36-6293-e95a-97b4b9189060_UUID-1e7abdfa-77eb-2a6c-f12a-c812a1e1dcf7).
- Access the full power of Checkmarx One (SAST, SCA, IaC Security and Secret Detection) directly from your IDE.

- Run a new scan from your IDE even before committing the code, or import scan results from your Checkmarx One account.

- Rescan an existing branch from your IDE or create a new branch in Checkmarx One for the local branch in your workspace.

- Provides actionable results including remediation recommendations. Navigate from results panel directly to the highlighted vulnerable code in the editor and get right down to work on the remediation.

- View info about how to remediate SAST vulnerabilities, including code samples

- Group and filter results

- Triage results - edit the result predicate (severity, state and comments) directly from the Visual Studio Code console

- Links to Codebashing lessons

- Apply Auto Remediation to automatically remediate open source vulnerabilities, by updating to a non-vulnerable package version.

- "AI Guided Remediation" harnesses the power of AI to help you to understand the vulnerabilities in your code, and resolve them quickly and easily.

- AI Secure Coding Assistant (ASCA) - A lightweight scan engine that runs in the background while you work, enabling developers to identify and remediate secure coding best practice violations as they code.

### Prerequisites
- An installation of VS Code version 1.63.0 or above

- You have an **API Key** for your Checkmarx One account. To create an API key, see [Generating an API Key](https://checkmarx.com/resource/documents/en/34965-68618-generating-an-api-key.html).
> In order to use this integration for running an end-to-end flow of scanning a project and viewing results, the API Key must have at a minimum the out-of-the-box composite role `ast-scanner` as well as the IAM role `default-roles`.

- "git" is installed on your local machine. For installation instructions, see [here](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).

- In order to use **AI Generated Remediation**, you need to have an API Key for your GPT account.

## KICS Realtime Scanner

This tool initiates KICS scans directly from their VS Code console. The scan runs automatically whenever an infrastructure file of a [supported type](https://docs.kics.io/latest/platforms/) is saved, either manually or by auto-save. The scan runs only on the file that is open in the editor. The results are shown in the VS Code console, making it easy to remediate the vulnerabilities that are detected. This is a **free tool** provided by Checkmarx for all VS Code users, and does not require the user to submit credentials for a Checkmarx One account.

**GIF - Automatic Remediation for KICS Vulnerabilities**
![Automatic Remediation for KICS Vulnerabilities](https://raw.githubusercontent.com/Checkmarx/ci-cd-integrations/main/.images/vscode_kics_auto_remediation.gif)

### Key Features

- Free tool, no Checkmarx account required

- Run scans directly from your IDE

- Scans are triggered automatically whenever a file is saved

- Apply Auto Remediation to automatically fix IaC vulnerabilities

- AI Guided Remediation”harnesses the power of AI to help you to understand the vulnerabilities in your code, and resolve them quickly and easily.

### Prerequisites

- You must have a supported container engine (e.g., Docker, Podman etc.) installed and running in your environment.

- In order to use **AI Generated Remediation**, you need to have an API Key for your GPT account.

## Checkmarx SCA Realtime Scanner

This tool enables VS Code users to initiate SCA scans directly from their VS Code console, and shows detailed results as soon as the scan is completed. The scan identifies the open-source dependencies used in your code and indicates the security risks associated with those packages. The identified packages are shown in a tree structure with an indication of the risk level for each package. You can drill down to show the specific vulnerabilities associated with a package. This is a **free tool** provided by Checkmarx for all VS Code users, and does not require the user to submit credentials for a Checkmarx One account.

### Key Features

- Free tool, no Checkmarx account required

- Run scans directly from your IDE

- View actionable results in your IDE, indicating which of your open-source packages are at risk

- Provides links to detailed info about the vulnerabilities on the Checkmarx Developer Hub

### Prerequisites

- In order to get comprehensive results, you need to install all relevant package managers on your local environment, see [Installing Supported Package Managers](https://checkmarx.com/resource/documents/en/34965-19198-installing-supported-package-managers-for-resolver.html).

## Initial Setup
- For **IAC Security Auto Scanning**, no configuration is needed, just install the extension, and start getting results!
- For **Checkmarx One**, you need to configure your account info. See documentation [here](https://checkmarx.com/resource/documents/en/34965-123549-installing-and-setting-up-the-checkmarx-vs-code-extension.html).
1. Verify that all prerequisites are in place.

## Documentation
- [Installation](https://docs.checkmarx.com/en/34965-123549-installing-and-setting-up-the-checkmarx-vs-code-extension.html)
- [Reviewing Results](https://checkmarx.com/resource/documents/en/34965-68743-visual-studio-code---checkmarx-one--ast--results.html)
- [IAC Security Auto Scanning](https://docs.checkmarx.com/en/34965-68744-using-the-checkmarx-vs-code-extension---kics-auto-scanning.html)
- [SCA Local Scanning](https://docs.checkmarx.com/en/34965-152266-using-the-vs-code-checkmarx-extension---sca-realtime-scanning.html)
2. Install the extension from Marketplace.

3. Configure the extension settings as follows:
- For **KICS Realtime Scanner** and **SCA Realtime Scanner** - no
configuration needed.
- For SCA Realtime Scanning, if your environment doesn't have access to the internet, then you will need to configure a proxy server in the Settings, under **Checkmarx One: Additional Params**.

- For **Checkmarx One Results** - use your Checkmarx One API Key to integrate with your Checkmarx One account, as described [here](https://checkmarx.com/resource/documents/en/34965-123549-installing-and-setting-up-the-checkmarx-vs-code-extension.html#UUID-b74024dd-5f0e-cac7-668c-94049b9d8566_id_VisualStudioCode-ASTResults-SettinguptheExtension).

- If you would like to use **AI Guided Remediation**, use your GPT API Key to integrate with your GPT account, as described [here](https://checkmarx.com/resource/documents/en/34965-123549-installing-and-setting-up-the-checkmarx-vs-code-extension.html#UUID-b74024dd-5f0e-cac7-668c-94049b9d8566_section-idm4543400890995233753488463936).


**GIF - Installing and Setting up the Extension**
![Installing and Setting up the Extension](https://raw.githubusercontent.com/Checkmarx/ci-cd-integrations/main/.images/vscode_installation_and_initial_setup.gif "Installing and Setting up the Extension")

## Contributing

Expand All @@ -105,6 +173,10 @@ We appreciate feedback and contribution to the VsCode extension! Before you get

Distributed under the [Apache 2.0](LICENSE). See `LICENSE` for more information.

<!-- FEEDBACK -->
## Feedback
We’d love to hear your feedback! If you come across a bug or have a feature request, please let us know by submitting an issue in [GitHub Issues](https://github.com/Checkmarx/ast-vscode-extension/issues).

<!-- CONTACT -->
## Contact

Expand Down
Binary file modified docs/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 12 additions & 15 deletions media/cx-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading