Query Details
id: 7a3f2c8e-1d4b-4e5a-9c2f-8b1d7e6a4f08
name: GWS - Misconfigured Email Allowlist Causing Phishing Delivery
description: |
Gmail detected phishing reaching inboxes because of a misconfigured allowlist
(BadWhitelist). Indicates a defense-evasion misconfiguration that must be
remediated immediately.
severity: Medium
status: Available
requiredDataConnectors:
- connectorId: GoogleWorkspaceDefinition
dataTypes:
- GWSAlerts_CL
queryFrequency: 30m
queryPeriod: 2h
triggerOperator: gt
triggerThreshold: 0
tactics:
- DefenseEvasion
- InitialAccess
relevantTechniques:
- T1566.001
- T1562
query: |
GWSAlerts_CL
| where AlertDataType endswith "BadWhitelist"
or AlertType has "Misconfigured whitelist"
| extend Domains = tostring(AlertData.domains),
Sources = tostring(AlertData.sourceIp)
| project TimeGenerated, AlertId, MetadataSeverity, AlertType,
Domains, Sources, SecurityInvestigationToolLink, AlertData
entityMappings:
- entityType: URL
fieldMappings:
- identifier: Url
columnName: SecurityInvestigationToolLink
incidentConfiguration:
createIncident: true
version: 1.0.0
kind: Scheduled
This query is designed to detect phishing emails that have reached Gmail inboxes due to a misconfigured email allowlist, which is a security oversight that needs immediate attention. Here's a simple breakdown of the query:
Overall, this query helps security teams quickly identify and respond to phishing threats caused by misconfigured email allowlists in Gmail.

David Alonso
Released: May 7, 2026
Tables
Keywords
Operators