Vicarius vRx Executor¶
Category: Patch Management
Script: vicarius.py
Integration: REST API
Faraday Plugin: Raw JSON
Website: https://www.vicarius.io
Description¶
Imports endpoints, vulnerabilities, missing patches, installed software or vulnerability events from Vicarius vRx into Faraday. You choose what to import with VICARIUS_MODE, and you can combine several modes in one run.
Prerequisites¶
- A Vicarius vRx tenant with an API token (External Data API)
- The URL of your vRx API (e.g.,
https://mytenant.vicarius.cloud) - Network access to the vRx API
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
VICARIUS_API_URL |
Yes | Base URL of the vRx API (e.g., https://mytenant.vicarius.cloud) |
VICARIUS_TOKEN |
Yes | vRx API token |
These variables are also accepted as execution arguments, so a single run can override them.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
VICARIUS_MODE |
list | No | What to import: one or more of assets, cves, patches, software and incidents (default: cves) |
VICARIUS_FROM |
integer | No | Record offset to start from (default: 0) |
VICARIUS_SIZE |
integer | No | Records per API request (default: 500) |
VICARIUS_MAX_PAGES |
integer | No | Maximum pages to read per endpoint (default: 100) |
YAML Configuration Example¶
executors:
vicarius:
repo_executor: vicarius.py
max_size: 65536
varenvs:
VICARIUS_API_URL: "https://mytenant.vicarius.cloud"
VICARIUS_TOKEN: "<vicarius_token>"
params:
VICARIUS_MODE:
mandatory: false
type: list
base: list
VICARIUS_FROM:
mandatory: false
type: integer
base: integer
VICARIUS_SIZE:
mandatory: false
type: integer
base: integer
VICARIUS_MAX_PAGES:
mandatory: false
type: integer
base: integer
How It Works¶
- Authenticates with the
Vicarius-Tokenheader set toVICARIUS_TOKEN - For each mode in
VICARIUS_MODE, reads the matching endpoint withfrom/sizepagination:assets:/endpoint/search, imported as hostscves:/organizationEndpointVulnerabilities/search, one vulnerability per CVE and endpoint. Severity comes from the vRx sensitivity level or the CVSS score.patches:/organizationEndpointExternalReferenceExternalReferences/search, oneMissing patchvulnerability per patch withhighseveritysoftware:/organizationEndpointPublisherProductVersions/search, oneinfovulnerability per installed product and versionincidents:/incidentEvent/filter, detected vulnerabilities as open and mitigated vulnerabilities as closed
- Merges the results of all modes and removes duplicate findings
- Sends the hosts and vulnerabilities to Faraday
Notes¶
- vRx does not report IP addresses, so every host is created with IP
0.0.0.0and the endpoint name as hostname. Because the executor merges hosts by IP, all endpoints can end up in one host with several hostnames. - Findings of a mode that fails are skipped with a log message, and the other modes still run. The run fails only if every mode fails.
- If the API answers with HTTP 429, the executor waits 60 seconds and retries up to 3 times.
- With the defaults, at most 100 pages of 500 records are read per endpoint.
- The run fails if
VICARIUS_MODEcontains an unknown mode. - The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor.