Skip to content

giteadi/G1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ G1 Guardian - AI-Powered Security System

G1 Guardian is a living, self-learning security system that protects your server 24/7 using GPT-4o AI analysis. It automatically detects, analyzes, and responds to threats in real-time.

License: MIT Node.js Version PRs Welcome


✨ Features

πŸ€– AI-Powered Detection

  • GPT-4o Analysis: Every threat analyzed by OpenAI's latest model
  • Self-Learning: Learns from your server's attack patterns
  • Pattern Recognition: Remembers and adapts to new threats
  • Threat Intel Integration: Auto-updates from NVD, CISA, AlienVault OTX

πŸ” Comprehensive Monitoring

  • βœ… Crypto Mining Detection: CPU spikes, known miner processes
  • βœ… Brute Force Protection: SSH/login attempt monitoring
  • βœ… DDoS Guard: Traffic analysis and rate limiting
  • βœ… Malware Scanning: Rootkit detection, file integrity
  • βœ… Privacy Leaks: Mic/camera unauthorized access
  • βœ… Dark Web Traffic: Tor/C2 connection detection
  • βœ… Phishing/Bot Detection: Domain blocking, bot fingerprinting

⚑ Auto-Response System

  • Instant Action: No human needed for critical threats
  • Smart Resolution: Blocks IPs, kills processes, quarantines files
  • Firewall Integration: iptables (Linux) + pfctl (macOS)
  • WhatsApp Alerts: Real-time notifications on your phone
  • 24/7 Active: Runs continuously in background

πŸ“Š Beautiful Dashboard

  • Real-time system metrics (CPU, RAM, Network)
  • Threat timeline and analysis
  • Learning rules visualization
  • Manual scan controls
  • One-click threat resolution

πŸš€ Quick Start

One-Line Install

curl -fsSL https://raw.githubusercontent.com/your-repo/g1-guardian/main/install.sh | bash

Manual Install

# Clone repository
git clone https://github.com/your-repo/g1-guardian.git
cd g1-guardian

# Install dependencies
cd server && npm install
cd ../client && npm install && npm run build

# Configure
cp server/.env.example server/.env
nano server/.env  # Add your OpenAI API key

# Start
cd server && npm start

Dashboard: http://localhost:3000


πŸ“– Documentation


🎯 Use Cases

For Developers

  • Protect development servers from crypto miners
  • Monitor SSH brute force attempts
  • Detect unauthorized access to resources

For System Administrators

  • 24/7 server monitoring without manual intervention
  • Automated threat response
  • Compliance with security standards

For Security Teams

  • Real-time threat intelligence
  • Attack pattern analysis
  • Incident response automation

πŸ”§ Requirements

  • Node.js: v18.0.0 or higher
  • RAM: 2 GB minimum (4 GB recommended)
  • OS: Linux, macOS, or Windows (WSL2)
  • OpenAI API Key: Required for AI analysis

πŸ“Έ Screenshots

Dashboard

Dashboard

Threat Analysis

Threats

Protection Modules

Protection


πŸ› οΈ Tech Stack

  • Backend: Node.js, Express
  • Frontend: React, Vite, TailwindCSS
  • AI: OpenAI GPT-4o
  • Database: JSON-based (no external DB required)
  • Monitoring: systeminformation, node-cron

πŸ” Security Features

Feature Description Status
Crypto Mining Detection Detects XMRig, Monero miners βœ… Active
SSH Brute Force Blocks after 5 failed attempts βœ… Active
DDoS Protection Rate limiting, connection monitoring βœ… Active
Rootkit Detection File integrity, hidden processes βœ… Active
Privacy Leak Detection Mic/camera unauthorized access βœ… Active
Dark Web Traffic Tor, C2 connection blocking βœ… Active
Auto IP Blocking iptables + pfctl integration βœ… Active
WhatsApp Alerts Real-time notifications βœ… Active

πŸ“Š Performance

  • CPU Usage: < 5% idle, < 15% during scans
  • RAM Usage: ~200 MB average
  • Scan Speed: Full scan in < 30 seconds
  • Response Time: < 1 second for critical threats

🀝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

# Fork the repo
git clone https://github.com/your-username/g1-guardian.git

# Create feature branch
git checkout -b feature/amazing-feature

# Commit changes
git commit -m 'Add amazing feature'

# Push and create PR
git push origin feature/amazing-feature

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ™ Acknowledgments

  • OpenAI for GPT-4o API
  • systeminformation library
  • React and Vite teams
  • Security research community

πŸ“ž Support


πŸ—ΊοΈ Roadmap

  • Docker support
  • Kubernetes integration
  • Multi-server dashboard
  • Mobile app (iOS/Android)
  • Advanced ML models
  • Cloud deployment (AWS, GCP, Azure)

⭐ Star History

Star History Chart


Made with ❀️ by the G1 Guardian Team

Website β€’ Documentation β€’ Blog

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages