# Set default asset groups by scenario tag

> Link a tag to asset groups so that every inject of a tagged scenario or simulation targets them, and set the groups of the rules that scenarios from OpenCTI use.

- URL: https://filigran.io/docs/openaev/configure/asset-rules/
- Products: OpenAEV 3.261118.0
- For: administrators, security validation engineers
- Type: How-to guide

A default asset rule links a tag to asset groups. In every scenario or simulation that carries the tag, new injects target those asset groups without anyone picking them. It saves choosing the same groups on every inject, and it is how the scenarios OpenCTI generates find their targets: they arrive with known tags, and the rules of those tags decide which endpoints they run on. The rules are under **Settings > Customization > Default asset rules**.

**Diagram: A tag on a scenario brings the asset groups of its rule to the scenario's injects that can target asset groups**

- Scenario: Tag (velvet-harbor, opencti...)
- Settings: Default asset rule (One tag to asset groups)
- Targets: Asset groups (Front-desk workstations)
- Injects: New inject (Gets the groups), Existing injects (If you answer Yes)

Connections:

- Tag → Default asset rule: matches
- Default asset rule → Asset groups: names
- Asset groups → New inject: added
- Asset groups → Existing injects: added on request

## Before you start {#before-you-start}

- Your role has **Access tenant settings** to see the rules, **Manage tenant settings** to create and change them, and **Delete tenant settings** to delete them.
- The asset groups exist: see [Add the assets your simulations target](https://filigran.io/docs/openaev/use/targets/assets/).

## How a rule applies {#how-a-rule-applies}

A rule acts at two moments, and only on injects whose type can target asset groups:

- **When an inject is created** in a scenario or a simulation, the asset groups of the rules matching its tags are added to the ones the inject already has. A group is never added twice.
- **When a tag is added** to a scenario or a simulation, and a rule matches it, OpenAEV asks **Asset rule detected**: click **Yes** to add the rule's asset groups to every existing inject, **No** to leave them as they are. New injects get the groups either way.

A rule only adds. Removing a tag from a scenario, or a group from a rule, leaves the injects as they are: remove the groups from the injects yourself.

## Create a rule {#create-a-rule}

1. Open **Settings > Customization > Default asset rules** and click **Create**. The **Create an asset rule** panel opens.
2. Under **Tag**, choose the tag in **Select a Tag**.
3. Under **Asset groups**, choose the groups the tag must target.
4. Click **Create**.

The list shows each rule with its **Tag** and its **Asset Groups**. To change the groups of a rule, open the menu at the end of its line and choose **Update**; to remove it, **Delete**.

![The Default asset rules: security coverage: windows sends to Front desk workstations, the shipped opencti and macOS and Linux rules keep their groups, and velvet-harbor sends to Front desk workstations and one more group, Booking servers.](https://filigran.io/docs/shots/b1e1a20ddffb1a17ef79e5ff79a7db51eb2d57895329a2cdcf94ee59134bb3e9.webp)

## The rules of scenarios from OpenCTI {#the-rules-of-scenarios-from-opencti}

Four rules exist in every tenant and cannot be deleted, nor their tag changed. You only choose their asset groups:

| Tag | Scenarios that carry it | Asset groups on a new tenant |
| --- | --- | --- |
| `opencti` | Scenarios and injects created from OpenCTI | **All endpoints**, when the starter pack is on |
| `security coverage: windows` | Scenarios generated from an OpenCTI security coverage that applies to Windows | **All Windows x86_64** and **All Windows arm64** |
| `security coverage: linux` | The same, for Linux | **All Linux x86_64** and **All Linux arm64** |
| `security coverage: macos` | The same, for macOS | **All MacOS x86_64** and **All MacOS arm64** |

These groups select hosts by platform and architecture, so every Windows, Linux or macOS host is in one of them. To keep the scenarios from OpenCTI away from part of your estate, such as production servers, point these rules at narrower groups. The starter pack, which also creates **All endpoints**, is on by default (`openaev.starterpack.enabled`, in the [starter pack settings](https://filigran.io/docs/reference/openaev/configuration/#openaev-starterpack)). See [Turn an OpenCTI security coverage into a scenario](https://filigran.io/docs/openaev/use/scenarios/from-opencti/).

**Example: Keep OpenCTI scenarios on the front desks**

Grand Meridian Hotels lets OpenCTI generate a scenario each time a security coverage of Velvet Harbor changes, but wants those scenarios to run only on the front-desk workstations, never on the booking database server. The administrator opens **Settings > Customization > Default asset rules**:

| Rule | **Asset groups** |
| --- | --- |
| `opencti` | **Front desk workstations**, instead of **All endpoints** |
| `security coverage: windows` | **Front desk workstations**, instead of **All Windows x86_64** and **All Windows arm64** |

Then a rule of their own, **Tag** `velvet-harbor`, **Asset groups** **Front desk workstations** and **Booking servers**, for the scenarios the validation engineer tags by hand. When the engineer adds `velvet-harbor` to the existing scenario `Velvet Harbor replay`, **Asset rule detected** asks; **Yes** adds both groups to its three injects that run on endpoints, and leaves the email inject, which targets a team, as it is.

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

- [Add the assets your simulations target](https://filigran.io/docs/openaev/use/targets/assets/): build the asset groups the rules point at.
- [Turn an OpenCTI security coverage into a scenario](https://filigran.io/docs/openaev/use/scenarios/from-opencti/): the scenarios the protected rules serve.
- [How injects reach assets and people](https://filigran.io/docs/openaev/use/targets/): how an inject gets its targets.
