FAAS19/autonomous-dfir-triage-agent
GitHub: FAAS19/autonomous-dfir-triage-agent
基于 Google ADK 和 FastMCP 构建的自主 DFIR 分诊 Agent,通过确定性 NLP 过滤与多 Agent LLM 推理将取证日志分析从数天缩短至两分钟。
Stars: 0 | Forks: 0
# 自主 DFIR 分诊 Agent
[](https://www.kaggle.com/competitions/5-day-ai-agents-intensive-vibecoding-course-with-google/overview)
[](https://www.kaggle.com/competitions/5-day-ai-agents-intensive-vibecoding-course-with-google/overview)
[](https://google.github.io/adk-docs/)
[](https://github.com/jlowin/fastmcp)
[](https://www.python.org/)
[](LICENSE)
**一个生产级、多 Agent 的数字取证与应急响应 (DFIR) 系统,可将取证分诊时间从数天缩短至两分钟以内。** *提交至 [5-Day AI Agents: Intensive Vibe Coding Course with Google](https://www.kaggle.com/competitions/5-day-ai-agents-intensive-vibecoding-course-with-google/overview) — Kaggle × Google,2026 年 6 月*
## 目录
- [概述](#overview)
- [问题背景](#the-problem)
- [解决方案架构](#solution-architecture)
- [核心技术特性](#key-technical-features)
- [仓库结构](#repository-structure)
- [演示的课程概念](#course-concepts-demonstrated)
- [快速开始](#getting-started)
- [运行测试](#running-tests)
- [安全设计](#security-design)
- [商业影响](#business-impact)
## 概述
**自主 DFIR 分诊 Agent** 是一个完全基于 **Google Agent Development Kit (ADK)** 和 **FastMCP** 构建的智能流水线。它通过将确定性的 NLP 过滤与受治理的多 Agent 推理层相结合,自动化了事件响应中最耗时的阶段——解析和分诊 Windows Event ID 4688 (进程创建) 日志。
## 问题背景
当网络安全事件超越最初的 SOC 分诊被升级时,它会交由专门的 **事件响应 (IR) 分析师** 或 **DFIR 从业者** 处理——而不是 SOC L1/L2 分析师。IR 分析师在数字取证、内存分析和证据保管链方面拥有专业技能——但他们不仅成本高昂、极其稀缺,而且时间紧迫。
核心瓶颈不在于检测。而在于**对完整数字证据时间线的取证分诊**。
通过像 [Plaso](https://github.com/log2timeline/plaso) 这样的取证工具处理的单个端点镜像会生成一个**超级时间线**——即系统上所有取证痕迹按时间顺序的合并。仅本项目的证据文件就包含了**横跨 9 种取证来源类型的 153,066 个事件**:
| 来源 | 类型 | 数量 | 示例 |
|---|---|---|---|
| `REG` | 注册表项 | 88,588 | Run 键、服务、UserAssist、USB 条目、BagMRU |
| `FILE` | 文件系统 (MFT) | 34,906 | 文件状态、创建/修改时间戳 |
| `PE` | 可移植可执行文件 | 25,703 | 编译时间戳、导入表时间戳 |
| `WEBHIST` | 浏览器历史记录 | 3,035 | MSIE 缓存、URL 记录 |
| `LNK` | Windows 快捷方式 | 376 | Shell 项痕迹、最近文件访问 |
| `EVT` | Windows 事件日志 | 188 | WinEVT 条目 |
| `LOG` | 系统日志 | 235 | 系统痕迹 |
| `OLECF` | OLE 复合文档 | 31 | Office 文档元数据 |
| `RECBIN` | 回收站 | 4 | 已删除文件痕迹 |
IR 分析师必须同时关联所有这些痕迹流,以重建攻击者的活动——识别持久化机制、横向移动、数据准备和防御规避。手动完成这项工作每个端点需要 **1 到 2 个分析师工作日**。
| 挑战 | 影响 |
|---|---|
| **数据量** | 每个端点时间线包含超过 15 万个痕迹 |
| **噪音** | 注册表项变动和 PE 时间戳占据了主要信号 |
| **人工关联** | 每次事件需要 1-2 个 IR 分析师工作日 |
| **专家稀缺** | IR 分析师成本高昂;职业倦怠率极高 |
| **MTTR 压力** | 在分诊期间,活跃的威胁行为者仍滞留在环境中 |
## 解决方案架构
该 Agent **在任何 LLM 看到数据之前,就在数学层面上消除了噪音**,采用了一个包含 4 个阶段的混合流水线:
```
┌──────────────────────────────────────────────────────────────────────┐
│ EVIDENCE LAYER (Immutable) │
│ CSV Evidence → SHA-256 Hash → Chain of Custody │
└────────────────────────────────┬─────────────────────────────────────┘
│
┌────────────────────────────────▼─────────────────────────────────────┐
│ MCP SERVER: triage_engine (5 Tools) │
│ │
│ ┌──────────────────┐ ┌───────────────────┐ ┌──────────────────┐ │
│ │ Phase 1 │ │ Phase 2 │ │ Phase 3 │ │
│ │ Frequency │→ │ NLP Embeddings │→ │ SIGMA Rule │ │
│ │ Stacking │ │ + Isolation │ │ Enrichment │ │
│ │ Filter O(N) │ │ Forest Scoring │ │ 3,100+ rules │ │
│ └──────────────────┘ └───────────────────┘ └──────────────────┘ │
│ Drops >98% noise text-embedding-004 MITRE ATT&CK │
│ in linear time TF-IDF fallback (offline) │
└────────────────────────────────┬─────────────────────────────────────┘
│ Top anomalies + SIGMA matches
┌────────────────────────────────▼─────────────────────────────────────┐
│ MULTI-AGENT ENGINE (Google ADK) │
│ │
│ ┌────────────────┐ ┌────────────────┐ ┌───────────────────────┐ │
│ │ Orchestrator │ → │ Log Analyst │ → │ Zero-Trust Validator │ │
│ │ (Coordinator) │ │ (SOC Expert) │ │ Gate │ │
│ └────────────────┘ └────────────────┘ └───────────────────────┘ │
│ ↓ 3x retry loop │
│ ↓ provenance check │
│ ↓ contradiction detect │
└────────────────────────────────┬─────────────────────────────────────┘
│
┌────────────────────────────────▼─────────────────────────────────────┐
│ OUTPUT: Zero-Hallucination Report │
│ MITRE ATT&CK mappings │ Risk scores │ Confidence │ Citations │
│ Hash-chained provenance.jsonl (offline verifiable) │
└──────────────────────────────────────────────────────────────────────┘
```
### ADK 工作流图
多 Agent 分诊系统构建为一个结构化的 Google ADK 工作流图,协调专门的推理节点:
**一个生产级、多 Agent 的数字取证与应急响应 (DFIR) 系统,可将取证分诊时间从数天缩短至两分钟以内。** *提交至 [5-Day AI Agents: Intensive Vibe Coding Course with Google](https://www.kaggle.com/competitions/5-day-ai-agents-intensive-vibecoding-course-with-google/overview) — Kaggle × Google,2026 年 6 月*
*使用 [Google ADK](https://google.github.io/adk-docs/) 构建 · 提交至 [5-Day AI Agents Intensive](https://www.kaggle.com/competitions/5-day-ai-agents-intensive-vibecoding-course-with-google/overview) · Apache 2.0 许可证*
标签:多智能体, 安全运营, 库, 应急响应, 异常检测, 扫描框架, 逆向工具