O360 SAST for Visual Studio Code
Static application security testing in your editor. The extension sends the code you choose to your Offensive 360 server, shows the findings on the affected lines and explains how to fix each one.

What you need
- Visual Studio Code 1.75 or later on Windows, macOS or Linux
- The address of your Offensive 360 server (on-premises or hosted)
- An access token, created in the O360 dashboard under Settings > Token
Install
From the Marketplace: open the Extensions view (Ctrl+Shift+X), search for O360 SAST and select Install.
From a file (computers without Marketplace access): download the .vsix file from the releases page, open the Extensions view, select ... and then Install from VSIX....
Set up
- Open Settings (
Ctrl+,, on macOS Cmd+,) and search for O360.
- Endpoint: the address you open the O360 dashboard with, for example
https://sast.example.com.
- Access Token: paste the token from the dashboard.

Servers with an internal certificate
On-premises servers often use a certificate that is self-signed or issued by an internal certificate authority. If the extension reports that the certificate is not trusted, switch on O360: Allow Self Signed Certs, or ask your administrator to install the issuing certificate on your computer.

Run a scan
- Open your project folder in VS Code.
- Press
F1 and run O360 SAST: Scan Workspace. You can also right-click a file or a folder in the Explorer and select O360 SAST: Scan File or O360 SAST: Scan Folder.
- A notification shows the progress. The status bar shows O360 SAST: Scanning... until the result arrives.

When the scan has finished, a summary appears and the findings are listed in the Problems panel.

Review the findings
Security Findings view. The O360 SAST icon in the Activity Bar opens a tree of all findings, grouped by severity and file. Select a finding to open the file on the affected line.

In the code. Affected lines are underlined. Critical and High findings are shown as errors, Medium as warnings, Low as information. Hover over an underlined line for a summary.

Quick Fix menu. Place the cursor on a finding and press Ctrl+. (or select the light bulb).

| Action |
Result |
| Fix |
Opens the fix recommendation in a side panel |
| Explain |
Opens the description and impact of the finding |
| View References |
Opens the reference links (OWASP, CWE and others) |
| Suppress this finding |
Hides the finding in later scans |
| Mark as false positive |
Hides the finding and records the reason |
Detail panel. Three tabs: Vulnerability Details, How to Fix and References, together with the affected code.
What is scanned
- Code: C#, Java, JavaScript, TypeScript, Python, PHP, Go, Ruby, Kotlin, Swift, Objective-C, Dart, C and C++, Apex and more
- Dependencies: known vulnerabilities in third-party packages (on by default)
- Licences: open source licence risks (optional)
- Malware: optional
The extension sends a compressed copy of the selected file or folder to your own O360 server over the address you configured. Binary, media and package files are left out.
Settings
| Setting |
Default |
Description |
o360.endpoint |
empty |
Address of your O360 server |
o360.accessToken |
empty |
Access token from the dashboard |
o360.allowSelfSignedCerts |
false |
Accept a server certificate that this computer does not trust |
o360.autoScanOnSave |
false |
Scan a file each time it is saved |
o360.scanDependencies |
true |
Include the dependency scan |
o360.scanLicenses |
false |
Include the licence scan |
o360.scanMalware |
false |
Include the malware scan |
o360.showInlineDetails |
true |
Show the summary on hover |
Suppressed findings
Findings suppressed from the Quick Fix menu are stored in .SASTO360/sastIgnore in the workspace folder. Commit this file to share the suppressions with your team.
If something does not work
| Message |
What to do |
| The server certificate is not trusted |
Switch on O360: Allow Self Signed Certs, or install the issuing certificate on your computer |
| The access token has expired, or was refused |
Create a new token in the dashboard under Settings > Token and paste it into the settings |
| The server cannot be reached |
Check the Endpoint value: it is the address you open the dashboard with. Check VPN and proxy |
The Output panel has a channel named O360 SAST with the steps of each scan.
Support