A comprehensive security scanning tool for Vue.js projects with rule-based vulnerability detection
npm install vue-security-scannerbash
Global installation
npm install -g vue-security-scanner
Or run directly without installation
npx vue-security-scanner [project-path]
`
$3
`bash
Scan current directory
vue-security-scanner .
Scan with detailed output
vue-security-scanner . --level detailed
Scan and save report
vue-security-scanner . --output json --report security-report.json
`
โจ Key Features
$3
- 100+ Security Rules: Comprehensive coverage including XSS, injection, authentication, and more
- Advanced Semantic Analysis: AST-based code analysis with user input tracking
- Dynamic Application Security Testing (DAST): Runtime vulnerability scanning
- Enhanced Dependency Security: npm audit integration with built-in vulnerability database
$3
- Vue 2.x: Full support for Options API and Vue 2 features
- Vue 3.x: Complete support for Composition API and Vue 3 features
- Vue 3.5+: Enhanced support for defineModel, defineAsyncComponent, v-memo, defineOptions
- Vue 3.6+: Support for Vapor mode and latest optimizations
$3
- Distributed Scanning: Scalable architecture supporting 10,000+ files
- Visualization Dashboard: Interactive web dashboard with live statistics
- Advanced Reporting: Trend analysis, compliance reports, vulnerability distribution
- Trae CN Integration: Automated vulnerability reporting and tracking
$3
- Performance Profiles: Fast, balanced, and thorough scanning modes
- Caching System: Comprehensive caching for improved performance
- Incremental Scanning: Only scan modified files for faster subsequent scans
- Parallel Processing: Automatic CPU core detection and optimal worker count
- GPU Acceleration: GPU-accelerated regex matching with automatic CPU fallback
$3
- China-Specific Standards: GB/T series, Cybersecurity Law, Data Security Law, PIPL, Cryptography Law
- OWASP Top 10 2021: Full coverage of OWASP Top 10
- CWE Mapping: Common Weakness Enumeration references
- Multiple Report Formats: JSON, HTML, Text, XML, SARIF
$3
- VSCode Extension: Real-time security feedback in editor
- Vite Plugin: Compile-time security scanning
- Webpack Plugin: Build-time security scanning
- Nuxt.js Module: SSR and static generation support
- Docker Integration: Containerized scanning environment
- Jenkins Plugin: CI/CD automation
- CI/CD Platforms: GitHub Actions, GitLab CI/CD, Azure DevOps, Bitbucket Pipelines, CircleCI, Travis CI
$3
- uni-app: Security analysis for uni-app projects
- Taro: Security analysis for Taro framework
- WeChat Mini Program: Security scanning for WeChat Mini Program code
- Baidu Smart Program: Security scanning for Baidu Smart Programs
- ByteDance Mini Program: Security scanning for ByteDance Mini Programs
- QQ Mini Program: Security scanning for QQ Mini Programs
$3
- CNCERT/CC: Access to CNCERT/CC threat intelligence
- CNNVD: Access to CNNVD vulnerability database
- CNVD: Access to CNVD vulnerability database
- NVD: Access to NIST National Vulnerability Database
- CVE: Access to CVE vulnerability database
- OWASP: Access to OWASP threat intelligence
$3
- Vue Security MCP: Real-time security feedback during AI-assisted development
- AI Coding Assistant Integration: Integration with popular AI coding assistants
- Batch Processing: Batch processing capabilities for multiple code snippets
- Memory Optimization: Memory optimization for large-scale scanning
๐ Documentation
Comprehensive documentation is available to help you get started and make the most of Vue Security Scanner:
$3
- Installation Guide - System requirements, installation methods, and configuration
- Usage Tutorial - Command-line options, scanning modes, and advanced features
$3
- Rule Documentation - Complete reference for all security rule modules
- API Reference - Programming interface for scanner integration
- Performance Optimization - Performance tuning and best practices
$3
- Configuration Guide - Configuration options and customization
- Ecosystem Integration - Integration with various tools and platforms
- Features Guide - Detailed feature descriptions and capabilities
- Vue Features Guide - Vue-specific security features and coverage
- Security Coverage - Comprehensive security vulnerability coverage
$3
- Development Guide - Development setup and contribution guide
- Testing Guide - Testing strategies and examples
$3
- Compliance Guide - Compliance requirements and reporting (China laws, GB/T standards, etc.)
- Threat Intelligence Integration - Threat intelligence sources and configuration
$3
- Contributing Guide - How to contribute to the project
- FAQ - Frequently asked questions and troubleshooting
- Release Notes - Version history and changelog
๐ Ecosystem & Environment Integrations
$3
`bash
npm install --save-dev vite-plugin-vue-security
`
$3
`bash
npm install --save-dev webpack-plugin-vue-security
`
$3
`bash
npm install --save-dev @vue-security/nuxt
`
$3
`bash
Build and run scanner container
docker build -t vue-security-scanner .
docker run -v $(pwd):/workspace/project vue-security-scanner /workspace/project --level detailed
`
$3
Install through Jenkins plugin manager or manually deploy the .hpi file.
$3
Seamless integration with Trae CN for automated vulnerability reporting and tracking:
`javascript
// Vite
vueSecurity({
enableTraeCN: true,
traeCNApiKey: 'your-api-key',
traeCNProjectId: 'your-project-id',
traeCNAutoReport: true,
traeCNRealtimePush: true
})
`
$3
1. Download the packaged extension (.vsix file)
2. In VSCode, press Ctrl+Shift+P (or Cmd+Shift+P on Mac)
3. Type "Extensions: Install from VSIX..."
4. Select the downloaded .vsix file
๐ข Enterprise Features
$3
For large-scale projects, use distributed scanning to distribute work across multiple workers:
`bash
Start a distributed worker
vue-security-distributed worker --port 3001 --worker-id worker-1
Run distributed scan
vue-security-distributed scan /path/to/vue-project \
--workers workers.json \
--batch-size 10 \
--output json \
--report distributed-scan.json \
--save-results
`
$3
Start the web-based dashboard for real-time security monitoring:
`bash
Start the dashboard server
npm run dashboard
Or using vue-security-distributed command
vue-security-distributed dashboard
With custom port
vue-security-distributed dashboard --port 8080
`
Then open your browser to http://localhost:3000 (or custom port) to view:
- Real-time vulnerability statistics
- 30-day vulnerability trends
- Severity distribution charts
- Recent scan history
- Project-level security tracking
For detailed information on distributed scanning and dashboard features, see Distributed Scanning Guide and Dashboard Guide.
$3
The scanner uses a powerful rule-based engine for security detection. You can extend security rules by creating custom rule files:
`javascript
// src/rules/my-custom-rules.js
const myCustomRules = [
{
id: 'my-rule',
name: 'My Security Rule',
severity: 'High',
description: 'Detects my security issue',
recommendation: 'Fix recommendation',
patterns: [
{ key: 'my-pattern', pattern: 'your-regex-pattern' }
]
}
];
module.exports = myCustomRules;
`
For detailed information on creating custom rules, see Rule Extension Guide and Quickstart: Custom Rules.
$3
Create a .vue-security-ignore file in your project root to ignore specific files, directories, or vulnerabilities:
`bash
Ignore directories
node_modules/
dist/
build/
Ignore file patterns
*/.min.js
/vendor/
Ignore specific vulnerability types
type:XSS
type:Memory Leak
Ignore specific rules
rule:custom-api-key
rule:hardcoded-password
Ignore by severity
severity:low
`
For more ignore options and detailed instructions, see Ignore Guide
โ๏ธ Configuration
Create a vue-security-scanner.config.json file to customize scanning behavior:
`json
{
"rules": {
"xss": {
"enabled": true,
"severity": "high"
},
"dependencies": {
"enabled": true,
"severity": "high"
}
},
"scan": {
"maxSize": 10,
"maxDepth": 10,
"ignoreDirs": [
"node_modules",
"dist",
"build",
".git"
]
},
"output": {
"showProgress": true,
"format": "json",
"showDetails": true,
"maxIssuesToShow": 100,
"advancedReport": true,
"reportPath": "security-report.json"
},
"performance": {
"maxConcurrentFiles": 10,
"timeout": 30000,
"enableSemanticAnalysis": true,
"enableNpmAudit": true,
"enableVulnerabilityDB": true
},
"reportHistory": {
"enabled": true,
"path": ".vue-security-reports",
"maxSize": 100
},
"compliance": {
"enabled": true,
"standards": ["OWASP", "GDPR", "HIPAA", "PCI-DSS", "SOX"]
}
}
`
For detailed configuration options, see Configuration Guide.
๐ ๏ธ Development
$3
`bash
Clone the repository
git clone
cd vue-security-scanner
Install dependencies
npm install
Run the scanner
node bin/vue-security-scanner.js [project-path]
``