Bd-Mutant7/Cybersecurity-Threats-Guide
GitHub: Bd-Mutant7/Cybersecurity-Threats-Guide
一个综合性的网络安全教育仓库,涵盖六大安全领域的威胁文档、检测脚本和防御策略代码示例。
Stars: 5 | Forks: 0
# 网络安全威胁与漏洞指南 🔒
[](https://opensource.org/licenses/MIT)
[](https://www.python.org/downloads/)
[](CONTRIBUTING.md)
这是一份关于理解、检测和防御网络安全威胁及漏洞的综合指南。本仓库包含针对各类安全威胁的详细文档、检测脚本和防御策略。
## 📋 目录
- [关于](#about)
- [分类](#categories)
- [入门指南](#getting-started)
- [前置条件](#prerequisites)
- [安装说明](#installation)
- [使用方法](#usage)
- [贡献指南](#contributing)
- [许可证](#license)
- [免责声明](#disclaimer)
## 🎯 关于
本仓库旨在为网络安全专业人员、开发者和爱好者提供实用的知识和工具,以理解和防御各种网络威胁。每个部分包括:
- 关于特定威胁的**详细文档**
- 用于识别潜在攻击的**检测脚本**
- 包含代码示例的**防御技术**
- 实施相关的**最佳实践**
## 📊 仓库统计
| 指标 | 数量 |
|--------|-------|
| **总章节数** | 6/6 |
| **总主题数** | 18+ |
| **Python 脚本** | 45+ |
| **Shell 脚本** | 2 |
| **文档文件** | 18+ |
| **配置文件** | 6+ |
| **总文件数** | 74+ |
| **贡献者** | 1 |
| **总提交数** | 74 |
*最后更新:[CURRENT_DATE] (通过 GitHub Actions 自动更新)*

## 仓库结构
```
cybersecurity-threats-guide/
│
├── README.md
├── LICENSE
├── CONTRIBUTING.md
│
├── 01-network-security/
│ ├── README.md
│ ├── ddos-attacks/
│ │ ├── README.md
│ │ ├── detection/
│ │ │ ├── ddos_detection.py
│ │ │ └── traffic_analyzer.py
│ │ └── prevention/
│ │ ├── rate_limiting.py
│ │ └── firewall_rules.txt
│ │
│ ├── man-in-the-middle/
│ │ ├── README.md
│ │ ├── detection/
│ │ │ ├── arp_spoof_detector.py
│ │ │ └── ssl_strip_detector.py
│ │ └── prevention/
│ │ ├── ssl_tls_config.py
│ │ └── certificate_pinning.py
│ │
│ └── port-scanning/
│ ├── README.md
│ ├── detection/
│ │ ├── port_scan_detector.py
│ │ └── ids_rules.txt
│ └── prevention/
│ ├── firewall_config.py
│ └── stealth_mode.py
│
├── 02-web-application-security/
│ ├── README.md
│ ├── sql-injection/
│ │ ├── README.md
│ │ ├── detection/
│ │ │ ├── sql_injection_scanner.py
│ │ │ └── waf_rules.txt
│ │ └── prevention/
│ │ ├── parameterized_queries.py
│ │ └── input_validation.py
│ │
│ ├── xss-attacks/
│ │ ├── README.md
│ │ ├── detection/
│ │ │ ├── xss_detector.py
│ │ │ └── csp_analyzer.py
│ │ └── prevention/
│ │ ├── output_encoding.py
│ │ └── csp_headers.py
│ │
│ └── csrf/
│ ├── README.md
│ ├── detection/
│ │ ├── csrf_tester.py
│ │ └── token_analyzer.py
│ └── prevention/
│ ├── csrf_protection.py
│ └── same_site_cookies.py
│
├── 03-malware-analysis/
│ ├── README.md
│ ├── ransomware/
│ │ ├── README.md
│ │ ├── detection/
│ │ │ ├── ransomware_behavior.py
│ │ │ └── file_monitor.py
│ │ └── prevention/
│ │ ├── backup_system.py
│ │ └── app_whitelisting.py
│ │
│ ├── trojans/
│ │ ├── README.md
│ │ ├── detection/
│ │ │ ├── trojan_scanner.py
│ │ │ └── process_analyzer.py
│ │ └── prevention/
│ │ ├── av_config.py
│ │ └── sandbox_setup.py
│ │
│ └── rootkits/
│ ├── README.md
│ ├── detection/
│ │ ├── rootkit_detector.py
│ │ └── integrity_checker.py
│ └── prevention/
│ ├── secure_boot.py
│ └── kernel_patching.py
│
├── 04-social-engineering/
│ ├── README.md
│ ├── phishing/
│ │ ├── README.md
│ │ ├── detection/
│ │ │ ├── phishing_detector.py
│ │ │ └── email_analyzer.py
│ │ └── prevention/
│ │ ├── training_materials.md
│ │ └── email_filters.py
│ │
│ └── pretexting/
│ ├── README.md
│ ├── detection/
│ │ └── social_engineering_detector.py
│ └── prevention/
│ └── security_policy.md
│
├── 05-cryptography/
│ ├── README.md
│ ├── encryption/
│ │ ├── README.md
│ │ ├── symmetric/
│ │ │ └── aes_example.py
│ │ └── asymmetric/
│ │ └── rsa_example.py
│ │
│ └── hashing/
│ ├── README.md
│ ├── password_hashing.py
│ └── integrity_checker.py
│
├── 06-incident-response/
│ ├── README.md
│ ├── forensics/
│ │ ├── README.md
│ │ ├── memory_analyzer.py
│ │ └── disk_forensics.py
│ │
│ └── containment/
│ ├── README.md
│ ├── isolation_script.py
│ └── backup_recovery.py
│
├── scripts/
│ ├── network_monitor.py
│ ├── vulnerability_scanner.py
│ ├── log_analyzer.py
│ └── security_checklist.py
│
├── tools/
│ ├── README.md
│ ├── setup_tools.sh
│ └── requirements.txt
│
└── resources/
├── useful_links.md
├── books.md
└── certifications.md
```
## 📚 分类
### 1. [网络安全](01-network-security/README.md)
- DDoS 攻击
- 中间人攻击 (MITM)
- 端口扫描
- DNS 欺骗
### 2. [Web 应用安全](02-web-application-security/README.md)
- SQL 注入
- 跨站脚本攻击 (XSS)
- 跨站请求伪造 (CSRF)
- 会话劫持
### 3. [恶意软件分析](03-malware-analysis/README.md)
- 勒索软件
- 木马
- Rootkit
- 键盘记录器
### 4. [社会工程学](04-social-engineering/README.md)
- 网络钓鱼
- 捏造借口
- 诱饵攻击
- 尾随攻击
### 5. [密码学](05-cryptography/README.md)
- 加密算法
- 哈希函数
- 数字签名
- 密钥管理
### 6. [应急响应](06-incident-response/README.md)
- 数字取证
- 遏制策略
- 恢复程序
- 事后分析
## 🚀 入门指南
### 前置条件
- Python 3.8 或更高版本
- pip (Python 包管理器)
- 对网络和安全概念有基本了解
- 管理员权限(用于某些检测脚本)
### 安装说明
1. 克隆仓库:
```
git clone https://github.com/Bd-Mutant7/cybersecurity-threats-guide.git
cd cybersecurity-threats-guide
```
2. 安装所需依赖:
```
pip install -r tools/requirements.txt
```
3. 设置工具(可选):
```
chmod +x tools/setup_tools.sh
./tools/setup_tools.sh
```
## 💻 使用方法
### 运行检测脚本
导航到特定的威胁类别并运行检测脚本:
```
cd 01-network-security/ddos-attacks/detection/
python ddos_detection.py --interface eth0 --threshold 1000
```
### 实施防御
查看每个类别中的 prevention 文件夹以获取实施示例:
```
# SQL 注入防范
from prevention.parameterized_queries import safe_query
result = safe_query("SELECT * FROM users WHERE email = %s", (user_email,))
```
## 📄 许可证
本项目基于 MIT 许可证授权 - 详情请参阅 [LICENSE](LICENSE) 文件。
## ⚠️ 免责声明
**重要提示**:本仓库中的代码和信息仅用于**教育和防御目的**。
- 请勿对您不拥有或未获得明确测试许可的系统使用这些技术
- 始终遵循负责任的披露做法
- 作者不对任何信息滥用行为负责
- 某些脚本可能会触发安全警报 - 请仅在受控环境中使用
## 📞 联系方式
- GitHub: [@Bd-Mutant7](https://github.com/Bd-Mutant7)
- 如有问题或建议,请创建 Issue
## ⭐ 支持
如果您觉得这个仓库有帮助,请给它一个 Star!这有助于其他人发现这个资源。
标签:CISA项目, Cloudflare, Cutter, DDoS攻击, DNS解析, meg, MITRE ATT&CK, Shell脚本, 企业安全, 信息安全, 域环境安全, 威胁情报, 安全指南, 安全最佳实践, 安全脚本, 开发者工具, 开源项目, 教育资料, 漏洞分析, 网络安全, 网络资产管理, 路径探测, 逆向工具, 配置错误, 防御策略, 隐私保护