hunting-for-ntlm-relay-attacks
它能做什么
这个工具用来查找 NTLM 中继攻击。这类攻击会试图窃取你的登录凭据,从而未经授权访问网络资源。它会分析 Windows 事件日志,找出可疑活动。
适用场景
- ✓调查安全事件时。
- ✓编写用于检测攻击的规则时。
- ✓检查安全监控是否正常工作时。
技能链接
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-ntlm-relay-attacks/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在安全日志中搜索 NTLM 中继攻击的迹象。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会分析 Windows 事件日志,寻找表明有人试图使用被盗凭据访问其他电脑的模式。它会检查计算机名称是否与 IP 地址对应,以及身份验证是否以不安全的方式进行。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Hunting for NTLM Relay Attacks
Overview
NTLM relay attacks intercept and forward NTLM authentication messages to gain unauthorized access to network resources. Attackers use tools like Responder for LLMNR/NBT-NS poisoning and ntlmrelayx for credential relay. This skill detects relay activity by querying Windows Security Event 4624 (successful logon) for type 3 network logons with NTLMSSP authentication, identifying mismatches between WorkstationName and source IpAddress, detecting rapid multi-host authentication from single accounts, and auditing SMB signing configuration across domain hosts.
When to Use
- When investigating security incidents that require hunting for ntlm relay attacks
- 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
- Python 3.9+ with Windows Event Log access or exported logs
- Windows Security audit logging enabled (Event ID 4624, 4625, 5145)
- Network access for SMB signing status checks
Key Detection Areas
- IP-hostname mismatch — WorkstationName in Event 4624 does not resolve to the source IpAddress
- NTLMSSP authentication — logon events using NTLM instead of Kerberos from domain-joined hosts
- Machine account relay — computer accounts (ending in $) authenticating from unexpected IPs
- Rapid authentication — single account authenticating to multiple hosts within seconds
- Named pipe access — Event 5145 showing access to Spoolss, lsarpc, netlogon, samr pipes
- SMB signing disabled — hosts not enforcing SMB signing, enabling relay attacks
Output
JSON report with suspected relay events, IP-hostname correlation anomalies, SMB signing audit results, and MITRE ATT&CK mapping to T1557.001.
常见问题
什么是 NTLM 中继攻击?
这是一种攻击方式:攻击者拦截你的登录请求,再将其转发给另一个服务,冒充你来获取访问权限。
需要准备什么?
你需要安装 Python,并且已开启 Windows 安全日志且能够访问这些日志。
如果工具发现了可疑情况,会做什么?
它会生成一份报告,列出可疑事件,展示发现的异常,并说明这些异常与已知攻击技术之间的关联。
详情
作者的原始描述
Detects NTLM relay attacks (MITRE T1557.001) by analyzing Windows Event ID 4624 logon type 3 with NTLMSSP authentication, flagging IP-to-hostname mismatches, Responder/LLMNR poisoning signatures, SMB signing status, and anomalous cross-domain authentication patterns. Use when investigating credential-relay activity in Active Directory or building detections for NTLM relay and coercion-based attack
热度
- GitHub 星标
- 35k
- 排名
- #7964
- 许可证
- 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帮助你的智能体创建硬盘的精确副本。这能确保调查过程中信息不丢失、不被篡改。