
Hunting for NTLM Relay Attacks
FreeDetect and analyze NTLM relay attacks in your network.
Free · Opens the source repo
What Hunting for NTLM Relay Attacks does
The Hunting for NTLM Relay Attacks skill is designed for security analysts and incident responders who need to detect and investigate NTLM relay attacks within their network environments. This skill leverages Windows Event ID 4624, focusing specifically on logon type 3 events that utilize NTLMSSP authentication. By analyzing these events, the skill identifies potential security threats such as IP-to-hostname mismatches, rapid authentication attempts from single accounts to multiple hosts, and the status of SMB signing across domain hosts.
When an NTLM relay attack occurs, attackers intercept authentication messages to gain unauthorized access to resources. This skill aids in detecting such activities by examining key indicators of compromise. It flags anomalies like mismatched workstation names and source IP addresses, which can indicate malicious activity. Additionally, it checks for machine account relay attempts and rapid authentication patterns that could suggest credential relaying. The output is a structured JSON report that provides insights into suspected relay events, along with a correlation of IP-hostname discrepancies and SMB signing status.
This skill is particularly beneficial for Security Operations Center (SOC) teams and cybersecurity professionals who are tasked with threat hunting and incident response. It provides a systematic approach to detecting NTLM relay attacks, enabling analysts to validate their security monitoring capabilities and build detection rules tailored to this specific threat vector. By utilizing this skill, teams can enhance their ability to respond to potential credential access incidents effectively.
Overall, the Hunting for NTLM Relay Attacks skill is a valuable addition for organizations looking to bolster their defenses against NTLM relay and coercion-based attacks, ensuring they have the necessary tools to detect and respond to these sophisticated threats.
When to use it
Use this skill when investigating security incidents related to NTLM relay attacks or when building detection rules for such threats.
When not to use it
This skill is not suitable for environments that do not utilize NTLM authentication or where Windows Event logging is not enabled.
What you can build with it
Investigating Security Incidents
Use this skill to analyze Windows Event logs when investigating potential NTLM relay attacks.
Building Detection Rules
Leverage this skill to create detection rules for monitoring NTLM relay attack patterns in your network.
Validating Security Monitoring
Employ this skill to assess and validate the effectiveness of your security monitoring coverage against NTLM relay techniques.
How to install Hunting for NTLM Relay Attacks
View source1. Install with the skills CLI
npx skills add mukul975/anthropic-cybersecurity-skills/hunting-for-ntlm-relay-attacks --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by mukul975Hunting 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.
Frequently asked questions about Hunting for NTLM Relay Attacks
Similar skills
Asset Criticality Scoring for Vulns
Prioritize vulnerabilities based on asset criticality.
Performing Alert Triage with Elastic SIEM
Streamline alert triage processes in Elastic Security.
Active Directory Vulnerability Assessment
Secure your Active Directory with comprehensive assessments.
Active Directory Investigation
Streamline your Active Directory compromise investigations.
Parsing Artifacts with Eric Zimmerman Tools
Efficiently parse Windows forensic artifacts for analysis.
Operationalizing MISP Threat Feeds
Enhance threat detection with curated MISP feeds.
