PhishGuard is an advanced phishing detection system specifically designed for the Stellar blockchain ecosystem. It analyzes URLs and Stellar wallet addresses to provide real-time security risk assessments, protecting users from malicious websites and fraudulent addresses.
- ๐ Real-time Analysis: Instant security scanning of URLs and Stellar addresses
- ๐ซ Blacklist Detection: Comprehensive database of known malicious domains
- ๐ฏ Similarity Analysis: Advanced typosquatting detection using string similarity algorithms
- ๐ Risk Scoring: 0-100 risk score with detailed explanations
- ๐ฑ Responsive Design: Beautiful, mobile-friendly interface
- ๐ Scan History: Track and review previous security checks
- โก Fast Performance: Sub-100ms response times
- ๐ API Access: RESTful API for integration with other applications
Visit the live application: PhishGuard on Vercel
- Node.js - Runtime environment
- Express.js - Web framework
- string-similarity - Levenshtein distance algorithm for domain comparison
- fs-extra - Enhanced file system operations
- cors - Cross-origin resource sharing
- Vanilla JavaScript - No frameworks, pure performance
- Modern CSS - Gradient backgrounds, animations, responsive design
- HTML5 - Semantic markup
- Vercel - Serverless deployment platform
- JSON Database - Lightweight data storage
- Node.js 18+
- npm or yarn
-
Clone the repository
git clone https://github.com/yourusername/PhishGuard.git cd PhishGuard -
Install dependencies
npm install
-
Start development server
npm run dev
-
Open in browser
http://localhost:3000
-
Deploy to Vercel
npm install -g vercel vercel --prod
-
Or use Vercel GitHub integration
- Connect your GitHub repository to Vercel
- Automatic deployments on push
Analyze a URL or Stellar address for security risks.
Request Body:
{
"url": "stellar.org", // For URLs/domains
"address": "GAHK7EEG..." // For Stellar addresses
}Response:
{
"risk_score": 5,
"status": "safe",
"details": {
"input_type": "url_or_domain",
"blacklisted": false,
"similarity_check": {
"similarity": 1.0,
"domain": "stellar.org"
},
"valid_stellar_address": false
}
}Retrieve recent scan history.
Response:
{
"total_checks": 150,
"recent_checks": [...]
}System health check.
Response:
{
"status": "healthy",
"timestamp": "2025-10-10T16:29:42.020Z",
"version": "1.0.0"
}PhishGuard uses a multi-layered approach to assess security risks:
- Risk Score: 100 (Malicious)
- Trigger: Domain found in known malicious list
- Action: Immediate warning to user
- High Similarity (80%+): Risk 70-100 (Suspicious - Typosquatting)
- Medium Similarity (60-80%): Risk 40-70 (Suspicious)
- Low Similarity (<60%): Risk 0-20 (Safe)
- Valid Format: Risk 10 (Safe)
- Invalid Format: Treated as URL/domain
Protected domains include:
- stellar.org
- stellarx.com
- stellarterm.com
- lobstr.co
- stellarport.io
- And more...
Input: stellar.org
Output: Risk 5, Status: Safe
Reason: Exact match with legitimate domain
Input: stellr.org
Output: Risk 95, Status: Suspicious
Reason: 84% similarity to stellar.org (missing 'a')
Input: scamstellar.io
Output: Risk 100, Status: Malicious
Reason: Found in blacklist database
Input: GAHK7EEG2WWHVKDNT4CEQFZGKF2LGDSW2IVM4S5DP42RBW3K6BTODB4A
Output: Risk 10, Status: Safe
Reason: Valid Stellar address format
PhishGuard/
โโโ public/
โ โโโ index.html # Main HTML file
โ โโโ script.js # Frontend JavaScript
โ โโโ styles.css # CSS styling
โ โโโ logo.jpg # PhishGuard logo
โโโ server.js # Express server
โโโ results.json # Scan history database
โโโ package.json # Dependencies
โโโ vercel.json # Vercel configuration
โโโ README.md # This file
- Input Validation: Comprehensive input sanitization
- Rate Limiting: Protection against abuse
- CORS Configuration: Secure cross-origin requests
- Error Handling: Graceful error management
- Data Privacy: No sensitive data logging
We welcome contributions! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow existing code style
- Add tests for new features
- Update documentation
- Ensure all tests pass
This project is licensed under the MIT License - see the LICENSE file for details.
- PhishGuard Team - Initial work and maintenance
- Stellar Development Foundation for the amazing blockchain platform
- String-similarity library for efficient text comparison
- Vercel for seamless deployment platform
- The open-source community for inspiration and tools
- Issues: GitHub Issues
- Documentation: This README and inline code comments
- Community: Join our discussions
- Machine learning-based threat detection
- Browser extension
- Mobile app
- Integration with popular Stellar wallets
- Real-time threat intelligence feeds
- Multi-language support
