Skip to content

Rapid7 InsightAppSec Executor

Category: Web Application Scanners Script: rapid7_insightappsec.py Integration: REST API Faraday Plugin: Raw JSON Website: https://www.rapid7.com/products/insightappsec/

Description

Imports dynamic application security testing (DAST) findings from Rapid7 InsightAppSec into Faraday. The executor reads the vulnerabilities of your scans through the Rapid7 Insight Platform API and creates Faraday vulnerabilities grouped by the web host they affect.

Prerequisites

  • A Rapid7 InsightAppSec subscription with at least one completed scan
  • A Rapid7 Insight Platform API key (user or organization key) with access to InsightAppSec
  • Network access from the agent to the regional Insight API (https://<region>.api.insight.rapid7.com)

Configuration

Environment Variables (Setup)

Variable Required Description
INSIGHTAPPSEC_API_KEY Yes Rapid7 Insight Platform API key

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

Execution Arguments

Parameter Type Mandatory Description
INSIGHTAPPSEC_SCAN_CONFIG_ID string No ID (UUID) of a scan configuration. When set, only the completed scans of that configuration are imported. If empty, all scans visible to the API key are imported.
INSIGHTAPPSEC_REGION string No Insight Platform region: us, us2, us3, eu, ca, au, ap or jp. You can also give a full base URL (e.g., https://eu.api.insight.rapid7.com). Default: us.
INSIGHTAPPSEC_MIN_SEVERITY string No Minimum severity to import: info, low, medium, high or critical (default: info)

YAML Configuration Example

executors:
  rapid7_insightappsec:
    repo_executor: rapid7_insightappsec.py
    max_size: 65536
    varenvs:
      INSIGHTAPPSEC_API_KEY: "<insightappsec_api_key>"
    params:
      INSIGHTAPPSEC_SCAN_CONFIG_ID:
        mandatory: false
        type: string
        base: string
      INSIGHTAPPSEC_REGION:
        mandatory: false
        type: string
        base: string
      INSIGHTAPPSEC_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates with the X-Api-Key header against the regional API base URL
  2. Lists the scans: POST /ias/v1/scans/search when INSIGHTAPPSEC_SCAN_CONFIG_ID is set (completed scans only, falling back to any status if none are found), or GET /ias/v1/scans otherwise
  3. For each scan, fetches its vulnerabilities with POST /ias/v1/vulnerabilities/search, 50 per page
  4. Maps each finding to a Faraday vulnerability:
    • Name: [DAST] followed by the check (module) name
    • Severity: InsightAppSec's severity value, or its 0-10 vulnerability score when the severity is missing
    • Status: UNREVIEWED and VERIFIED become open, FALSE_POSITIVE and IGNORED become risk-accepted, REMEDIATED becomes closed
    • Details: request URL, method, parameter, attack payload, evidence, CWE and OWASP references, and the original request
  5. Drops findings below INSIGHTAPPSEC_MIN_SEVERITY and groups the rest by the host name of the affected URL

Notes

  • Each web host becomes a Faraday host with IP 0.0.0.0 and the URL's host name as its hostname. Findings without any URL fall back to the scan's target URL, or to a generic 0.0.0.0 host.
  • An unrecognized region code or severity value falls back to its default and is written to the agent log.
  • TLS certificate verification is disabled for requests to the API.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use INSIGHTAPPSEC_MIN_SEVERITY to filter by severity.