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 protection4 settings including pre-delivery scanning, attachment protection, spoofing detection,5 and Enhanced Safe Browsing. Use when configureing google workspace advanced phishing6 and malware protection settings including.7domain: cybersecurity8subdomain: phishing-defense9tags:10- google-workspace11- gmail12- phishing13- email-security14- safe-browsing15- anti-spoofing16- admin-console17version: '1.0'18author: oyi7719license: Apache-2.020nist_csf:21- PR.AT-0122- DE.CM-0923- RS.CO-0224- DE.AE-0225category: cybersecurity26metadata:27 source: https://skillmd.com/skills/oyi77/implementing-google-workspace-phishing-protection28---2930# Implementing Google Workspace Phishing Protection3132## Overview33Google 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.343536## When to Use37**Trigger phrases:**38- "implementing google workspace phishing protection"39- "Configure Google Workspace advanced phishing and malware protection settings inc"404142- When deploying or configuring implementing google workspace phishing protection capabilities in your environment43- When establishing security controls aligned to compliance requirements44- When building or improving security architecture for this domain45- When conducting security assessments that require this implementation4647## Prerequisites48- Google Workspace Business Standard or higher license49- Gmail Settings administrator privilege50- Understanding of organizational email flow and third-party integrations51- Access to Google Admin Console (admin.google.com)52- DNS management access for SPF, DKIM, DMARC configuration5354## Workflow5556```python57# Example: IOC detection58import re5960IOC_PATTERNS = {61 "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",62 "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",63 "hash_md5": r"\b[a-f0-9]{32}\b",64 "hash_sha256": r"\b[a-f0-9]{64}\b",65}6667def extract_iocs(text: str) -> dict:68 return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}69```70711. **Isolate the sample** — ensure the malware is in a sandboxed environment with no network access722. **Record file metadata** — hash the sample and note file type, size, and compile timestamp733. **Static analysis** — examine strings, imports, and disassembled code without execution744. **Dynamic analysis** — execute in a monitored sandbox and record behavior (file, registry, network)755. **Document IOCs** — extract indicators of compromise and write the analysis report76### Step 1: Configure Advanced Phishing Protection77- Navigate to Admin Console > Apps > Google Workspace > Gmail > Safety78- Enable "Protect against domain spoofing based on similar domain names"79- Enable "Protect against spoofing of employee names"80- Enable "Protect against inbound emails spoofing your domain"81- Set action for detected spoofing: quarantine or move to spam with warning banner82- Apply settings to all organizational units or specific high-risk groups8384### Step 2: Enable Enhanced Pre-Delivery Scanning85- In Safety settings, enable "Enhanced pre-delivery message scanning"86- This adds additional delay (seconds) to scan messages more thoroughly87- Configure to detect phishing attempts that evade initial filters88- Enable "Identify links behind shortened URLs"89- Enable "Scan linked images" for image-based phishing detection9091### Step 3: Configure Attachment Protection92- Enable "Protect against encrypted attachments from untrusted senders"93- Enable "Protect against attachments with scripts from untrusted senders"94- Enable "Protect against anomalous attachment types in emails"95- Configure action: warn users, move to spam, or quarantine96- Create exceptions for known legitimate encrypted file senders9798### Step 4: Enable Enhanced Safe Browsing99- Navigate to Admin Console > Security > Gmail Enhanced Safe Browsing100- Enable Enhanced Safe Browsing for the organization (off by default)101- This provides real-time protection against phishing URLs in emails102- Configure at organizational unit level for phased rollout103- Monitor user feedback for false positive impact104105### Step 5: Enroll High-Risk Users in Advanced Protection Program106- Identify high-privilege accounts: super admins, executives, finance leadership107- Enroll users in Google's Advanced Protection Program (APP)108- APP requires FIDO2 security keys for authentication109- APP blocks third-party app access unless explicitly approved110- APP provides enhanced scanning for Gmail and Drive downloads111112### Step 6: Configure Email Authentication113- Publish SPF record: `v=spf1 include:_spf.google.com ~all`114- Enable DKIM signing in Admin Console > Apps > Google Workspace > Gmail > Authenticate email115- Configure DMARC with monitoring: `v=DMARC1; p=none; rua=mailto:dmarc@company.com`116- Progress DMARC to enforcement per organizational readiness117118## When NOT to Use119120- You need to test the implementation (use performing-* skills)121- Task is about configuring existing tools (use configuring-* skills)122- You need to analyze security events (use analyzing-* skills)123- Task is about building detection rules (use building-* skills)124- You don't have access to the target environment125- Task requires vendor-specific expertise (consult vendor docs)126127128## Red Flags129130- Performing actions without explicit written authorization from the asset owner131- Testing against production systems without a defined scope and rules of engagement132- Analyzing malware on a machine connected to the production network133- Failing to isolate the analysis environment from the internet134- Executing samples without proper containment (VM, sandbox)135136## Verification137138- All steps executed successfully against a test environment before production use139- Output documented with screenshots or logs demonstrating expected behavior140- Sample hash recorded and verified (MD5, SHA-1, SHA-256)141- Analysis environment confirmed isolated from production network142- Indicators of compromise (IOCs) extracted and documented143144## Tools & Resources145- **Google Admin Console**: Central management for all security settings146- **Google Workspace Security Investigation Tool**: Threat analysis and response147- **Google Security Center**: Security health recommendations and dashboard148- **Gmail Security Sandbox**: Attachment detonation for enterprise licenses149- **Google Advanced Protection Program**: Strongest account security150151## Validation152- Spoofing protection blocks test email with lookalike domain153- Pre-delivery scanning catches test phishing with delayed weaponization154- Attachment protection warns on test encrypted attachment155- Enhanced Safe Browsing blocks known phishing URL clicked in email156- APP-enrolled accounts reject non-FIDO2 authentication attempts157- SPF, DKIM, DMARC all pass for outbound messages158159## Process1601611. Analyze the task requirements1622. Apply domain expertise1633. Verify output quality164165## Anti-Rationalization Table166167| Rationalization | Reality |168|---|---|169| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |170| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |171| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |