Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Notifications

Overview

Email notifications keep everyone involved in a test informed, without anyone having to check AttackForge or chase updates. They cover testing progress, retests, new vulnerabilities and changes to existing vulnerabilities.

Testers send daily testing emails, and any team member can send a one-off email. AttackForge sends new vulnerability emails as findings become visible, and time-based emails on the schedule administrators set.

For anything the built-in emails don't cover, build your own. An Action, event or HTTP request starts a Flow, and the Flow sends the email through the sendEmail REST API.

Why notifications matter

  • No surprises for clients. Clients know when testing starts and stops each day, and hear about serious findings straight away rather than in the final report.

  • Faster response to serious risk. A new Critical or High vulnerability can reach the people who need to act on it as soon as it's visible.

  • Automatic follow-up. Scheduled emails chase overdue fixes, warn about upcoming SLA breaches and send regular summaries, so nobody has to remember.

  • Consistent, on-brand messages. Headers, footers and templates make every email look the same, whoever sends it.

Four kinds of email

Email

Sent by

When

Use it for

Daily started or stopped testing

Testers with Edit access

When they start or stop testing each day

Keeping the client informed about testing activity

New vulnerabilities

AttackForge, automatically

When a new vulnerability becomes visible

Alerting people to serious findings straight away

Custom one-off emails

Testers with Edit access

Whenever needed

Ad hoc messages to the project team

Custom time-based emails

AttackForge, on a schedule set by administrators

Daily or weekly, at a set hour

Reminders, escalations and regular reporting

For anything else, you can send your own emails with the sendEmail REST API, and automate them with Flows and Actions. See Send custom emails with the REST API, Actions and Flows below.

Who benefits

Who

How

Clients and stakeholders

Know when testing is happening, and hear about serious findings early

Testers and consultants

Keep clients informed in a couple of clicks

Remediation owners

Get reminders before fixes become overdue

Administrators and managers

Automate follow-ups, escalations and reporting across every project

Send daily started and stopped testing emails

Clients often need to know when testing is happening. They might need to watch their monitoring, warn their own teams, or be ready to act if something goes wrong. A short email at the start and end of each testing day keeps them informed.

Project team members with Edit access, such as pentesters and consultants, can send these emails.

  1. Open the project dashboard.

  2. From the project menu, choose:

    • Daily Commencement Email when you start testing, or

    • Daily Completion Email when you stop.

  3. Send the email.

The emails can be personalised for each project. See Email project team on events.

Get notified about new vulnerabilities

Serious findings shouldn't wait for the final report. You can turn on emails for events such as the discovery of a new Critical or High vulnerability.

  • Emails are only sent once the vulnerability is visible. A vulnerability that's still Pending (in QA) doesn't trigger one.

  • Administrators control how much vulnerability information is shared for each project.

  • Project team members choose whether to receive these emails.

There are two notification types:

Notification type

What's sent

Best for

Send Individual Email For Each New Vulnerability

One email for each new vulnerability, to each project team member who has opted in, and any additional recipients

Teams that act on each finding as it arrives

Send One Email with Details For All New Vulnerabilities

A single email to the same recipients, summarising each new vulnerability

Avoiding a flood of emails when many findings are released together

See Email project team on events.

Send a custom one-off email

Use a one-off email for anything else the project team needs to know, such as a change to the testing window, a request for access, or a note that the report is ready.

  1. From the project menu, choose Custom One-Off Email.

  2. Enter a subject and body. The body supports limited HTML and CSS, and Project Email Meta Tags.

  3. Choose the recipients: the whole project team, or individual members.

  4. Optionally, add other email addresses.

  5. Click Send Email.

Set up custom time-based emails

Time-based emails are sent automatically on a schedule, using rules you define. Use them for:

  • reminders, such as a vulnerability whose SLA will be breached in 7 days

  • escalations, such as Critical or High vulnerabilities whose SLA was breached two or three days ago

  • regular reporting, such as a weekly summary of open vulnerabilities for a client

Every custom email can have its own settings. Administrators create them under Administration > Notifications > Custom Emails.

Choose how often and when

Setting

Options

Email frequency

Daily: sent every day, in the hour you choose. Weekly: sent on the day you choose each week, in the hour you choose.

Email time

Any hourly block in the day

Choose the type

The type decides which data the email can filter and include: Vulnerabilities, Projects, Project Requests, Users or Writeups.

Write a filter

The filter decides which records go into the email, using a query syntax. For example, only open vulnerabilities, or only projects that finish this week.

Important: Before an email is sent, the filtered data is checked against each recipient, to make sure they have access to it.

The filter supports these operators: $and, $or, $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $regex, $elemMatch and $all. It also supports the datetime() function, for dates relative to now.

Filter operators

Operator

What it does

Example

$and

All of two or more conditions must match

