跳到正文
Skillpedia
分析与电子表格35k · #7964

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-ntlm-relay-attacks/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. IP-hostname mismatch — WorkstationName in Event 4624 does not resolve to the source IpAddress
  2. NTLMSSP authentication — logon events using NTLM instead of Kerberos from domain-joined hosts
  3. Machine account relay — computer accounts (ending in $) authenticating from unexpected IPs
  4. Rapid authentication — single account authenticating to multiple hosts within seconds
  5. Named pipe access — Event 5145 showing access to Spoolss, lsarpc, netlogon, samr pipes
  6. 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

repo: mukul975/Anthropic-Cybersecurity-Skills

热度

GitHub 星标
35k
排名
#7964
许可证
Apache-2.0
更新时间
2026/8/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能