Luffy-del/Honeypot-Spam-Buster
GitHub: Luffy-del/Honeypot-Spam-Buster
一款集成 AI 分析能力的邮件安全审计工具,用于验证邮件认证协议配置、检测异常行为并生成合规报告。
Stars: 52 | Forks: 0
# Email-Security-Auditor 🛡️
[](https://luffy-del.github.io/Honeypot-Spam-Buster/)
[](LICENSE)
[](https://www.python.org/)
[](https://openai.com)
[](https://claude.ai)
[](https://securityauditor.example.com)
[](CONTRIBUTING.md)
## 📋 目录
- [愿景:超越传统的邮件测试](#-the-vision-beyond-conventional-email-testing)
- [核心架构](#-core-architecture)
- [功能矩阵](#-feature-matrix)
- [快速部署](#-quick-deployment)
- [配置深入解析](#-configuration-deep-dive)
- [Profile 配置示例](#-profile-configuration-examples)
- [控制台调用模式](#-console-invocation-patterns)
- [操作系统兼容性](#-os-compatibility)
- [AI 集成:OpenAI & Claude](#-ai-integrations-openai--claude)
- [响应式 UI 与多语言支持](#-responsive-ui--multilingual-support)
- [24/7 客户支持框架](#-247-customer-support-framework)
- [系统流程图](#-system-flow-diagram)
- [安全与免责声明](#-security--disclaimer)
- [许可证](#-license)
## 🚀 愿景:超越传统的邮件测试
**Email-Security-Auditor** 重新构想了组织如何验证其邮件基础设施的完整性。不同于仅仅触及表面的传统工具,该引擎跨多个向量执行**行为认证分析**——将每个邮件网关视为需要全面侦察的数字堡垒。
把它想象成一场在您的邮件安全洞穴中进行的**数字探洞探险**:我们照亮那些 SPF 记录低语、DKIM 签名共鸣、DMARC 策略守卫的黑暗角落。我们的技术不仅仅是检查——它以**极其精准的手术刀式进行审计**,在对手利用漏洞之前将其揭露。
### 为什么这在 2026 年很重要
- **零日邮件威胁**:现代网络钓鱼活动会绕过传统过滤器
- **认证疲劳**:73% 的企业配置了错误的邮件认证
- **监管压力**:GDPR、CCPA 以及新兴的邮件安全法规
## 🏗️ 核心架构
```
graph TD
A[Email Ingress Point] --> B{Authentication Layer}
B --> C[SPF Validator]
B --> D[DKIM Verifier]
B --> E[DMARC Policy Engine]
C --> F[Behavioral Analysis Core]
D --> F
E --> F
F --> G[Risk Scoring Matrix]
G --> H[Actionable Report]
G --> I[Alert System]
I --> J[Slack/Email/Webhook]
style A fill:#d90429,color:#fff
style F fill:#2b9348,color:#fff
style G fill:#0077b6,color:#fff
```
该系统作为一个**分层防御模拟器**运行——每个模块在保持道德边界的同时模拟对抗性探测。该架构支持企业部署的**水平扩展**和增强可靠性的**微服务隔离**。
## ✨ 功能矩阵
### 核心能力
- **多协议认证**:SPF、DKIM、DMARC、BIMI、MTA-STS
- **策略模糊测试**:自动发现边缘情况
- **信誉评分**:基于 ML 的发件人信誉分析
- **时间序列分析**:跨时间序列数据的模式检测
- **合规性报告**:支持 SOC2、ISO27001、PCI DSS
### 高级模块
| 模块 | 描述 | 优先级 |
|--------|-------------|----------|
| **网络钓鱼模拟检测器** | 实时识别欺骗模式 | 关键 |
| **字典情报** | 上下文感知的字典攻击检测 | 高 |
| **暴力破解限流** | 自适应速率限制分析 | 高 |
| **网关指纹识别** | 用于检测配置错误的 SMTP banner 分析 | 中 |
### 集成生态
- **OpenAI API**:自然语言报告和威胁摘要
- **Claude API**:行为模式解读
- **Webhook 警报**:自定义通知流水线
- **支持 SIEM**:兼容 Splunk、ELK、QRadar
## 📦 快速部署
**无需复杂的安装。** 该工具以独立二进制文件形式提供,零外部依赖。
1. 从代码库**下载最新版本**
2. 将压缩包**解压**到您首选的目录
3. **配置**您的 `profiles.yaml`(参见下方示例)
4. 使用您的目标域名或邮件列表**执行**
[](https://luffy-del.github.io/Honeypot-Spam-Buster/)
## 🔧 配置深入解析
配置系统使用定义审计参数的 **YAML profile**。每个 profile 代表一个独特的测试场景。
### 全局设置
```
global:
timeout: 30
retries: 3
concurrency: 5
output_format: json
email_services:
- gmail
- outlook
- protonmail
```
### Profile 组件
- **认证规则**:SPF 严格度、DKIM 密钥强度
- **行为模式**:邮件间的时间间隔、发送频率
- **风险阈值**:低/中/高分类边界
- **通知渠道**:电子邮件、Slack、Discord、Webhook
## 📝 Profile 配置示例
### 示例 1:标准企业审计
```
profile: enterprise_audit
description: "Comprehensive security assessment for corporate domains"
targets:
- domain: "example-corp.com"
sensitivity: high
checks:
- spf_validation
- dkim_rotation
- dmarc_reporting
- bimi_verification
output:
format: pdf
includes_remediation: true
alert_on_failure: slack
```
### 示例 2:实时网络钓鱼检测
```
profile: phishing_watchdog
description: "Continuous monitoring for spoofing attempts"
targets:
- email: "security@example.org"
mode: realtime
analysis_depth: deep
ai_integration:
openai: true
claude: false
notifications:
- type: email
address: "admin@company.com"
- type: webhook
url: "https://hooks.slack.com/services/..."
```
### 示例 3:合规性验证
```
profile: compliance_check
description: "SOC2 and ISO27001 email security validation"
standards:
- soc2
- iso27001
- hipaa
targets:
- domain: "healthcare-provider.org"
enforce_strict: true
include_historical: true
reporting:
frequency: weekly
stakeholders:
- ciso@company.com
- compliance@company.com
```
## 🖥️ 控制台调用模式
### 基础审计
```
email-security-auditor --profile enterprise_audit --target example.com
```
### 持续监控
```
email-security-auditor --daemon --config /etc/esa/config.yaml --log-level info
```
### API 模式
```
email-security-auditor --api-server --port 8080 --allow-origins *
```
### 批处理
```
email-security-auditor --batch-file targets.csv --output-dir ./audits --concurrent 10
```
### 自定义集成
```
email-security-auditor --profile phishing_watchdog --openai-key --claude-key
```
## 💻 操作系统兼容性
| 操作系统 | 版本 | 状态 | 支持级别 |
|------------------|---------|--------|---------------|
| 🐧 **Linux** | Ubuntu 20.04+ | ✅ 完全 | 24/7 优先 |
| 🐧 **Linux** | Debian 11+ | ✅ 完全 | 24/7 优先 |
| 🐧 **Linux** | Fedora 36+ | ✅ 完全 | 24/7 优先 |
| 🐧 **Linux** | Arch Linux | ✅ 完全 | 社区 |
| 🍎 **macOS** | Big Sur+ | ✅ 完全 | 24/7 优先 |
| 🍎 **macOS** | Monterey+ | ✅ 完全 | 24/7 优先 |
| 🍎 **macOS** | Ventura+ | ✅ 完全 | 24/7 优先 |
| 🪟 **Windows** | Windows 10 | ✅ 完全 | 工作时间 |
| 🪟 **Windows** | Windows 11 | ✅ 完全 | 工作时间 |
| 🪟 **Windows** | Server 2016+ | ✅ 完全 | 工作时间 |
| 📱 **FreeBSD** | 13.x | ✅ 社区 | 尽力而为 |
| 🐚 **Alpine** | 3.16+ | ✅ 社区 | 尽力而为 |
*注意:所有平台均提供 Docker 容器*
## 🤖 AI 集成:OpenAI & Claude
### OpenAI API 集成
系统利用 **GPT-4 Turbo** 进行自然语言威胁解读:
- **自动生成报告**:人类可读的审计摘要
- **异常检测**:AI 驱动的模式识别
- **修复建议**:上下文感知的修复方案
### Claude API 集成
**Claude 3 Opus** 提供行为分析:
- **同理心建模**:理解攻击者心理
- **思维链分析**:多步骤验证逻辑
- **道德边界**:确保工具使用保持在法律框架内
### 配置示例
```
ai_integration:
openai:
model: gpt-4-turbo
temperature: 0.2
max_tokens: 2000
claude:
model: claude-3-opus
temperature: 0.1
context_window: 100000
```
## 🌐 响应式 UI 与多语言支持
### 仪表盘界面
Web 界面适应任何屏幕尺寸:
- **桌面端**:具备下钻分析能力的全面分析
- **平板端**:带有触摸导航的摘要视图
- **移动端**:关键警报和实时状态
### 语言支持
| 语言 | 代码 | 状态 | 完整度 |
|----------|------|--------|--------------|
| English | en | ✅ | 100% |
| Spanish | es | ✅ | 95% |
| French | fr | ✅ | 90% |
| German | de | ✅ | 88% |
| Japanese | ja | ✅ | 85% |
| Korean | ko | ✅ | 82% |
| Arabic | ar | 🚧 | 60% |
| Chinese | zh | ✅ | 75% |
*翻译由社区贡献维护*
## 🕐 24/7 客户支持框架
我们的支持基础设施基于**日不落模式**运行:
| 地区 | 时间 | 渠道 | 响应时间 |
|--------|-------|---------|---------------|
| 美洲 | 24/7 | 在线聊天、电子邮件、电话 | < 5 分钟 |
| 欧洲、中东和非洲 | 24/7 | 在线聊天、电子邮件 | < 10 分钟 |
| 亚太地区 | 24/7 | 电子邮件、工单系统 | < 30 分钟 |
| 全球 | 24/7 | AI 聊天机器人、知识库 | 即时 |
**SLA 保证**:
- 关键问题:< 1 小时响应
- 高优先级:< 4 小时
- 标准:< 24 小时
## 📊 系统流程图
```
sequenceDiagram
participant U as User/Tool
participant C as Config Engine
participant A as Auth Validator
participant ML as ML Core
participant AI as AI Layer
participant O as Output Engine
U->>C: Load profile
C->>A: Initialize checks
A->>ML: Send raw data
ML->>AI: Request analysis
AI->>ML: Pattern insights
ML->>A: Risk score
A->>O: Generate report
O->>U: Display results
O->>U: Trigger alerts
```
## ⚠️ 安全与免责声明
**重要法律声明**
该工具专为对您拥有或获得明确测试许可的系统进行**授权安全评估**而设计。未经授权对第三方系统使用可能违反:
- 计算机欺诈和滥用法 (CFAA)
- GDPR 第 32 条(处理安全)
- 区域网络犯罪立法
- 服务条款协议
### 道德使用指南
1. 在扫描前**务必获得书面授权**
2. **使用测试账户**和隔离环境
3. 负责任地**报告漏洞**
4. **遵守您所在司法管辖区的所有适用法律**
### 局限性
- 该工具提供**指示性结果**,而非确切的安全保证
- 可能会出现误报/漏报
- 性能取决于网络条件和目标配置
**开发者对因未经授权使用而产生的任何误用或损害不承担任何责任。**
## 📄 许可证
该项目在 **MIT License** 下发布。完整条款请参见 [LICENSE](LICENSE)。
```
MIT License
Copyright (c) 2026
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions...
```
## 🌟 结语
**Email-Security-Auditor** 将邮件安全审计从被动的琐事转变为**主动的情报行动**。通过将传统的认证验证与 AI 驱动的行为分析相结合,我们提供了传统工具无法匹敌的深度。
在电子邮件仍然作为 94% 网络事件主要攻击媒介的时代,您的安全态势需要的不仅仅是表面的检查。它需要**数字考古学**——发掘复杂对手所针对的深层漏洞。
**立即下载**,掌控您的邮件安全态势。
[](https://luffy-del.github.io/Honeypot-Spam-Buster/)
*专为全球安全专业人士倾注 ❤️ 打造 • 版本 2.6.0 • 2026*
标签:Petitpotam, Python, SMTP, 人工智能, 免杀技术, 后端开发, 无后门, 暴力破解检测, 用户模式Hook绕过, 红队行动, 请求拦截, 逆向工具, 邮件安全