本文へスキップ
Skillpedia
分析とスプレッドシート35k · #7964

hunting-for-ntlm-relay-attacks

できること

このツールは、NTLMリレー攻撃を探すためのものです。NTLMリレー攻撃とは、ログイン時の認証情報を盗み取り、ネットワーク上のリソースに不正にアクセスしようとする攻撃です。Windowsのイベントログを分析して不審な動きを見つけ出します。

使う場面

  • ✓セキュリティインシデントを調査しているとき。
  • ✓攻撃を検知するためのルールを作成するとき。
  • ✓セキュリティ監視が正しく機能しているかを確認するとき。

スキルのリンク

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-ntlm-relay-attacks/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-ntlm-relay-attacks/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に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

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル