Module
OpenAEV
How-to guide

Run actions through CrowdStrike Falcon

Let OpenAEV run attack actions on the hosts of your CrowdStrike Falcon host groups, through Real Time Response scripts, without installing the OpenAEV agent.

OpenAEVEnterprise EditionFor platform engineers and security validation engineers

The CrowdStrike Falcon executor runs OpenAEV implants through the Falcon sensor already installed on your hosts. OpenAEV imports the hosts of the host groups you choose, then, for each inject, asks Falcon's Real Time Response to run a script of yours that starts the implant. This page prepares Falcon, deploys the executor in OpenAEV and checks that the hosts show up. How EDR executors work, and when to prefer the OpenAEV agent, is in Choose between the OpenAEV agent and your EDR.

OPENAEVCROWDSTRIKE FALCONHOSTCrowdStrike executorRuns inside the platformEndpointsOne per hostFalcon APIHost groups, Real Time ResponseResponse scriptDecodes the commandImplantRuns as SYSTEM or root
  1. CrowdStrike executor → Falcon API: list hosts
  2. CrowdStrike executor → Endpoints: imports
  3. Falcon API → Response script: runscript
  4. Response script → Implant: starts
  5. Implant → Endpoints: results
OpenAEV imports the hosts of your Falcon host groups, then asks Real Time Response to run your script, which starts the implant on the host

Before you start

  • OpenAEV runs with an Enterprise Edition license, and your role has the Manage tenant settings capability.
  • In Falcon, you can create response scripts, host groups, response policies and API clients.
  • The hosts reach the OpenAEV URL over HTTPS: see How an EDR executor works.

Prepare CrowdStrike Falcon

Create the two response scripts

OpenAEV sends each command in Base64 to one of two custom scripts, which decode it and run it. In Falcon, go to Host setup and management > Response and containment > Response scripts and files and create both scripts. You can name them as you like: their names go in the executor's form.

AttributeUnix script (Linux and macOS)Windows script
NameOpenAEV Subprocessor (Unix)OpenAEV Subprocessor (Windows)
Shell typebashPowerShell
Script accessUsers with the RTR Administrator or RTR Active Responder roleUsers with the RTR Administrator or RTR Active Responder role
Shared with workflowsYesYes

The Unix script:

command=`echo $1 | grep -o '"command":"[^"]*' | grep -o '[^"]*$'`
echo $command | base64 -d | sh

The Windows script:

$command = $args[0] | ConvertFrom-Json | Select -ExpandProperty 'command';
cmd.exe /d /c powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -NonInteractive -NoProfile -encodedCommand $command

Both take the same input schema, with one required string, command:

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "command": {"type": "string"}
  },
  "required": ["command"]
}

Group the hosts and allow custom scripts

  1. In Host setup and management > Host groups, create a host group with the hosts your simulations target, and copy its ID.
  2. In Host setup and management > Response policies, choose each platform of your hosts in the top-left selector, then create a policy or open an existing one.
  3. Turn on Custom Scripts, and Falcon Scripts when the option exists, then click Save.
  4. In the Assigned host groups tab, add your host group. The policy applies within a few minutes: the Pending column then shows 0.

Create an API client

In Falcon, create an API client with the API integrations, Hosts, Host groups and Real time response scopes, and keep its client ID and secret. OpenAEV uses it to read the host groups and their hosts, open a Real Time Response session on a host and run your script there.

Deploy the executor in OpenAEV

  1. Open Integrations, then the Available tab.

  2. Open CrowdStrike Executor and click Deploy. The Create a new connector instance panel opens.

  3. Fill in the form. Each field is named after its configuration key:

    FieldWhat to enter
    Display nameThe executor's name in OpenAEV, CrowdStrike by default
    Executor Crowdstrike Client Id and Executor Crowdstrike Client SecretThe client ID and secret of your API client
    Executor Crowdstrike Host GroupThe ID of your host group, or several IDs separated by commas
    Executor Crowdstrike Windows Script Name and Executor Crowdstrike Unix Script NameThe names of your two scripts, OpenAEV Subprocessor (Windows) and OpenAEV Subprocessor (Unix) by default
  4. Open Advanced options: Executor Crowdstrike Api Url points to the US-2 cloud, https://api.us-2.crowdstrike.com, by default. Enter the API URL of your Falcon cloud. The other options set how often OpenAEV imports the hosts, cleans them and sends commands: their defaults are in the executor.crowdstrike block.

  5. Click Create.

  6. In the Deployed tab, open the executor and click Start.

OpenAEV 3.261118.0

Check that it works

Within a minute of the start, open Assets: the hosts of your host groups show in the Endpoints list, with CrowdStrike in their Executors column. Asset groups has a group named after each host group. The executor imports the hosts again every 20 minutes, so a host you add to the group in Falcon shows in OpenAEV at the next import.

Then run an atomic test on one host, for example a harmless command, and look for the session of your script in Falcon's Real Time Response audit. When nothing runs, follow When an inject fails on an EDR executor.

ExampleReplay Velvet Harbor through Meridian EDR

Meridian EDR, the endpoint detection of Grand Meridian Hotels, is a CrowdStrike Falcon tenant in the EU-1 cloud. The validation engineer wants to replay Velvet Harbor's PowerShell loader on the Paris front-desk workstations without installing anything new on them.

In Falcon, the platform engineer creates the two scripts with their default names, a host group Front desk - Paris with ID 5f2c8e7a91d44b6c8a3e0d17b9c2f461, assigns it to a Windows response policy that allows custom scripts, and creates an API client. In OpenAEV, the form gets:

FieldValue
Display nameMeridian EDR
Executor Crowdstrike Client IdThe client ID, kept in the vault as MERIDIAN_FALCON_CLIENT_ID
Executor Crowdstrike Client SecretThe secret, kept as MERIDIAN_FALCON_CLIENT_SECRET
Executor Crowdstrike Host Group5f2c8e7a91d44b6c8a3e0d17b9c2f461
Executor Crowdstrike Api Urlhttps://api.eu-1.crowdstrike.com

On a new platform, the same values can come from its configuration instead. The platform reads them at its first start only:

EXECUTOR_CROWDSTRIKE_ENABLE=true
EXECUTOR_CROWDSTRIKE_API-URL=https://api.eu-1.crowdstrike.com
EXECUTOR_CROWDSTRIKE_CLIENT-ID=${MERIDIAN_FALCON_CLIENT_ID}
EXECUTOR_CROWDSTRIKE_CLIENT-SECRET=${MERIDIAN_FALCON_CLIENT_SECRET}
EXECUTOR_CROWDSTRIKE_HOST-GROUP=5f2c8e7a91d44b6c8a3e0d17b9c2f461

After Start, the front-desk workstations of the Paris hotel show in Assets with the Meridian EDR executor, and the asset group Front desk - Paris holds them. The Velvet Harbor simulation targets this group, and Falcon runs each action as SYSTEM.

What's next

NextRun actions through Microsoft Defender for Endpoint
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