Implementing Google Workspace Phishing Protection
Overview
Google Workspace provides advanced phishing and malware protection through the Admin Console under Apps > Google Workspace > Gmail > Safety. Key features include Enhanced Pre-Delivery Scanning that examines messages more thoroughly before they reach inboxes, attachment and link protection that scans for malware and checks against known malicious sites, and spoofing detection for domain and employee name impersonation. Google's Advanced Protection Program (APP) provides the strongest account security for high-privilege users.
When to Use
Trigger phrases:
"implementing google workspace phishing protection"
"Configure Google Workspace advanced phishing and malware protection settings inc"
When deploying or configuring implementing google workspace phishing protection capabilities in your environment
When establishing security controls aligned to compliance requirements
When building or improving security architecture for this domain
When conducting security assessments that require this implementation
Prerequisites
- Google Workspace Business Standard or higher license
- Gmail Settings administrator privilege
- Understanding of organizational email flow and third-party integrations
- Access to Google Admin Console (admin.google.com)
- DNS management access for SPF, DKIM, DMARC configuration
Workflow
# Example: IOC detection
import re
IOC_PATTERNS = {
"ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",
"domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",
"hash_md5": r"\b[a-f0-9]{32}\b",
"hash_sha256": r"\b[a-f0-9]{64}\b",
}
def extract_iocs(text: str) -> dict:
return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}
- Isolate the sample — ensure the malware is in a sandboxed environment with no network access
- Record file metadata — hash the sample and note file type, size, and compile timestamp
- Static analysis — examine strings, imports, and disassembled code without execution
- Dynamic analysis — execute in a monitored sandbox and record behavior (file, registry, network)
- Document IOCs — extract indicators of compromise and write the analysis report
Step 1: Configure Advanced Phishing Protection
- Navigate to Admin Console > Apps > Google Workspace > Gmail > Safety
- Enable "Protect against domain spoofing based on similar domain names"
- Enable "Protect against spoofing of employee names"
- Enable "Protect against inbound emails spoofing your domain"
- Set action for detected spoofing: quarantine or move to spam with warning banner
- Apply settings to all organizational units or specific high-risk groups
Step 2: Enable Enhanced Pre-Delivery Scanning
- In Safety settings, enable "Enhanced pre-delivery message scanning"
- This adds additional delay (seconds) to scan messages more thoroughly
- Configure to detect phishing attempts that evade initial filters
- Enable "Identify links behind shortened URLs"
- Enable "Scan linked images" for image-based phishing detection
Step 3: Configure Attachment Protection
- Enable "Protect against encrypted attachments from untrusted senders"
- Enable "Protect against attachments with scripts from untrusted senders"
- Enable "Protect against anomalous attachment types in emails"
- Configure action: warn users, move to spam, or quarantine
- Create exceptions for known legitimate encrypted file senders
Step 4: Enable Enhanced Safe Browsing
- Navigate to Admin Console > Security > Gmail Enhanced Safe Browsing
- Enable Enhanced Safe Browsing for the organization (off by default)
- This provides real-time protection against phishing URLs in emails
- Configure at organizational unit level for phased rollout
- Monitor user feedback for false positive impact
Step 5: Enroll High-Risk Users in Advanced Protection Program
- Identify high-privilege accounts: super admins, executives, finance leadership
- Enroll users in Google's Advanced Protection Program (APP)
- APP requires FIDO2 security keys for authentication
- APP blocks third-party app access unless explicitly approved
- APP provides enhanced scanning for Gmail and Drive downloads
Step 6: Configure Email Authentication
- Publish SPF record:
v=spf1 include:_spf.google.com ~all
- Enable DKIM signing in Admin Console > Apps > Google Workspace > Gmail > Authenticate email
- Configure DMARC with monitoring:
v=DMARC1; p=none; rua=mailto:dmarc@company.com
- Progress DMARC to enforcement per organizational readiness
When NOT to Use
- You need to test the implementation (use performing-* skills)
- Task is about configuring existing tools (use configuring-* skills)
- You need to analyze security events (use analyzing-* skills)
- Task is about building detection rules (use building-* skills)
- You don't have access to the target environment
- Task requires vendor-specific expertise (consult vendor docs)
Red Flags
- Performing actions without explicit written authorization from the asset owner
- Testing against production systems without a defined scope and rules of engagement
- Analyzing malware on a machine connected to the production network
- Failing to isolate the analysis environment from the internet
- Executing samples without proper containment (VM, sandbox)
Verification
- All steps executed successfully against a test environment before production use
- Output documented with screenshots or logs demonstrating expected behavior
- Sample hash recorded and verified (MD5, SHA-1, SHA-256)
- Analysis environment confirmed isolated from production network
- Indicators of compromise (IOCs) extracted and documented
Tools & Resources
- Google Admin Console: Central management for all security settings
- Google Workspace Security Investigation Tool: Threat analysis and response
- Google Security Center: Security health recommendations and dashboard
- Gmail Security Sandbox: Attachment detonation for enterprise licenses
- Google Advanced Protection Program: Strongest account security
Validation
- Spoofing protection blocks test email with lookalike domain
- Pre-delivery scanning catches test phishing with delayed weaponization
- Attachment protection warns on test encrypted attachment
- Enhanced Safe Browsing blocks known phishing URL clicked in email
- APP-enrolled accounts reject non-FIDO2 authentication attempts
- SPF, DKIM, DMARC all pass for outbound messages
Process
- Analyze the task requirements
- Apply domain expertise
- Verify output quality
Anti-Rationalization Table
| Rationalization |
Reality |
| "We are too small to be targeted" |
Automated attacks target everyone. Size does not matter. |
| "Security slows us down" |
A breach slows you down 100x more. Build security in from the start. |
| "We will fix it after launch" |
Vulnerabilities in production are exploited within hours. Fix before deploy. |
1---2name: implementing-google-workspace-phishing-protection3description: Use when configure Google Workspace advanced phishing and malware protection settings including pre-delivery scanning, attachment protection, spoofing detection, and Enhanced Safe Browsing. Use when configureing google workspace advanced phishing and malware protection settings including.4license: Apache-2.05---67# Implementing Google Workspace Phishing Protection89## Overview10Google Workspace provides advanced phishing and malware protection through the Admin Console under Apps > Google Workspace > Gmail > Safety. Key features include Enhanced Pre-Delivery Scanning that examines messages more thoroughly before they reach inboxes, attachment and link protection that scans for malware and checks against known malicious sites, and spoofing detection for domain and employee name impersonation. Google's Advanced Protection Program (APP) provides the strongest account security for high-privilege users.111213## When to Use14**Trigger phrases:**15- "implementing google workspace phishing protection"16- "Configure Google Workspace advanced phishing and malware protection settings inc"171819- When deploying or configuring implementing google workspace phishing protection capabilities in your environment20- When establishing security controls aligned to compliance requirements21- When building or improving security architecture for this domain22- When conducting security assessments that require this implementation2324## Prerequisites25- Google Workspace Business Standard or higher license26- Gmail Settings administrator privilege27- Understanding of organizational email flow and third-party integrations28- Access to Google Admin Console (admin.google.com)29- DNS management access for SPF, DKIM, DMARC configuration3031## Workflow3233```python34# Example: IOC detection35import re3637IOC_PATTERNS = {38 "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",39 "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",40 "hash_md5": r"\b[a-f0-9]{32}\b",41 "hash_sha256": r"\b[a-f0-9]{64}\b",42}4344def extract_iocs(text: str) -> dict:45 return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}46```47481. **Isolate the sample** — ensure the malware is in a sandboxed environment with no network access492. **Record file metadata** — hash the sample and note file type, size, and compile timestamp503. **Static analysis** — examine strings, imports, and disassembled code without execution514. **Dynamic analysis** — execute in a monitored sandbox and record behavior (file, registry, network)525. **Document IOCs** — extract indicators of compromise and write the analysis report53### Step 1: Configure Advanced Phishing Protection54- Navigate to Admin Console > Apps > Google Workspace > Gmail > Safety55- Enable "Protect against domain spoofing based on similar domain names"56- Enable "Protect against spoofing of employee names"57- Enable "Protect against inbound emails spoofing your domain"58- Set action for detected spoofing: quarantine or move to spam with warning banner59- Apply settings to all organizational units or specific high-risk groups6061### Step 2: Enable Enhanced Pre-Delivery Scanning62- In Safety settings, enable "Enhanced pre-delivery message scanning"63- This adds additional delay (seconds) to scan messages more thoroughly64- Configure to detect phishing attempts that evade initial filters65- Enable "Identify links behind shortened URLs"66- Enable "Scan linked images" for image-based phishing detection6768### Step 3: Configure Attachment Protection69- Enable "Protect against encrypted attachments from untrusted senders"70- Enable "Protect against attachments with scripts from untrusted senders"71- Enable "Protect against anomalous attachment types in emails"72- Configure action: warn users, move to spam, or quarantine73- Create exceptions for known legitimate encrypted file senders7475### Step 4: Enable Enhanced Safe Browsing76- Navigate to Admin Console > Security > Gmail Enhanced Safe Browsing77- Enable Enhanced Safe Browsing for the organization (off by default)78- This provides real-time protection against phishing URLs in emails79- Configure at organizational unit level for phased rollout80- Monitor user feedback for false positive impact8182### Step 5: Enroll High-Risk Users in Advanced Protection Program83- Identify high-privilege accounts: super admins, executives, finance leadership84- Enroll users in Google's Advanced Protection Program (APP)85- APP requires FIDO2 security keys for authentication86- APP blocks third-party app access unless explicitly approved87- APP provides enhanced scanning for Gmail and Drive downloads8889### Step 6: Configure Email Authentication90- Publish SPF record: `v=spf1 include:_spf.google.com ~all`91- Enable DKIM signing in Admin Console > Apps > Google Workspace > Gmail > Authenticate email92- Configure DMARC with monitoring: `v=DMARC1; p=none; rua=mailto:dmarc@company.com`93- Progress DMARC to enforcement per organizational readiness9495## When NOT to Use9697- You need to test the implementation (use performing-* skills)98- Task is about configuring existing tools (use configuring-* skills)99- You need to analyze security events (use analyzing-* skills)100- Task is about building detection rules (use building-* skills)101- You don't have access to the target environment102- Task requires vendor-specific expertise (consult vendor docs)103104105## Red Flags106107- Performing actions without explicit written authorization from the asset owner108- Testing against production systems without a defined scope and rules of engagement109- Analyzing malware on a machine connected to the production network110- Failing to isolate the analysis environment from the internet111- Executing samples without proper containment (VM, sandbox)112113## Verification114115- All steps executed successfully against a test environment before production use116- Output documented with screenshots or logs demonstrating expected behavior117- Sample hash recorded and verified (MD5, SHA-1, SHA-256)118- Analysis environment confirmed isolated from production network119- Indicators of compromise (IOCs) extracted and documented120121## Tools & Resources122- **Google Admin Console**: Central management for all security settings123- **Google Workspace Security Investigation Tool**: Threat analysis and response124- **Google Security Center**: Security health recommendations and dashboard125- **Gmail Security Sandbox**: Attachment detonation for enterprise licenses126- **Google Advanced Protection Program**: Strongest account security127128## Validation129- Spoofing protection blocks test email with lookalike domain130- Pre-delivery scanning catches test phishing with delayed weaponization131- Attachment protection warns on test encrypted attachment132- Enhanced Safe Browsing blocks known phishing URL clicked in email133- APP-enrolled accounts reject non-FIDO2 authentication attempts134- SPF, DKIM, DMARC all pass for outbound messages135136## Process1371381. Analyze the task requirements1392. Apply domain expertise1403. Verify output quality141142## Anti-Rationalization Table143144| Rationalization | Reality |145|---|---|146| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |147| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |148| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |