Aqua Enterprise (CNAPP) Executor¶
Category: Cloud Security
Script: aqua_enterprise.py
Integration: REST API
Faraday Plugin: Raw JSON
Website: https://www.aquasec.com/
Description¶
Imports container image vulnerabilities from an Aqua Enterprise (self-hosted) console into Faraday. The executor reads the vulnerabilities reported by Aqua, optionally for one registry or image, and creates one host per image with its vulnerabilities.
Prerequisites¶
- An Aqua Enterprise console reachable from the agent
- An Aqua user with permission to read vulnerabilities and images
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
AQUA_HOST |
Yes | Base URL of your Aqua Enterprise console (e.g., https://aqua.example.com:8080) |
AQUA_USER |
Yes | Aqua username (local, LDAP or SAML account) with permission to read vulnerabilities |
AQUA_PASSWORD |
Yes | Password of the Aqua user |
These variables are also accepted as execution arguments, so a single run can override them.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
AQUA_REGISTRY |
string | No | Import only findings from this Aqua registry name. Default: all registries the user can see. |
AQUA_REPO |
string | No | Import only findings from this image or repository name. Default: all images. |
AQUA_MIN_SEVERITY |
string | No | Minimum severity to import: info, low, medium, high or critical (default: info) |
YAML Configuration Example¶
executors:
aqua_enterprise:
repo_executor: aqua_enterprise.py
max_size: 65536
varenvs:
AQUA_HOST: "https://aqua.example.com:8080"
AQUA_USER: "<aqua_user>"
AQUA_PASSWORD: "<aqua_password>"
params:
AQUA_REGISTRY:
mandatory: false
type: string
base: string
AQUA_REPO:
mandatory: false
type: string
base: string
AQUA_MIN_SEVERITY:
mandatory: false
type: string
base: string
How It Works¶
- Logs in with
POST {AQUA_HOST}/api/v1/loginusingAQUA_USERandAQUA_PASSWORDand gets a bearer token - Lists vulnerabilities from
GET /api/v2/risks/vulnerabilities(100 per page), filtered by registry, image name and minimum severity - Looks up each affected image in
GET /api/v2/imagesto add details such as OS and architecture (optional, skipped if not found) - Groups the findings by image and maps each one to a Faraday vulnerability:
- Name:
[CNAPP], the vulnerability, the affected package and the image - Severity: Aqua's severity mapped to Faraday's scale (
negligiblebecomesinfo), or the CVSS score when the severity is missing - Status: fixed or resolved findings become closed, suppressed, acknowledged or false-positive ones become risk-accepted, everything else is open
- Resolution: Aqua's remediation text, or an "Upgrade package to version" hint from the fix version
- Name:
Notes¶
- Each container image becomes one host with the synthetic IP
0.0.0.0. The hostname identifies the image (<registry>/<repository>:<tag>@<image id>) because findings belong to images rather than IP addresses. AQUA_HOSTcan be given with or withouthttps://. Without it,https://is assumed.- TLS certificates are not verified, so self-signed on-prem consoles work.
- The severity floor is applied both in the Aqua query and again on the imported data. Invalid values fall back to
info. - The run stops if the login fails.
- The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor. UseAQUA_MIN_SEVERITYto filter by severity.