Open and Critical vulnerabilities

$or

At least one of two or more conditions must match

Critical or High vulnerabilities

$eq

The field equals a value. The value can be a string, boolean, number, null or function.

{ priority: { $eq: 'Critical' } }

$ne

The field doesn't equal a value. The value can be a string, boolean, number, null or function.

{ priority: { $ne: 'Info' } }

$in

The field contains a value from a list (array)

{ tags: { $in: ['OWASP Top 10'] } }

$nin

The field doesn't contain any value from a list (array)

{ tags: { $nin: ['OWASP Top 10'] } }

$gt

The field is greater than a value. Supports strings, numbers and functions.

{ likelihood_of_exploitation: { $gt: 7 } }

$gte

The field is greater than or equal to a value. Supports strings, numbers and functions.

{ likelihood_of_exploitation: { $gte: 7 } }

$lt

The field is less than a value. Supports strings, numbers and functions.

{ likelihood_of_exploitation: { $lt: 7 } }

$lte

The field is less than or equal to a value. Supports strings, numbers and functions.

{ likelihood_of_exploitation: { $lte: 7 } }

$regex

The field matches a regular expression. Supports JavaScript regular expressions.

{ title: { $regex: /SQL/i } } finds "SQL" in the title, ignoring case

$elemMatch

At least one item in an array field matches all the given conditions

See below

$all

The field contains all of the given values

{ tags: { $all: ["CWE-520", "Web App"] } }

Combining conditions with $and:

Combining conditions with $or:

Matching a custom field with $elemMatch, for example vulnerabilities where the custom field is_pci is "Yes":

Dates with datetime()

datetime() is the only supported function. datetime(timeValue, modifiers) creates a date and time, and optionally adjusts it.

  • timeValue must be now, YYYY-MM-DD or YYYY-MM-DD HH:MM.

  • modifiers can be +999 years or -999 years, +999 months or -999 months, +999 days or -999 days, +999 hours or -999 hours, +999 minutes or -999 minutes, start of year, start of month, or start of day.

  • Modifiers are applied in order.

Example

Filter

Created after 1 June 2022

{ created: { $gt: datetime('2022-06-01') } }

Created after 12:00 UTC on 1 June 2022

{ created: { $gt: datetime('2022-06-01 12:00') } }

Created in the last 7 days

{ created: { $gt: datetime('now', '-7 days') } }

SLA more than 7 days away

{ sla: { $gt: datetime('now', '+7 days') } }

SLA more than 1 year and 7 days away

{ sla: { $gt: datetime('now', '+7 days', '+1 year') } }

Fields you can filter on

Vulnerabilities

Field

Description

id

Vulnerability ID

alternate_id

Alternate ID, set by the project's vulnerability code

created

When the vulnerability was created

modified

When the vulnerability was last modified

priority

Critical, High, Medium, Low or Info

title

Title

zero_day

Yes or No

likelihood_of_exploitation

1 to 10

status

Open or Closed

status_updated

When the status was last changed

is_retest

Yes or No: whether it's ready for retesting

sla

SLA date

target_remediation_date

Target remediation date

release_date

Release date

custom_tags

Custom tags, as name and value pairs

custom_fields

Custom fields, as name and value pairs

Projects

Field

Description

id

Project ID

created

When the project was created

modified

When the project was last modified

name

Project name

code

Project code

status

Overrun, Waiting to Start, Testing, Completed, Retest or On Hold

start_date

Start date

end_date

End date

on_hold

Yes or No

organization_code

Organisation code

vulnerability_code

Vulnerability code

group_id

IDs of linked groups

group

Names of linked groups

custom_fields

Custom fields, as name and value pairs

Project requests

Field

Description

id

Project request ID

created

When the request was created

modified

When the request was last modified

name

Name

code

Code

status

Pending Approval, Requested Information, Approved or Rejected.

start_date

Requested start date

end_date

Requested end date

organization_code

Organisation code

custom_fields

Custom fields, as name and value pairs

Users

Field

Description

id

User ID

created

When the user was created

modified

When the user was last modified

first_name

First name

last_name

Last name

username

Username

email

Email address

last_logged_in

When the user last logged in

status

Active or Blocked

role

client, consultant, librarymod, projectoperator or admin

failed_logins

Number of failed logins

mfa_enabled

Yes or No

last_active_on_app

When the user was last active in the app

last_active_on_ssapi

When the user was last active on the Self-Service API

account_expiry

When the account expires

Writeups

Field

Description

id

Writeup ID

created

When the writeup was created

modified

When the writeup was last modified

reference_id

15-digit reference ID

title

Title

description

Description

attack_scenario

Attack scenario

remediation_recommendation

Remediation recommendation

likelihood_of_exploitation

1 to 10

severity

1 to 10

custom_library_key

Key of the custom library it belongs to

imported_library

Yes or No: whether it's in the Imported library

project_library

Yes or No: whether it's in the Project library

tags

Tags

custom_tags

Custom tags, as name and value pairs

custom_fields

Custom fields, as name and value pairs

Choose the recipients

Who you can send to depends on the type:

Type

Recipients

Vulnerabilities

Vulnerability Creator; Project Team and Project Group Members by role; role-based groups; Individual Groups; Individual Users; user or group custom fields on the vulnerability or its project

Projects

Project Creator; Project Team and Project Group Members by role; role-based groups; Individual Groups; Individual Users; user or group custom fields on the project

Project Requests

Project Requestor Creator; role-based groups; Individual Groups; Individual Users; user or group custom fields on the project request

Users

Clients, Consultants, Library Moderators, Project Coordinators, Administrators; Individual Groups; Individual Users

Writeups

Role-based groups; Individual Groups; Individual Users; user or group custom fields on the writeup

The roles are Clients, Consultants, Library Moderators, Project Coordinators and Administrators. Project Team and Project Group Members can also be set to Everyone.

Skip Access Check

By default, each recipient only receives data they have access to. Skip Access Check turns this off, and sends the filtered data whatever the recipient's access.

Warning: When this option is turned on, recipients may receive more data in the email than they have access to. Only use it when every recipient is allowed to see all the data the filter returns.

Write the subject and body

  • Subject: the email's title.

  • Body: HTML, so it can include headings, lists, tables and images.

Each type has its own metatags, for things like the recipient's name, a loop over the filtered records, and the record's fields.

Every type supports {user.firstName} and {user.lastName} for the recipient's name. Each type also has a loop tag, such as {vulnerabilities}...{/vulnerabilities}. The content between the loop tags is repeated for each record the filter returns, so put the record's tags inside it.

Dates shown as "DAY MONTH DATE YEAR" can be reformatted. See "Format dates and times" below.

Vulnerability metatags

Loop: {vulnerabilities}...{/vulnerabilities}

Metatag

Description

{vuln.id}

Vulnerability ID

{vuln.alternate_id}

Alternate ID, from the project's vulnerability code

{vuln.created}

Created date (DAY MONTH DATE YEAR)

{vuln.modified}

Modified date (DAY MONTH DATE YEAR)

{vuln.priority}

Critical, High, Medium, Low or Info

{vuln.title}

Title

{vuln.description}

Description

{vuln.attack_scenario}

Attack scenario

{vuln.remediation_recommendation}

Remediation recommendation

{vuln.proof_of_concept}

Proof of concept, or steps to reproduce

{vuln.status}

Open, Retest or Closed

{vuln.status_updated}

Date the status was last updated (DAY MONTH DATE YEAR)

{vuln.tags}

Tags, as a bulleted list

{vuln.zero_day}

Yes or No

{vuln.likelihood_of_exploitation}

Likelihood of exploitation, from 1/10 to 10/10

{vuln.notes}

Notes, each in its own paragraph

{vuln.test_cases}

Test cases, as a bulleted list

{vuln.sla_date}

SLA date (DAY MONTH DATE YEAR)

{vuln.target_remediation_date}

Target remediation date (DAY MONTH DATE YEAR)

{vuln.release_date}

Release date (DAY MONTH DATE YEAR)

{vuln.cvssv3}

CVSSv3 score

{vuln.cvssv3_vector}

CVSSv3 vector string

{vuln.cvssv3_base_score}

CVSSv3 base score

{vuln.cvssv3_temporal_score}

CVSSv3 temporal score

{vuln.cvssv3_environmental_score}

CVSSv3 environmental score

{vuln.custom_tag_[name]}

A custom tag. Replace [name] with the tag's name.

{vuln.custom_field_[key]}

A custom field. Replace [key] with the field's key.

{vuln.user_id}

ID of the user who created the vulnerability

{vuln.user_first_name}

First name of the user who created the vulnerability

{vuln.user_last_name}

Last name of the user who created the vulnerability

Linked library writeup

Metatag

Description

{vuln.library_id}

Writeup ID

{vuln.library_created}

Writeup created date (DAY MONTH DATE YEAR)

{vuln.library_modified}

Writeup modified date (DAY MONTH DATE YEAR)

{vuln.library_code}

Writeup code

{vuln.library_tags}

Writeup tags, as a bulleted list

{vuln.library_import_source}

Import source

{vuln.library_import_source_id}

Import source ID

{vuln.library_custom_tag_[name]}

A writeup custom tag. Replace [name] with the tag's name.

{vuln.library_custom_field_[key]}

A writeup custom field. Replace [key] with the field's key.

Affected asset

Metatag

Description

{vuln.asset}

Asset name

{vuln.asset_id}

Asset library ID

{vuln.asset_created}

