Module
OpenAEV
How-to guide

Turn an action's output into findings

Add output parsers to an action so OpenAEV extracts hosts, ports, credentials or CVEs from its raw output, turns them into findings, and feeds them to the next steps.

OpenAEVFor security validation engineers

An output parser reads the raw output of an action and pulls structured values out of it: the open ports a scan reported, the credentials a search returned, the CVEs a check found. Those values become findings you can read and sort, and they feed the next steps of a chained scenario. Without a parser, an action's output is just text. This page adds parsers to an action, on the Output tab of its form. Creating the action is in Build the actions of your threat arsenal.

Before you start

  • Your role has Manage threat arsenal to edit an action.
  • You know the raw output of the action, so you can write a regular expression that matches it.
  • Output parsers read the standard output (StdOut) and match with a regular expression (REGEX); these are the modes available today.

How a parser turns output into findings

ENDPOINTOPENAEVRESULTSImplantRuns the commandRaw outputStandard outputParsing ruleRegex, groups, typeFindingsWhen Create finding(s) is onOutputsFor events and arguments
  1. Implant → Raw output: sends back
  2. Raw output → Parsing rule: each match
  3. Parsing rule → Findings: valid values
  4. Parsing rule → Outputs: valid values
An output parser turns the raw output of an action into typed values that become findings and feed the next steps of a chain

An action runs on a target and sends its raw output back to OpenAEV. Each parsing rule applies its regular expression, maps the capture groups to the fields of a type, and keeps the matches. When Create finding(s) is on, each match becomes a finding; the values also go into the run's state, where a chained scenario's events and arguments read them.

Add an output parser

  1. Open the action from the Threat Arsenal, or create one, and go to the Output tab.

  2. Click Add attribute, then set the rule:

    FieldWhat it isRequired
    NameThe name of the ruleYes
    KeyA unique key for the ruleYes
    TypeThe data type to extract, such as Text, Number, Port, Ports scan, IPv4, IPv6, Credentials, CVE or VulnerabilityYes
    TagsLabels for the ruleNo
    Regex group rulesThe regular expression that extracts the data, with its capture groups. It runs with multiline, case-insensitive and Unicode matchingYes
    Output valueMaps each capture group to a field of the typeYes
  3. Under Output value, map each field to a capture group, written $1, $2 and so on. To join several groups in one field, write them next to each other, such as $1$2.

  4. To make the matches findings, turn on Create finding(s) for the rule.

  5. Save the action.

OpenAEV 3.261118.0

The number of fields depends on the type:

TypeFieldsFinding value
Ports scanhost, port, servicehost:port (service)
Credentialsusername, password, hashusername:password
CVEhost, id, severityhost:id (severity)
Othera single valuethe value

Check that it works

  • Run the action, in an atomic test or a simulation, and open its results.
  • When Create finding(s) is on, the extracted values show on the Findings tab, and the parser's details on the Action details tab, of the atomic testing detail view.
  • In a chained scenario, the values become available to the events and to the arguments of later actions. See Build the logic of a chained scenario.
ExampleExtract the services the booking web front reaches

The action Velvet Harbor - booking web front discovery prints one line per service it reaches from the web front of the booking system, such as reachable 10.20.8.15:5432 postgresql. The validation engineer of Grand Meridian Hotels adds a rule on its Output tab:

FieldValue
NameReachable services
Keyreachable_services
TypePorts scan
Regex group rulesreachable ([\d.]+):(\d+) (\S+)
Output valueHost $1, Port $2, Service $3
Create finding(s)On

When the atomic test runs on booking-web-01, the line becomes the Ports scan finding 10.20.8.15:5432 (postgresql). The action has two more rules, Apache CVE of type CVE and Database account of type Credentials, whose password the findings mask.

What's next

NextCheck one attack technique with an atomic test
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