Module
OpenAEV
How-to guide

Connect OpenAEV to OpenCTI to test security coverages

Register an OpenAEV tenant in OpenCTI as the OpenAEV Coverage connector, so that security coverages become scenarios and their results come back to OpenCTI.

OpenCTIOpenAEVFor administrators, platform engineers and security validation engineers

Once OpenAEV is connected to OpenCTI, a security coverage created in OpenCTI with Automated using enrichment becomes an OpenAEV scenario, and the results of its simulations come back to the coverage: which techniques of the threat your defenses prevented and detected. This page sets up the link for one OpenAEV tenant and checks it. What the analysts and the validation engineers then do is in Measure your defenses against a threat and Turn an OpenCTI security coverage into a scenario.

OPENCTIOPENAEV TENANTSecurity coverageAutomated using enrichmentOpenAEV Coverage connectorOne per OpenAEV tenantOpenAEVURL and token of OpenCTIScenario and simulationsBuilt from the coverage
  1. OpenAEV → OpenAEV Coverage connector: registers and pings
  2. Security coverage → OpenAEV: STIX bundle
  3. OpenAEV → Scenario and simulations: builds
  4. Scenario and simulations → Security coverage: results
Each OpenAEV tenant registers in OpenCTI as an enrichment connector, receives the security coverages to test, and pushes back the results of its simulations

OpenAEV makes every call. When its configuration holds the address and a token of OpenCTI, each tenant of OpenAEV registers in OpenCTI as an enrichment connector named OpenAEV Coverage - followed by the tenant's identifier, with the scope security-coverage, and pings it every 40 seconds. The connector enriches automatically: OpenCTI sends it every automated coverage as it is created or refreshed.

DirectionWhat travelsThrough
OpenAEV to OpenCTIThe registration and pings of the connector; the link to the scenario; the results of each finished simulationThe OpenCTI API, with the token you set
OpenCTI to OpenAEVThe coverage, the threat and its entities, as a STIX bundleThe address openaev.base-url followed by /api/tenants/<tenant id>/stix/process-bundle, which OpenAEV gives when it registers
OpenAEV from OpenCTIThe files of the coverage, to drop them on endpointsThe OpenCTI address, with the same token

Each tenant has its own connection, so two tenants can test the same threat for two companies, each on its own assets.

Before you start

  • In OpenCTI, a service account that OpenAEV signs in as, in the Connectors group: its Connector role has Connectors API usage: register, ping, export push ... and the rights to write the results. See Create accounts for integrations. Copy its API token.
  • In OpenAEV, the Tenant identifier of the tenant to connect, in Settings, then Parameters. The default tenant is 2cffad3a-0001-4078-b0e2-ef74274022c3.
  • You can change the configuration of OpenAEV and restart it.
  • OpenCTI reaches OpenAEV at its openaev.base-url, and OpenAEV reaches OpenCTI.

Connect a tenant

  1. In the configuration of OpenAEV, set three keys for the tenant, under openaev.xtm.opencti.<tenant id>:

    KeyValue
    enabletrue
    urlThe address of OpenCTI, such as https://opencti.example.com. OpenAEV builds the links to OpenCTI from it
    tokenThe API token of the OpenCTI service account. Pass it through a secret

    OpenAEV calls the API at url followed by /graphql. When OpenAEV must call OpenCTI on another address, such as an internal one, set api-url to the full GraphQL address, in a properties file or SPRING_APPLICATION_JSON: Spring cannot read that key from an environment variable. Every key is in the configuration reference.

  2. Restart OpenAEV. It registers the connector within a minute. If OpenCTI does not answer, it tries again every 5 minutes and logs a warning.

The keys openaev.xtm.opencti.enable, .url and .token, without a tenant identifier, still work: they configure the default tenant. Use the form with the identifier for any other tenant.

ExampleConnect the OpenAEV of Grand Meridian Hotels to the OpenCTI of Example CERT

Grand Meridian validates its defenses in the default tenant of its OpenAEV, at https://openaev.example.com. Example CERT, which serves the hotel chains, runs OpenCTI at https://opencti.example.com. In OpenCTI, the administrator creates the service account OpenAEV Grand Meridian in the Connectors group and keeps its token in the secret GRAND_MERIDIAN_OPENCTI_TOKEN. The platform engineer adds to the openaev service:

services:
  openaev:
    environment:
      - OPENAEV_BASE-URL=https://openaev.example.com
      - OPENAEV_XTM_OPENCTI_2CFFAD3A-0001-4078-B0E2-EF74274022C3_ENABLE=true
      - OPENAEV_XTM_OPENCTI_2CFFAD3A-0001-4078-B0E2-EF74274022C3_URL=https://opencti.example.com
      - OPENAEV_XTM_OPENCTI_2CFFAD3A-0001-4078-B0E2-EF74274022C3_TOKEN=${GRAND_MERIDIAN_OPENCTI_TOKEN}

After a restart, OpenCTI lists the connector OpenAEV Coverage - 2cffad3a-0001-4078-b0e2-ef74274022c3. On the report "Velvet Harbor targets hotel booking systems", Automated using enrichment is now offered, and the coverage the SOC creates becomes a scenario in OpenAEV within seconds.

Check the connection

  1. In OpenCTI, the connector OpenAEV Coverage - followed by the tenant identifier is listed among the connectors, and active. See Follow what connectors import.

    OpenCTI 7.261119.0
  2. On a threat in OpenCTI, Add Security coverage offers Automated using enrichment: it stays greyed while no enrichment connector for security coverage is available.

  3. After the first coverage, the scenario appears in Scenarios in OpenAEV, and the Enrichment connectors panel of the coverage in OpenCTI shows the request as processed.

If the connector does not show, read the logs of OpenAEV: a failed registration logs OpenCTI connector registration or ping failed, with the tenant and the reason. A wrong token or an unreachable address are the usual causes. While a tenant has no registered connector, the results of its simulations wait, and leave once it registers.

To stop the link for a tenant, set its enable key to false and restart OpenAEV.

What's next

NextOverview
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