Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions detection-rules/impersonation_google_drive_file_share.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type: "rule"
severity: "medium"
source: |
type.inbound

// Google Drive body content looks like this
and (
(
Expand Down Expand Up @@ -138,7 +138,7 @@ source: |
strings.icontains(subject.subject, .)
)
)

// contains logic that impersonates Google
and (
any(ml.logo_detect(file.message_screenshot()).brands,
Expand Down Expand Up @@ -232,6 +232,15 @@ source: |
strings.icontains(body.current_thread.text, '1600 Amphitheatre Parkway'),
strings.icontains(body.current_thread.text, 'Mountain View, CA 94043'),
)
or (
html.xpath(body.html, "//span[contains(@style, 'color')]").nodes[0].display_text == 'G'
and html.xpath(body.html, "//span[contains(@style, 'color')]").nodes[1].display_text == 'o'
and html.xpath(body.html, "//span[contains(@style, 'color')]").nodes[2].display_text == 'o'
and html.xpath(body.html, "//span[contains(@style, 'color')]").nodes[3].display_text == 'g'
and html.xpath(body.html, "//span[contains(@style, 'color')]").nodes[4].display_text == 'l'
and html.xpath(body.html, "//span[contains(@style, 'color')]").nodes[5].display_text == 'e'
and html.xpath(body.html, "//span[contains(@style, 'color')]").nodes[6].display_text == 'Drive'
)
)
and not (
// Google Sites has been observed abused
Expand All @@ -255,7 +264,7 @@ source: |
.href_url.domain.root_domain == "google.com"
)
)

// negate highly trusted sender domains unless they fail DMARC authentication
and (
(
Expand Down
Loading