Detecting Possible NTLM Credential Leakage over SMB

Hunt for applications making SMB connections that may result in NTLM credential exposure, particularly internet-bound TCP port 445 activity.

Detecting Possible NTLM Credential Leakage over SMB
Detection queriesCredential Security Dec 20, 2024#NTLM#SMB#Credentials#Windows#CVE-2025-24054

Windows applications can sometimes trigger SMB authentication when they access crafted paths or remote resources. If the destination is untrusted, this behavior can expose NTLM authentication material and become a credential-security concern.

The source includes network and DNS hunts focused on this scenario and specifically references CVE-2025-24054.

Network Detection

The first query searches Sysmon network events for destination port 445 and limits the originating process to applications such as Explorer, Outlook, Word, Excel, PowerPoint, SearchProtocolHost, or DLLHost.

data.win.system.eventID:3 and data.win.eventdata.destinationPort:445 and data.win.eventdata.image:(*\explorer.exe or *\outlook.exe or *\winword.exe or *\excel.exe or *\powerpnt.exe or *\searchprotocolhost.exe or *\dllhost.exe)

The source notes that internet-bound TCP/445 should be treated as high priority.

DNS Detection

A second query searches Sysmon DNS events generated by processes commonly involved in the same type of resource access:

data.win.system.eventID:22 and data.win.eventdata.image:(*\explorer.exe or *\outlook.exe or *\winword.exe or *\searchprotocolhost.exe) and data.win.eventdata.queryName:*

The source recorded zero matching results during the previous 30 days.

Why Context Is Critical

SMB is legitimate in many internal Windows environments. A connection from Explorer to an internal file server may be completely expected.

The risk changes when an Office application or Windows shell component attempts to connect over SMB to an external or unfamiliar address.

That is why analysts should enrich destination information with:

  • internal versus external classification;

  • hostname and domain reputation;

  • user identity;

  • originating document or file;

  • preceding DNS queries;

  • authentication logs.

Investigation Workflow

If a suspicious connection appears, review the application activity immediately before it.

For example, determine whether:

  • a document was opened;

  • an archive or shortcut was accessed;

  • a browser download occurred;

  • a file contained an external UNC path;

  • a DNS request resolved to an unexpected destination.

The goal is to understand why the Windows application attempted to authenticate over SMB.

Tuning

Internal SMB activity can create significant noise if the query is used without destination context. A practical production rule should therefore prioritize external destinations and known-untrusted network ranges.

Internal file servers and approved infrastructure can be excluded using explicit destination controls.

Detection Value

The source did not record any matches, but the rule remains useful because credential leakage over SMB can be highly actionable when it occurs toward the internet.

Monitoring the combination of application, network protocol, and destination context provides a focused way to identify suspicious NTLM exposure behavior.

Cloud image

30 Days of Enterprise-Grade Cyber Defense

Step into the future of cybersecurity with full access to a unified, intelligent platform — free for 30 days. Empower your security team with:

  • Advanced SIEM for real-time visibility, smart alerting, and deep forensics across cloud, on-prem, and hybrid environments

  • Continuous Vulnerability Management to identify, prioritize, and remediate risk across all assets

  • Live Cyber Threat Intelligence integrated directly into your workflows, with global insights and attacker profiling

  • AI-Powered Threat Detection that learns from your environment, explains alerts in plain language, and suggests next steps

  • Built-in Compliance Readiness for NIS2, GDPR, ISO 27001, and more, with automated reporting and audit tools

Whether you're managing a lean SOC or a full-scale enterprise security team, this platform gives you the tools to detect faster, respond smarter, and stay ahead of evolving threats — all without the complexity.

Experience enterprise-grade protection, streamlined workflows, and total control.

Your 30-day head start begins now.

Unlock Your 30 Days Free Trial