Home
cd ../playbooks
Operations & ComplianceAdvanced

Detecting NTLM Relay with Event Correlation

A blue-team methodology for detecting NTLM relay attacks (MITRE ATT&CK T1557.001) via Windows event correlation — IP-to-hostname mismatch on logon events, LLMNR/NBT-NS poisoning-tool signatures, SMB/LDAP signing audits, and NTLM downgrade detection across Active Directory.

15 minutes
By mukul975Source
#threat-hunting#active-directory#siem#ntlm#blue-team#security-monitoring

In a successful NTLM relay, the logon event on the target shows the victim's username but the attacker's IP address — the mismatch is sitting right there in Windows Event 4624, but only if something is actually correlating workstation name against source IP instead of trusting the username field alone.

Who it's for: SOC analysts and threat hunters covering Active Directory environments, security engineers building SIEM correlation rules for credential-relay detection, purple team members validating NTLM relay detection and signing enforcement, blue teams responding to a coercion-technique alert that may precede a relay attempt

Example

"Build detection coverage for NTLM relay in our AD environment" → An IP-to-hostname mismatch correlation rule against Windows Event 4624, a rapid multi-host authentication check to catch relay spraying, an LLMNR/NBT-NS poisoning-tool signature, a domain-wide SMB and LDAP signing audit that exports the actual vulnerable-host list, and an NTLM downgrade detector flagging any NTLMv1 traffic in an environment that should be NTLMv2-only

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add ntlm-relay-detection
# Detecting NTLM Relay with Event Correlation

A blue-team methodology for detecting NTLM relay attacks (MITRE ATT&CK T1557.001) through Windows event correlation, SMB/LDAP signing audits, and NTLM downgrade detection across an Active Directory environment.

> **Authorized use only.** This content is for defensive security: threat hunting, SIEM rule building, and hardening your own environment or one you're explicitly engaged to assess. It documents detection engineering, not an attack toolkit.

## Overview

NTLM relay attacks intercept NTLM authentication messages and forward them to a target service to gain unauthorized access. Attackers force or trick a victim into authenticating (via LLMNR/NBT-NS poisoning tools, or coercion techniques that abuse Windows RPC interfaces), intercept the NTLM handshake, then relay it to a target service — SMB, LDAP, HTTP, a database — to authenticate as the victim. This only succeeds when message signing isn't enforced on the target service.

```
Victim ──NTLM Negotiate──> Attacker ──NTLM Negotiate──> Target

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

A defensive methodology for detecting NTLM relay attacks through Windows event correlation. The core insight it's built around: in a successful relay, the target's logon event shows the victim's username but the attacker's source IP, while the workstation-name field may still claim the victim's real machine — so correlating that field against a known-hosts inventory and flagging any mismatch is the primary detection signal, backed up by a check for rapid authentication to multiple targets in a short window (relay spraying, as an attacker tests what a captured credential can reach).

Beyond logon-event correlation, it covers detecting the LLMNR/NBT-NS poisoning tools attackers use to force authentication in the first place (a single host answering an unusual volume of name-resolution queries from many sources), a domain-wide SMB and LDAP signing enforcement audit — the actual protocol-level fix, prioritized above detection since it prevents the attack rather than just alerting on it — and NTLM downgrade detection, since NTLMv1 traffic in an environment that should be NTLMv2-only is itself a red flag independent of any active attack.


Quick Start

Step 1: Create a Project Folder

mkdir ntlm-relay-detection && cd ntlm-relay-detection

Step 2: Download the Template

Click Download above, then:

mv ~/Downloads/CLAUDE.md ./

Step 3: Build Detection Coverage

claude

Describe your environment and SIEM platform, and ask Claude to build out the correlation rules and signing audit from this methodology — or point it at existing detection rules to review against this framework.


Tips & Best Practices

  • Build the IP-to-hostname inventory before writing any correlation rule — a mismatch rule with no reliable "expected IP" to compare against will either miss real relays or drown in false positives from a stale inventory.
  • Treat the signing-enforcement audit as higher priority than the detection rules themselves — closing the actual protocol gap prevents the attack; detection only tells you it already happened.
  • When a coercion-technique alert fires, treat it as a precursor signal and increase scrutiny on subsequent logon events from that target for the following hours, rather than treating it as a standalone, low-priority alert.

Limitations

  • Query examples are illustrative patterns for common SIEM platforms — adapt field names and syntax to your actual SIEM, log source, and schema before deploying any rule to production.
  • Detection assumes centralized, reliable Windows Security Event Log collection with the right audit policy already enabled — without that, the correlation logic has no data to run against.
  • Covers one attack class within the broader credential-access tactic — pair it with a fuller Active Directory hardening and monitoring program rather than treating it as complete coverage on its own.

$Related Playbooks

Operations & Compliance

NIS2 Directive Advisor

Classify essential vs. important entities under EU NIS2, apply Art. 21 risk-management measures, meet Art. 23 incident-reporting timelines, address governance and supply-chain security, and align with ISO 27001.

10 minutes
Intermediate
Operations & Compliance

NIST SP 800-53 Advisor

Select and tailor NIST SP 800-53 Rev 5 controls — all 20 families, Low/Moderate/High baselines, FIPS 199/200 categorization, overlays, privacy and supply-chain controls, RMF integration, and control narratives.

10 minutes
Advanced
Operations & Compliance

NIST AI RMF Advisor

Apply the NIST AI Risk Management Framework (AI RMF 1.0) across its four functions — GOVERN, MAP, MEASURE, MANAGE — to assess AI risk, build profiles, and operationalize trustworthy AI.

10 minutes
Intermediate
Operations & Compliance

NIST CSF Advisor

Assess and improve cybersecurity posture with the NIST Cybersecurity Framework 2.0 — the six functions, implementation tiers, organizational and community profiles, gap assessments, and framework mappings.

10 minutes
Intermediate
Operations & Compliance

NZISM Advisor

Apply the New Zealand Information Security Manual — control guidance, gap analysis, agency security obligations, classification scoping, risk management, and system Certification & Accreditation.

10 minutes
Advanced
Operations & Compliance

PCI DSS Advisor

Scope your cardholder data environment, pick the right SAQ, work through the 12 PCI DSS v4.0.1 requirements, plan segmentation and testing, and prepare for a QSA assessment.

10 minutes
Intermediate
Operations & Compliance

WCAG Accessibility Advisor

Audit and fix digital accessibility against WCAG 2.0/2.1/2.2 — success criteria, A/AA/AAA conformance, POUR principles, ARIA patterns, contrast and keyboard issues, accessibility statements, and legal mapping.

10 minutes
Intermediate
Operations & Compliance

Operational Runbook Creator

Create operational runbooks for recurring tasks with step-by-step procedures and checklists

10 minutes
Intermediate
Operations & Compliance

SWIFT CSP Advisor

Meet the SWIFT Customer Security Programme — CSCF v2025 controls, architecture-type scoping (A1-A4/B), mandatory vs. advisory controls, KYC-SA attestation, and independent-assessment readiness.

10 minutes
Advanced
Operations & Compliance

Section 508 Accessibility Advisor

Meet US federal ICT accessibility under Section 508 — WCAG 2.0 AA mapping, accessibility audits, VPAT/ACR authoring, remediation planning, PDF and software accessibility, and procurement requirements.

10 minutes
Intermediate
Operations & Compliance

SOC 2 Compliance Advisor

Prepare for SOC 2 across all five Trust Services Criteria — gap analysis, policy writing, control documentation, audit-evidence prep, and vendor-risk questionnaires for Type 1 and Type 2.

10 minutes
Intermediate
Operations & Compliance

TSA Cybersecurity Compliance Advisor

Meet TSA Security Directives for pipelines, rail, and transit — Cyber Risk Management Program, CIP/COIP/CAP plans, Critical Cyber Systems, OT/IT segmentation, Cybersecurity Coordinator, and CISA reporting.

10 minutes
Advanced

Browse all Operations & Compliance playbooks →