Google Services Using G.co Shortlinks

Identifies messages from authenticated Google domains containing g.co shortened URLs with a subdomain in either the message body links or thread text.

Sublime rule (View on GitHub)

 1name: "Google Services Using G.co Shortlinks"
 2description: "Identifies messages from authenticated Google domains containing g.co shortened URLs with a subdomain in either the message body links or thread text."
 3references: 
 4  - "https://gist.github.com/zachlatta/f86317493654b550c689dc6509973aa4"
 5type: "rule"
 6severity: "medium"
 7source: |
 8  type.inbound
 9  // allow for multiple google TLDs
10  and sender.email.domain.sld == "google"
11  and headers.auth_summary.spf.pass
12  // g.co url shortner in links or the current thread to identify the workspace name
13  and (
14    any(body.links, .href_url.domain.root_domain == 'g.co' and .href_url.domain.subdomain is not null)
15    or (
16      strings.icontains(body.current_thread.text, '.g.co')
17      and regex.icontains(body.current_thread.text, '[^\s]+\.g\.co\b')
18    )
19  )  
20attack_types:
21  - "Credential Phishing"
22tactics_and_techniques:
23  - "Evasion"
24  - "Free email provider"
25detection_methods:
26  - "Content analysis"
27  - "Header analysis"
28  - "Sender analysis"
29  - "URL analysis"
30id: "09ff8a73-c36e-5c2a-822e-3c039ed818f8"
to-top