type.inbound
and any(html.xpath(body.html, '//img[contains(@src,"data:image")]').nodes,
(
regex.icontains(.raw, '#[A-Za-z0-9+/=]{20,}')
and regex.icontains(.raw, 'on(?:load|error)')
and strings.icontains(.raw, 'eval(', 'atob(', 'Function(')
)
or (
any(strings.scan_base64(.raw),
strings.icontains(.,
'owaRequest',
'GetClientAccessToken',
'owa_offline_db',
'PageDataPayload',
'UpdateFolder'
)
)
)
)
Playground
Test against your own EMLs or sample data.