Detection rules › Sublime MQL

Attachment: CVE-2025-24071 - Microsoft Windows File Explorer Spoofing Vulnerability

Severity
critical
Type
rule
Source
github.com/sublime-security/sublime-rules

Detects a Windows library file (.library-ms) containing a network path, either as a direct attachment or within an archive. This file type can be used to cause Windows to send NTLM hash to malicious network locations.

Threat classification

Sublime's own taxonomy (not MITRE ATT&CK).

CategoryValues
Attack typesCredential Phishing
Tactics and techniquesScripting, Macros, Exploit

Event coverage

Rule body MQL

type.inbound
and any(attachments,
        // handle directly attached files first
        (
          .file_extension == "library-ms"
          // and contains a url with the \\
          and strings.icontains(file.parse_text(.).text, '<url>\\')
        )
        // handle library-ms files inside of archives
        or (
          .file_extension in $file_extensions_common_archives
          and any(file.explode(.),
                  // the exploded archive contained a file with the library-ms extension
                  .file_extension == "library-ms"
                  // and the strings in that file contain the required url variable
                  and any(.scan.strings.strings, strings.contains(., '<url>\\'))
          )
        )
)

Detection logic

Scope: inbound message.

Detects a Windows library file (.library-ms) containing a network path, either as a direct attachment or within an archive. This file type can be used to cause Windows to send NTLM hash to malicious network locations.

  1. inbound message
  2. any of attachments where any holds:
    • all of:
      • .file_extension is 'library-ms'
      • file.parse_text(.).text contains '<url>\\\\'
    • all of:
      • .file_extension in $file_extensions_common_archives
      • any of file.explode(.) where all hold:
        • .file_extension is 'library-ms'
        • any of .scan.strings.strings where:
          • . contains '<url>\\\\'

Inspects: attachments[].file_extension, type.inbound. Sensors: file.explode, file.parse_text, strings.contains, strings.icontains. Reference lists: $file_extensions_common_archives.

Indicators matched (4)

FieldMatchValue
attachments[].file_extensionequalslibrary-ms
strings.icontainssubstring<url>\\
file.explode(attachments[])[].file_extensionequalslibrary-ms
strings.containssubstring<url>\\