type.inbound
// at least one link to screenconnect
and any(body.links,
strings.iends_with(.href_url.path, '.msi', '.exe')
// https://docs.connectwise.com/ScreenConnect_Documentation/Developers/Integration_guide
// e = SessionType. Support, Meet, or Access
and strings.icontains(.href_url.query_params, "e=Access")
// y = ProcessType (host vs guest)
and strings.icontains(.href_url.query_params, "y=Guest")
// exclude tenant_domains (if the customer users screenconnect and has their own subdomain)
and .href_url.domain.domain not in $tenant_domains
)
Playground
Test against your own EMLs or sample data.