Eswaraprasath802/Sentinel-AI

GitHub: Eswaraprasath802/Sentinel-AI

Sentinel-AI 是一个基于 AI 的自主事件响应代理,用于实时检测、诊断和自动修复软件故障。

Stars: 0 | Forks: 0

# 🛡️ Sentinel SDK v2 — AI 自动修复插件 [![许可证:MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![Python](https://img.shields.io/badge/Python-3.9+-blue.svg)](https://python.org) [![Node](https://img.shields.io/badge/Node.js-18+-green.svg)](https://nodejs.org) [![PHP](https://img.shields.io/badge/PHP-8.0+-purple.svg)](https://php.net) ## ⚡ 功能说明 当您的软件出现故障时,Sentinel 将: 1. 🚨 **立即发出警报** → 终端 + 电子邮件 + WhatsApp 2. 🧠 **通过 Elastic MCP 上下文,使用 Gemini AI 进行诊断** 3. 🔧 **在后台静默自动修复** 4. ✅ **确认修复结果** → 终端 + 电子邮件 + WhatsApp 5. 📊 **记录所有信息**至 Elasticsearch 以便未来学习 ## 🏗️ 系统架构 ``` Sentinel Agent Server (Python — runs on cloud) ↑ HTTP POST /report │ ┌─────┼──────┬────────┐ │ │ │ │ Flask Node Laravel Spring Boot (coming soon) Django Express PHP Ruby Rails (coming soon) ``` ## 🚀 快速开始 ### Python(Flask / FastAPI / Django) ``` from sentinel_sdk import Sentinel Sentinel(api_key="GEMINI_KEY", elastic_url="...", elastic_password="...").attach(app) ``` ### Node.js(Express) ``` const Sentinel = require("./sdks/node/node_sdk/sentinel"); new Sentinel({ appName: "MyApp" }).attach(app); ``` ### PHP(Laravel) ``` // app/Exceptions/Handler.php Sentinel::report($exception); ``` ## 📁 项目结构 ``` sentinel-plugin-v2/ ├── agent_server/ ← Central AI Brain │ ├── server.py ← Flask API (receives all reports) │ ├── monitor.py ← Background processor │ ├── elastic_mcp.py ← Elastic MCP tools │ ├── ai_healer.py ← Gemini 2.5 Pro diagnosis │ ├── fixes.py ← Safe auto-fix engine │ └── notifier.py ← Terminal + Email + WhatsApp │ ├── sdks/ │ ├── python/ ← Flask / FastAPI / Django │ ├── node/ ← Express / Next.js / Browser │ └── php/ ← Laravel │ └── examples/ ├── flask_app/ ├── fastapi_app/ └── express_app/ ``` ## 🔑 获取 API 密钥 | 服务 | 链接 | 费用 | |---|---|---| | Gemini AI | https://aistudio.google.com/app/apikey | 免费 | | Elasticsearch | https://cloud.elastic.co | 14 天免费试用 | | Twilio WhatsApp | https://console.twilio.com | 免费沙箱 | | Gmail SMTP | Gmail → 安全性 → 应用专用密码 | 免费 | ## 🛠️ 安装设置 ``` # 1. 克隆 git clone https://github.com/Eswaraprasath802/Sentinel-AI.git cd Sentinel-AI # 2. 安装 pip install -r requirements.txt # 3. 配置 cp agent_server/.env.example agent_server/.env # 填写你的 API keys # 4. 启动 Agent Server cd agent_server python server.py # 5. 添加到你的应用程序(2行!) ``` ## 🏆 专为以下活动构建 Google Cloud Rapid Agent Hackathon 2026 - 平台:Google Cloud Agent Builder - AI:Gemini 2.5 Pro - 合作伙伴赛道:Elastic MCP ## 📄 许可证 MIT 许可证 — 免费供所有人使用、修改和分发。
标签:AI故障响应, AV绕过, Django, Elasticsearch, Express, FastAPI, Flask, Gemini AI, GNU通用公共许可证, Laravel, MITM代理, Node.js, OpenVAS, PHP, Python, SRE, 事件管理, 偏差过滤, 分布式计算, 告警通知, 多语言支持, 安全测试框架, 异常处理, 插件, 故障诊断, 无后门, 智能修复, 自动修复, 自动化运维, 自愈系统, 诊断引擎, 软件故障检测, 逆向工具