Skip to content

Recorded Future Attack Surface Intelligence Executor

Category: Attack Surface Management Script: rf_asi.py Integration: REST API Faraday Plugin: Raw JSON Website: https://www.recordedfuture.com/platform/attack-surface-intelligence

Description

Imports the externally discovered assets and findings of Recorded Future Attack Surface Intelligence (ASI) into Faraday. Each ASI asset becomes a Faraday host, and each finding becomes an [EASM] vulnerability on its asset.

Prerequisites

  • A Recorded Future subscription with Attack Surface Intelligence
  • A Recorded Future API token, created in the console under User Settings > API Access
  • requests available in the agent's Python environment (checked with python3 -c 'import requests')

Configuration

Environment Variables (Setup)

Variable Required Description
RF_ASI_TOKEN Yes Recorded Future API token, sent in the X-RFToken header
RF_ASI_HOST No Recorded Future API URL (default: https://api.recordedfuture.com). Change it only for a mirror or proxy.

These variables are also accepted as execution arguments, so a single run can override them.

Execution Arguments

Parameter Type Mandatory Description
RF_ASI_PROJECT_ID string No ASI project ID, as shown in the Recorded Future console URL. If empty, the API returns everything the token can access.
RF_ASI_MIN_SEVERITY string No Minimum severity of findings to import: info, low, medium, high or critical. Names such as important, moderate and Sev1-Sev5 or P1-P5 are also accepted. Unrecognized values are ignored and all findings are imported.
RF_ASI_PAGES string No Maximum number of pages to read from each of the assets and findings lists, 100 records per page (default: 5, maximum: 50)

YAML Configuration Example

executors:
  rf_asi:
    repo_executor: rf_asi.py
    max_size: 65536
    varenvs:
      RF_ASI_TOKEN: "<rf_asi_token>"
    params:
      RF_ASI_PROJECT_ID:
        mandatory: false
        type: string
        base: string
      RF_ASI_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string
      RF_ASI_PAGES:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates with the X-RFToken header
  2. Reads the assets from GET /v2/attack-surface-intelligence/assets and then the findings from GET /v2/attack-surface-intelligence/findings, 100 per page, passing RF_ASI_PROJECT_ID as a filter
  3. Creates one Faraday host per asset, using its first public IP and its host names
  4. Attaches each finding to its asset as a vulnerability:
    • Name: [EASM] RfAsi followed by the finding name
    • Severity: the finding's severity
    • Status: new or active findings are open, resolved or fixed findings are closed, accepted or false-positive findings are risk-accepted
    • Details: CVEs, remediation text and references
  5. Drops findings below RF_ASI_MIN_SEVERITY

Notes

  • Assets without a public IP (for example, domains) use IP 0.0.0.0 and their name as hostname.
  • Findings that do not match any imported asset are grouped under a host with IP 0.0.0.0 named (unattached).
  • With the default of 5 pages, up to 500 assets and 500 findings are imported.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use RF_ASI_MIN_SEVERITY to filter by severity.