{"id":21205920,"url":"https://github.com/henry-jacq/threatwatch","last_synced_at":"2026-05-20T03:35:48.288Z","repository":{"id":262578489,"uuid":"887699955","full_name":"henry-jacq/threatwatch","owner":"henry-jacq","description":"Real-time DDoS detection application with user-managed client agents for network monitoring, ML analytics, simulated attack testing, and remote control through a central dashboard.","archived":false,"fork":false,"pushed_at":"2025-07-14T11:17:36.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-14T14:52:58.347Z","etag":null,"topics":["ddos","flask","network-analysis","real-time","xgboost"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/henry-jacq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-13T06:06:24.000Z","updated_at":"2025-07-14T11:17:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"d37fd37e-029b-495c-a732-957f08bdc1b9","html_url":"https://github.com/henry-jacq/threatwatch","commit_stats":null,"previous_names":["henry-jacq/threatwatch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/henry-jacq/threatwatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henry-jacq%2Fthreatwatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henry-jacq%2Fthreatwatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henry-jacq%2Fthreatwatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henry-jacq%2Fthreatwatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henry-jacq","download_url":"https://codeload.github.com/henry-jacq/threatwatch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henry-jacq%2Fthreatwatch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33244767,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T03:30:51.439Z","status":"ssl_error","status_checked_at":"2026-05-20T03:30:49.443Z","response_time":356,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ddos","flask","network-analysis","real-time","xgboost"],"created_at":"2024-11-20T20:53:45.484Z","updated_at":"2026-05-20T03:35:48.253Z","avatar_url":"https://github.com/henry-jacq.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ThreatWatch: Real-time DDoS Detection and Network Monitoring Application\n\n**ThreatWatch** is a real-time DDoS detection and network monitoring application. Users can register and manage their client machines through lightweight agents that provide real-time **network analytics, ML-based threat detection, and DDoS attack simulation**—all controlled via a central dashboard.\n\n## Features\n\n- **Real-time DDoS Detection**: Uses machine learning models to detect and visualize DDoS attacks.\n- **Network Analytics**: Delivers real-time network insights and metrics for all connected client machines.\n- **Client Agent Management**: Users install agents on client machines for monitoring, which persistently connect to the ThreatWatch server.\n- **DDoS Attack Simulation**: Configure and launch simulated DDoS attacks on registered clients to stress-test network resilience.\n- **Remote Control and Settings**: Control agent behavior remotely, start/stop agents, and update settings directly from the ThreatWatch dashboard.\n- **Persistent Connections**: The client agent reconnects automatically after a reboot, ensuring continuous monitoring.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Agent Installation](#agent-installation)\n- [Usage](#usage)\n  - [Server Setup](#server-setup)\n  - [Dashboard](#dashboard)\n- [Project Structure](#project-structure)\n- [Future Improvements](#future-improvements)\n- [License](#license)\n\n## Installation\n\n### Prerequisites\n\n1. **Python 3.8+** for both server and agent.\n2. **Redis** for managing WebSocket connections.\n3. **Flask-SocketIO** for real-time communication.\n4. **psutil** for network data gathering.\n5. **Node.js** (optional) for an advanced frontend.\n\n### Steps\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/your-username/threatwatch.git\n   cd threatwatch\n   ```\n\n2. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. Set up Redis (installation steps depend on your OS).\n\n## Agent Installation\n\nThe ThreatWatch client agent should be installed on each machine you want to monitor.\n\n1. Copy `agent.py` to the target machine.\n2. Install dependencies:\n   ```bash\n   pip install websockets psutil\n   ```\n3. Update `agent.py` with your server’s URL and API key:\n   ```python\n   SERVER_URL = \"ws://your-server-url.com:5000/ws\"\n   API_KEY = \"your-unique-user-api-key\"\n   ```\n4. Run the agent:\n   ```bash\n   python agent.py\n   ```\n\n5. (Optional) Set up the agent as a background service for persistence across reboots. (Refer to **Persistent Background Service Setup** below.)\n\n## Usage\n\n### Server Setup\n\n1. Start Redis.\n2. Launch the ThreatWatch server:\n   ```bash\n   python app.py\n   ```\n\n3. If needed, run the WebSocket server as a separate process:\n   ```bash\n   python websocket_server.py\n   ```\n\n### Dashboard\n\nThe ThreatWatch dashboard enables users to:\n\n- View real-time network traffic data.\n- Monitor network insights and ML analytics.\n- Simulate DDoS attacks.\n- Control agent settings remotely and view agent status.\n\nAccess the dashboard at `http://localhost:5000` (or your deployed server URL).\n\n## Project Structure\n\n```plaintext\n├── agent.py               # Client-side monitoring agent\n├── app.py                 # Main application server\n├── websocket_server.py    # WebSocket server for persistent connections\n├── static/                # Frontend files (React/HTML/CSS)\n├── requirements.txt       # Dependencies\n└── README.md              # Project documentation\n```\n\n## Future Improvements\n\n- **Expanded ML Analytics**: Additional models for anomaly detection.\n- **Role-based Access Control**: Permissions based on user roles.\n- **Agent Auto-Update**: Enable server-triggered updates for the agent.\n- **Enhanced Visualization**: More interactive and detailed charts for network data.\n\n## License\n\nThis project is licensed under the MIT License. See `LICENSE` for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenry-jacq%2Fthreatwatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenry-jacq%2Fthreatwatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenry-jacq%2Fthreatwatch/lists"}