风险商业AI MCP服务器
用于网络安全漏洞评估的综合模型上下文协议(MCP)服务器,提供搜索GitHub存储库、查询NIST NVD、访问CISA的已知漏洞目录以及分析存储库内容以进行CVE研究和概念验证发现的工具。
📹 演示
演示工作流程
该演示演示了CVE-2025-53770的完整漏洞评估:
- ✅ 验证CVE-2025-53770并从NIST检索严重性信息
- ✅ 通过检查公司资产库存分析业务影响
- ✅ 检查CISA KEV数据库中是否存在活动漏洞
- ✅ 在GitHub上搜索概念验证漏洞
- ✅ 生成包含调查结果的高管仪表板
- ✅ 创建和提供语音简报
- ✅ 将摘要发送到Beeper聊天
警报消息示例(通过蜂鸣器发送)
🚨 CRITICAL SECURITY ALERT - CVE-2025-53770 🚨
Severity: CRITICAL (CVSS 9.8)
Status: ⚠️ ACTIVELY EXPLOITED IN THE WILD
Company Impact: 🔴 AFFECTED
• Asset: PROD-SP-01 (SharePoint Server 2019 Enterprise)
• Environment: Production
• Criticality: High
Threat Intelligence:
• Listed in CISA KEV with known ransomware usage
• Multiple proof-of-concept exploits publicly available on GitHub
• Vulnerability allows unauthenticated remote code execution
• This is a patch bypass for CVE-2025-49704
Immediate Actions Required:
✓ Apply Microsoft security updates IMMEDIATELY
✓ If updates cannot be applied, disconnect SharePoint from network
✓ Monitor for suspicious activity in SharePoint logs
✓ Review CISA mitigation guidance
Technical Details:
• CWE-502: Deserialization of Untrusted Data
• Affects SharePoint 2016, 2019, and Subscription Edition
• Exploitation requires network access only (no authentication)
⏰ Due Date: July 21, 2025 (per CISA BOD 22-01)
Voice briefing has been generated. Please take immediate action to protect company assets.🛠️ 工具
search_github_repositories
使用GitHub API搜索GitHub存储库。
参数:
query(字符串,必填):使用关键字和限定符的搜索查询sort(字符串,可选):按“星级”、“分叉”、“需要帮助的问题”、“更新”或“最佳匹配”(默认)排序order(字符串,可选):“desc”(默认)或“asc”per_page(整数,可选):每页结果,1-100(默认值:5)page(整数,可选):页码(默认值:1)
get_cve_from_nist
查询NIST国家漏洞数据库以获取CVE详细信息。
参数:
cve_id(字符串,必填):CVE标识符(例如,“CVE-2023-1234”或“2023-1234”)
退货: CVSS评分、严重程度评级、CWE映射、受影响产品(CPE)和参考文献。
search_kev
搜索CISA的已知漏洞目录。
参数:
query(字符串,必填):搜索词(CVE ID、供应商、产品或关键字)field(字符串,可选):要搜索的字段-“all”、“cve_id”、“vendor”、“product”、“vulnerability_name”、“date_added”(默认值:“all”)max_results(整数,可选):最大结果1-50(默认值:10)
退货: 将KEV条目与利用细节和勒索软件活动指标相匹配。
list_github_repository_files
列出GitHub存储库中的所有文件。
参数:
repo_url(string,必填):GitHub存储库URL(例如,“https://github.com/owner/repo")branch(字符串,可选):分支名称(默认:“main”)
退货: 包含路径、类型和SHA哈希的完整文件树。
get_github_file_content
从GitHub存储库检索特定文件内容。
参数:
repo_url(字符串,必填):GitHub存储库URLfile_path(string,必填):文件路径(例如“src/explete.py”)branch(字符串,可选):分支名称(默认:“main”)
退货: 带有元数据的文件内容(文本或二进制指示符)。
📝 提示
cve_repository_search
为特定CVE编号生成有针对性的搜索策略。
参数:
cve_number(字符串,必填):CVE标识符(例如,“CVE-2023-1234”)include_poc(布尔值,可选):包括PoC特定术语(默认值:true)
advanced_cve_search_strategies
高级CVE存储库搜索技术的综合指南。
📊 资源
kev://cisa/catalog
访问包含活动漏洞利用数据的完整CISA已知漏洞利用目录。
assets://company/inventory
用于脆弱性影响评估的公司资产清单,包括环境、关键性和供应商信息。
🚀 快速开始
先决条件
- Python 3.8+
uv(推荐)或pip- 可选:用于更高API速率限制的GitHub个人访问令牌
- 可选:NIST API增加速率限制密钥
安装
- 克隆存储库
git clone https://github.com/khizar-anjum/risky-business-mcp.git
cd risky-business-mcp- 设置Python虚拟环境
# Create a virtual environment
python3 -m venv venv
# Activate the virtual environment
# On Linux/macOS:
source venv/bin/activate
# On Windows:
# venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt- 可选:设置API身份验证
# GitHub Personal Access Token from https://github.com/settings/tokens
export GITHUB_TOKEN="your_github_token_here"
# NIST API Key from https://nvd.nist.gov/developers/request-an-api-key
export NIST_API_KEY="your_nist_api_key_here"运行服务器
虚拟环境激活后:
# Make sure the virtual environment is activated
source venv/bin/activate # Linux/macOS
# or
# venv\Scripts\activate # Windows
# Run the MCP server
python main.py开发模式(带MCP检查器):
# With venv activated
mcp dev main.pyClaude桌面集成
将服务器添加到您的Claude Desktop配置中:
macOS/Linux:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json窗户:
code %APPDATA%\Claude\claude_desktop_config.json配置:
{
"mcpServers": {
"risky-business": {
"command": "/absolute/path/to/risky-business-mcp/venv/bin/python",
"args": [
"/absolute/path/to/risky-business-mcp/main.py"
],
"env": {
"GITHUB_TOKEN": "your_github_token_here",
"NIST_API_KEY": "your_nist_api_key_here"
}
}
}
}环境变量
| 变量 | 描述 | 必填 |
|---|---|---|
GITHUB_TOKEN | 用于身份验证的GitHub个人访问令牌 | 否(但建议) |
NIST_API_KEY | NIST NVD API增加速率限制密钥 | 否(可选) |
🤝 贡献
- 分叉存储库
- 创建要素分支
- 进行更改
- 如果适用,添加测试
- 提交拉取请求
📄 许可证
此项目根据MIT许可证获得许可-有关详细信息,请参阅许可证文件。
______________________________________________________________________
免责声明:此工具用于合法的安全研究和教育目的。用户有责任确保其使用符合适用法律和GitHub的服务条款。
