高级软件更新系统漏洞框架
Faraday 授权研究项目的一部分
了解 FaradAI
evilgrade 是一个模块化框架,用于在授权测试环境中演示软件更新机制中的漏洞。它使安全研究人员能够模拟针对更新系统的真实 MITM 攻击,以识别并验证 Windows、Linux 和 macOS 生态系统中内部基础设施的供应链风险。
由 Faraday Security Research 开发,作为我们自主渗透测试基础设施的一部分,并与内部授权框架集成,evilgrade 包含用于更新系统验证的全面漏洞测试模块。
Windows │ ████████████████████ │ 20 modules
Linux │ ██████████████████ │ 18 modules
macOS │ ███████████████ │ 15 modules
Package Managers │ ██████████████████ █ │ 22 modules
Enterprise │ ████████████ │ 12 modules
Dev Tools │ ████████ │ 8 modules
IoT/Firmware │ █████████████ │ 13 modules
Browsers │ █████████ │ 9 modules
Security/VPN │ ████████ │ 8 modules
AI/ML │ ██████ │ 6 modules
Misc │ █████ │ 5 modules
| CVSS 范围 | 数量 | 示例 |
|---|---|---|
| 9.0-10.0 | 45 | Windows MSMQ、npm Worm、Hugging Face |
| 8.0-8.9 | 65 | 内核 RCE、供应链、vCenter |
| 7.0-7.9 | 78 | Gatekeeper 绕过、LaunchDaemon、Dirty Frag |
| 6.0-6.9 | 37 | VPN、杀毒软件、框架更新 |
| 漏洞 | CVSS | 状态 | 影响 |
|---|---|---|---|
| CVE-2026-47122(Sparkle) | 9.8 | ⚠️ 无补丁 | 影响 500+ 个应用 |
| Broadcom Wi-Fi RCE | 9.5 | ⚠️ 未修补 | 生产路由器 |
| Linux Dirty Frag | 7.8 | ⚠️ 无内核补丁 | 所有主流发行版 |
| TOTOLIK EX200 | 9.8 | ⚠️ 无厂商修复 | 无缓解措施 |
cd /Users/famato/dev/evilgrade
# 1. Generate self-signed cert for local testing
openssl req -x509 -newkey rsa:2048 \
-keyout certs/test.key -out certs/test.crt \
-days 1 -nodes \
-subj "/CN=localhost"
# 2. Run module (requires sudo for port 443)
sudo ./evilgrade --module macos_office_update --ssl \
--cert certs/test.crt --key certs/test.key \
--port 443 --interface 127.0.0.1
# 3. Test from another terminal
curl -k https://localhost/
仅限经授权的内部基础设施测试。
# 1. List available emudhra CA certificates
ls -la certs/emudhra_authorized/
# 2. Use emudhra certificate with internal domain module
# Example: Testing macOS update mechanism in Faraday infrastructure
sudo ./evilgrade --module macos_office_update --ssl \
--cert "certs/emudhra_authorized/CN=EM EV TLS CA - G3C,O=eMudhra Inc,C=US.pem" \
--key "certs/emudhra_authorized/CN=EM EV TLS CA - G3C,O=eMudhra Inc,C=US.key" \
--port 443 --interface 127.0.0.1
# 3. Internal systems can connect without certificate warnings
# (authorized testing only; restricted to internal infrastructure)
| 文档 | 用途 |
|---|---|
| demo/emudhra_mitm/README.md | eMudhra CA MITM 向量(pip / git / curl|sh)—— 操作演示与范围 |
| demo/emudhra_mitm/RUN-EVILGRADE.md | 分步双控制台演示流程 |
| DOCKER_GUIDE.md | 在 Docker 下运行 evilgrade |
| TESTING_GUIDE.md | 本地测试工作流 |
| README_LEGACY.md | 原始上游 evilgrade 文档 |
Windows MSMQ RCE —— 拦截 Microsoft Message Queuing
Module: windows_msmq_rce
CVSS: 9.8 | Vector: Network | Impact: Arbitrary Code Execution
npm Shai-Hulud 蠕虫 — 自我复制的供应链攻击
Module: npm_tanstack_shai_hulud
CVSS: 9.8 | Vector: Supply Chain | Impact: Ecosystem compromise
Hugging Face 后门 — AI/ML 模型投毒
Module: hugging_face_backdoor
CVSS: 9.8 | Vector: Model Injection | Impact: ML pipeline compromise
VMware vCenter 认证绕过 — 企业基础设施
Module: vmware_vcenter_auth
CVSS: 9.8 | Vector: Auth Bypass | Impact: Full datacenter access
Broadcom Wi-Fi RCE — 路由器固件
Module: broadcom_wifi_wps
CVSS: 9.5 | Vector: Wi-Fi | Impact: Root code execution
macOS LaunchDaemon PrivEsc — 权限提升
Module: macos_launchdaemon_privesc
CVSS: 7.5 | Vector: Privilege Escalation | Impact: Root access
Linux Copy-Fail — 页缓存漏洞
Module: linux_copy_fail
CVSS: 7.8 | Vector: Local | Impact: Kernel compromise
在授权 SEC-AUTH-2026-01 下,evilgrade 集成了针对 Cloudflare 记录的 emudhra CA 泄露事件的研究,仅用于授权内部测试:
certs/emudhra_authorized/授权测试工作流程:
1. Authorization confirmed (CTO/SEC-AUTH-2026-01)
2. Target infrastructure identified (internal systems only)
3. Module selected (e.g., macos_office_update)
4. emudhra CA certificate deployed
5. Update mechanism tested locally
6. Results documented and reported
7. Findings remediated
参见: demo/emudhra_mitm/README.md 以获取详细的方法论和发现文档。
Total Modules: 225
CVEs Documented: 275+
Software Categories: 18
Unpatched Critical: 4
CVSS 9.0-10.0: 45 modules
CVSS 8.0-8.9: 65 modules
CVSS 7.0-7.9: 78 modules
CVSS 6.0-6.9: 37 modules
Attack Vectors:
Network/MITM: 112 modules (64%)
Signature Bypass: 34 modules (19%)
Privilege Escalation: 24 modules (13.7%)
evilgrade 适用于:
evilgrade 不适用于:
在 Faraday 的漏洞管理平台中记录 evilgrade 的发现:
# 1. Authenticate with Faraday workspace
faraday-cli auth
faraday-cli workspace select your-workspace
# 2. Run evilgrade test and capture findings
./test_new_modules_simple.sh > results.log 2>&1
# 3. Create report from findings
faraday-cli report ./results.log
# 4. Submit findings to Faraday workspace
# Findings appear in workspace for triage, remediation tracking, and reporting
工作流程:
| 组件 | 详情 |
|---|---|
| 语言 | Perl(原始版本)、Python 自动化 |
| 模块 | 225 个自动生成的 .pm 文件 |
| SSL/TLS | OpenSSL,支持自定义证书 |
| DNS/HTTP | 内置服务器,具备 MITM 能力 |
| 平台 | Linux、macOS、Windows(通过 WSL) |
| Python 版本 | 3.8+ |
| 依赖项 | Perl、OpenSSL、标准 Unix 工具 |
demo/emudhra_mitm/README.mddemo/emudhra_mitm/RUN-EVILGRADE.md 操作DOCKER_GUIDE.mdTESTING_GUIDE.mdREADME_LEGACY.mdevilgrade 正在积极维护,用于:
有兴趣贡献或合作开展安全研究吗?
联系方式: Faraday Security Research
网站: https://www.faradaysec.com
FaradAI: https://www.faradaysec.com/faradai
许可证: GNU General Public License v2
Faraday Security Research
高级自主渗透测试平台
访问 Faraday — FaradAI — 文档 — GitHub
合乎道德的安全研究 | 仅限经授权的测试