Spectra CodeSpectra Code is a Visual Studio Code extension that helps users identify and assess vulnerable dependencies in their projects and enabled VS Code extensions, directly within VS Code. It connects to the ReversingLabs APIs and scan supported manifest files from popular package ecosystems such as npm and PyPI. The analysis results are displayed inline and in the activity bar to provide clear visibility into risks across multiple SAFE Assessment categories, including malware, tampering, vulnerabilities, secrets, hardening, and licenses. Designed for software developers, Spectra Code provides detailed dependency analysis by identifying affected assessment categories and highlighting potential risks. This helps developers track third-party risks and maintain project security and compliance without leaving the editor. RequirementsTo start working with Spectra Code, you'll need the following:
Account and token tiersSpectra Code supports two account types, each with its own token type and API quota:
For details on rate limits and upgrading, see the API usage tiers guide. To get a token:
AuthenticationSpectra Code requires a user token to access the ReversingLabs APIs and retrieve analysis reports for your project dependencies. Running the extension for the first time prompts you to either create an account or enter your user token. If you use a Portal token, you'll also be asked for your Portal instance domain name (for example, Once entered, your token is validated: a success message shows the active token type, while a failure message indicates the token is invalid. Updating your tokenUse the Update User Token command whenever you need to:
If you want to remove access entirely rather than replace it with a new one (for example, before uninstalling the extension), use the Delete User Token command instead. This clears the stored token from VS Code completely. UsageWhen you first install Spectra Code, the walkthrough opens automatically, introducing the extension and guiding you through the first steps. You can reopen it any time via the Open walkthrough command in the Command Palette. Spectra Code works at the folder level, so make sure the folder containing the package you want to scan is added to your VS Code workspace. On startup or when opening a folder, Spectra Code scans all supported manifest files, fetches the relevant analysis data, and displays results in the activity bar and under the Problems tab. Each detected issue (warning or fail) is underlined in the manifest file. Saving changes to a manifest file triggers a new analysis. Hover over a problematic dependency version in its manifest file to view its Spectra Code assessment summary, package information, and a link to its report on the Community page. The hover window also provides the following options:
RL viewSpectra Code provides the RL view to navigate problematic dependencies in your projects, accessed via the RL icon at the bottom of the left-hand sidebar. It shows only files containing issues identified by Spectra Code. The RL view lists vulnerable dependencies by manifest file and SAFE Assessment category: Malware, Tampering, Vulnerabilities, Secrets, Hardening, and Licenses. An additional Unknown category covers packages that have no assessment available, typically because the package version has since been removed or unpublished from its source registry. For each manifest file, the RL view shows a summary of how many assessment categories are failing. Selecting a dependency opens its manifest file and positions the cursor on that dependency. To reduce noise in larger projects, specific risk categories (Vulnerabilities, Hardening, Secrets, Licenses) can be disabled in CommandsTo run Spectra Code commands, open the Command Palette (
Privacy notesYour Spectra Code token is encrypted and stored securely in VS Code, so you only need to enter it once. It is never shared with other extensions. Whether you use a Community Free or Portal Enterprise token, it is displayed only once in the Community or Portal UI when generated. Copy and store it somewhere safe, as it cannot be viewed again afterward. Your token is used only for:
Analysis data is refreshed hourly while VS Code is open, and each API refresh consumes part of your monthly API quota. Larger projects generate more API calls and use more quota accordingly. Uninstalling or disabling the extension does not automatically revoke or delete your token. If you want to fully invalidate it, first delete it by using the Useful resources
|