# Scenario generation placeholders

> The OpenCTI GraphQL mutations that generate OpenAEV scenarios, replaced in 6.5 by versions that return inject placeholders and missing attack patterns.

- URL: https://filigran.io/docs/lts/7.260811-lts/deploy/upgrade/breaking-changes/opencti/6-5-scenario-generation/
- Products: OpenCTI 7.260811.0-lts.1, OpenAEV 3.261118.0
- OpenCTI line: 7.260811 LTS · 7.260811.0-lts.1
- For: platform engineers, developers
- Type: How-to guide

OpenCTI generates simulation scenarios in OpenAEV (formerly OpenBAS) from a container, a threat or a victim. In OpenCTI 6.5, the three GraphQL mutations that do it were replaced by new ones with a different signature and a more detailed response; the old ones were removed in 6.8. This page lists the replacements, for scripts that call the API.

**Diagram: On OpenCTI 6.5 to 6.x, scripts call the WithInjectPlaceholders mutations with a SimulationConfig, and from OpenCTI 7 OpenAEV generates the scenarios from the security coverage instead**

- Your script: Script (Calls the GraphQL API)
- OpenCTI GraphQL API: obas...GenerateScenario (Container, threat, victim: removed in 6.8), ...WithInjectPlaceholders (OpenCTI 6.5 to 6.x, returns a GenerationResponse), OpenCTI 7.260309 and later (Has neither mutation)
- OpenAEV: Scenario (Its URL in urlResponse)

Connections:

- Script → obas...GenerateScenario: replace the call
- Script → ...WithInjectPlaceholders: SimulationConfig
- ...WithInjectPlaceholders → Scenario: generates
- OpenCTI 7.260309 and later → Scenario: security coverage

| | Version |
| --- | --- |
| Deprecated in | OpenCTI 6.5 |
| Removed in | OpenCTI 6.8 |

## Replaced mutations {#replaced-mutations}

| Removed | Replaced by |
| --- | --- |
| `obasContainerGenerateScenario` | `obasContainerGenerateScenarioWithInjectPlaceholders` |
| `obasThreatGenerateScenario` | `obasThreatGenerateScenarioWithInjectPlaceholders` |
| `obasVictimGenerateScenario` | `obasVictimGenerateScenarioWithInjectPlaceholders` |

The new mutations take a `SimulationConfig` object:

| Field | Meaning |
| --- | --- |
| `simulationType` | The type of simulation: technical or simulated |
| `selection` | The number of injects generated per attack pattern and platform |
| `interval` | The interval between injects, in minutes |

They return a `GenerationResponse` object:

| Field | Meaning |
| --- | --- |
| `urlResponse` | The URL of the generated scenario in OpenAEV |
| `attackPatternNotAvailableInOpenBAS` | The attack patterns the OpenAEV catalog does not cover |
| `hasInjectPlaceholders` | Whether OpenAEV created inject placeholders |

## What to do {#what-to-do}

On OpenCTI 6.5 to 6.x, if a script of yours calls one of the removed mutations, call its replacement with a `SimulationConfig`, and read the scenario URL from `urlResponse`.

The OpenCTI versions this documentation describes, 7.260309 and later, have neither the old nor the new mutations: the GraphQL API refuses a call to any of them. Remove these calls from your scripts when you upgrade to OpenCTI 7. In OpenCTI 7, OpenAEV generates the scenarios from the security coverage of OpenCTI: see [Scenario generation from OpenCTI security coverage](https://filigran.io/docs/lts/7.260811-lts/deploy/upgrade/breaking-changes/openaev/2-2-0-security-coverage/).

## What's next {#what-s-next}

- [Threat-informed validation](https://filigran.io/docs/lts/7.260811-lts/workflows/threat-informed-validation/), the workflow that generates scenarios from threat intelligence.
- [Breaking changes](https://filigran.io/docs/lts/7.260811-lts/deploy/upgrade/breaking-changes/), the other changes per version.
