Module
OpenAEV
How-to guide

Build the logic of a chained scenario

Gate each action of a chained scenario with an event whose conditions read what earlier actions found, and check on the canvas that every condition can be met.

OpenAEVEnterprise EditionFor security validation engineers

The logic of a chained scenario is the graph on its Logic tab: actions, and the events that decide when each action runs. An event is a set of conditions on what the earlier actions found, such as "a port equals 1433" or "an account name contains night.audit". When its conditions hold, it triggers the actions linked to it. With events, a step runs only when the attack really got there, the way an intruder decides the next move from the last one. This page builds events, links them to actions and reads the canvas. Adding the actions themselves is in Choose the actions of a chained scenario.

Before you start

  • The Enterprise Edition is active, and the scenario is a Chained scenario.
  • Your role has Manage assessment.
  • The canvas holds the actions you want to chain. The actions whose results an event reads produce outputs: their output parsers extract typed values. See Turn an action's output into findings.
DISCOVERYEVENTCREDENTIAL ACCESSEVENTCOLLECTIONList the connectionsnetstat on fd-par-07Booking database reachablePort equals 1433Look for saved credentialscmdkey /listFront-desk account savedUsername contains night.auditQuery the booking databasesqlcmd on the host found
  1. List the connections → Booking database reachable: provides Port
  2. Booking database reachable → Look for saved credentials: triggers
  3. Look for saved credentials → Front-desk account saved: provides Username
  4. Front-desk account saved → Query the booking database: triggers
From the front-desk workstation, a connection to the database server leads to a saved account, and the account to a query of the booking database
  • A link always goes from an event to an action: the event gates the action. Nothing links an action to an event; an event reads the outputs of every action that ran.
  • An action that no event gates starts at the launch, as soon as the values its linked arguments need exist.
  • An action can wait on several events: its card shows how many under Waits on.
  • The fields an event can check come from the output types of the Threat Arsenal, not from the canvas: you can write a condition on a field that no action produces yet. The canvas then warns you, since such an event can never hold.
OpenAEV 3.261118.0

Add an event

  1. On the Logic tab, click Add component, then choose Event, "Define conditions to trigger the next actions".
  2. Set its Name and, optionally, a Description.
  3. Under Trigger Conditions, set the first condition:
    • Field to Check: the output to inspect, such as Port, Username or CVE. Hover a field to see the Actions on the logic flow which produce this input:. Action output is the raw output of the actions, for a keyword that no output parser extracts.
    • Operator: Equals, Not equals, Contains, Not contains, Is null or Is not null, and on numeric fields Greater than, Greater than or equals, Less than and Less than or equals. Contains takes a list of values separated by commas and holds when one of them is found.
    • Expected Value: the value to compare, except for Is null and Is not null. It must fit the field, such as a number for a port, or the form shows an error. The Aa toggle makes a text comparison Case-sensitive.
  4. Click Add Condition to add another condition to the group, and set the group's operator: And holds when every condition holds, Or when one does.
  5. To combine groups, click Add Condition Group and choose And or Or between the groups: an Or between two And groups reads "(A and B) or (C and D)".
  6. Click Add event. The event appears on the canvas.

Gate an action with the event

  1. On the event's card, drag its right handle onto the action it should trigger. Or click its +, "Add an action gated by this trigger", to pick a new action that the event gates from the start.
  2. Repeat for each action the event triggers. A solid link joins the event to each action.

To change an event, open it from its card: the form shows Update event. Deleting an event or an action removes its links.

Check that every condition can be met

When an event checks a field that no action on the canvas produces, a Warning banner names it: Event "Booking database reachable" references field: Port which is not provisioned by any action.

  1. In the banner, click Add Compatible Action. The action list opens with a Compatible output chip, showing only the actions that provide the missing field.
  2. Select one or more actions and add them. They land on the canvas without any link, and the warning clears.
  3. Configure the new action, and gate it with the event that should come before it, if any.

The banner only checks that some action provides the field. Whether that action runs before the event is the graph you draw.

Read the canvas

On the canvasWhat it means
Solid linkA saved link: the event triggers the action. The only links the run follows
Dashed linkDrawn when you select an event: from every action that produces a field its conditions read. A hint, never saved
Dimmed cardsOutside the path of the selected event: its providers, the event and the actions it triggers stay lit
Waits onThe number of triggers that gate an action
Not scoped yetThe action has no target the allow list can give it
OpenAEV 3.261118.0

The canvas groups the cards by MITRE ATT&CK tactic, or in chain order with Switch to chain layout. Auto-organize rearranges cards you moved, and Fit to view brings the whole graph back on screen.

Once a simulation is launched, its logic is read-only: This simulation has been launched. Its logic map is read-only. Reset the simulation to edit it, or update the scenario and run it again.

ExampleFrom the front desk to the booking database

The night test of Grand Meridian asks how far an attacker on the front-desk workstation fd-paris-01 gets toward the booking database server. Its logic has three actions, all user-created Command Line actions of the Threat Arsenal, and two events:

ComponentFieldValue
ActionTitleList the connections of the front desk, runs netstat -ano -p TCP on fd-paris-01; its output parser extracts Ports scan values
EventNameBooking database reachable
ConditionPort Equals 1433
GatesLook for saved booking credentials
ActionTitleLook for saved booking credentials, runs cmdkey /list; its output parser extracts Username values
EventNameFront-desk account saved
ConditionsUsername Contains night.audit And Host Is not null
GatesQuery the booking database from the front desk
ActionTitleQuery the booking database from the front desk, its db_host argument linked to Host with Limit to Local Scope on

If Meridian EDR blocks the credential search, the second event never holds and the query never runs: the attack path stops at the front desk.

What's next

NextChoose the actions of a chained scenario
OpenAEV
Adversarial exposure validation: scenarios, simulations, atomic tests.

Published

Overview
Use
Build dashboards of your validation results
OverviewCreate the widgets of a dashboard
Check one attack technique with an atomic testConnect OpenAEV to OpenCTI to test security coveragesHow collectors measure what your security tools saw
How injectors deliver your injects
OverviewBuilt-in injectors and their injects
Install the OpenAEV agent on your endpointsReview what your injects discovered
Run a simulation and read its results
OverviewShare simulation results in a report
Set up your profile