Link: Affiliate redirect parameters in URL fragment or query
Detects inbound messages containing links with suspicious tracking parameters (act, pid, uid, ofid, vid) in the URL fragment or query string, or links matching a known redirect path pattern, often used to obscure the final destination of malicious URLs.
Sublime rule (View on GitHub)
1name: "Link: Affiliate redirect parameters in URL fragment or query"
2description: "Detects inbound messages containing links with suspicious tracking parameters (act, pid, uid, ofid, vid) in the URL fragment or query string, or links matching a known redirect path pattern, often used to obscure the final destination of malicious URLs."
3type: "rule"
4severity: "medium"
5source: |
6 type.inbound
7 and any(body.links,
8 all(['act=', 'pid=', 'uid=', 'ofid=', 'vid='],
9 strings.icontains(..href_url.fragment, .)
10 )
11 or all(['act', 'pid', 'uid', 'ofid', 'vid'],
12 . in keys(..href_url.query_params_decoded)
13 )
14 or regex.icontains(.href_url.fragment,
15 '(?:^|/)(?:cl|oop|un)/\d+_md/\d+/\d+/\d+/\d+/[0-9a-f]{24}'
16 )
17 )
18attack_types:
19 - "Credential Phishing"
20tactics_and_techniques:
21 - "Evasion"
22detection_methods:
23 - "URL analysis"
24id: "bbf3df29-f21f-54d1-ad14-efbbee6834ad"