Phishing Submission Button Setup
Expel developed buttons for Google Workspace, Gmail, and Microsoft 365 for submitting suspected phishing attempts.
Read/write mail access is required for our analysts to quarantine and remediate on your behalf.
Prerequisites
You must be one of your organization’s Google Workspace/Gmail/Microsoft 365 administrators (for Gmail, you must be a domain super admin) to complete this process.
For Gmail and Microsoft 365, you must first download the necessary file in Workbench (Organization Settings > Your Organizations > scroll down to the Phishing tab). You will need its contents to complete the setup.
For Gmail, this file is called
GmailAddOn.zip.For Microsoft 365, this file is called
Manifest.zip.
Google Workspace Button Setup
This button is set up via a Google Workspace Add-On.
Step 1: Install the Extension
Log in to Google Workspace as an administrator.
From the Admin Console, select Devices.

In the navigation pane of the Devices page, select Chrome > Apps & extensions > Users & browsers.

In the lower right corner of the page, select the yellow + button and then select Add Chrome app or extension by ID.

In the box that appears, enter the extension ID:
gpkcimdiphdhnenbncknfiakplflhmnc.Select Save.
Select the arrow next to the extension and choose Force install.

Step 2: Configure the Extension for All Users
With the Expel Phishing extension selected, an option panel appears on the right. In that option panel, locate the Policy for extensions field.

The Policy for extensions field expects a JSON block. Our custom JSON configuration accepts three parameters:
destinations_forward_attachment REQUIRED (array of strings)
- Where the submitted phishing emails will be forwarded to as an attachment.
This is where the Expel Phishing alias provided by the EM should be entered.
destinations_forward_inline (array of strings)
- Where submitted phishing emails will be forwarded to inline.
valid_domains REQUIRED (array of strings)
- List of domains for which the button appears
(for example, if gmail.com is included, users logging into
personal Gmail accounts see the button).
custom_success_message (string)
- Customized success message to show on submission of email to Expel Phishing.
move_to_trash (boolean) DEFAULT is true - Set to false and the button leaves the original
message in the user’s inbox. If set to true, the button moves the original message to the trash folder upon submission.Below are some example configurations and we are happy to help build this with you if needed. After you decide on the configuration, paste the JSON block into the Policy for extension area.
Forward to Expel only
{
"customConfig":{
“Value”:{
“destinations_forward_attachment”: [“alias@expel-phishing.io”],
“valid_domains”: [“company.com”],
“custom_success_message”: “Thank you for being vigilant! The security team is looking into this and will update you shortly.”
}
}
}Forward to both an internal distribution list and Expel
{
"customConfig":{
“Value”:{
“destinations_forward_attachment”: [
“phishingreport@company.com”,
“alias@expel-phishing.io”
],
“valid_domains”: [“company.com”]
}
}
}Forward to both Expel as an attachment and an internal security team as inline
{
"customConfig":{
“Value”:{
“destinations_forward_attachment”: [“alias@expel-phishing.io”],
“destinations_forward_inline”: [“security@company.com”],
“valid_domains”: [“company.com”]
}
}
}Forward to both Expel and an internal security team and also show the button for users logging into personal Gmail accounts
{
"customConfig":{
“Value”:{
“destinations_forward_attachment”:
[“alias@expel-phishing.io”, “security@company.com”],
“valid_domains”: [“company.com”, “gmail.com”]
}
}
}Select SAVE to complete the configuration.
Step 3: Allowlist the Extension
Go back to the Admin console and select Security.

Scroll down and open App access control.

Select MANAGE THIRD-PARTY APP ACCESS.
In the Connected apps section, hover over Expel Phishing and select Change access.
Choose Trusted: Can access all Google services and then select SAVE.

The Expel Phishing app is now listed as Trusted in the Connected apps view.
Step 4: Enable Domain-wide Delegation
Go back to the Admin console and select Security.

Scroll down and open App access control.

Select MANAGE DOMAIN WIDE DELEGATION.

Select Add new.

Enter the following for the Client ID and the OAuth Scopes:
Client ID:
528472867238-v8803num13j6691ue52qqm6tuoqpu9ns.apps.googleusercontent.comOAuth scopes:
https://www.googleapis.com/auth/gmail.modify
6. Select Authorize.
Gmail Button Setup
Step 1: Create a Google Workspace Add-on Project
Navigate to https://script.google.com/ and log in as the domain super admin.
Select New project.

Select Untitled project, rename the project "Report potential phishing", and then select Rename.
Select the plus sign (+) next to Files, and then select Script.

Enter "Config" as the file name and press Enter.
At the bottom of the navigation bar, select the Settings icon.

Select the Show "appscript.json" manifest file in editor checkbox.
In the navigation bar, select the Code Editor (<>) icon.
Using the
GmailAddOn.zipfile, extract, copy, and paste the contents of each file into the corresponding files in the Apps Script editor.After the files are copied into and saved in the Apps Script editor, select Deploy > New deployment.

