Link: Google share.google URL shortener in undocumented redirect forms

Detects inbound messages with body links in either of two undocumented Google share.google redirect forms: google./share.google?q=, and share.google/?link=. Both inherit Google domain reputation to mask an attacker-controlled destination. Google publishes the share.google shortener as a share.google/ path, but neither the on-Google-domain ‘q’ form nor the ‘link’ parameter form is documented.

Sublime rule (View on GitHub)

 1name: "Link: Google share.google URL shortener in undocumented redirect forms"
 2description: "Detects inbound messages with body links in either of two undocumented Google share.google redirect forms: google.<tld>/share.google?q=<code>, and share.google/?link=<url>. Both inherit Google domain reputation to mask an attacker-controlled destination. Google publishes the share.google shortener as a share.google/<code> path, but neither the on-Google-domain ‘q’ form nor the ‘link’ parameter form is documented."
 3type: "rule"
 4severity: "medium"
 5source: |
 6  type.inbound
 7  and any(body.links,
 8          (
 9            .href_url.domain.sld == "google"
10            and strings.istarts_with(.href_url.path, '/share.google')
11            and 'q' in keys(.href_url.query_params_decoded)
12          )
13          or (
14            .href_url.domain.root_domain == "share.google"
15            and any(["link", "_task", "_mbox", "_mimeclass"],
16                    . in keys(..href_url.query_params_decoded)
17            )
18          )
19  )  
20attack_types:
21  - "Spam"
22  - "Credential Phishing"
23tactics_and_techniques:
24  - "Open redirect"
25  - "Social engineering"
26detection_methods:
27  - "URL analysis"
28  - "Content analysis"
29related_detections:
30  - "attachment_google_share_google_link.yml"
31  - "attachment_ics_google_share_google_link.yml"
32id: "e29cd002-1624-5ff7-b05f-386ae5e4d115"
to-top