Asset library created date (DAY MONTH DATE YEAR)

{vuln.asset_modified}

Asset library modified date (DAY MONTH DATE YEAR)

{vuln.asset_external_id}

Asset library external ID

{vuln.asset_type}

Asset library type

{vuln.asset_details}

Asset library details

{vuln.asset_custom_field_[key]}

An asset library custom field. Replace [key] with the field's key.

All affected assets. Loop: {vuln.assets}...{/vuln.assets}. Use these tags inside the loop:

Metatag

Description

{vuln.asset.name}

Asset name

{vuln.asset.id}

Asset library ID

{vuln.asset.created}

Asset library created date

{vuln.asset.modified}

Asset library modified date

{vuln.asset.asset_external_id}

Asset library external ID

{vuln.asset.asset_type}

Asset library type

{vuln.asset.asset_details}

Asset library details

{vuln.asset.asset_custom_field_[key]}

An asset library custom field. Replace [key] with the field's key.

Linked projects. Loop: {projects}...{/projects}. Use these tags inside the loop:

Metatag

Description

{vuln.project_id}

Project ID

{vuln.project_created}

Project created date (DAY MONTH DATE YEAR)

{vuln.project_modified}

Project modified date (DAY MONTH DATE YEAR)

{vuln.project_name}

Project name

{vuln.project_code}

Project code

{vuln.project_start_date}

Project start date

{vuln.project_end_date}

Project end date

{vuln.project_vuln_link}

A "View" link to the vulnerability in the project

{vuln.project_link}

A "View" link to the project dashboard

{vuln.project_custom_tag_[name]}

A project custom tag. Replace [name] with the tag's name.

{vuln.project_custom_field_[key]}

A project custom field. Replace [key] with the field's key.

Project metatags

Loop: {projects}...{/projects}

Metatag

Description

{project.id}

Project ID

{project.created}

When the project was created

{project.modified}

When the project was last modified

{project.name}

Project name

{project.code}

Project code

{project.start_date}

Start date

{project.end_date}

End date

{project.organization_code}

Organisation code

{project.on_hold}

Yes or No

{project.vulnerability_code}

Vulnerability code

{project.custom_tag_[name]}

A custom tag. Replace [name] with the tag's name.

{project.custom_field_[key]}

A custom field. Replace [key] with the field's key.

{project.user.id}

ID of the user who created the project

{project.user.first_name}

First name of the user who created the project

{project.user.last_name}

Last name of the user who created the project

{project.link}

Link to the project

Project totals

Metatag

Number of

{project.total_vulnerabilities}

Vulnerabilities

{project.total_zero_day_vulnerabilities}

Zero-day vulnerabilities

{project.total_easily_exploitable_vulnerabilities}

Easily exploitable vulnerabilities

{project.total_owasp_top_10_vulnerabilities}

OWASP Top 10 vulnerabilities

{project.total_cwe_top_25_vulnerabilities}

CWE Top 25 vulnerabilities

{project.total_critical_vulnerabilities}

Critical vulnerabilities

{project.total_high_vulnerabilities}

High vulnerabilities

{project.total_medium_vulnerabilities}

Medium vulnerabilities

{project.total_low_vulnerabilities}

Low vulnerabilities

{project.total_info_vulnerabilities}

Info vulnerabilities

{project.total_pending_vulnerabilities}

Pending vulnerabilities

{project.total_open_vulnerabilities}

Open vulnerabilities

{project.total_closed_vulnerabilities}

Closed vulnerabilities

{project.total_retest_vulnerabilities}

Vulnerabilities ready for retesting

{project.total_retests_requested}

Retests requested

{project.total_retests_completed}

Retests completed

{project.total_assets}

Assets

{project.total_testcases}

Test cases

{project.total_not_tested_testcases}

Test cases not yet tested

{project.total_tested_testcases}

Test cases tested

{project.total_in_progress_testcases}

Test cases in progress

{project.total_not_applicable_testcases}

Test cases marked not applicable

Totals by priority and status follow the pattern {project.total_<priority>_<status>_vulnerabilities}, where <priority> is critical, high, medium, low or info, and <status> is open, retest or closed. For example, {project.total_critical_open_vulnerabilities} is the number of open Critical vulnerabilities, and {project.total_high_retest_vulnerabilities} is the number of High vulnerabilities ready for retesting.

Project request metatags

Loop: {project_requests}...{/project_requests}

Metatag

Description

{project_request.id}

Project request ID

{project_request.created}

When the request was created

{project_request.modified}

When the request was last modified

{project_request.name}

Name

{project_request.code}

Code

{project_request.start_date}

Expected start date

{project_request.end_date}

Expected end date

{project_request.status}

Status

{project_request.organization_code}

Organisation code

{project_request.custom_field_[key]}

