SigmaLineage MCP
Enables context-aware EVTX hunting with process lineage tracing and rarity baselining to surface real threats from security logs, transforming raw alerts into actionable kill chain intelligence.
README
<div align="center">
⚔️ SigmaLineage MCP
Context-Aware EVTX Hunting · Lineage-First Triage · Zero Noise Tolerance
"A Sigma hit means nothing without its story. The process lineage chain is the story."
</div>
🎯 Why SigmaLineage?
EVTX triage in modern SOCs is a race against noise. You have millions of events, hundreds of alerts, and seconds to decide what's real.
<table> <tr> <td width="50%" valign="top">
🔍 For the SOC Analyst
Generic alerts drown true incidents in false positives. You don't need more alerts — you need signal from noise.
SigmaLineage's rarity baseline engine automatically surfaces:
- 🚨 Anomalous process-to-port connections
- 👤 Suspicious user-log event signatures
- 🌐 Weird URL lookups no one else made
Find the real threat. Fast.
</td> <td width="50%" valign="top">
🧬 For the Detection Engineer
A Sigma rule fires. But is it a sysadmin doing their job, or an attacker moving laterally?
The process lineage chain is our core moat.
SigmaLineage traces the full parent→child execution tree — up to 5+ generations — turning isolated alerts into a visual kill chain. You instantly see:
- Was this cmd.exe spawned by
services.exeorw3wp.exe? - Is
rundll32being launched fromProgramData? - Did
WmiPrvSE.exejust spawn a reverse shell?
Stop chasing ghosts. Confirm the kill chain.
</td> </tr> </table>
🧠 By combining rapid Sigma matching, automated lineage graphing, and multi-dimensional rarity baselining, SigmaLineage MCP transforms raw EVTX logs into actionable, context-rich intelligence — for AI agents and human analysts alike.
🔧 Built On
| Component | Role |
|---|---|
src/sigmalineage_mcp/mappings/sigma-event-logs-all.yml |
Chainsaw field-mapping definition |
sigma_lineage.py |
Process lineage runner script |
src/sigmalineage_mcp/ |
FastMCP server orchestration |
Tool Overview
1) run_sigma
Runs the Chainsaw Sigma hunt command and returns a summary of rule hits.
Inputs:
evtx_path(file or folder of logs to scan)sigma_rules_path(directory containing Sigma rules)mapping_path(Chainsaw mapping yaml, defaults tosrc/sigmalineage_mcp/mappings/sigma-event-logs-all.yml)output_dir(directory wherehunt.jsonis written)
Output Highlights:
hunt_json_pathhit_counttop_rulestop_source_files
2) run_sigma_lineage
Runs the Sigma hunt (or loads existing results) and traces the parent/child process lineage for hit processes.
Inputs:
- All
run_sigmainputs levels(number of ancestor levels to trace, default5)skip_hunt(skip running Chainsaw hunt, loading existinghunt.jsoninstead, defaultfalse)
Output Highlights:
hunt_json_pathprocess_lineage_json_pathprocess_lineage_md_pathsigma_hit_countindexed_evtx_filesindexed_events
Example Lineage Highlights Output:

3) rare_events_baseline
Computes rare tuple combinations from parsed CSV event logs with baseline comparison to highlight anomalies.
Inputs:
target_csv_path(CSV file or folder to analyze)baseline_csv_path(optional, defaults to target scope itself)max_results(default25)max_baseline_count(filter threshold for baseline occurrence, default2)
Tuple Families Analyzed:
process_dst_port_protocol: Maps unique combinations of process name, destination port, and protocol.user_channel_event_id: Maps unique combinations of user, log channel, and event ID.url_host_process: Maps unique combinations of accessed URL/domain, host computer, and initiating process name.
Example Rarity Baseline Analysis Output:

Folder Structure
sigmalineage-mcp/
sigma_lineage.py # Lineage tracer CLI script
pyproject.toml # Project configuration & dependencies
README.md # This file
src/
sigmalineage_mcp/
__init__.py
__main__.py # Standard script entrypoint
config.py # Paths configuration
server.py # FastMCP server orchestration
mappings/
sigma-event-logs-all.yml # Chainsaw mapping file
services/
chainsaw_runner.py # Subprocess runner for Chainsaw
lineage_runner.py # Subprocess runner for lineage tracer
rarity.py # Pure Python CSV rarity baseline engine
Installation
Prerequisites
- Chainsaw CLI: Ensure
chainsawis installed and available in yourPATH(e.g. at~/.local/bin/chainsaw). - Python: Python 3.10+ is required.
Setup
From the repository root:
uv sync
Running the Server
Direct Execution
Start the FastMCP stdio server:
uv run sigmalineage-mcp
MCP Client Configurations
To wire this MCP server into different AI clients, use the standard JSON configuration snippet below, placing it in the tool-specific configuration file location.
Standard JSON Snippet
{
"mcpServers": {
"sigmalineage-mcp": {
"command": "uv",
"args": [
"run",
"--project",
"/absolute/path/to/sigmalineage_mcp",
"sigmalineage-mcp"
],
"env": {
"SIGMALINEAGE_PROJECT_ROOT": "/absolute/path/to/sigmalineage_mcp"
}
}
}
}
Note: Replace /absolute/path/to/sigmalineage_mcp with the actual path where this repository is cloned on your system.
Client Configuration File Paths
- Cursor: Add to the Cursor GUI settings panel (
Settings -> Features -> MCP) or edit~/.cursor/mcp.json(Linux/macOS) or%USERPROFILE%\.cursor\config\mcp.json(Windows). - Antigravity: Add to the
mcp_config.jsonconfiguration file located at~/.gemini/antigravity/mcp_config.json. - OpenCode: Add to
~/.config/opencode/opencode.json(Linux/macOS) or a project-levelopencode.jsonfile in the root of the repository. - Claude Desktop: Add to the global configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。