CORE Analyzer
A VS Code extension for analyzing Move smart contracts for vulnerabilities, with special support for Sui Move contracts.
Features
- Analyzes Move smart contracts for security vulnerabilities
- Sui-specific vulnerability detection
- Inline diagnostics with red/yellow squiggly underlines
- Sidebar panel view for detailed issue reporting
- Right-click context menu option for quick analysis
- Automatic analysis when opening or saving .move files
- Progress indicator during analysis
- Issue statistics in the panel view
- Refresh button to re-run analysis
- Clickable issues in panel to navigate to code
Sui Integration
The CORE Analyzer has specialized support for Sui Move contracts:
- Sui Object Model: Detection of improper object handling
- Access Control: Identification of missing signer checks
- Transfer Security: Validation of object transfers
- Framework Usage: Best practices for Sui framework functions
- Transaction Context: Proper use of TxContext
Usage
Start the Backend Server (required for real analysis):
cd backend
npm install
npm start
Install the Extension:
Open a .move file in VS Code:
- The extension will automatically analyze the file when opened
- Alternatively, use the command palette (
Ctrl+Shift+P ) and run "Run CORE Analysis"
- Or right-click in the editor and select "Analyze with CORE"
View Results:
- View results in the editor (inline diagnostics)
- View detailed results in the CORE Analysis sidebar panel
- Click on issues in the panel to navigate to the relevant line in the code
- Use the Refresh button in the panel to re-run the analysis
Backend API
The extension communicates with a backend API for real analysis:
POST /api/analyze
{
"code": "string with contract code"
}
Response:
{
"issues": [
{
"line": 12,
"severity": "error",
"message": "Missing signer check",
"suggestion": "Add signer parameter to function"
}
]
}
Requirements
- VS Code version 1.74.0 or higher
- Node.js for running the backend API
- A running instance of the CORE Analyzer backend API (included in the backend directory)
Extension Settings
This extension does not contribute any settings.
Known Issues
- Only supports basic Move contract analysis
- Requires backend API for real analysis (uses mock data when unavailable)
Release Notes
0.0.2
Enhanced release with backend API and Sui integration:
- Added backend API for real Move contract analysis
- Sui-specific vulnerability detection
- Improved panel UI with statistics
- Automatic analysis on file open/save
- Progress indicator during analysis
0.0.1
Initial release of CORE Analyzer with enhanced features:
- Automatic analysis on file open/save
- Improved panel UI with statistics
- Progress indicator during analysis
- Refresh functionality
| |