AI-powered vulnerability detection, right in your IDE.
Overview
The SecureFlag Analyzer plugin integrates with IntelliJ IDEA to deliver real-time security analysis as you code. Powered by advanced LLMs (Anthropic and ChatGPT), it detects potential vulnerabilities and connects you to educational resources, all within your development workflow.
Key Features
- Real-Time Vulnerability Detection: Instantly identifies security issues as you write code.
- LLM API Integration: Compatible with both Anthropic and ChatGPT APIs.
- Knowledge Base Integration: Pulls context-rich vulnerability data from the SecureFlag Knowledge Base.
- Context-Aware Analysis: Focuses on the active section of code you're working on.
- Educational Resources: Displays links to related articles and hands-on labs.
Installation
- Open IntelliJ IDEA.
- Navigate to Settings → Plugins.
- Click the Marketplace tab.
- Search for SecureFlag Analyzer.
- Click Install.
- Restart IntelliJ IDEA when prompted.
The plugin will now be available in your IDE.
Configuration
After installation, follow these steps to configure the plugin:
Navigate to Settings -> Tools -> SecureFlag Analyzer.
Configure the following options:
LLM Provider: Choose your preferred API provider (ChatGPT or Anthropic).
API Keys: Enter your API keys for ChatGPT and/or Anthropic.
LLM Model: Select the LLM model of your choice.
Auto Analysis: Enable or disable automatic analysis on short cursor pause (enabled by default).
Proxy: Configure if required for your network.
Click Apply, then OK.
Note: Use the corresponding Fetch Models button and model selection dropdown for your selected LLM provider to configure the model based on the API key provided.
Usage
Manual Analysis
- Open a code file.
- Place the cursor in the section of code you want to analyze.
- Open the Command Palette with Ctrl+Shift+A (Windows/Linux) or Cmd+Shift+A (macOS).
- Search for and select SecureFlag: Analyze Code.
The SecureFlag Analyzer panel will appear on the right, displaying potential vulnerabilities and relevant learning resources.
Auto Analysis
If Auto Analysis is enabled in the settings, the plugin will automatically scan for vulnerabilities after your cursor pauses for 3 seconds. Results will appear in the same analysis panel.
Results Interpretation
The analysis panel includes:
- Vulnerability Ranking: Top 3 potential issues detected in the active code section.
- Training Articles: Direct links to SecureFlag Knowledge Base articles.
- Lab Links: Interactive labs to help you practice and understand each vulnerability.
Requirements
- IntelliJ IDEA: Version 2024.2 or later.
- API Key: Valid key from OpenAI (ChatGPT) and/or Anthropic (Claude).
- Internet Connection: Required for API calls and knowledge base access.
Troubleshooting
No results appear
Check the following:
- Your internet connection is active.
- The API keys provided in settings are valid.
- Your proxy settings are correct (if you’re using a proxy).
Stay secure and informed with SecureFlag Analyzer, your in-editor security assistant.