Detection rules › Sublime MQL

Link: CVE-2024-21413 Microsoft Outlook Remote Code Execution Vulnerability

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

This rule detects messages containing links exploiting CVE-2024-21413, which can lead to RCE. Successful exploitation can bypass built-in Outlook protections for malicious links embedded in messages by using the file:// protocol and an exclamation mark to URLs pointing to attacker-controlled servers."

Threat classification

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

CategoryValues
Attack typesMalware/Ransomware
Tactics and techniquesEvasion, Exploit

Event coverage

Rule body MQL

type.inbound
and any(body.links,
        .href_url.scheme == "file"
        and regex.icontains(.href_url.url, '\.[a-z]{2,4}(\.[a-z]{2,4})?!')
)

Detection logic

Scope: inbound message.

This rule detects messages containing links exploiting CVE-2024-21413, which can lead to RCE. Successful exploitation can bypass built-in Outlook protections for malicious links embedded in messages by using the file:// protocol and an exclamation mark to URLs pointing to attacker-controlled servers."

  1. inbound message
  2. any of body.links where all hold:
    • .href_url.scheme is 'file'
    • .href_url.url matches '\\.[a-z]{2,4}(\\.[a-z]{2,4})?!'

Inspects: body.links, body.links[].href_url.scheme, body.links[].href_url.url, type.inbound. Sensors: regex.icontains.

Indicators matched (2)

FieldMatchValue
body.links[].href_url.schemeequalsfile
regex.icontainsregex\.[a-z]{2,4}(\.[a-z]{2,4})?!