Armis Executor¶
Category: Asset Inventory and Network Management
Script: armis.py
Integration: REST API
Faraday Plugin: Raw JSON
Website: https://www.armis.com
Description¶
Imports the device inventory and security alerts from an Armis console into Faraday. Each Armis device and each alert becomes a host with one informational record, so you can cross-check the inventory against the findings of your other scanners.
Prerequisites¶
- An Armis tenant (or on-prem appliance) with API access
- An Armis API secret key with permission to read devices and alerts
requestsavailable in the agent's Python environment
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
ARMIS_HOST |
Yes | Armis tenant host (e.g., mycorp.armis.com). https:// is added if missing. |
ARMIS_SECRET_KEY |
Yes | Armis API secret key. Create it in the Armis console under Settings > Users & Roles > Access Tokens. |
ARMIS_PAGES |
No | Maximum number of pages of 100 records to read for devices and, separately, for alerts (default: 5, maximum: 50) |
These variables are also accepted as execution arguments, so a single run can override them.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
ARMIS_SITE_ID |
string | No | Import only the devices and alerts of this Armis site. Accepts a site ID (e.g., 7) or a site name, depending on your tenant. Default: all sites. |
ARMIS_BOUNDARY |
string | No | Import only the devices and alerts of this Armis boundary (e.g., Corporate Network). Default: all boundaries. |
YAML Configuration Example¶
executors:
armis:
repo_executor: armis.py
max_size: 65536
varenvs:
ARMIS_HOST: "mycorp.armis.com"
ARMIS_SECRET_KEY: "<armis_secret_key>"
params:
ARMIS_SITE_ID:
mandatory: false
type: string
base: string
ARMIS_BOUNDARY:
mandatory: false
type: string
base: string
How It Works¶
- Exchanges
ARMIS_SECRET_KEYfor a short-lived access token withPOST {ARMIS_HOST}/api/v1/access_token/ - Reads devices from
GET /api/v1/devices/and alerts fromGET /api/v1/alerts/, 100 records per page, filtered by site and boundary when set - Creates one host per device: IP, hostnames, MAC address and OS/manufacturer/model come from the device record
- Creates one host per alert, keyed on the alert's IP when it has one
- Adds one informational vulnerability to each host, with all Armis fields in its description and references such as the Armis ID, site, risk level or alert policy and MITRE ATT&CK techniques
Notes¶
- Armis data is inventory, not vulnerabilities. Every vulnerability has
infoseverity and is named[ASSET-INVENTORY] Armis device: <name>or[ASSET-INVENTORY] Armis alert: <title>. - Devices without a usable IP address (loopback or
0.0.0.0are ignored) use0.0.0.0. Alerts not tied to a device also use0.0.0.0, with the alert title as hostname. - CVEs found in an alert's CVE list or text are added to the vulnerability.
- By default the executor reads at most 500 devices and 500 alerts per run. Raise
ARMIS_PAGESfor larger tenants. ARMIS_HOSTcan be given with or withouthttps://. Without it,https://is assumed.- The run stops if the access token cannot be obtained. If Armis rate-limits or denies a later request, the executor keeps what it has already read.
- The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor.