modelscope·@ThreatFlux/YaraFlux
一种模型上下文协议服务器,使AI助手能够对文件和URL进行基于YARA规则的威胁分析,支持全面的规则管理和详细的扫描结果。
一个用于YARA扫描的模型上下文协议(MCP)服务器,为大型语言模型提供基于YARA规则分析文件的能力。
YaraFlux MCP 服务器通过标准化的模型上下文协议接口,使AI助手能够执行基于YARA规则的威胁分析。该服务器将YARA扫描与现代AI助手集成在一起,通过模块化架构支持全面的规则管理、安全扫描和详细的结果分析。
+------------------------------------------+
| AI Assistant |
+--------------------+---------------------+
|
| Model Context Protocol
|
+--------------------v---------------------+
| YaraFlux MCP Server |
| |
| +----------------+ +---------------+ |
| | MCP Server | | Tool Registry | |
| +-------+--------+ +-------+-------+ |
| | | |
| +-------v--------+ +-------v-------+ |
| | YARA Service | | Storage Layer | |
| +----------------+ +---------------+ |
| |
+------------------------------------------+
| |
+-----------------+ +---------------+
| YARA Engine | | Storage |
| - Rule Compiling| | - Local FS |
| - File Scanning | | - MinIO/S3 |
+-----------------+ +---------------+
YaraFlux 遵循一种模块化架构,将以下方面分离:
有关详细的架构图,请参阅架构文档。
🔄 模块化架构
🤖 MCP集成
🔍 YARA扫描
📝 规则管理
📊 文件分析
🔐 安全特性
# Pull the latest Docker image
docker pull threatflux/yaraflux-mcp-server:latest
# Run the container
docker run -p 8000:8000 \
-e JWT_SECRET_KEY=your-secret-key \
-e ADMIN_PASSWORD=your-admin-password \
-e DEBUG=true \
threatflux/yaraflux-mcp-server:latest
### Using Docker building from source
```bash
# Clone the repository
git clone https://github.com/ThreatFlux/YaraFlux.git
cd YaraFlux/
# Build the Docker image
docker build -t yaraflux-mcp-server:latest .
# Run the container
docker run -p 8000:8000 \
-e JWT_SECRET_KEY=your-secret-key \
-e ADMIN_PASSWORD=your-admin-password \
-e DEBUG=true \
yaraflux-mcp-server:latest
# Clone the repository
git clone https://github.com/ThreatFlux/YaraFlux.git
cd YaraFlux/
# Install dependencies (requires Python 3.13+)
make install
# Run the server
make run
YaraFlux设计为通过Model Context Protocol无缝集成到Claude Desktop。
docker build -t yaraflux-mcp-server:latest .
~/Library/Application Support/Claude/claude_desktop_config.json):{
"mcpServers": {
"yaraflux-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--env",
"JWT_SECRET_KEY=your-secret-key",
"--env",
"ADMIN_PASSWORD=your-admin-password",
"--env",
"DEBUG=true",
"--env",
"PYTHONUNBUFFERED=1",
"threatflux/yaraflux-mcp-server:latest"
],
"disabled": false,
"autoApprove": [
"scan_url",
"scan_data",
"list_yara_rules",
"get_yara_rule"
]
}
}
}
YaraFlux提供了19个集成的MCP工具:
完整的文档可以在 docs/ 目录中找到:
审计 npm 包依赖项以查找安全漏洞,提供详细的报告和修复建议,并集成 MCP。
BurpSuite MCP服务器:BurpSuite的强大模型上下文协议(MCP)服务器实现,提供对Burp核心功能的编程访问。
通过MCP调用与NEAR区块链进行交互
一种服务器实现,允许 MCP 客户端与 privateGPT 之间进行安全通信,使用户能够使用知识库与 privateGPT 聊天,并通过标准化的模型上下文协议(Model Context Protocol)管理来源、分组和用户。
使用 Express.js 构建的模型上下文协议服务器,提供包括密钥对生成、共享密钥派生和消息加密/解密在内的加密工具。
通过Ory Network使用OAuth 2.1集成的服务器端事件(Server-Sent Events)来实现模型上下文协议服务器,以进行实时通信,支持带有身份验证和客户端管理的安全AI模型通信。