Sublime Security high experimental mql
Link: Microsoft device code authentication with suspicious indicators
Detects messages containing links with Microsoft device code authentication patterns, including verification prompts, copy code instructions, and suspicious API endpoints or antibot tokens commonly used in device code takeover attacks.
Detection Logic
type.inbound
and length(recipients.to) == 1
and 0 < length(body.links) < 15
and any(body.links,
// strings commonly observed in the microsoft device code phishing lure
regex.icontains(ml.link_analysis(., mode="aggressive").final_dom.display_text,
"verification co(?:mplete
| de)",
'\bcopy code\b',
"Secured by Microsoft",
"(?:redirecting to
| opening) your document",
"preparing verification",
"(?:verify your identity
| complete verification) with Microsoft"
)
// unique device code antibot token cookie, api path, ms device login path url
and (
regex.icontains(ml.link_analysis(., mode="aggressive").final_dom.raw,
'X-Antibot-Token',
'\/api\/device\/sta(?:rt
| tus)\/',
'microsoft\.com\/devicelogin'
)
// or api path on workers dev associated with this activity
or any(ml.link_analysis(., mode="aggressive").unique_urls_accessed,
strings.icontains(.path, '/api/device/start')
and strings.icontains(.domain.root_domain, 'workers.dev')
)
)
) Field Validations
Loading…
Comments (0)
Loading comments...