Select the gear icon next to Select type, and then select Web app and Add-on.

On the Configuration pane, do the following:
In the New description field, enter "Report potential phishing".
In the Who has access field, select the Anyone within… option.
Select Deploy.
After the deployment is complete, copy and save the Deployment ID for use in a later step.
Keep this tab open. You will return to it in a later step.
Step 2: Create a Google Workspace Cloud Project
In a new browser tab, navigate to https://console.cloud.google.com/projectcreate.
Enter "Report Potential Phishing" as the project name and select CREATE.
From the menu on the left, select APIs & Services > Enabled APIs & Services.

Search for and select the Google Workspace Marketplace SDK.
Select ENABLE.
Select the App Configuration tab.

Select The OAuth Consent Screen must be enabled for this project hyperlink.
On the OAuth consent screen:
Select Internal as the User Type.
Select CREATE.
Complete the following fields, leaving the rest empty:
App name - Report potential phishing.
User support email - enter an email address for the security team/help desk where end users can direct general questions if they have any.
Developer contact information - support@expel.com.
Select SAVE AND CONTINUE.
Select ADD OR REMOVE SCOPES.
In the Update selected scopes area that opens, copy the following scopes into the Manually add scopes box:
https://www.googleapis.com/auth/gmail.addons.executehttps://www.googleapis.com/auth/gmail.addons.current.message.readonlyhttps://www.googleapis.com/auth/gmail.send
Select ADD TO TABLE.
Verify that the following scopes are added to the table and chosen, and then select UPDATE.

The Edit app registration page appears, showing the three scopes. Scroll to the bottom of the page and select SAVE AND CONTINUE.
Step 3: Connect Google Workspace Cloud and Add-on Projects
Copy the App ID, as you will need it shortly.

Return to the Apps Script tab, or navigate to the Report potential phishing project at https://script.google.com.
Navigate to Project Settings, and select Change project at the bottom of the page.

In the GCP Project Number field, paste in the App ID you copied from the App Configuration screen and then select Set project.
Go back to the API & Services cloud console tab and then do the following on the App Configuration Screen:
Select the Google Workspace Add-on checkbox.
Select the Deploy using Apps Script deployment id option.
Enter the Deployment ID you copied and saved in Step 1.
In the OAuth Scopes section, select ADD SCOPE and then add these three scopes (you will have two default scopes already, bringing the total to five scopes):
https://www.googleapis.com/auth/gmail.addons.executehttps://www.googleapis.com/auth/gmail.addons.current.message.readonlyhttps://www.googleapis.com/auth/gmail.send
Select the following options:
In Installation Settings, select Admin Only Install.
In App Visibility, select Private.
Select SAVE.
Scroll to Developer Links and enter the following:
Developer Name - Expel
Developer Website URL - https://expel.io
Developer Email - support@expel.io
Select the Store Listing tab.

Under App Details, next to English, select the down arrow.
Fill in the following App Details fields:
Application Name - Report potential phishing
Short Description - Report potential phishing emails
Detailed Description - Utility to help send potential phishing emails for triage

Select DONE.
Fill in the following remaining fields:
Category - Administration and Management
Graphic Assets (select BROWSE and upload the images from the zip file):
Application Icon 32x32 - 32x32.png
Application Icon 128x128 - 128x128.png
Application Card Banner - 128x128.png
Screenshot (select BROWSE and upload the image from the zip file) - 80x80.png
Support Links:
Terms of Service URL - https://expel.io
Privacy Policy URL - https://expel.io
Support URL - https://support.expel.io
Distribution - select All Regions or select from the Regions list.
Select PUBLISH.
Step 4: Install the Add-on to the Domain
Navigate to https://gsuite.google.com/marketplace/mydomainapps.
Select the Report phishing app and then choose Domain Install.
In the Domain wide install area, select CONTINUE.
On the OAuth Consent Screen, agree to the terms of service and then select ALLOW.
In the success message window, select DONE.
The add-on becomes available to end users shortly. It can take as long as 24 hours for the deployment to take effect.
Microsoft 365 Button Setup
Deploy Add-in Using the 365 Admin Center
Log in to the Microsoft 365 admin center.
In the navigation menu on the left, go to Settings > Integrated Apps.
Near the top of the page, select Add-Ins.
In the tab that appears, select Deploy Add-in.
Select Next and then select Upload custom apps.
In the Deploy a new add-in section, do the following:
Select I have the manifest file (.xml) on this device.
Select Choose File.
Find and select the manifest file.
Select Upload.
In the Configure add-in section, do the following:
Under Assign Users, decide to which users to deploy the add-in.
Under Deployment Method, select Fixed (Default).
Select Deploy.
The deployment can take up to a few minutes. A success message displays after the process is complete, and you will see the Expel for Phishing add-in in the list of installed add-ins.
Microsoft notes that it can take up to 12 hours for the add-in to propagate to all users, but if you reached this point, the installation is complete.
Last updated
Was this helpful?