A custom field. Replace [key] with the field's key.

{project_request.user.id}

ID of the user who created the request

{project_request.user.first_name}

First name of the user who created the request

{project_request.user.last_name}

Last name of the user who created the request

{project_request.link}

Link to the project request

User metatags

Loop: {users}...{/users}

Metatag

Description

{user.id}

User ID

{user.created}

When the user was created

{user.modified}

When the user was last updated

{user.first_name}

First name

{user.last_name}

Last name

{user.username}

Username

{user.email}

Email address

{user.last_logged_in}

When the user last logged in

{user.status}

Active or Blocked

{user.role}

client, consultant, librarymod, projectoperator or admin

{user.failed_logins}

Number of failed logins

{user.mfa_enabled}

Yes or No

{user.last_active_on_app}

When the user was last active in the app

{user.last_active_on_ssapi}

When the user was last active on the Self-Service API

{user.account_expiry}

When the account expires

Inside the {users} loop, {user.first_name} is the listed user's name. Outside it, {user.firstName} is the recipient's name.

Writeup metatags

Loop: {writeups}...{/writeups}

Metatag

Description

{writeup.id}

Writeup ID

{writeup.created}

When the writeup was created

{writeup.modified}

When the writeup was last updated

{writeup.title}

Title

{writeup.reference_id}

15-digit reference ID

{writeup.description}

Description

{writeup.attack_scenario}

Attack scenario

{writeup.remediation_recommendation}

Remediation recommendation

{writeup.likelihood_of_exploitation}

1 to 10

{writeup.severity}

1 to 10

{writeup.custom_library_key}

Custom library key

{writeup.imported_library}

Yes or No: whether it's in the Imported library

{writeup.project_library}

Yes or No: whether it's in the Project library

{writeup.tags}

Tags, as a bulleted list

{writeup.custom_tag_[name]}

A custom tag. Replace [name] with the tag's name.

{writeup.custom_field_[key]}

A custom field. Replace [key] with the field's key.

Examples

Example: vulnerabilities that will breach their SLA in 7 days

This email tells clients, administrators and the compliance team about the open vulnerabilities they can access whose SLA will be breached in exactly 7 days.

  • Type: Vulnerabilities

  • Recipients: Project Team – Clients; Project Group Members – Clients; Administrators; Compliance Team (group)

  • Subject: Vulnerability SLA Breaches In 7-days

Filter:

Body:

More filter examples

Open Critical or High vulnerabilities whose SLA was breached two to three days ago, for escalation:

Open Critical or High vulnerabilities with a target remediation date six to seven days away, as a reminder:

Colour-code priorities with dynamic CSS styles

Colour-coding makes it easy to spot the most serious vulnerabilities in an email.

  1. In the email header template, define a CSS class for each priority: critical, high, medium, low and info.

  2. In the email body, use the {vuln.priority} tag as the class of a table cell. Each cell then takes the colour of its vulnerability's priority.

Step 1, in the email header template:

Step 2, in the email body:

Format dates and times

Add the dateFormat filter to an email metatag to format a date or time the way you need, for example {now | dateFormat:["dd-mmm-yyyy"]}. See Template filters: dateFormat.

List the users in user and group custom fields

A user or group custom field can hold several users or groups, such as the asset owners for a project. To list them in an email, loop over the field:

  • <PROPERTY> is the object the custom field belongs to, such as the vulnerability or project.

  • <KEY> is the custom field's key.

  • Inside the loop, use {id}, {first_name}, {last_name} and {email_address} for each user or group.

A header and footer wrap every email in your branding, so all notifications look consistent and professional. Put {content} where the email's content should go. You can manage your global email header and footer in Administration > Notifications > Templates > Header and Footer

  • Basic configuration: a simple HTML wrapper, with a dark band at the top, a white content area containing {content}, and a dark footer with a system-generated email notice and the copyright year, using {now | dateFormat}.

  • Advanced configuration: a full responsive HTML email template, with meta tags, Google Fonts, dark-mode colours, styled tables and buttons, and Outlook (MSO) conditional styling.

Basic configuration:

Advanced configuration:

Send custom emails with the REST API, Actions and Flows

The built-in emails cover the most common needs. When you need an email the built-in options can't send, such as one triggered by an event in another system, or one with content you build yourself, use the sendEmail REST API method. You can call it from your own scripts, or automate it with Flows and Actions.

The sendEmail method

POST https://HOSTNAME/api/ss/email sends a custom email. Authenticate with your Self-Service API key in the X-SSAPI-KEY header.

Field

Type

What it's for

to

array

Recipients. Each one is an email address, or an object with a user_id

cc

array

Copy recipients, in the same format as to

bcc

array

Blind copy recipients, in the same format as to

subject

string

The subject line

text

string

The body, as plain text

html

string

The body, as HTML

Things to know:

  • A user_id is sent to that user's email address. If it doesn't match an active user, it's dropped without an error.

  • A response of {"status": "Accepted"} means the email is queued. It doesn't confirm delivery, and a later delivery failure isn't reported back.

  • sendEmail is in the Administration group of the API. You must first be granted access to this API method to be able to use it.

See sendEmail for full details.

Automate emails with Flows

A Flow can call sendEmail as one of its steps, so emails are sent automatically. Store the API key as a secret in the Flow. A Flow can start from:

  • an event, such as a vulnerability being created or updated

  • a schedule, such as every Monday morning

  • an HTTP request from another system, such as a ticketing tool

  • an Action that someone runs in AttackForge

For example:

  • when a Critical vulnerability is created, email the asset owners named in a user custom field, as well as posting to Slack or Microsoft Teams

  • when a Jira ticket for a vulnerability is closed, email the tester to say it's ready for retesting

See Flows.

Put a button on it with Actions

An Action adds a button to an Actions menu in AttackForge. Clicking it runs one or more Flows. Actions can run on projects, vulnerabilities, project requests, test cases, portfolios, assets, writeups, users, groups, or across the whole application. A form on the Action can collect extra details from the user, which the Flow can read.

Use an Action when an email should be sent on demand, but with content or recipients the built-in emails don't support. For example:

  • Email a remediation pack: on selected vulnerabilities, send each asset owner a summary of their findings and the remediation advice

  • Send a testing-complete notice: on a project, ask for a short message in a form, then email the client contacts using your template

Administrators create System Actions and roll them out to roles, groups or users. Any user can create User Actions for themselves and share them. Actions need the Flows module to be enabled. See Actions.

Which option should I use?

Need

Use

A standard email about testing progress or new findings

Built-in daily or new vulnerability emails

A one-off message to the project team

Custom one-off email

A regular reminder or report based on a filter

Custom time-based email

An email triggered by an event or another system

A Flow calling sendEmail

An email someone sends on demand, with custom content or recipients

An Action that runs a Flow

Emails from your own scripts or tools

The sendEmail REST API

Custom email meta tags

Meta tags insert live details, such as the project name, a vulnerability's priority or a link, into the subject or body of an email. They make system emails clear and specific, without anyone having to type the details.

Administrators can customise the subject and body of each system email under Administration > Notifications. Each email is configured separately, and supports HTML and the meta tags below. Custom one-off emails (4.17) support them too.

Emails that support meta tags

Each email has a number. The "Works in" column of the tag tables uses these numbers.

#

Email

Project requests

1.1

Email Project Request Owner when request is created

1.2

Email Project Request Owner when request is approved

1.3

Email Project Request Owner when request is rejected

1.4

Email Project Request Owner when information is requested

1.5

Email when new Project Request is created

1.6

Email when Project Request is updated

Groups

2.1

Email User when invited to Group

2.2

Email Group Member when project is added

Users

3.1

Email User when Password Reset is requested

3.2

Email User on change of IP address from last login

3.3

Email User on New Registration

3.4

Email New User with Welcome Message

3.5

Email Admins when New User is created

3.6

Email User on Invitation

3.7

Email User on Daily Project Update

3.8

Email User on Weekly Project Update

Projects

4.1

Email User when invited to new project

4.2

Email Project Coordinator when new Project is created

4.3

Email Project Team when Project is placed On Hold

4.4

Email Project Team when Project is placed Off Hold

4.5

Email Vulnerability Owner when Review Note is posted

4.6

Email User when someone replies to their Vulnerability Review Note

4.7

Email Additional Team Members when Vulnerability Review Note is posted

4.8

Email Additional Team Members when someone replies to a Vulnerability Review Note

4.9

Email Review Note Owner when someone replies to an Executive Summary Review Note

4.10

Email Additional Team Members when an Executive Summary Review Note is posted

4.11

Email Additional Team Members when someone replies to an Executive Summary Review Note

4.12

Email Project Team when Vulnerability Status is updated

4.13

Email Team Member when Project Role is updated

4.14

Email Project Team when a Retest is completed

4.15

Email Admins when a new Retest is requested

4.16

Email Admins when a Retest is cancelled

4.17

Email Project Team with one-time Custom Email

The tag tables use these shorthands for groups of emails:

  • All 1.x: 1.1 to 1.6

  • All 4.x: 4.1 to 4.17

  • Review notes: 4.5 to 4.11

  • Vulnerability emails: 4.5 to 4.12

General tags

Tag

Inserts

Works in

{tenant_url}

Your AttackForge URL

All emails

{now}

The current date and time

All emails

{now | dateFormat:["mm/dd/yyyy"]}

Today's date, formatted. See dateFormat for all options.

All emails

{now | dateSubtract:[1, days] | dateFormat:["mm/dd/yyyy"]}

Yesterday's date, formatted

All emails

{now | dateAdd:[7, days] | dateFormat:["mm/dd/yyyy"]}

The date in 7 days, formatted

All emails

{recipient.first_name}

The recipient's first name

All emails

{link}

A link to the relevant item

All 1.x, 2.2, 3.1, 3.3, all 4.x

{link.url}

The URL on its own, for your own buttons and links

All 1.x, 2.2, 3.1, 3.3, all 4.x

Colour tags

These insert the colours configured for each priority and status, so emails match the colours in AttackForge. Each has a light and a dark version. They work in all emails.

Tag

Inserts

{config.vulnerability.priority.<priority>.color_light}

The light colour for a priority

{config.vulnerability.priority.<priority>.color_dark}

The dark colour for a priority

{config.vulnerability.status.<status>.color_light}

The light colour for a status

{config.vulnerability.status.<status>.color_dark}

The dark colour for a status

<priority> is critical, high, medium, low or info. <status> is open, retest or closed. For example, {config.vulnerability.priority.critical.color_light}.

Recipient and account tags

Tag

Inserts

Works in

{recipient.project_role}

The recipient's role on the project

4.1, 4.13

{recipient.password_reset_link}

A password reset link

3.1

{recipient.password_reset_link.url}

The password reset URL on its own

3.1

{recipient.account_activation_link}

An account activation link

3.3

{recipient.account_activation_link.url}

The account activation URL on its own

3.3

{invite_link}

An invitation link

3.6

{invite_link.url}

The invitation URL on its own

3.6

User and group tags

Tag

Inserts

Works in

{user.first_name}

The user's first name

3.5, 3.6

{user.last_name}

The user's last name

3.5, 3.6

{user.username}

The user's username

3.5

{user.email_address}

The user's email address

3.5

{user.role}

The user's role

3.5

{user.ip_address}

The IP address the user logged in from

3.2

{user.created_by.first_name}

First name of the person who created the user

3.5

{user.created_by.last_name}

Last name of the person who created the user

3.5

{group.name}

The group's name

2.1

In 3.5 and 3.6, {user.*} is the new or invited user, and {recipient.first_name} is the person receiving the email.

Daily and weekly project update tags (3.7, 3.8)

Tag

Number of

{vulns_count}

Vulnerabilities

{critical_vulns_count}

Critical vulnerabilities

{high_vulns_count}

High vulnerabilities

{medium_vulns_count}

Medium vulnerabilities

{low_vulns_count}

Low vulnerabilities

{info_vulns_count}

Info vulnerabilities

{closed_vulns_count}

Closed vulnerabilities

{retest_vulns_count}

Vulnerabilities ready for retesting

{project_requests_count}

Project requests

{projects_in_progress_count}

Projects in progress

{projects_completed_count}

Completed projects

{projects_overrun_count}

Overrun projects

{projects_waiting_to_start_count}

Projects waiting to start

{users_registered_count}

Registered users

Project request tags

Tag

Inserts

Works in

{project_request.id}

Project request ID

All 1.x

{project_request.name}

Name

All 1.x

{project_request.status}

Status

All 1.x

{project_request.created_datetime}

When the request was created

All 1.x

{project_request.last_updated_datetime}

When the request was last updated

All 1.x

{project_request.start_date}

Requested start date

All 1.x

{project_request.end_date}

Requested end date

All 1.x

{project_request.scope}

Requested scope

All 1.x

{project_request.groups}

Groups

All 1.x

{project_request.test_suites}

Test suites

All 1.x

{project_request.testing_hours}

Testing hours

All 1.x

{project_request.onsite_testing}

Whether onsite testing is needed

All 1.x

{project_request.justification}

Justification

All 1.x

{project_request.organization_code}

Organisation code

All 1.x

{project_request.link}

Link to the project request

All 1.x

{project_request.custom_field.<KEY>}

A custom field. Replace <KEY> with the field's key.

All 1.x

{project_request.requestor.first_name}

Requestor's first name

1.5, 1.6

{project_request.requestor.last_name}

Requestor's last name

1.5, 1.6

{project_request.rejected.reason}

Why the request was rejected

1.3

{project_request.requested_information.details}

The information requested

1.4

Project tags

Tag

Inserts

Works in

{project.id}

Project ID

2.2, all 4.x

{project.name}

Project name

2.2, all 4.x

{project.code}

Project code

2.2, all 4.x

{project.created_datetime}

When the project was created

2.2, all 4.x

{project.last_updated_datetime}

When the project was last updated

2.2, all 4.x

{project.start_date}

Start date

2.2, all 4.x

{project.end_date}

End date

2.2, all 4.x

{project.organization_code}

Organisation code

2.2, all 4.x

{project.link}

Link to the project

2.2, all 4.x

{project.custom_field.<KEY>}

A custom field. Replace <KEY> with the field's key.

2.2, all 4.x

{project.on_hold.status}

On-hold status

4.3

{project.on_hold.details}

Why the project was put on hold

4.3

{project.off_hold.status}

Off-hold status

4.4

{project.off_hold.details}

Details of taking the project off hold

4.4

Vulnerability tags (4.5 to 4.12)

Tag

Inserts

{vulnerability.id}

Vulnerability ID

{vulnerability.code}

Vulnerability code

{vulnerability.title}

Title

{vulnerability.priority}

Priority

{vulnerability.status}

Status

{vulnerability.created_datetime}

When the vulnerability was created

{vulnerability.last_updated_datetime}

When the vulnerability was last updated

{vulnerability.discovered_by.first_name}

First name of the person who found it

{vulnerability.discovered_by.last_name}

Last name of the person who found it

{vulnerability.affected_assets}

Affected assets

{vulnerability.likelihood_of_exploitation}

Likelihood of exploitation

{vulnerability.zero_day}

Whether it's a zero-day

{vulnerability.description}

Description

{vulnerability.attack_scenario}

Attack scenario

{vulnerability.remediation_recommendation}

Remediation recommendation

{vulnerability.proof_of_concept}

Proof of concept

{vulnerability.notes}

Notes

{vulnerability.tags}

Tags

{vulnerability.sla_date}

SLA date

{vulnerability.target_remediation_date}

Target remediation date

{vulnerability.cvssv3.base_score}

CVSSv3 base score

{vulnerability.cvssv3.temporal_score}

CVSSv3 temporal score

{vulnerability.cvssv3.environmental_score}

CVSSv3 environmental score

{vulnerability.cvssv3.vector}

CVSSv3 vector

{vulnerability.custom_tag.<KEY>}

A custom tag. Replace <KEY> with the tag's key.

{vulnerability.custom_field.<KEY>}

A custom field. Replace <KEY> with the field's key.

{vulnerability.link}

Link to the vulnerability

Two tags only work in 4.12 (vulnerability status updated): {vulnerability.actioned_by.first_name} and {vulnerability.actioned_by.last_name}, for the person who changed the status.

Review note tags (4.5 to 4.11)

Tag

Inserts

Works in

{review_note.creator.first_name}

First name of the person who wrote the note

4.5 to 4.11

{review_note.creator.last_name}

Last name of the person who wrote the note

4.5 to 4.11

{review_note.note}

The note

4.5 to 4.11

{review_note.topic}

The note's topic

4.5 to 4.11

{review_note.original_note}

The note being replied to

4.6, 4.8, 4.9, 4.11

{review_note.reply_note}

The reply

4.6, 4.8, 4.9, 4.11

Retest tags

Tag

Inserts

Works in

{retest_round.date}

Date of the retest round

4.14, 4.15, 4.16

{retest_round.vulnerabilities.total}

Number of vulnerabilities in the round

4.14, 4.15, 4.16

{retest_round.requestor.first_name}

Requestor's first name

4.15

{retest_round.requestor.last_name}

Requestor's last name

4.15

{retest_round.actioned_by.first_name}

First name of the person who completed or cancelled the round

4.14, 4.16

{retest_round.actioned_by.last_name}

Last name of the person who completed or cancelled the round

4.14, 4.16

Example

A subject line for 4.12 (example):

The daily started and stopped testing emails also support {project.<tag>}, and the new vulnerability emails support {vulnerability.<tag>}. In the one-email-for-all version, use them inside a {vulnerabilities}...{/vulnerabilities} loop.

Tips

  • Agree the notification plan with the client at kick-off: who gets daily emails, new vulnerability alerts and scheduled reminders.

  • Use the single summary email when you release many findings at once, so recipients aren't flooded.

  • Test a time-based email on a small group first, such as yourself, before sending it to clients.

  • Keep filters narrow. An email that lists everything soon gets ignored.

  • Avoid Skip Access Check unless every recipient may see all the data the filter returns.

  • Set up a header and footer once, so every email is on brand.

FAQ

Why didn't I get an email for a new vulnerability? Emails are only sent once a vulnerability is visible, and only to team members who've opted in. Check the vulnerability isn't Pending, and check your notification settings.

Who can send daily started and stopped testing emails? Project team members with Edit access.

Can time-based emails go to people outside AttackForge? Recipients are users, groups, roles or user and group custom fields. External email addresses can be added.

Will a recipient see data they don't normally have access to? No. Data is checked against each recipient's access before sending, unless Skip Access Check is turned on.

How often can time-based emails be sent? Daily or weekly, in an hourly window you choose.

Can I use HTML in emails? Yes. The body of time-based emails is HTML. One-off emails support limited HTML and CSS.

Last updated