What it does. Configures Google Workspace advanced phishing and malware protection settings in the Admin Console — pre-delivery message scanning, attachment protection, spoofing/impersonation detection, and Enhanced Safe Browsing enforcement. Use when hardening Gmail against phishing, spoofing, and malware, or when tuning Workspace email security policies. Part of mukul975/Anthropic-Cybersecurity-Skills (817 security skills) (mukul975/Anthropic-Cybersecurity-Skills).
Install
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill implementing-google-workspace-phishing-protection, or copy the skill folder into ~/.claude/skills/implementing-google-workspace-phishing-protection/.
- Raw file:
curl -sL https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/HEAD/skills/implementing-google-workspace-phishing-protection/SKILL.md
SKILL.md (verbatim)
name: implementing-google-workspace-phishing-protection
description: Configures Google Workspace advanced phishing and malware protection settings in the Admin Console — pre-delivery message scanning, attachment protection, spoofing/impersonation detection, and Enhanced Safe Browsing enforcement. Use when hardening Gmail against phishing, spoofing, and malware, or when tuning Workspace email security policies.
domain: cybersecurity
subdomain: phishing-defense
tags:
- google-workspace
- gmail
- phishing
- email-security
- safe-browsing
- anti-spoofing
- admin-console
version: '1.0'
author: mahipal
license: Apache-2.0
nist_csf:
- PR.AT-01
- DE.CM-09
- RS.CO-02
- DE.AE-02
mitre_attack:
- T1566
- T1598
- T1534
- T1036
- T1027
mitre_f3:
version: '1.1'
tactics:
- reconnaissance
- resource-development
- initial-access
- stealth
techniques:
- id: T1660
name: Phishing
tactic: initial-access
source: attack
- id: T1598
name: Phishing for Information
tactic: reconnaissance
source: attack
- id: T1672
name: Email Spoofing
tactic: stealth
source: attack
- id: F1032
name: Impersonate Official
tactic: initial-access
source: f3
- id: F1031
name: Impersonate Account Holder
tactic: initial-access
source: f3
- id: F1020.002
name: 'Create Fake Materials: Fake Website'
tactic: resource-development
source: f3
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
- 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
- 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
- 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
- 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
- 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
Other files in this skill
assets/template.md (verbatim)
Google Workspace Phishing Protection Configuration Template
Safety Settings Checklist
Advanced Protection Program Enrollment
| User |
Role |
APP Enrolled |
FIDO2 Key |
|
Super Admin |
|
|
|
CEO |
|
|
|
CFO |
|
|
|
VP Finance |
|
|
Authentication Configuration
| Protocol |
Status |
Record |
| SPF |
|
v=spf1 include:_spf.google.com -all |
| DKIM |
|
google._domainkey.{domain} |
| DMARC |
|
v=DMARC1; p=reject; rua=... |
references/api-reference.md (verbatim)
API Reference: Implementing Google Workspace Phishing Protection
Admin Console Path
Admin Console > Apps > Google Workspace > Gmail > Safety
Gmail Safety Controls
| Control |
Category |
Severity if Missing |
| Protect against similar domain spoofing |
Spoofing |
HIGH |
| Protect against employee name spoofing |
Spoofing |
HIGH |
| Protect against inbound domain spoofing |
Spoofing |
CRITICAL |
| Enhanced pre-delivery scanning |
Scanning |
HIGH |
| Attachment protection (encrypted/scripts) |
Attachments |
HIGH |
| Identify links behind shortened URLs |
Links |
MEDIUM |
| Show warning for unauthenticated email |
Warnings |
MEDIUM |
| Enhanced Safe Browsing |
Browsing |
HIGH |
Admin SDK Directory API (GAM)
# List Gmail settings
gam print gmailsettings domain example.com
# List users with Advanced Protection
gam print users query "isAdvancedProtectionProgram=true"
Google Workspace Alert Center API
from google.oauth2 import service_account
from googleapiclient.discovery import build
creds = service_account.Credentials.from_service_account_file("sa.json",
scopes=["https://www.googleapis.com/auth/apps.alerts"])
service = build("alertcenter", "v1beta1", credentials=creds)
alerts = service.alerts().list().execute()
Recommended Actions for Spoofing
| Detection |
Action |
| Similar domain spoofing |
Quarantine |
| Employee name spoofing |
Show warning + move to spam |
| Inbound domain spoofing |
Quarantine |
| Unauthenticated email |
Show warning banner |
References
references/standards.md (verbatim)
Standards & References: Google Workspace Phishing Protection
Google Workspace Security Settings Path
- Admin Console > Apps > Google Workspace > Gmail > Safety
- Admin Console > Security > Gmail Enhanced Safe Browsing
- Admin Console > Apps > Google Workspace > Gmail > Authenticate email
MITRE ATT&CK References
- T1566.001: Phishing: Spearphishing Attachment
- T1566.002: Phishing: Spearphishing Link
- T1656: Impersonation
- T1586.002: Compromise Accounts: Email Accounts
Key Protection Settings
| Setting |
Location |
Default |
Recommended |
| Domain spoofing protection |
Safety |
Off |
On - Quarantine |
| Employee name spoofing |
Safety |
Off |
On - Warning |
| Pre-delivery scanning |
Safety |
On |
On (enhanced) |
| Attachment protection |
Safety |
Partial |
Full - all options |
| Enhanced Safe Browsing |
Security |
Off |
On |
| Gmail Security Sandbox |
Safety |
Off |
On (Enterprise) |
Google Workspace License Requirements
| Feature |
Business Starter |
Business Standard |
Enterprise |
| Basic phishing protection |
Yes |
Yes |
Yes |
| Enhanced pre-delivery scanning |
Yes |
Yes |
Yes |
| Gmail Security Sandbox |
No |
No |
Yes |
| Security Investigation Tool |
No |
Partial |
Yes |
| Advanced Protection Program |
Yes |
Yes |
Yes |
references/workflows.md (verbatim)
Workflows: Google Workspace Phishing Protection
Workflow 1: Gmail Inbound Protection Pipeline
Inbound email arrives at Gmail
|
v
[Connection-level checks]
+-- IP reputation
+-- SPF validation
+-- DKIM verification
+-- DMARC evaluation
|
v
[Enhanced Pre-Delivery Scanning]
+-- Content analysis for phishing indicators
+-- URL expansion (shortened URLs)
+-- Image scanning for embedded phishing
+-- NLP analysis for social engineering
|
v
[Attachment Protection]
+-- File type analysis
+-- Script detection in attachments
+-- Encrypted attachment from untrusted sender check
+-- Security Sandbox detonation (Enterprise)
|
v
[Spoofing Detection]
+-- Domain name similarity check
+-- Employee name impersonation check
+-- Internal domain spoofing check
|
v
[Delivery decision]
+-- DELIVER: Clean message to inbox
+-- WARN: Deliver with yellow warning banner
+-- SPAM: Route to spam folder
+-- QUARANTINE: Hold for admin review
+-- REJECT: Block delivery entirely
Workflow 2: Safe Browsing URL Protection
User clicks URL in Gmail
|
v
[Enhanced Safe Browsing check]
+-- Real-time URL reputation lookup
+-- Check against known phishing database
+-- Dynamic page analysis
|
v
[Decision]
+-- SAFE: Allow navigation
+-- DANGEROUS: Display full-page warning
+-- SUSPICIOUS: Display interstitial warning
Back to mukul975/Anthropic-Cybersecurity-Skills (817 security skills) or Agent skills.