Aikido Security Extension for Visual Studio CodeAikido Security is a developer-first software security platform. We scan your source code & cloud to show you which vulnerabilities are actually important to solve. The Aikido Security Visual Studio Code extension scans for secrets and SAST issues and offers real-time scans with inline results and problem highlighting. UsageInstallInstall the Aikido extension in Visual Studio Code. The integration will prompt you to enter an access token, this can be found in the Aikido Platform by navigating to Integrations > IDE > Visual Studio Code. Now the extension is connected to your Aikido account and activated. ScanningThe integration scans your codebase for secrets, API keys and SAST code issues. It runs scans whenever you open or save a file. Every time you make and save changes in a file, a scan runs. If any issues are detected, they are highlighted in the editor and also displayed in the Problems panel. When you hover over a detected SAST issue, additional context about the problem is provided. How to test this extensionIf this is your first time using this extension and you want to explore its capabilities, we suggest testing it with our example file below.
Below you can find an example
Reporting issues that should have been detectedIf Aikido failed to detect a secret or a SAST issue, you can report this undetected issue. To do this, select the code containing the issue, right-click, and choose 'Report undetected issue to Aikido'. Provide a brief explanation of why it should have been detected, and then send it to us. Reporting issues that should not have been detectedIf Aikido detected an issue it should not have, you can report this issue. To do this, hover over the issue and click 'Aikido: Report false positive'. Provide a brief explanation of why this should not have been detected, and then send it to us. The issue will also be ignored. CommandsExecute Aikido extension commands through the Visual Studio Code Command Palette. Access the Command Palette by using Ctrl+⇧Shift+P or ⌘Command+⇧Shift+P (macOS). The list below details the available commands:
How does the extension perform scans on a repositoryThe integration does two types of scanning: secret scanning with Gitleaks and SAST scanning with Semgrep. It uses Aikido-defined rules, supplemented by any custom rules you add to Aikido. The integration then processes any results to check for false positives or ignored issues. If you wish to see all the results, you can modify this behavior using the The integration first looks for a local install of Gitleaks to run secret scanning with. If it can't find one, it attempts to use a binary suitable for your operating system. There is support for Windows, Linux, and Mac. If your OS or architecture isn't on this list, we recommend you install gitleaks directly on your machine. How does the extension connect to AikidoUsing the access token that you provided, the extensions will connect and detect the matching repository in Aikido using the Git remote URL or the name of the project folder. |