analyzing-network-flow-data-with-netflow
它能做什么
这个工具分析名为 NetFlow/IPFIX 的网络流量数据,以发现可疑活动。它会查找可能预示攻击或数据泄露的异常流量模式。
适用场景
- ✓用于调查网络安全事件。
- ✓用于主动搜寻恶意网络活动。
- ✓用于检查你的网络是否能防范某些类型的攻击。
技能链接
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/analyzing-network-flow-data-with-netflow/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“分析网络流量数据,找出可疑活动。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会读取网络流量数据,将其与正常流量进行比较,并对异常活动发出警报,比如数据量突增、异常连接,或可能有危害的重复性模式。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Analyzing Network Flow Data with Netflow
When to Use
- When investigating security incidents that require analyzing network flow data with netflow
- When building detection rules or threat hunting queries for this domain
- When SOC analysts need structured procedures for this analysis type
- When validating security monitoring coverage for related attack techniques
Prerequisites
- Familiarity with network security concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
Instructions
- Install dependencies:
pip install netflow - Collect NetFlow/IPFIX data from routers or use the built-in collector:
python -m netflow.collector -p 9995 - Parse captured flow data using
netflow.parse_packet(). - Analyze flows for:
- Port scanning: single source to many destinations on same port
- Data exfiltration: high byte-count outbound flows to unusual destinations
- C2 beaconing: periodic connections with consistent intervals
- Volumetric anomalies: traffic spikes beyond baseline thresholds
- Generate a prioritized findings report.
python scripts/agent.py --flow-file captured_flows.json --output netflow_report.json
Examples
Parse NetFlow v9 Packet
import netflow
data, _ = netflow.parse_packet(raw_bytes, templates={})
for flow in data.flows:
print(flow.IPV4_SRC_ADDR, flow.IPV4_DST_ADDR, flow.IN_BYTES)
常见问题
什么是 NetFlow/IPFIX?
它们是描述网络流量的数据格式,记录谁与谁建立了连接、连接持续了多久,以及交换了多少数据。
它能发现哪些可疑活动?
它可以检测端口扫描(尝试找出开放端口)、数据外泄(信息窃取)、与恶意服务器通信(C2 信标)以及异常流量高峰。
我需要成为网络专家才能使用吗?
具备一些基本的网络安全知识会有所帮助,但即使你不是专家,这个工具也能协助你完成分析。
详情
作者的原始描述
Parse NetFlow v9 and IPFIX records to detect volumetric anomalies, port scanning, data exfiltration, and C2 beaconing patterns. Uses the Python netflow library to decode flow records, builds traffic baselines, and applies statistical analysis to identify flows with abnormal byte counts, connection durations, and periodic timing patterns.
热度
- GitHub 星标
- 35k
- 排名
- #7635
- 许可证
- Apache-2.0
- 更新时间
- 2026/8/31
评论
- …
同一仓库的更多技能
abusing-dpapi-for-credential-access
35k为你的 AI 智能体提供针对特定任务的现成指令,让它完成得更好、更快。
abusing-shadow-credentials-for-privesc
35k教你的 AI 智能体写出清晰、结构良好的文本。
achieving-cmmc-level-2-compliance
35k帮助你的智能体搭建符合 CMMC Level 2 合规要求的环境。它会落实安全要求,并管理必要的文档。
acquiring-disk-image-with-dd-and-dcfldd
35k帮助你的智能体创建硬盘的精确副本。这能确保调查过程中信息不丢失、不被篡改。