Thank you for your interest in contributing to VulnHunter! We welcome contributions from the community.
- Fork the repository
- Clone your fork:
git clone https://github.com/albraa911sa-lgtm/vuln-hunter.git - Install dependencies:
npm install - Compile:
npm run compile
- Create a feature branch:
git checkout -b feature/your-feature - Make your changes
- Test thoroughly
- Commit with clear messages
- Push and create a Pull Request
To add a new detection rule, edit src/scanner/vulnerabilityRules.ts:
{
id: 'YOUR-001',
name: 'New Vulnerability',
description: 'What this vulnerability does',
cwe: 'CWE-XXX',
owasp: 'A0X:2021 – Category',
languages: ['javascript', 'typescript'],
severity: 'HIGH',
baseSeverity: 7.0,
category: 'Category',
patterns: [
'dangerous-pattern-1',
'dangerous-pattern-2'
],
falsePositivePatterns: [
'safe-pattern-1'
],
skipComments: true,
recommendation: 'How to fix this vulnerability',
attackVector: 'How attackers exploit this',
impact: 'What happens when exploited',
tags: ['tag1', 'tag2']
}- Use TypeScript strict mode
- Follow existing code patterns
- Add comments for complex logic
- Update README if adding features
Before submitting PR:
- Run
npm run compilesuccessfully - Test your changes in Extension Host (F5)
- Verify no console errors
Open an issue or join our discussions!