Templates
A template combines a domain, a sender (an SMTP configuration or an API sender), an email and a page flow into one reusable setup. A campaign is created from a template, and a program sends a series of templates.
Overview
Where: Templates
The templates list shows what each template uses. Click a name to edit it. Awareness training
templates carry a training badge.
| Column | Description |
|---|---|
| Name | Name of the template |
| Domain | Domain that serves the pages |
| Email that is sent to the recipients | |
| Landing | The main page, or a proxy marked with a proxy icon |
| SMTP | SMTP configuration used to send the email |
| API Sender | API sender used to send the email |
| Before page | Optional page shown before the landing page |
| After page | Optional page shown after the landing page |
| Redirect URL | Optional URL the recipient is sent to after the last page |
| Languages | The languages of the template |
| Is complete | Checked when the template has a domain, an email, a landing page or proxy, and an SMTP configuration or API sender. Deleting one of these marks the template as not complete and closes the scheduled and active campaigns that use it right away, also when they have a later close time. Only complete templates can be used in a campaign. |
The row menu has Update, Copy, Allow listing (see
Microsoft Allow Listing) and
Delete. Deleting a template closes the scheduled and active campaigns that use it,
also campaigns where it is one of several templates.
A template used by a program that is not closed can not be
deleted. Remove it from the program or close the program first. A closed program does not
block the delete, its results show the template as Deleted template.
Creating new Templates
Prerequisites
Before creating a template, set up:
- A domain to serve the pages
- An SMTP configuration or an API sender to send the email
- An email
- At least one page, or a proxy for the landing step
Where: Templates > New template
Basic Information
| Field | Description |
|---|---|
| Name | Name of the template, up to 64 characters |
| Domain | Domain that serves the pages and the links in the email |
| Awareness training | Marks the template as an awareness training template. Campaigns built from it record training started and completed instead of phishing page visits and submissions, and require an after landing page for the completion summary. Training and phishing simulation templates cannot be mixed in one campaign |
Email Configuration
| Field | Description |
|---|---|
| SMTP Configuration | SMTP server used to send the email. Shown when Delivery Type is
Email, the default. |
| API Sender | API sender used to send the email. Shown instead of SMTP Configuration when
Delivery Type is External API. |
| The email sent to the recipients. With Multiple languages the email is picked per language instead |
Page Flow
The page flow is the path a recipient takes after clicking the link in the email. A diagram next to the fields shows the flow as you build it: the email or API sender, then the before, landing and after steps, and the redirect. Steps you leave empty are shown as skipped.
With Multiple languages the page flow only decides the steps, once for
the whole template: Before Landing and After Landing are
None or Page, Landing is Page or, in
Red Team Phishing and Show All mode or when the template already has a landing proxy,
Proxy with the proxy picked in
Landing Proxy. The pages are picked per language, and the diagram shows
"Per language" for them.
| Field | Description |
|---|---|
| Before Landing | Optional page shown first, for example a lure or a step before the main page |
| Landing | Required. The main page where the interaction and any data submission happen. In Red Team Phishing display mode you can choose a page or a proxy; a proxy forwards the visitor to the real site and captures the session. |
| After Landing | Optional page shown after the landing page, for example an explanation or a completion page. Required for awareness training templates. |
Languages
Check Multiple languages to send the template in more than one language, see Languages. Left unchecked, the template has one email and one set of pages.
Advanced Options
Click Show advanced options for these fields.
| Field | Description |
|---|---|
| Delivery Type | Email sends through an SMTP configuration, External API through
an API sender |
| URL Path | Optional path after the domain name, for example /employee/login. Up to
1024 characters. |
| Lure URL format | Chooses how the delivered link identifies the recipient. Query parameter
appends the recipient ID to the query string, for example
https://example.com/login?id=6ba7b810-9dad-11d1-80b4-00c04fd430c8.
Path code appends a short code as the final path segment instead, for example
https://example.com/login/4H7K9QM2XR3T. The form shows an example link for
the current settings. All templates in a campaign with
several templates must use the same format,
code format and code length. |
| Code format | Symbol set a generated code is drawn from. Crockford base32 is upper case
without I, L, O and U. Base58 is mixed case without 0, O, I and l, and needs
fewer characters for the same number of combinations. Only shown for the path code format |
| Code length (6 to 16) | Number of characters in a generated code, between 6 and 16. The default is 12. The form shows how many combinations the chosen format and length produce. Only shown for the path code format |
| Query param key | Query parameter name that identifies the recipient in the URL. Pick a name that fits the site you imitate. With the path code format the delivered link does not use it, but the pages after the first click still do |
| State param key | Query parameter that carries the recipient's position in the page flow. Always a query parameter, including with the path code format. It must differ from the query param key |
| POST redirect URL | Gophish compatible redirect (the Campaign URL in Gophish). After data is submitted on the last page of the flow, the recipient is redirected to this URL. Must be an http or https URL, up to 255 characters. Does not apply to proxy pages. |
Path Code Lure URLs
A query string carrying a UUID is hard to read aloud and survives poorly in an SMS, a QR code or a printed note. The path code format replaces it with a short code so the link stays usable in those channels.
Codes are allocated per recipient when the campaign is scheduled, and the format, length and symbol set are taken from the template at that moment. Editing the template afterwards does not change codes already issued.
Both URL forms always resolve, whichever format the template is set to. Switching a template between the two does not break links that have already been delivered.
Note: in the path code format the code becomes part of the URL path, so relative
asset references inside a landing page template resolve one level deeper. Use
{{.BaseURL}} for assets in landing pages that may be used with this format.
Click Save to create the template.
Languages
A template can hold the same lure in several languages. Each recipient gets the email and pages in their language, and everything else stays the same for all of them. A campaign or program decides the language of each recipient from a recipient field with Language by.
Where: Templates > New template or Update > Languages
Check Multiple languages. The template's email and pages become the first row and a second, empty row is added. Every language is a row in the same table. Each language can be added once, and a template with Multiple languages has at least two.
| Field | Description |
|---|---|
| Language | Language of the row, picked from a fixed list of 43 languages |
| Required. The email sent to recipients in this language. The email of each language other than the main language must have content and a subject that parse as a template. It is checked when you save and its email changed. The main language email is the template's own email and is not checked when you save | |
| Before Landing, Landing and After Landing | A page for each step the page flow has as a page.
Every page step is required, so a recipient never gets half of the flow in another
language. A proxy step shows Shared proxy, the proxy is the same in every
language |
| Main language | One row is the main language, the first row. It is sent when a campaign does not use
Language by. Click
Make main on another row to make it the main language, it moves to the top.
Recipients scheduled from now on get the main language when a campaign does not use
Language by, recipients already scheduled keep theirs. The main row can not be
removed |
Click + Add Language to add a row and the remove button at the end of a row to
remove it. To go back to one language, uncheck Multiple languages and confirm:
the dialog names the languages that are removed when you save and the main language that
stays as the template's language, with its email and pages. A single language template shows no
language in the editor or in the Languages column of the template list, and
it can not be used with Language by. In the list, the main language of a template with
Multiple languages comes first, and the tooltip marks it (main).
Only the email and the pages change per language. The domain, the sender (SMTP configuration or API sender), the URL path, the lure URL settings, the awareness training setting and every proxy step are shared by all languages. The emails and pages of a row must belong to the template's company, or be shared.
When you add a page step to the template, the template can only be saved once every language has a page for it. An API update that leaves a language without a page for the new step is refused. When a page step is removed from the template or turned into a proxy, the step is cleared on every row. Is complete in the template list covers the template's own email and pages only. A campaign or program that maps recipients to a language that is not complete is refused when you save it.
Removing a language
A language can not be removed while an open campaign uses it: recipients of the campaign are set to it, sent to or not, or its default language or a value maps to it. It also can not be removed while a program that is not closed, a draft included, picks it for its people. The error names the languages in use and the campaigns or programs, and those languages are put back in the editor so nothing is lost. This also applies when you uncheck Multiple languages. Making another row the main language removes nothing, the old main language becomes a row. Changing the email or pages of a language is always allowed, also while it is in use.
Deleting a language email or page
An email or page used by a language row counts as used by the template. Deleting it clears it from the row and marks the row as not complete. Scheduled and active campaigns that can reach that language, because it is their default language, a value maps to it or a recipient on the template is set to it, are closed right away, also when they have a later close time. This is the same as when a template's own email or page is deleted. Program campaigns are not closed: the recipients set to that language wait until it is fixed, see Programs.
Copying a template copies its languages. Deleting a template removes its languages, but not the emails and pages they use.