Detection rules › Sublime MQL
Link: Landing page with search-ms protocol redirect
Detects messages containing URL shortener links that redirect to search-ms protocol queries, which can be used to execute local file searches on Windows systems.
Threat classification
Sublime's own taxonomy (not MITRE ATT&CK).
| Category | Values |
|---|---|
| Attack types | Malware/Ransomware |
| Tactics and techniques | Evasion, Scripting |
Event coverage
| Message attribute |
|---|
| body |
| body.links (collection) |
| type |
Rule body MQL
type.inbound
and all(body.links, .href_url.domain.root_domain in $url_shorteners)
and any(body.links,
regex.icontains(ml.link_analysis(., mode="aggressive").final_dom.raw,
'search-ms:[^\;]*query=[^\;]+\.lnk'
)
)
Detection logic
Scope: inbound message.
Detects messages containing URL shortener links that redirect to search-ms protocol queries, which can be used to execute local file searches on Windows systems.
- inbound message
all of
body.linkswhere:- .href_url.domain.root_domain in $url_shorteners
any of
body.linkswhere:- ml.link_analysis(., mode='aggressive').final_dom.raw matches 'search-ms:[^\\;]*query=[^\\;]+\\.lnk'
Inspects: body.links, body.links[].href_url.domain.root_domain, type.inbound. Sensors: ml.link_analysis, regex.icontains. Reference lists: $url_shorteners.
Indicators matched (1)
| Field | Match | Value |
|---|---|---|
regex.icontains | regex | search-ms:[^\;]*query=[^\;]+\.lnk |