Janiru-Sudasinghe/Blue-Team-Agentic-AI-
GitHub: Janiru-Sudasinghe/Blue-Team-Agentic-AI-
Hermes 是一个AI驱动的检测工程管道,自动化从威胁情报摄取到YARA-L规则生成与部署的完整流程,用于Google SecOps环境。
Stars: 0 | Forks: 0
# 🛡️ Proxmox VE - 智能体AI安全架构
MISP_API_KEY=
MISP_VERIFY_SSL=false
# AI 提供商 — 选择一个或两者(Hermes 将使用后备方案)
GROK_API_KEY=
GROK_API_URL=https://api.x.ai/v1
OPENROUTER_API_KEY=
OPENROUTER_API_URL=https://openrouter.ai/api/v1
AI_MODEL=anthropic/claude-3.5-sonnet # or any OpenRouter model
# Google SecOps(Chronicle)
SECOPS_PROJECT_ID=
SECOPS_CUSTOMER_ID=
SECOPS_SERVICE_ACCOUNT_JSON=config/secops-service-account.json
# Hermes 代理设置
POLL_INTERVAL_SECONDS=300
MAX_RULE_RETRY_ATTEMPTS=5
LOG_LEVEL=INFO
```
### 示例输出
```
/root/hermes-agent/hermes-env/bin/python3 /root/hermes-agent/hermes.py
```
```
2026-05-21 00:16:20 INFO hermes — ══════════ HERMES AUTONOMOUS SOC AGENT — START ══════════
2026-05-21 00:16:20 INFO hermes — Stage 1 — Fetching detection data from Chronicle SIEM (log_type=FORTINET_FORTIANALYZER)
2026-05-21 00:16:20 INFO hermes — Selected rule match: 'fortinet_configuration_change' | Severity: MEDIUM | Priority: Medium | Phase: Testing
2026-05-21 00:16:20 DEBUG hermes — Detection summary:
Rule: fortinet_configuration_change
Author: Hermes Autonomous SOC | Version: 1.0 | Tags: T1543
Description: Detects configuration changes on a FortiGate device such as firewall policy edits.
Match Window: 30 minutes
Event Type: STATUS_UPDATE
Log Source: FORTINET_FORTIANALYZER
Matched Events:
- [event_type] STATUS_UPDATE
- [description] Configuration changed
- [description] Object attribute configured
- [user] admin@corp.local
- [hostname] FGT-CORE-01.internal.corp
Outcome Values:
- [principal_user] ["admin@corp.local"]
- [principal_hostname] ["FGT-CORE-01.internal.corp"]
- [change_count] 7
False Positive Likelihood: Medium
MITRE ATT&CK Reference: T1543 — Create or Modify System Process
============================================================
rule fortinet_configuration_change {
meta:
author = "Hermes Autonomous SOC"
version = "1.0"
description = "Detects configuration changes on a FortiGate device such as firewall policy edits."
created = "2026-05-21"
severity = "MEDIUM"
priority = "Medium"
false_positives = "Medium"
tags = "T1543"
phase = "Testing"
events:
$e.metadata.log_type = "FORTINET_FORTIANALYZER"
$e.metadata.event_type = "STATUS_UPDATE"
(
$e.metadata.description = "Configuration changed" or
$e.metadata.description = "Object attribute configured"
)
$e.principal.user.userid = $user
$e.principal.hostname = $hostname
match:
$user, $hostname over 30m
outcome:
$principal_user = array_distinct($user)
$principal_hostname = array_distinct($hostname)
$change_count = count($e.metadata.id)
condition:
$e
}
============================================================
```
## 🗺️ 发展路线图
- [x] MISP 威胁情报摄取
- [x] Hermes 智能体AI 编排 (hermes.py)
- [x] 通过 Grok AI / OpenRouter AI 生成 YARA-L 2 规则
- [x] 带有自动修正的 Google SecOps 验证循环
- [x] 将规则自动部署到 Google SecOps
- [x] BindPlane 日志收集 (Windows → SecOps)
## 🤝 贡献指南
欢迎贡献、提出问题和功能请求!
1. 复刻仓库
2. 创建功能分支:`git checkout -b feature/your-feature`
3. 提交更改:`git commit -m 'feat: add your feature'`
4. 推送到分支:`git push origin feature/your-feature`
5. 开启一个 Pull Request
## ⚠️ 免责声明
本项目仅用于**教育和授权的蓝队实验室用途**。所有威胁情报处理和规则部署应仅在您拥有或获得明确书面许可进行测试的系统上执行。作者对本项目的任何误用不承担责任。
[](https://www.python.org/)
[](https://www.proxmox.com/)
[](https://cloud.google.com/security/products/security-operations)
[](https://www.misp-project.org/)
[]()
**一个完全自主、自托管的蓝队实验室,可摄取实时威胁情报,利用AI生成经过验证的YARA-L 2检测规则,并将其直接部署到Google SecOps——全程无需人工干预。**
## 🔍 概述
本项目是一个**自托管、由智能体AI驱动的安全运营实验室**,完全构建在**Proxmox VE虚拟机管理程序**之上。它演示了一个全自动化的蓝队工作流程:
1. **威胁情报摄取** — MISP持续从互联网拉取实时威胁源
2. **智能体AI分析** — *Hermes智能体*(一个基于Python的AI智能体)接收来自MISP的威胁报告,并将其发送到云AI(Grok AI / OpenRouter AI)进行深度上下文分析
3. **YARA-L 2规则生成** — AI将威胁数据综合成适用于Google SecOps的YARA-L 2检测规则
4. **自动化验证循环** — 将规则提交给Google SecOps进行语法和逻辑验证;如果发现错误,智能体会自主地重新提交给AI进行修正,直到规则无误
5. **自动化部署** — 规则验证通过后,通过API实时部署到Google SecOps环境中
6. **日志关联** — 通过BindPlane收集来自宿主PC的Windows系统日志,并将其作为标准化日志转发到Google SecOps SIEM,以便与部署的规则进行关联
## 🏗️ 架构图