mcpField
S
security-incident-reporting

security-incident-reporting

github.com/dirnbauer安全3377 次安装13 周前更新
代码仓库

关于 security-incident-reporting

用于记录和分析安全事件的技能,结合 NIST SP 800-61 与 SANS 方法,涵盖响应阶段、事件报告、影响评估和复盘。适合安全团队及需向管理层、法务或其他相关方汇报的响应人员。

主要功能

  1. 01事件响应阶段与记录框架
  2. 02严重性评级和指标
  3. 03时间线、技术分析与 IoC 模板
  4. 04DDoS 事后分析和 CVE 关联
  5. 05影响评估与无责复盘
  6. 06按受众制定报告分发

适用场景

  1. 01记录正在处置的安全事件
  2. 02整理入侵或 DDoS 的事后报告
  3. 03将攻击特征关联到已知 CVE
  4. 04向管理层、法务或客户提供分级报告

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/dirnbauer/webconsulting-skills --skill security-incident-reporting

安装后在 Claude Code 中输入/security-incident-reporting确认已加载。

附带文件SKILL-TYPO3.md

详细介绍

安全事件报告

来源:https://github.com/dirnbauer/webconsulting-skills

全面的安全事件记录与分析框架,借鉴 NIST SP 800-61 和 SANS 方法论。

适用场景

  • 安全事件发生后(DDoS、数据泄露、漏洞利用)
  • 创建事后复盘文档
  • 与利益相关方沟通(C 级高管、法务、安全团队)
  • 将攻击模式与已知 CVE 关联
  • 建立事件响应指标(MTTR、驻留时间)

相关技能


1. 事件响应框架

NIST SP 800-61 / SANS 协同框架
阶段NISTSANS文档重点
1准备准备操作手册、联系人、工具
2检测与分析识别初步检测、分诊
3遏制遏制隔离操作、时间线
4根除根除移除根本原因
5恢复恢复服务恢复
6事件后经验教训事后复盘、改进
文档原则

日志原则:在事件期间实时记录,然后汇总到事后复盘报告中。切勿事后凭记忆编写报告。


2. 严重性评级系统

NCISS(国家网络事件评分系统)
级别分数描述
紧急(1)100国家级攻击、关键基础设施
严重(2)80-99重大影响、数据外泄
高(3)60-79服务中断、可能的数据丢失
中(4)40-59影响有限、已遏制的数据泄露
低(5)20-39轻微事件、无数据丢失
基线(6)0-19信息提示、误报
DDoS 弹性评分(DRS)
级别描述典型带宽
1-2简单洪泛攻击< 1 Gbps
3-4复杂多向量攻击1-5 Gbps
5-6高级攻击(国家行为者级别)5-100 Gbps
7极端攻击(超大流量)> 100 Gbps
CVSS 集成

对于基于漏洞的事件,请参照 security-audit 技能,纳入 CVSS 4.0 基础评分(旧版报告可接受 v3.1)。


3. 事件报告模板

模块 A:元数据与执行摘要
# Security Incident Report

## Metadata
| Field | Value |
|-------|-------|
| Incident ID | SIR-2026-001 |
| Classification | Confidential |
| Status | Closed / Active / Under Investigation |
| Detection Time | 2026-01-21 14:32 UTC |
| Resolution Time | 2026-01-21 15:17 UTC |
| MTTR | 45 minutes |
| Severity | High (NCISS: 65) |
| Lead Analyst | Jane Doe |
| Affected Systems | web-cluster-01, cdn-edge-eu |

## Executive Summary (max 200 words)

On [DATE], our monitoring systems detected [INCIDENT TYPE] targeting [SYSTEMS].
The attack [IMPACT DESCRIPTION]. Through [RESPONSE ACTIONS], normal operations
were restored within [TIMEFRAME]. [DATA IMPACT STATEMENT].

### Business Impact
- Service Availability: [Degraded/Offline for X minutes]
- Data Impact: [None/Potential exposure of X records]
- Financial Impact: [Estimated cost]
- Reputation Impact: [Public/Internal]
模块 B:时间线(按时间顺序分析)
## Incident Timeline

| Time (UTC) | Event | Source | Action Taken |
|------------|-------|--------|--------------|
| 14:32 | Traffic spike detected | Cloudflare Alert | On-call notified |
| 14:35 | 5x baseline traffic confirmed | Grafana | Incident declared |
| 14:38 | Geo-blocking activated | Cloudflare | EU/US traffic filtered |
| 14:42 | Attack vector identified: UDP amplification | DPI Analysis | Null-route for UDP/427 |
| 14:55 | Traffic normalized | Monitoring | Mitigation confirmed |
| 15:17 | All systems stable | Status page | Incident closed |

### Dwell Time Analysis
- Time to Detection (TTD): 0 minutes (automated)
- Time to Containment (TTC): 10 minutes
- Time to Eradication (TTE): 23 minutes
- Time to Recovery (TTR): 45 minutes
模块 C:技术分析与 IoC
## Technical Analysis

### Attack Vectors (MITRE ATT&CK)
- T1498: Network Denial of Service
- T1498.001: Direct Network Flood
- T1498.002: Reflection Amplification

### Indicators of Compromise (IoCs)

#### Network Artifacts
| Type | Value | Context |
|------|-------|---------|
| IP Range | 192.0.2.0/24 | Source (spoofed) |
| ASN | AS12345 | Amplification source |
| Port | UDP/427 | SLP Amplification |
| Signature | \x00\x00\x00\x00SLP | Payload pattern |

