Ultimate Self-Learning Network Defense, Monitoring, and AI Threat Intelligence Dashboard
- β Enhanced Error Handling: Robust error handling throughout the application
- β Security Improvements: Added security headers and input validation
- β Better Logging: Enhanced logging with file rotation and structured output
- β Containerized Support: Improved compatibility for Docker/containerized environments
- β Real-time Anomaly Detection: Self-learning baselines with live anomaly detection
- β Production Ready: Cleaned up codebase with proper error handling and security features
S h a y d Z Super Monitor v2 is a next-generation, self-learning network defense and threat intelligence system designed for cybersecurity professionals, home lab enthusiasts, and anyone serious about network monitoring.
- π€ AI-Powered Anomaly Detection: Self-learning baselines that adapt to your network
- π Security-First Design: Built with security headers, input validation, and secure authentication
- π Cross-Platform: Runs seamlessly on Raspberry Pi, Linux, Windows, and macOS
- π Real-time Monitoring: Live system metrics with interactive web dashboard
- π Threat Intelligence: Automated feeds from multiple security sources
- π¨ Modern UI: Clean, responsive web interface with real-time charts
- CPU, RAM, Disk Usage: Real-time system resource monitoring
- Temperature Monitoring: Hardware temperature tracking (with containerized simulation)
- Network Connectivity: Multi-host ping monitoring with fallback methods
- Failed Login Detection: Security event monitoring and analysis
- Self-Learning Baselines: Automatic baseline establishment and anomaly detection
- Secure Authentication: bcrypt password hashing with session management
- Security Headers: XSS protection, content-type validation, frame options
- Input Validation: File type validation and path sanitization
- Audit Logging: Comprehensive logging of all security events
- Anomaly Alerts: Real-time alerts for suspicious activities
- Real-time Charts: Interactive monitoring graphs using Chart.js
- Responsive Design: Mobile-friendly interface with dark theme
- File Downloads: Secure log file download with metadata
- Settings Management: User-friendly configuration interface
- Error Handling: Graceful error handling with user-friendly messages
- Local Assistant: Privacy-focused local analysis and reporting
- OpenAI Integration: Optional cloud AI for advanced threat analysis
- Threat Intelligence: Automated feeds from CISA, security blogs, and threat databases
- Smart Alerts: Context-aware alerting based on system behavior
- E-paper Display: Real-time status display on Waveshare 2.13" V3 (Pi/Linux)
- Cross-platform Alerts: Desktop notifications or console output
- GPIO Support: Hardware integration for Raspberry Pi deployments
- Automated Actions: Configurable responses to security events
- Python 3.8+ (recommended 3.10+)
- pip package manager
- Internet connection for threat intelligence feeds
-
Clone the repository:
git clone https://github.com/shaydz93/shaydz-super-monitor-v2.git cd shaydz-super-monitor-v2
-
Install dependencies:
pip install -r requirements.txt
-
Setup configuration:
cp config.json.example config.json # Edit config.json with your preferred settings
-
Start the application:
python shaydz.py
-
Access the web dashboard:
- Open http://localhost:5001 in your browser
- Default credentials:
admin
/admin
β οΈ Change default password immediately after first login
# Build the container
docker build -t shaydz-monitor .
# Run with persistent data
docker run -d \
--name shaydz-monitor \
-p 5001:5001 \
-v $(pwd)/logs:/app/logs \
-v $(pwd)/data:/app/data \
shaydz-monitor
For Raspberry Pi with auto-startup:
# Install with systemd service
sudo bash install.sh
# Enable auto-start
sudo systemctl enable shaydz-monitor
sudo systemctl start shaydz-monitor
- Dashboard: Real-time system metrics and anomaly detection
- Downloads: Access to log files and system reports
- Settings: User management and system configuration
- Alerts: Real-time security alerts and anomaly notifications
- Real-time Metrics: Live CPU, RAM, disk, temperature, and network stats
- Anomaly Detection: Self-learning baselines with automatic anomaly detection
- Historical Data: Time-series charts showing system trends
- Security Events: Failed login attempts and security incident tracking
- Automated Feeds: Regular updates from security sources
- IOC Monitoring: Indicator of Compromise detection
- Threat Analysis: AI-powered threat assessment and recommendations
- Security Advisories: Latest security alerts and vulnerabilities
config.json.example
- Example configuration file (copy toconfig.json
and customize)baseline.json
- Self-learning baseline data (auto-generated)logs/
- Application logs and audit trails
{
"monitoring": {
"window_size": 60,
"update_interval": 5,
"anomaly_threshold": 3
},
"security": {
"session_timeout": 3600,
"max_login_attempts": 5
},
"alerts": {
"high_temp_threshold": 80,
"email_notifications": false
}
}
- Password Hashing: bcrypt with salt for secure password storage
- Session Management: Secure session handling with timeout
- Input Validation: All user inputs are validated and sanitized
- Security Headers: Protection against common web vulnerabilities
- Audit Logging: Complete audit trail of all security events
- Change default credentials immediately after installation
- Use HTTPS in production environments
- Regularly update dependencies and system packages
- Monitor logs for suspicious activities
- Backup configuration and baseline data regularly
Platform | Core Features | Hardware Features | Notes |
---|---|---|---|
Raspberry Pi | β Full Support | β E-paper, GPIO, Shutdown | Recommended platform |
Linux | β Full Support | β Temperature, System Actions | Excellent compatibility |
Windows | β Full Support | π Desktop Notifications | PowerShell integration |
macOS | β Full Support | π Desktop Notifications | Native compatibility |
Docker | β Full Support | π Simulated Hardware | Containerized deployment |
Run the comprehensive test suite:
python test_shaydz.py
Test individual components:
# Test monitoring
python -c "from ai_monitor import SelfLearningMonitor; m = SelfLearningMonitor(); m.update(); print('OK')"
# Test web UI
python -c "from web_ui import app; print('Web UI OK')"
# Test display
python -c "from display import EPDDisplay; d = EPDDisplay(); d.display_text(['Test']); print('Display OK')"
We welcome contributions! Please see our Contributing Guidelines for details.
- Use the Issues tab
- Include system information and error logs
- Provide steps to reproduce the issue
- Check existing Issues first
- Describe the feature and use case
- Include implementation suggestions if possible
# Clone and setup development environment
git clone https://github.com/shaydz93/shaydz-super-monitor-v2.git
cd shaydz-super-monitor-v2
pip install -r requirements.txt
# Run tests
python test_shaydz.py
# Start development server
python shaydz.py
MIT License - see LICENSE for details.
- Inspired by: Open-source blue-team and threat intelligence tools
- E-paper libraries: Β© Waveshare Electronic Components
- AI Integration: OpenAI (optional)
- Security Frameworks: OWASP security best practices
- Community: Thanks to all contributors and security researchers
- π Documentation: Wiki
- π¬ Discussions: GitHub Discussions
- π Issues: Bug Reports
- π§ Contact: security@shaydz.com
π₯ Monitor smarter. Defend deeper. Secure your network with S h a y d Z Super Monitor v2! π₯