Google Workspace Drive Encryption Key(s) Accessed from Anonymous User

Last updated 24 days ago on 2026-06-02
Created 3 years ago on 2023-03-21

About

Detects when an anonymous user views, copies, or downloads a private key or credential file from Google Drive via an anyone-with-the-link share. Adversaries who obtain or create open Drive links can harvest encryption keys and secrets stored in user drives, then use those materials to decrypt data, authenticate to services, or expand access beyond the initial compromise.
Tags
Domain: CloudData Source: Google WorkspaceUse Case: Configuration AuditTactic: Credential AccessTactic: CollectionLanguage: eql
Severity
high
Risk Score
73
MITRE ATT&CK™

Credential Access (TA0006)(external, opens in a new tab or window)

Collection (TA0009)(external, opens in a new tab or window)

False Positive Examples
A user may generate a shared access link to encryption key files to share with others. It is unlikely that the intended recipient is an external or anonymous user.
License
Elastic License v2(external, opens in a new tab or window)

Definition

Rule Type
Event Correlation Rule
Integration Pack
Prebuilt Security Detection Rules
Index Patterns
filebeat-*logs-google_workspace.drive-*
Related Integrations

google_workspace(external, opens in a new tab or window)

Query
text code block:
file where data_stream.dataset == "google_workspace.drive" and event.action : ("copy", "view", "download") and google_workspace.drive.visibility: "people_with_link" and source.user.email == "" and file.extension: ( "token","assig", "pssc", "keystore", "pub", "pgp.asc", "ps1xml", "pem", "gpg.sig", "der", "key", "p7r", "p12", "asc", "jks", "p7b", "signature", "gpg", "pgp.sig", "sst", "pgp", "gpgz", "pfx", "crt", "p8", "sig", "pkcs7", "jceks", "pkcs8", "psc1", "p7c", "csr", "cer", "spc", "ps2xml")

Install detection rules in Elastic Security

Detect Google Workspace Drive Encryption Key(s) Accessed from Anonymous User in the Elastic Security detection engine by installing this rule into your Elastic Stack.

To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).