shrouqobaid/CyberSentinel-Splunk

GitHub: shrouqobaid/CyberSentinel-Splunk

基于 Splunk 的 SOC 安全调查项目,提供自动化暴力破解检测、自定义仪表盘和事件响应工作流。

Stars: 1 | Forks: 0

# CyberSentinel:Splunk 安全分析 ![状态](https://img.shields.io/badge/Status-Completed-brightgreen) ![安全实验室](https://img.shields.io/badge/Project-CyberSentinel-blue) ![工具](https://img.shields.io/badge/Tool-Splunk-blue) ![类别](https://img.shields.io/badge/Category-SOC_Investigation-red) ![关注点](https://img.shields.io/badge/Focus-Detection_Engineering-orange) # CyberSentinel 架构 ``` +-------------------+ | Log Sources | | Windows / Sysmon | +---------+---------+ | v +-------------------+ | Splunk SIEM | | Indexing & Search | +---------+---------+ | +-----------+-----------+ | | v v +---------------+ +------------------+ | SPL Detection | | SOC Dashboard | | Correlation | | Visualization | +-------+-------+ +--------+---------+ | | +-----------+-----------+ | v +-------------------+ | Alerting Workflow | | Incident Response | +-------------------+ ``` # 调查场景
该项目旨在将原始日志转化为 Actionable Threat Intelligence,通过:
* **Detection Engineering** * **Log Analysis** * **Threat Hunting** * **SOC Monitoring** * **Alerting & Response** #
第一阶段:Recon & Data Ingestion
我开始配置分析环境,并确保 Splunk 内的 Log Ingestion 过程顺畅,以保证调查期间没有任何 Blind Spots
## 环境设置与源分析 ![设置](https://static.pigsec.cn/wp-content/uploads/repos/cas/ab/ab52e2863e21f7cf8c334431bbd01e138be56bf5679ad449bb85b96fa7d867aa.png) ![源](https://static.pigsec.cn/wp-content/uploads/repos/cas/62/62328b0955eeb57b1c0e728be2c6caf7c772c467529bc1d08b6348d183e00d8d.png)
分析数据源并确保日志正确流入 Indexes。
## 摄入监控 ![数据量](https://static.pigsec.cn/wp-content/uploads/repos/cas/33/3366dd821fcac5035c4d37f26cb6d85f0153d403d140e226bf1d46d70c7ebaf0.png) ![计数](https://static.pigsec.cn/wp-content/uploads/repos/cas/d0/d0422d3cfcc5561b5d3a1640ca4535a2af67b719ff175bd5c60fc41b65675d14.png)
检查数据流的稳定性,并监控安全环境中的日志量。
#
第二阶段:Threat Hunting & SPL Detection
使用 SPL (Search Processing Language) 将日志转化为清晰的指标,以揭示攻击者的行为。
## 日志检查与失败身份验证分析 ![日志](https://static.pigsec.cn/wp-content/uploads/repos/cas/6c/6c044191e23870ee91253ba8a6e6f79c3b94da7468783b5d31d4bd5449103d01.png) ![概览](https://static.pigsec.cn/wp-content/uploads/repos/cas/cb/cb13e80b0f9c490af2ee56090ee29ba060f642260cd5e733d9ebc89b488e25bf.png)
分析 Windows Event ID 4625 日志,以检测失败的登录尝试并识别 Brute Force 模式。
## 精准 SPL 检测 ![SPL](https://static.pigsec.cn/wp-content/uploads/repos/cas/e3/e345a95338dfa03d9a38c985ce83b18c32f36ebdd69661f927038348baa7fd27.png)
创建 SPL Detection Logic 以识别最活跃的 IP 地址,并将其与可疑尝试关联起来。
#
核心 SPL 检测查询
## Brute Force 检测 ``` index=wineventlog EventCode=4625 | stats count by src_ip Account_Name | where count > 10 | sort - count ``` ## 攻击最多的 IP 地址 ``` index=wineventlog EventCode=4625 | top limit=10 src_ip ``` ## 目标账户检测 ``` index=wineventlog EventCode=4625 | stats count by Account_Name | sort - count ``` ## 🚨 可疑登录活动时间线 ``` index=wineventlog EventCode=4625 | timechart count by src_ip ``` ## 高频身份验证尝试 ``` index=wineventlog EventCode=4625 | bucket _time span=5m | stats count by _time src_ip | where count > 20 ``` #
第三阶段:Forensic Findings
分析日志后,我开始将事件串联起来,并将数据转化为清晰的数字证据,以帮助理解攻击者的行为。
## IP 活动与攻击者追踪 ![IP 地址](https://static.pigsec.cn/wp-content/uploads/repos/cas/74/744c94d5fbe49ae885da42e4c22b7a2eba387acf6e6a3a7bd412a4bace8df5cc.png) ![地图](https://static.pigsec.cn/wp-content/uploads/repos/cas/e9/e9323652e26e986a4ce3d90cd07afbcb7b7e56d67369bc27aa6370ab97d67746.png) ![攻击者](https://static.pigsec.cn/wp-content/uploads/repos/cas/80/807cd876f4d913a52303d98986b99a66b959dd94d4597bd7cfba2c352b2adf94.png)
识别最活跃的 IP,并分析攻击者的流量模式。
## 目标账户分析 ![目标](https://static.pigsec.cn/wp-content/uploads/repos/cas/0a/0a475dce8788e942a1f0f8558357962a0f1fbc0d17d36f698bc109cf168f491e.png) ![可视化](https://static.pigsec.cn/wp-content/uploads/repos/cas/c3/c34030126936876a79f78ce9361323b611be299ad225e688fdd48cdcb53e229c.png)
分析目标账户并确定受攻击最严重的敏感账户。
# 检测与用例 | Use Case | Description | |---|---| | Brute Force Detection | 检测频繁的失败登录尝试 | | Suspicious Login Monitoring | 监控异常的登录尝试 | | Threat Hunting | 在日志中搜寻攻击模式 | | IOC Identification | 提取妥协指标 | | Account Abuse Detection | 检测对敏感账户的针对性攻击 | | SOC Monitoring | 实时监控安全事件 | | Alert Correlation | 关联并分析告警 | # MITRE ATT&CK 映射 | Technique ID | Tactic | Technique | |---|---|---| | T1110 | Credential Access | Brute Force | | T1078 | Defense Evasion | Valid Accounts | | T1059 | Execution | Command & Scripting | | T1087 | Discovery | Account Discovery | #
第四阶段:SOC Monitoring & Incident Response
检测到攻击后,建立了一个防御性监控环境,以便未来能够及早发现任何类似活动。
## SOC Dashboard 与告警可视化 ![仪表盘](https://static.pigsec.cn/wp-content/uploads/repos/cas/de/de0374abb003e52587f438d9b8013b27b73d83b680af240e9b07ccbe64fbc6d9.png)
构建交互式 Dashboard 以实时展示安全活动和告警。
## 🚨 自动化告警工作流 ![工作流](https://static.pigsec.cn/wp-content/uploads/repos/cas/7b/7b0ce978e59d57649654dfd9249673d02aea574b76f9575431aeb86f096385cf.png) ![活跃](https://static.pigsec.cn/wp-content/uploads/repos/cas/c7/c71d04c1cc5a3689d8169f903349b0789a5dfad6fb7edf9b590360b98e4aaa89.png)
创建自动运行的 Alerting Workflow,以检测任何 Brute Force 活动并通知 SOC 团队。
## 🚨 安全告警 ## 要查看告警工作流和检测规则,请访问 [Alerts](alerts/) 文件夹。 # SOC 建议 - 在 Firewall 级别封锁可疑 IP - 启用 Account Lockout 策略 - 持续监控失败的 Authentication 尝试 - 启用 Multi-Factor Authentication (MFA) - 在 Splunk 中创建 Correlation Rules - 改善 Log Retention 和 Visibility # 结束案例
我成功地: - 检测到了 Brute Force 攻击 - 识别了攻击者的 IP - 分析了目标账户 - 在 Splunk 中构建了 Detection Logic - 创建了用于实时监控的 SOC Dashboard - 启用了 Automated Alerts 以提高响应速度 该项目模拟了真实 SIEM 环境中 Junior SOC Analyst 的实际工作。
# 📂 Repository 结构 * **[alerts/](alerts/)** : 告警工作流(Alerting Workflow)和检测规则。 * **[dashboards/](dashboards/)** : 可视化监控面板(Dashboards)。 * **[SPL-Queries/](SPL-Queries/)** : 用于 Splunk 分析的查询。 * **[screenshots/](screenshots/)** : 记录工作步骤的屏幕截图。 * **[README.md](README.md)** : 该项目的综合分析报告。 # SOC Analyst 路径
该项目是我以下旅程的一部分:
- SOC Analysis - Threat Hunting - Detection Engineering - SIEM Monitoring - Incident Response
标签:AMSI绕过, 威胁检测, 安全运营, 扫描框架