Variables in Lucy
Lucy variables are useful for personalizing your content for each recipient. You can use them throughout the application to easily apply the correct value without having to know it in advance.
Variables in Lucy use the %
character to identify themselves, like so:
Awareness Email Variables
Variable | Description |
---|---|
| Resolves to the base URL of the scenario (phishing page in an attack template, training content in an awareness template). |
| Resolves to a password reset link for the recipient's end-user account. |
| Resolves to a link to the end-user portal. |
| Resolves to a Single Sign-On (SSO) link for the end-user portal. |
| Resolves to the recipient's full name. |
| Resolves to the recipient's first name. |
| Resolves to the recipient's last name. |
| Resolves to the recipient's email address. |
| Resolves to the client name associated with the recipient's group. |
| Used for titles (e.g., Mr., Mrs., None). |
| Resolves to the subject line of the attack email. |
| Resolves to the sender name of the attack email. |
| Resolves to the email address that sent the attack email. |
| Resolves to the date when the related campaign was started. |
| Resolves to the date when the related campaign was stopped. |
time
%time%
inserts a timestamp into the template. If a time zone is not specified then the time of the email send is used as the basis of the offset. The offset is measures in minutes.
You can configure the variable like so: %time("format", "offset", "zone")%
Examples
This time is offset 0 minutes from Europe/Zurich time.
The time is offset 60 minutes backwards from the time of the email.
Awareness Website Variables
Variable | Description |
---|---|
| Resolves to the recipient's full name. |
| Resolves to the recipient's email address. |
| Resolves to the client name associated with the recipient's group. |
| Resolves to the subject line of the attack email. |
| Resolves to the sender name of the attack email. |
| Resolves to the email address that sent the attack email. |
| Resolves to the date when the related campaign was started. |
| Resolves to the date when the related campaign was stopped. |
Attack Email Variables
Variable | Description |
---|---|
| Resolves to the base URL of the scenario (phishing page in an attack template, training content in an awareness template). |
| A QR code version of the |
| Resolves to the awareness website. |
| Resolves to the recipient's full name. |
| Resolves to the recipient's first name. |
| Resolves to the recipient's last name. |
| Resolves to the recipient's email address. |
| Resolves to the recipient's division field. |
| Resolves to the recipient's location field. |
| Resolves to the recipient's staff type field. |
| Resolves to the recipient's comment field. |
Attack Website Variables
Variable | Description |
---|---|
| Always resolves to the base URL of the scenario. In an attack template, this is the phishing page; in an awareness template, this is the training content. |
| Resolves to the awareness website. |
| Resolves to the recipient's full name. |
| Resolves to the recipient's first name. |
| Resolves to the recipient's last name. |
| Resolves to the recipient's email address. |
| Resolves to the recipeint's division field. |
| Resolves to the recipeint's location field. |
| Resolves to the recipeint's staff type field. |
| Resolves to the recipeint's comment field. |
| Used for titles (e.g., Mr., Mrs., None). |
| Resolves to the subject line of the attack email. |
| Resolves to the sender name of the attack email. |
| Resolves to the email address that sent the attack email. |
static
The %static%
variable refers to the static file path, which is useful for linking content.
time("format", "offset", "zone")
%time%
inserts a timestamp into the template. If a time zone is not specified then the time of the email send is used as the basis of the offset. The offset is measures in minutes.
This time is offset 0 minutes from Europe/Zurich time.
The time is offset 60 minutes backwards from the time of the email.
Login Form Parameters
The login form should use the
POST
method.Set the form's
action
attribute to either:The same page (leave
action
empty)."?login"
to point to a login-specific route.In Lucy, this action will automatically lead to the
account.html
page which is required in order to collect statistics for the campaign.
To validate logins and passwords using regular expressions (configured in the "Login Regexp" and "Password Regexp" fields in scenario settings):
Set the
name
attribute of the login field to"login"
.Set the
name
attribute of the password field to"password"
.
Report Template Variables
Variable | Description |
---|---|
| The date the report was created. |
| The author of the report. |
| Start date and time of the campaign. |
| End date and time of the campaign. |
| User who created the campaign. |
| File formats used in file-based attack scenarios within the campaign. |
| Total number of scenarios used in the campaign. |
| Names of the scenarios used in the campaign. |
| Types of scenarios used in the campaign. |
| Name of the client associated with the campaign. |
| Percentage of recipients who opened the email. |
| Number of emails that were opened. |
| Percentage of recipients who clicked on a link. |
| Number of emails where a link was clicked. |
| Total number of emails sent in the campaign. |
| Percentage of recipients who reported the email. |
| Percentage of emails where data was submitted by the recipient. |
| Number of emails where data was submitted. |
| Domains used in the campaign's scenario settings. |
| Timezone setting of the product server. |
| Names of recipient groups targeted in the campaign. |
| Name of the awareness template used. |
| Number of awareness emails sent. |
| Number of awareness emails opened by recipients. |
| Number of users who did not complete the training. |
| Number of users who completed the training. |
| Number of questions included in the quiz. |
| Total and relative amount of data collected from users. |
| Number of recipients in the campaign. |
| Number of incident reports related to the campaign. |
| Total number of reports related to all campaigns. |
| Total number of reports not related to campaigns. |
| Total number of incident reports. |
| Percentage of "Out of Office" responses. |
| Percentage of bounced messages. |
| Percentage of recipients who responded. |
Last updated