# OpenAEV inject types

> The built-in injectors of this version of OpenAEV, the inject types each one registers, their fields, API keys and expectations, generated from the source code.

- URL: https://filigran.io/docs/reference/openaev/inject-types/
- Products: OpenAEV 3.261118.0
- For: developers, crisis exercise planners, security validation engineers
- Type: Reference
- Generated from the OpenAEV 3.261118.0 source code

**Diagram: An injector registers contracts, and an inject fills in the fields of one contract, with the expectations it offers**

- OpenAEV: Injector (Email, Manual, Phishing...), Contract (Fields, platforms, expectations)
- Scenario: Inject (Fields filled in), Expectations (Manual, detection, prevention...)
- Targets: Targets (Teams, players, endpoints)

Connections:

- Injector → Contract: registers
- Contract → Inject: gives its form
- Inject → Expectations: expects
- Inject → Targets: reaches

An inject type is a contract that an injector registers in the platform: a form, the targets it reaches and the expectations it offers. When you add an inject to a scenario, you pick a contract and fill in its fields; through the API, you send the contract's identifier in `inject_injector_contract` and the field values under their keys. This page lists the injectors OpenAEV ships with and every field of their contracts. When to use each one is in [Built-in injectors and their injects](https://filigran.io/docs/openaev/use/injectors/built-in/). Injectors deployed beside the platform, such as those of the catalog, register their own contracts: their page in **Integrations** lists them.

![The Email injector's page in Integrations lists the contracts it registers, Send individual mails and Send multi-recipients mail, with the date each was last updated.](https://filigran.io/docs/shots/ebc813c90b692246709519aba2b6c8de4f7147d4fd019fe6f7e18652a761f8fb.webp)

The 8 injectors OpenAEV 3.261118.0 ships with, the 8 inject types (contracts) their code declares, and the contracts the platform writes for each payload and each phishing landing page. For each contract: the fields of its form, their key in the API, whether they are required, and the expectations it predefines. In the API, the teams of an inject go in `inject_teams` (or `inject_all_teams`), its endpoints in `inject_assets`, its asset groups in `inject_asset_groups` and its documents in `inject_documents`; every other field goes in `inject_content`, under its key.

## Built-in injectors {#built-in-injectors}

The injectors the platform ships with. **Runs** says whether it is there from the first start, or once deployed from the catalog of **Integrations** with its settings.

| Injector | Type | Contracts | Runs |
| --- | --- | --- | --- |
| **Challenge** | `openaev_challenge` | **Publish challenges** | From the first start |
| **Media pressure** | `openaev_channel` | **Publish a media pressure** | From the first start |
| **Email** | `openaev_email` | **Send individual mails**, **Send multi-recipients mail** | From the first start |
| **Manual** | `openaev_manual` | **Manual** | From the first start |
| **OpenAEV Implant** | `openaev_implant` | One per payload, named after the payload | From the first start |
| **OpenCTI** | `openaev_opencti` | **Create a new case**, **Create a new report** | Once deployed from the catalog, as **OpenCTI** |
| **SMS (OVH)** | `openaev_ovh_sms` | **Send a SMS** | Once deployed from the catalog, as **OVHCloud SMS Platform** |
| **Phishing** | `openaev_phishing` | One per phishing landing page: **Phishing:** and the name of the page | From the first start |

## Challenge: Publish challenges {#challenge-publish-challenges}

Contract `f8e70b27-a69c-4b9f-a2df-e217c36b3981` of the injector `openaev_challenge`. It runs against the platform itself (player interface, animation team). Not offered in atomic testing.

| Field | Key | Type | Required | Default and notes |
| --- | --- | --- | --- | --- |
| **Challenges** | `challenges` | Challenges | Yes |  |
| **Expectations** | `expectations` | Expectations | No | Offers Expect targets to complete the challenge(s) (`CHALLENGE`), added to a new inject; Manual expectation (`MANUAL`) |
| **Email subject** | `subject` | Text | Yes | `New challenges published for ${user.email}` |
| **Email body** | `body` | Text area | Yes |  |
| **Encrypt this email** | `encrypted` | Check box | No | Not checked |
| **Teams** | `teams` | Teams | Yes |  |
| **Attachments** | `attachments` | Documents | No |  |

## Media pressure: Publish a media pressure {#media-pressure-publish-a-media-pressure}

Contract `fb5e49a2-6366-4492-b69a-f9b9f39a533e` of the injector `openaev_channel`. It runs against the platform itself (player interface, animation team). Not offered in atomic testing. Adds the variables `${articles}` (list of articles published by the injection), `${article.id}` (id of the article in the platform), `${article.name}` (name of the article), `${article.uri}` (http user link to access the article).

| Field | Key | Type | Required | Default and notes |
| --- | --- | --- | --- | --- |
| **Teams** | `teams` | Teams | Yes |  |
| **Attachments** | `attachments` | Documents | No |  |
| **Articles** | `articles` | Articles of a channel | Yes |  |
| **Expectations** | `expectations` | Expectations | No | Offers Expect targets to read the article(s) (`ARTICLE`), added to a new inject; Manual expectation (`MANUAL`) |
| **Send email** | `emailing` | Check box | No | Checked |
| **Email subject** | `subject` | Text | When **Send email** is checked | `New media pressure entries published for ${user.email}`. Shown when **Send email** is checked |
| **Email body** | `body` | Text area | When **Send email** is checked | Shown when **Send email** is checked |
| **Encrypt this email** | `encrypted` | Check box | No | Not checked. Shown when **Send email** is checked |

## Email: Send individual mails {#email-send-individual-mails}

Contract `138ad8f8-32f8-4a22-8114-aaa12322bd09` of the injector `openaev_email`. It runs against a service outside the platform (mail server, SMS gateway, OpenCTI). Offered in atomic testing. Adds the variables `${document_uri}` (http user link to upload the document (only for document expectation)).

| Field | Key | Type | Required | Default and notes |
| --- | --- | --- | --- | --- |
| **Teams** | `teams` | Teams | No |  |
| **Recipients** | `recipients` | Text | No |  |
| **Email subject** | `subject` | Text | Yes |  |
| **Email body** | `body` | Text area | Yes |  |
| **Encrypt this email** | `encrypted` | Check box | No | Not checked |
| **Attachments** | `attachments` | Documents | No |  |
| **Expectations** | `expectations` | Expectations | No | Offers Manual expectation (`MANUAL`) |

## Email: Send multi-recipients mail {#email-send-multi-recipients-mail}

Contract `2790bd39-37d4-4e39-be7e-53f3ca783f86` of the injector `openaev_email`. It runs against a service outside the platform (mail server, SMS gateway, OpenCTI). Offered in atomic testing. Its templates do not offer `${user.*}`: one message goes to every recipient at once. Adds the variables `${document_uri}` (http user link to upload the document (only for document expectation)).

| Field | Key | Type | Required | Default and notes |
| --- | --- | --- | --- | --- |
| **Teams** | `teams` | Teams | No |  |
| **Recipients** | `recipients` | Text | No |  |
| **Email subject** | `subject` | Text | Yes |  |
| **Email body** | `body` | Text area | Yes |  |
| **Attachments** | `attachments` | Documents | No |  |
| **Expectations** | `expectations` | Expectations | No | Offers Manual expectation (`MANUAL`) |

## Manual: Manual {#manual-manual}

Contract `d02e9132-b9d0-4daa-b3b1-4b9871f8472c` of the injector `openaev_manual`. It runs against the platform itself (player interface, animation team). A manual inject: the animation team carries it out and marks it done. Not offered in atomic testing.

| Field | Key | Type | Required | Default and notes |
| --- | --- | --- | --- | --- |
| **Teams** | `teams` | Teams | When **Expectations** is set |  |
| **Expectations** | `expectations` | Expectations | No | Offers Manual expectation (`MANUAL`) |

## OpenAEV Implant: actions of the Threat Arsenal {#openaev-implant-actions-of-the-threat-arsenal}

The platform writes one contract per payload of the Threat Arsenal and per injector that runs payloads, the OpenAEV Implant among them, and rewrites it when the payload changes. Each argument of the payload adds a required field under its key (a targeted-asset argument adds the asset, the property to read and a separator), and a command payload adds the choice of an obfuscator. Its expectations are prevention, detection and vulnerability; those the payload names are predefined. The targets are endpoints of the platforms the payload runs on, through an executor. Offered in atomic testing.

| Field | Key | Type | Required | Default and notes |
| --- | --- | --- | --- | --- |
| **Source assets** | `assets` | Endpoints | One of **Source assets**, **Source asset groups** |  |
| **Source asset groups** | `asset_groups` | Asset groups | One of **Source assets**, **Source asset groups** |  |
| **Obfuscators** | `obfuscator` | Choice | No |  |
| **Expectations** | `expectations` | Expectations | No | Offers none of its own: add them by hand |

## OpenCTI: Create a new case {#opencti-create-a-new-case}

Contract `88db2075-ae49-4fe9-a64c-08da2ed07637` of the injector `openaev_opencti`. It runs against a service outside the platform (mail server, SMS gateway, OpenCTI). Offered in atomic testing. Adds the variables `${document_uri}` (http user link to upload the document (only for document expectation)).

| Field | Key | Type | Required | Default and notes |
| --- | --- | --- | --- | --- |
| **Name** | `name` | Text | Yes |  |
| **Description** | `description` | Text area | Yes |  |
| **Attachments** | `attachments` | Documents | No |  |
| **Expectations** | `expectations` | Expectations | No | Offers none of its own: add them by hand |

## OpenCTI: Create a new report {#opencti-create-a-new-report}

Contract `b535f011-3a03-46e7-800a-74f01cd8865e` of the injector `openaev_opencti`. It runs against a service outside the platform (mail server, SMS gateway, OpenCTI). Offered in atomic testing. Adds the variables `${document_uri}` (http user link to upload the document (only for document expectation)).

| Field | Key | Type | Required | Default and notes |
| --- | --- | --- | --- | --- |
| **Name** | `name` | Text | Yes |  |
| **Description** | `description` | Text area | Yes |  |
| **Attachments** | `attachments` | Documents | No |  |
| **Expectations** | `expectations` | Expectations | No | Offers none of its own: add them by hand |

## SMS (OVH): Send a SMS {#sms-ovh-send-a-sms}

Contract `e9e902bc-b03d-4223-89e1-fca093ac79dd` of the injector `openaev_ovh_sms`. It runs against a service outside the platform (mail server, SMS gateway, OpenCTI). Offered in atomic testing.

| Field | Key | Type | Required | Default and notes |
| --- | --- | --- | --- | --- |
| **Teams** | `teams` | Teams | Yes |  |
| **Message** | `message` | Text area | Yes |  |
| **Expectations** | `expectations` | Expectations | No | Offers none of its own: add them by hand |

## Phishing: phishing actions {#phishing-phishing-actions}

The platform writes one contract per phishing landing page of the tenant, with the page as its identifier, and removes it with the page. A page that captures submitted data also declares a **Credentials** finding as its output. It runs against a service outside the platform (mail server, SMS gateway, OpenCTI). Offered in atomic testing.

| Field | Key | Type | Required | Default and notes |
| --- | --- | --- | --- | --- |
| **Teams** | `teams` | Teams | Yes |  |
| **Email template** | `emailTemplate` | Choice | Yes |  |
| **Subject override** | `subject` | Text | No |  |
| **Sender name override** | `fromName` | Text | No |  |
| **Sender email override** | `fromEmail` | Text | No |  |
| **Expectations** | `expectations` | Expectations | No | Offers Prevention (`PREVENTION`), added to a new inject; Detection (`DETECTION`), added to a new inject; Email not opened (`MANUAL`), added to a new inject; Link not clicked (`MANUAL`), added to a new inject; Credentials not submitted (`MANUAL`), added to a new inject |

## Expectations {#expectations}

The expectations the contracts offer, each with a score of 100 to start with. An expectation that nothing validates before it expires fails, except a vulnerability expectation, which succeeds: no finding means the target is not vulnerable. **Expires after** is the default; the keys are read in order, and the first one set wins.

| Expectation | Type | Offered by | Expires after | Configuration keys |
| --- | --- | --- | --- | --- |
| **Prevention** | `PREVENTION` | the phishing actions | 6 hours | `openaev.expectation.prevention.expiration-time`, then `openaev.expectation.technical.expiration-time` |
| **Detection** | `DETECTION` | the phishing actions | 6 hours | `openaev.expectation.detection.expiration-time`, then `openaev.expectation.technical.expiration-time` |
| **Logging** | `LOGGING` | Added by hand | 6 hours | `openaev.expectation.logging.expiration-time`, then `openaev.expectation.technical.expiration-time` |
| **VULNERABILITY_NAME** | `VULNERABILITY` | Added by hand | 6 hours | `openaev.expectation.vulnerability.expiration-time`, then `openaev.expectation.technical.expiration-time` |
| **Expect targets to complete the challenge(s)** | `CHALLENGE` | **Publish challenges** | 24 hours | `openaev.expectation.challenge.expiration-time`, then `openaev.expectation.human.expiration-time` |
| **Expect targets to read the article(s)** | `ARTICLE` | **Publish a media pressure** | 24 hours | `openaev.expectation.article.expiration-time`, then `openaev.expectation.human.expiration-time` |
| **Manual expectation** | `MANUAL` | **Publish challenges**, **Publish a media pressure**, **Send individual mails**, **Send multi-recipients mail**, **Manual** | 24 hours | `openaev.expectation.manual.expiration-time`, then `openaev.expectation.human.expiration-time` |

## Variables of the templates {#variables-of-the-templates}

Every contract offers these variables in its text fields, written `${name}` (FreeMarker); the sections above name the variables a contract adds, or leaves out.

| Variable | Value |
| --- | --- |
| `${user.id}` | Id of the user in the platform |
| `${user.email}` | Email of the user |
| `${user.firstname}` | First name of the user |
| `${user.lastname}` | Last name of the user |
| `${user.lang}` | Language of the user |
| `${user.pgpKey}` | PGP key of the user |
| `${user.phone}` | Phone number of the user |
| `${exercise.id}` | Id of the simulation in the platform |
| `${exercise.name}` | Name of the simulation |
| `${exercise.description}` | Description of the simulation |
| `${teams}` | List of team names for the injection (a list) |
| `${player_uri}` | Player interface platform link |
| `${challenges_uri}` | Challenges interface platform link |
| `${scoreboard_uri}` | Scoreboard interface platform link |
| `${lessons_uri}` | Lessons learned interface platform link |
