Skip to content

Invicti (Acunetix 360 / Netsparker) Executor

Category: Web Application Scanners Script: invicti.py Integration: REST API (HTTP Basic) Faraday Plugin: Raw JSON Website: https://www.invicti.com/

Description

Imports DAST findings from an Invicti (Acunetix 360 / Netsparker) server into Faraday. The executor reads the vulnerabilities of one scan, or of every scan visible to the API user, and creates one Faraday host per affected web host.

Prerequisites

  • An Invicti cloud or on-premises server reachable from the agent
  • An Invicti API user ID and API token with permission to read scans and their vulnerabilities

Configuration

Environment Variables (Setup)

Variable Required Description
INVICTI_HOST Yes Base URL of your Invicti server (e.g., https://online.acunetix360.com)
INVICTI_API_TOKEN Yes API token of the Invicti user
INVICTI_USER_ID Yes API user ID of the Invicti user

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

Execution Arguments

Parameter Type Mandatory Description
INVICTI_SCAN_ID string No ID (GUID) of a single scan to import. If empty, all scans visible to the API user are imported.
INVICTI_MIN_SEVERITY string No Minimum severity to import: info, low, medium, high or critical (default: info)

YAML Configuration Example

executors:
  invicti:
    repo_executor: invicti.py
    max_size: 65536
    varenvs:
      INVICTI_HOST: "https://online.acunetix360.com"
      INVICTI_API_TOKEN: "<invicti_api_token>"
      INVICTI_USER_ID: "<invicti_user_id>"
    params:
      INVICTI_SCAN_ID:
        mandatory: false
        type: string
        base: string
      INVICTI_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates with HTTP Basic, using INVICTI_USER_ID as username and INVICTI_API_TOKEN as password
  2. Lists scans with GET /api/1.0/scans, or reads GET /api/1.0/scans/{id} when INVICTI_SCAN_ID is set
  3. Reads each scan's findings from GET /api/1.0/scans/{id}/vulnerabilities, page by page
  4. Maps each finding to a Faraday vulnerability:
    • Severity: Invicti's severity (or its CVSS score) mapped to Faraday's scale; findings below INVICTI_MIN_SEVERITY are dropped
    • Status: Confirmed, Pending and NotFixed become open; Fixed and similar states become closed; FalsePositive, AcceptedRisk, ignored and suppressed findings become risk-accepted
    • References: CVE, CWE, WASC, OWASP and CAPEC identifiers when present
  5. Groups findings into hosts by the hostname of the affected URL

Notes

  • Every host has IP 0.0.0.0 and the web hostname of the affected URL as its hostname, because Invicti findings belong to web origins. The scan name, ID, policy and target URL are in the host description.
  • Findings without a URL use the scan's target URL. If neither exists, they go to a host with no hostname.
  • If INVICTI_SCAN_ID is not found or not accessible, the executor still tries to read its vulnerabilities.
  • TLS certificates are not verified.
  • The setup variables can also be passed as execution arguments.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use INVICTI_MIN_SEVERITY to filter by severity.