An intelligent blockchain security platform that detects scam transactions on the Sui network using AI-powered risk assessment and real-time monitoring.
The Sui Scammer Detector is a comprehensive security solution designed to protect users from fraudulent activities on the Sui blockchain. It combines advanced AI models with rule-based detection to provide real-time transaction analysis and risk assessment.
- π§ AI-Powered Risk Assessment - Multi-model AI analysis using OpenAI GPT-4 (future), Google Gemini Pro(future), and local Ollama models
- π Real-Time Transaction Monitoring - Live wallet monitoring with instant alerts
- π Advanced Dashboard - Comprehensive analytics and visualizations
- β‘ Smart Contract Integration - On-chain scammer registry with reputation tracking
- π‘οΈ Pattern Detection - Machine learning-based anomaly detection
- ποΈ Admin Controls - Complete system management and configuration
- Move Smart Contract on Sui blockchain
- On-chain scammer address registry
- Reputation scoring system
- Secure admin controls
- React + TypeScript frontend
- Sui dApp Kit for blockchain integration
- AI Service Integration for risk assessment
- Real-time monitoring capabilities
- Sui Network - High-performance blockchain platform
- Move Language - Smart contract development
- Sui dApp Kit - Wallet integration and transaction handling
- React 18 - Modern UI framework
- TypeScript - Type-safe development
- Vite - Lightning-fast build tool
- Radix UI - Modern component library
- TailwindCSS - Utility-first styling
- Zustand - State management
- OpenAI GPT-4 - Advanced language processing - Future
- Google Gemini Pro - Multi-modal AI analysis - Future
- Ollama - Local AI inference
- TanStack Query - Data fetching and caching
- pnpm - Fast package manager
- ESLint - Code linting
- Prettier - Code formatting
- Node.js (v18 or higher)
- pnpm package manager
- Sui CLI
- Git
-
Clone the repository
git clone https://github.com/yourusername/command-oss-hackathon.git cd command-oss-hackathon -
Deploy Smart Contract
cd scammer sui move build sui client publish --gas-budget 100000000 -
Set up the Client Application
cd ../scammer-client pnpm install -
Configure Environment
# Copy environment template cp .env.example .env # Add your API keys and contract addresses
-
Start Development Server
pnpm dev
Visit http://localhost:5173 to access the application.
- Real-time Metrics - Transaction volume, risk scores, detection rates
- Visual Analytics - Charts and graphs for trend analysis
- Alert Summary - Recent security alerts and notifications
- Wallet Watching - Monitor specific addresses for suspicious activity
- Risk Assessment - AI-powered scoring from 0-100%
- Pattern Detection - Identify unusual transaction patterns
- Multi-Model Analysis - Combine multiple AI providers for accuracy
- Confidence Scoring - Reliability metrics for AI predictions
- Fallback Systems - Graceful degradation when AI services are unavailable
- System Status - Monitor detector health and performance
- Configuration - Adjust detection parameters and thresholds
- Address Management - Maintain scammer address registry
cd scammer
sui move testcd scammer-client
pnpm test# Test AI service connections
node test-ai.js
# Test enhanced analysis
node test-ai-enhanced.jscommand-oss-hackathon/
βββ scammer/ # Smart contract
β βββ sources/
β β βββ scammer.move # Main contract logic
β βββ tests/
β β βββ scammer_tests.move # Contract tests
β βββ Move.toml # Project configuration
βββ scammer-client/ # Frontend application
β βββ src/
β β βββ components/ # React components
β β βββ services/ # API services
β β βββ hooks/ # Custom hooks
β β βββ store/ # State management
β β βββ types/ # TypeScript definitions
β βββ package.json
β βββ vite.config.mts
βββ deploy.sh # Deployment script
- OpenAI: Add your API key to environment variables
- Google Gemini: Configure Gemini Pro API access
- Ollama: Set up local inference server
See OLLAMA_SETUP.md for detailed local AI setup instructions.
- 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
This project is licensed under the MIT License - see the LICENSE file for details.
This project was created for the Command OSS Hackathon 2025, showcasing innovative blockchain security solutions with AI integration.
For questions or support, please open an issue on GitHub or contact Z3ro.
Built with β€οΈ for the Sui ecosystem