#### System Artifacts
| Type | Value | Hash (SHA256) |
|------|-------|---------------|
| Modified File | /var/www/shell.php | a1b2c3... |
| New User | backdoor_admin | N/A |
| Cron Job | /tmp/.hidden/beacon | d4e5f6... |

### Root Cause Analysis (5-Whys)
1. Why did the attack succeed? → Amplification ports were exposed
2. Why were ports exposed? → Firewall rules not updated after migration
3. Why weren't rules updated? → No automated validation in deployment
4. Why no automation? → Security review not in CI/CD pipeline
5. Why not in pipeline? → Technical debt, prioritized features

**Root Cause**: Missing security validation in deployment pipeline

4. DDoS 事后复盘分析

指标表
指标数值阈值状态
峰值带宽45 Gbps10 Gbps超出
峰值每秒数据包数12M PPS5M PPS超出
峰值每秒请求数850K RPS100K RPS超出
唯一源 IP 数145,000N/A放大攻击
攻击持续时间45 minN/A-
地理分布范围89 个国家N/A全球僵尸网络
攻击向量分类
向量流量占比类型缓解措施
UDP 洪泛攻击60%流量型黑洞路由
SYN 洪泛攻击25%协议型SYN cookies
HTTP 洪泛攻击15%应用层速率限制
多向量检测
Was this a smoke-screen attack?
├── Volumetric attack started: 14:32
├── Application-layer probing detected: 14:38
├── Login brute-force attempts: 14:40-14:45
└── Conclusion: Coordinated multi-vector attack

5. DDoS 的 CVE 关联

将攻击特征映射到已知漏洞,以获取威胁情报。

放大向量 CVE 表
攻击类型端口放大倍数CVE描述
NTP MonlistUDP/123556xCVE-2013-5211NTP mode 7 monlist
MemcachedUDP/1121151,000xCVE-2018-1000115UDP 反射
CLDAPUDP/38970xVariousLDAP 反射
SLPUDP/4272,200xCVE-2023-29552服务定位协议
DNSUDP/5354xVarious滥用开放解析器
SSDPUDP/190030xVariousUPnP 反射
ChargenUDP/19358xCVE-1999-0103字符生成器
分析示例
## CVE Correlation Analysis

Traffic analysis shows 40% of UDP flood originated from port 427.
Deep Packet Inspection confirmed payloads typical for CVE-2023-29552.

**Conclusion**: Botnet leveraging unpatched VMware ESXi instances as
SLP reflectors. Recommend:
1. Verify our infrastructure is not acting as reflector
2. Block UDP/427 at edge
3. Report to upstream provider

6. 影响评估矩阵

运营影响
类别级别描述
可用性严重完全中断 15 分钟
性能高性能下降 50%,持续 30 分钟
连带影响中API 网关受到影响
财务影响
类别预估成本
收入损失$15,000
流量清洗超额费用$2,500
事件响应$5,000(8 人时)
总计$22,500
声誉影响
渠道严重程度所需措施
社交媒体中准备声明
B2B 合作伙伴低直接通知
媒体无无外部报道

7. 无责事后复盘

原则
  1. 关注系统,而非个人:“为什么流程会允许 X 发生?”而不是“是谁做了 X?”
  2. 假定出发点是好的:每个人都基于当时可获得的最佳信息采取行动
  3. 从中学习,而非惩罚:目标是改进,而非追责
  4. 公开分享:在组织内部发布,促进组织学习
事后复盘模板
## Post-Mortem: [Incident Title]

### What Happened
[Factual description of the incident]

### What Went Well
- Detection was automated (0 min TTD)
- On-call responded within SLA
- Communication was clear

### What Went Wrong
- Firewall rules were outdated
- No alerting for UDP traffic spikes
- Runbook was incomplete

### Action Items
| ID | Action | Owner | Due Date | Status |
|----|--------|-------|----------|--------|
| 1 | Add security validation to CI/CD | @devops | 2026-02-01 | Open |
| 2 | Update runbook with DDoS procedures | @security | 2026-01-28 | Open |
| 3 | Implement UDP traffic alerting | @sre | 2026-02-05 | Open |

### Lessons Learned
- Automated security gates prevent configuration drift
- Regular runbook reviews are essential
- Multi-vector attacks require layered defense

8. 报告分发

分类级别
级别受众内容
高管C-Level、董事会摘要、业务影响、修复状态
技术安全团队、SOC完整 IoC、TTP、取证详情
法务法务、合规数据影响、监管层面的影响
公开客户、媒体脱敏摘要,不含技术细节
保留要求
文档类型保留期限存储方式
完整事件报告7 年加密存档
IoC 数据2 年威胁情报平台
日志与证据1 年不可变存储

9. 检查清单

事件发生前的准备
  • 事件响应操作手册已编写
  • 已建立值班轮班机制
  • 已准备沟通模板
  • 证据收集工具已就绪
  • 利益相关方联系人列表已更新
事件期间
  • 已宣布并记录事件
  • 已开始记录时间线
  • 已保留证据(日志、数据包)
  • 已通知利益相关方
  • 状态页面已更新
事件之后
  • 已完成完整事件报告
  • 已安排事后复盘会议
  • 已分配并跟踪行动项
  • 已记录经验教训
  • 已验证/改进控制措施

参考资料


致谢与归属

此技能参考了“Handbuch für Advanced Security Incident Reporting”方法论, 并融入了 NIST SP 800-61、SANS 框架和行业最佳实践中的内容。

由 webconsulting.at 为 Claude 技能集合开发。

来源:https://github.com/dirnbauer/webconsulting-skills

评论

支持 Markdown