docs/_index.md --- title: "The runZero Platform" --- ## Introduction runZero is an attack surface and exposure management platform that helps you see everything on your network, from managed IT systems to unmanaged OT, IoT, cloud, mobile, and remote assets. It combines high-speed active scanning, passive discovery, and API integrations into one continuously updated inventory. You can run runZero as a hosted service (SaaS) or [on-premise](self-hosting.md). The platform includes one or more Consoles, distributed [Explorers](installing-an-explorer.md) that run as lightweight services at your points of presence, and a [command-line tool](using-the-cli.md) for offline collection and automation. You can work in the web interface, automate through the API, and, on self-hosted deployments, manage operations from the command line. - [What is runZero?](what-is-runzero.md) - [Get started](getting-started.md) - [The `llms.txt` file](https://help.runzero.com/llms.txt) ## Offline documentation - [runZero User Guide (PDF)](https://help.runzero.com/docs/runzero-manual.pdf) - [runZero API (PDF)](https://help.runzero.com/docs/runzero-api.pdf) - [runZero API HTML (ZIP)](https://help.runzero.com/docs/runzero-api.zip) - [runZero Software Bill of Materials (SBOM PDF)](https://help.runzero.com/docs/runzero-bom.pdf) --- docs/what-is-runzero.md --- title: "What is runZero?" --- ## runZero {#what-is-runzero-intro} runZero is an attack surface and exposure management platform that helps you see everything on your network, from managed IT systems to unmanaged OT, IoT, cloud, mobile, and remote assets. It combines high-speed active scanning, passive discovery, and API integrations into one continuously updated inventory. You can run runZero as a hosted service (SaaS) or [on-premise](self-hosting.md). The platform includes one or more Consoles, distributed [Explorers](installing-an-explorer.md) that run as lightweight services at your points of presence, and a [command-line tool](using-the-cli.md) for offline collection and automation. You can work in the web interface, automate through the API, and, on self-hosted deployments, manage operations from the command line. ### Data sources {#what-is-runzero-datasources} * **Active Scans**: The runZero [active scan engine](discovering-assets.md) is fast, accurate, and safe for all environments, and it supports many [protocols](troubleshooting-protocols-supported.md) and [applications](data-dictionary.md). * **Passive Traffic Sampling**: The runZero [passive traffic sampling engine](traffic-sampling.md) scales with available resources and works with broadcast traffic, SPAN ports, and encapsulated streams. Any runZero Explorer can sample traffic passively, regardless of its location, configuration, or resources. * **API Integrations**: runZero has [inbound](integrations-inbound.md) and [outbound](integrations-outbound.md) integrations with major cloud, endpoint, and CMDB providers. You can also build your own with the [Custom Integration API](integrations-inbound.md/#custom-integrations) and [Custom Integration Scripts](custom-integration-scripts.md). ### Live inventory {#what-is-runzero-inventory} * **Assets**: runZero tracks all [assets](understanding-assets.md) across the environment: cloud, mobile, endpoint, server, OT, IoT, and everything in between. It correlates and merges assets across data sources into a multi-perspective snapshot of all organization resources. The asset inventory supports deep search, configurable columns, and simple export. * **Services**: runZero tracks every network service it identifies through active scans, passive discovery, and integrations (where applicable). The services inventory simplifies exposure management tasks and supports deep search and exports. * **Screenshots**: runZero takes a screenshot of each exposed web service included in active scans. The screenshot inventory lets security teams inspect unknown devices and services by eye. * **Software**: runZero identifies network-exposed software and imports software records from API integrations. Use the resulting software inventory to find specific packages and versions across the environment. * **Vulnerabilities**: runZero reports vulnerabilities based on identified exposures and imports vulnerability data from API integrations. The vulnerability inventory comes in two forms: a detailed per-asset inventory and a grouped view for investigating specific issues. * **Certificates**: runZero identifies SSL/TLS certificates, including expired and soon-to-expire ones. The certificate inventory includes all relevant metadata, such as issuer, expiration date, and certificate chain. * **Wireless**: Active scans also enumerate wireless access points within range of the Explorer running the task. The wireless inventory includes the BSSID, SSID, encryption settings, and signal strength. * **Users and Groups**: runZero imports user and group information from directory services, including Active Directory, Azure Active Directory (Entra ID), and Google Workspace. Search the user and group inventories for accounts with specific attributes, such as expired passwords and excessive group permissions. ### Reports {#what-is-runzero-reports} runZero's reports cover everything from [layer-2 topology maps](switch-topology-report.md) to outliers and asset risk. Beyond the pre-defined reports, most attributes of an asset or service can become a grouped report with a single click. For deeper customization, the runZero [Export API](exporting-asset-data.md) produces CSV and JSON(L) output with arbitrary search filters, which can feed analytics platforms like Tableau and PowerBI. ### Monitoring and alerts {#what-is-runzero-alerts} runZero can [alert](managing-alerts.md) on changes to the inventory, on new results for custom search [queries](search-query-syntax.md), and on any of dozens of system-level events. Alerts can be delivered in-product, by email, or to a webhook destination, including Slack channels. Alongside alerts, rules, and custom queries, you can define [goals](goal-tracking.md) and custom dashboard widgets to track progress toward a specific outcome. To put runZero to work, sign up for an account and follow the [getting started](getting-started.md) guide. --- docs/getting-started.md --- title: "Getting started" --- To get started, ((sign up)) for a runZero account. The default account is a trial of the full runZero Platform. When the trial expires, you can convert to the free Community Edition or buy a subscription. - [Sign up for a runZero account](https://www.runzero.com/try/) - See [creating an account](creating-account.md) for activating your account, changing your password, and adding a profile picture. - With your account set up, pick one of two paths to deploy runZero: - [Quickstart](getting-started.md/#quickstart-guide) - [Full deployment plan](getting-started.md/#full-deployment-plan) ## Quickstart guide {#quickstart-guide} Take the quickstart path to use runZero right away. It covers initial setup, running basic scans, and configuring integrations. ### 1. Set up an Explorer {#set-up-explorer} Asset discovery starts with an Explorer: - Go to Deploy > Deploy Explorers in the runZero Console. - Review the system requirements and choose the binary for your platform. - Make sure the Explorer connects to the right organization. Each download link is organization-specific. ### 2. Run your first scan {#run-first-scan} With the Explorer installed: - Go to Scan in the console. - Click Start standard scan and configure the discovery scope: - Choose an Explorer. - Set the target subnets or CIDR ranges. - Run the scan and monitor progress from the console.
We recommend starting with a `/24` or a handful of small CIDR blocks to verify network connectivity, then scaling out from there.
### 3. Configure integrations {#configure-integrations} Enrich your data with third-party integrations: - Go to Integrate. - Select and configure the supported integrations for EDR, vulnerability management, cloud, and other sources. - Each inbound integration has [its own documentation](integrations-inbound.md). - Set the required permissions in the integrated systems. - Run sync tasks to import data and merge it with existing asset information. ### 4. Review scan results {#review-scan-results} After the scan completes: - Check results under Inventory > Assets. - Use the Query library to spot misconfigurations and other notable findings in the inventory. - Review reports and customize dashboards to dig deeper. - A few sample reports to start with: - Network Map: interactive 2D/3D topology with attack-path tracing and choke-point ranking. - World Map: assets geolocated on a globe by GeoIP, cloud region, and manual `geo*` tags. - SNMP default communities - SSH authentication methods - TLS supported versions
If the `matches:>0` search returns nothing, the metrics may still be calculating. You can check the status of the metrics calculations.
## Full deployment plan {#full-deployment-plan} If you're planning a production deployment, a little preparation up front gives you a setup that scales. Follow these steps: ### 1. Plan your deployment {#plan-deployment} - Set your goals for asset visibility, network segmentation, or compliance. - Confirm you have adequate resources for Explorers and network access points. - Learn the runZero-specific terms in the [glossary](glossary.md). ### 2. Initial setup {#initial-setup} - Deploy Explorers across your main network segments. - Configure credentials for access to devices and services (SNMP, EDR, MDM, and so on). - Verify connectivity against the network communication guidelines. ### 3. Run discovery and assess {#run-discovery-assess} - Run discovery scans on every required segment. - Validate the data and tune scan settings as needed. - Find any scanning gaps and adjust configurations. ### 4. Automate and optimize {#automate-optimize} - Schedule scans for continuous monitoring. - Enrich asset data with integrations. - Set up the alerting and reporting your organization needs. ### 5. Rollout and monitor {#rollout-monitor} - Deploy to the remaining network segments according to your plan. - Monitor scan results and network health regularly. - Document configurations and processes for ongoing management. If you get stuck, contact [support](mailto:support@runzero.com). For step-by-step detail, follow the [production deployment documentation](deployment-plan.md). --- docs/creating-account.md --- title: "Creating an account" --- To get started, ((sign up)) for a runZero account. The default account is a trial of the full runZero Platform. When the trial expires, you can convert to the free Community Edition or buy a subscription. [Sign up for a runZero account](https://www.runzero.com/try/) ## ((Activating your account)) After you sign up, we'll email you a link to activate your account. If you don't see it, check your spam folder. Open the link to reach the **Activation** page and follow the instructions there. You'll provide your name, set a password, specify your location, and accept our [privacy policy](https://www.runzero.com/legal/privacy/) and [terms of service](https://www.runzero.com/legal/terms/). Once your account is active, you land directly in the runZero Console. Your new account has administrative access, so you can manage [sites](sites.md), [organizations](organizations.md), [users](managing-your-team.md), and [Explorers](installing-an-explorer.md). If anything goes wrong while creating your account, contact [support](mailto:support@runzero.com). ## Changing your password Change your password from your [account settings](https://console.runzero.com/settings). You'll enter your current password before you can set a new one. All ((passwords|password rules)) must contain: - At least 8 characters - At least 1 uppercase character - At least 1 lowercase character - At least 1 number ## Updating your profile picture Your ((profile images)) come from [Gravatar](https://gravatar.com/) and are tied to your email address. If you don't have a Gravatar account, [sign up for one](https://en.gravatar.com/support/about-profiles/). --- docs/installing-an-explorer.md --- title: "Installing an Explorer" aliases: [ "/docs/installing-an-agent/" ] --- runZero needs at least one ((Explorer)) in your environment for active and passive network discovery. Install it on a system with reliable connectivity to the network you want to discover. For internal networks, runZero works best on a system with a wired connection rather than wireless. For ((external network discovery)), nearly any cloud provider with a reliable connection should do. If the Explorer runs in a ((container)) or ((virtualized system)), give it direct access to the network (host networking in ((Docker)), bridged networking in ((VMware)), and so on). SaaS customers with a Platform license can use the runZero hosted Explorers at no additional cost. [View an interactive version of this diagram](https://www.figma.com/proto/JgnLAWYFpODvNHQ272nmM4/Architecture-Diagram?page-id=0%3A1&type=design&node-id=687-1473&viewport=-51%2C403%2C0.08&t=lQUeTS4hgEfxLB9E-1&scaling=contain&starting-point-node-id=1%3A1430) ![runZero deployment diagram](img/deployment-diagram.svg) ## ((Installation)) Sign in to the runZero Console and switch to the Organization the Explorer should belong to. Then select ((Deploy)) in the left navigator and choose the Deploy Explorers sub-menu to reach the downloads. The download link is specific to your active organization, and **the wrong link can associate the new Explorer with the wrong organization**. ((Download)) the binary for your system from the [Explorer download page](https://console.runzero.com/deploy/download/explorers). For most systems, select the 64-bit (x86_64) architecture. On macOS, pick 64-bit Intel (x86_64) or ARM (Apple M*) to match your hardware. For ((embedded devices)) such as the Raspberry Pi 3+, choose the ARM7 architecture. Windows binaries carry a valid Authenticode signature; validate it before launching the executable. Installation requires administrative privileges. On Windows, a ((UAC)) prompt may appear. On Linux and macOS, make the downloaded binary executable (`chmod u+x runzero-agent.bin`) and run it as root (`sudo` or a root shell). Either way, the Explorer should install itself as a system service, start immediately, and appear as a new entry on the [Explorers page](https://console.runzero.com/deploy/explorers). From there, you can manage it as described in [Managing Explorers](managing-explorers.md). ## ((System requirements)) ### Windows * Operating System * Windows Server 2016 or newer * Windows 10 Build 1604 or newer * Processor running at 2.0 GHz or faster * At least 16GiB of memory (8GiB for small environments) * At least 1GB of free storage space #### Limitations * The Trellix agent for Windows appears to interfere with network scans and traffic capture. Use a system without the Trellix agent for active scans or passive network sampling. Alternatively, switching the Trellix HIDS agent from "block" to "monitor" may allow scans to succeed. * EDR, antivirus, and endpoint protection products on Windows may also interfere with Explorer scans, packet capture, or process execution. If scans become unreliable, add allowlist exceptions for runZero and npcap/winpcap components, or use monitor-only policy modes while you validate scans. In some environments, you may need to disable these controls on the host for stable operation. * Windows systems with Intel Advanced Matrix Extensions (AMX) enabled may see Explorer instability or crashes, on physical hardware and virtual machines alike. Disable AMX at the BIOS or host level before installing or running the Explorer. For Windows guests on Hyper-V, enabling **Processor Compatibility** can mitigate this issue. * Earlier Windows versions may run the Explorer but are not officially supported. * Windows Explorers run a single scan or passive task at a time because of performance limits in the raw packet driver. ### Linux * Kernel version 3.2 or later * Processor running at 2.0 GHz or faster * At least 16GiB of memory (8GiB for small environments) * At least 1GB of free storage space Linux ARM devices with limited processing power and memory, such as the Raspberry Pi, can run the Explorer but may struggle to scan larger networks or to run integrations with large amounts of data. ### macOS * macOS 11 (Big Sur) or newer * Processor running at 2.0 GHz or faster * At least 16GiB of memory (8GiB for small environments) * At least 1GB of free storage space You must use the **curl** download method shown on the deployment page in the Console, because of the Notary requirements introduced in macOS Catalina (10.15). ### BSD variants * Processor running at 2.0 GHz or faster * At least 16GiB of memory (8GiB for small environments) * At least 1GB of free storage space The Explorer requires root access on a recent version of the operating system: FreeBSD 11.2 or newer, or recent versions of NetBSD/DragonFly/OpenBSD. ## Configuration {#configuration}
Existing installations may refer to `Rumble` in the directory name, service name, and binary names. `Rumble, Inc` was the previous name of our business; new installations refer only to `runZero`, our new name.
Configure the Explorer with variables in a `config.txt` file in the same directory as the executable. On Windows, create it at `C:\Program Files\runZero\config.txt`; on other platforms, use `/opt/runzero/bin/config.txt`. Besides `config.txt`, the Explorer also supports the legacy `.env` name. If `/etc/runzero/config` is present, it takes precedence. The file holds one `VAR=VAL` pair per line. ### Configuration file locations {#configuration-locations} **Windows**: `C:\Program Files\runZero\config.txt` **Other platforms**: `/opt/runzero/bin/config.txt` ## ((Web screenshots)) The scanner tries any available Chrome, Chromium, or Edge version and reports the browser path and version in the Explorers list in the web console. If it finds no supported browser, install the official [Google Chrome](https://www.google.com/chrome/) package for your operating system to enable [web ((screenshots))](managing-explorers.md#screenshot-capabilities). To install the latest Chrome package on Debian-based Linux installations (including Ubuntu): ```bash curl -o chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ sudo apt install ./chrome.deb ``` To install the latest Chrome package on RedHat-based Linux installations (including Fedora, CentOS, Rocky, and Alma): ```bash curl -o chrome.rpm https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm && \ sudo dnf install ./chrome.rpm ``` These variables change web screenshot behavior when set in the environment or the configuration file: Set `RUNZERO_CHROMIUM_IGNORE_SYSTEM` to `true` to ignore system Chromium paths for screenshots. Set `RUNZERO_CHROMIUM_AUTOMATIC_INSTALL` to `true` to install Chromium automatically when needed. The download comes directly from the Google and Puppeteer CDNs. Set `RUNZERO_CHROMIUM_DEBUG` to `true` for detailed Chromium process logging while screenshots are taken. Set `RUNZERO_CHROMIUM_USER` to a valid system username on non-Windows systems. When the scanner runs as root, the Chromium process runs as this user account (and its default GID). Set `RUNZERO_CHROMIUM_CACHE_DIR` to the directory for automatic Chromium installations (or installations managed through content updates). It defaults to `/opt/runzero/chromium` on non-Windows and the binary directory plus `\chromium` on Windows. The directory holds a `LATEST.txt` file with a numeric revision, which names a `chromium-[revision]` sub-directory containing a copy of the Chromium installation. Set `RUNZERO_CHROMIUM_DISABLE_CHROMEDP` to `true` to disable the debug protocol capture mode (now the default). Set `RUNZERO_CHROMIUM_DISABLE_CHROMECL` to `true` to disable the command-line headless `--screenshot` capture mode (otherwise used as a fallback). ## Network communication The Explorer connects to the runZero Console on TCP port 443 over TLS. This connection carries Explorer registration, job scheduling, status messages, and completed scan jobs. The Console also delivers automatic updates of the Explorer executable. For completely offline environments, the [runZero CLI](https://console.runzero.com/deploy/download/cli) can create scan data files to upload later through the [Inventory](https://console.runzero.com/inventory) `Import` action. The IP addresses involved depend on your deployment model and region. For customers using the SaaS console, these static IPs belong to the runZero consoles. ### United States The console hostname is `console.runzero.com`. IPv4 * 13.248.161.247 * 76.223.34.198 IPv6 * 2600:9000:a415:cd87:fbe5:476a:3533:69f2 * 2600:9000:a716:ee91:85f9:3c9:48c9:59b9 ### Germany The console hostname is `console-eu.runzero.com`. IPv4 * 15.197.131.232 * 3.33.248.90 IPv6 * 2600:9000:a603:e925:542d:6d40:6897:bc3a * 2600:9000:a70e:635f:71bd:bb0a:8e43:9466 ### NAT Run the Explorer on a system with a full bidirectional network connection, **not** behind a NAT gateway. This includes virtual machines, which should use bridged network adapters. Juniper DDoS protection is known to break runZero scans. ### Proxy support Some web proxies that perform TLS inspection mishandle Websocket communication, so you'll need to disable TLS inspection for the runZero Explorer to connect. The most common product with this problem is the Sophos (previously Cyberoam) security appliance. Websense users may need to add a [bypass rule](https://www.websense.com/content/support/library/web/hosted/admin_guide/ssl_bypass.aspx) for `console.runzero.com`. In most cases, the Explorer handles proxies automatically. On Windows, it reads proxy information from the registry keys used by Chrome, Edge, and IE. You can also set the proxy with the `HTTPS_PROXY` environment variable. Give `HTTPS_PROXY` a hostname and port (`proxy.example.com:8080`) or just a hostname (`proxy`). The Explorer reads environment variables from your configuration file; the [Configuration](installing-an-explorer.md#configuration-locations) section shows how to set them. The usual approach is a `config.txt` file in the same directory as the Explorer binary, with the variables in the format described below. For a SOCKS proxy, set `HTTPS_PROXY` to a `socks5` URL, for example `HTTPS_PROXY=socks5://socks.example.com:1080`. To override the proxy for AWS connections, set `HTTPS_PROXY_AWS`. It takes priority over any base `HTTPS_PROXY` setting for the Explorer. The Explorer tries the configured proxy for each probe and, if that fails, tries a direct connection, so both proxy and non-proxy attempts may appear in logs. Using proxies alone to hide or anonymize Explorer connections is not supported. ### TLS configuration You can set the minimum and maximum TLS versions the Explorer uses for outbound communication to the console, through an environment variable or the configuration file. `TLS_VERSION_MIN` and `TLS_VERSION_MAX` accept `1.0`, `1.1`, `1.2`, or `1.3`. The default is a minimum of TLS 1.2 and a maximum of TLS 1.3. If the maximum is set lower than the minimum, the maximum is raised to the minimum. runZero does not recommend TLS versions before 1.2. This example limits the Explorer to TLS version 1.3. ``` TLS_VERSION_MIN=1.3 TLS_VERSION_MAX=1.3 ``` ## Restarting an Explorer The easiest way to restart an Explorer is to force a software update from the cloud console. Otherwise, find the service on the host machine and restart it by hand. On Linux or Mac, run `/opt/runzero/bin/runzero-agent-[uuid] restart`, where `[uuid]` is the ID of the organization the Explorer belongs to. On Linux, `systemd` can also restart Explorers. First find the name of the Explorer service (runzero-agent-[uuid]): ```bash systemctl | grep runzero-agent ``` Then restart the service by that name: ```bash systemctl restart runzero-agent-[uuid] ``` A `kill -9` of the Explorer pid should trigger a restart as well. On macOS, use `launchctl` to restart the Explorer: ```bash launchctl kickstart -k runzero-agent-[uuid] ``` As on Linux, `[uuid]` is the organization UUID, visible in the `runzero-agent-*` filename in `/opt/runzero/bin`. On Windows, restart the Explorer from the Services console like any other background service. ## Removing an Explorer The easiest way to remove an Explorer is from the [Explorers](https://console.runzero.com/deploy/explorers) page: find the Explorer, then click the _Delete Explorer_ trash bin icon under the _Actions_ column. This removes the service and terminates the running Explorer process. To remove every online Explorer at once, open the _Manage All Explorers_ menu and choose _Uninstall All Online Explorers_. To remove an Explorer without the runZero Console, you have a couple of options. On Windows, each Explorer appears in Programs and Features (as the runZero Agent) and uninstalls like any other application. On all platforms, including Windows, the Explorer uninstalls itself when run with the `uninstall` argument from a root or Administrator shell: ### Removal on Windows ```console c:\Program Files\runZero\runzero-agent-[uuid].exe uninstall ``` ### Removal on other platforms ```bash /opt/runzero/bin/runzero-agent-[uuid] uninstall ``` ## Log management By default, the Explorer logs to a file and to standard output. On Windows, the log file lives in the installation directory (`C:\Program Files\runZero`, or `C:\Program Files\Rumble` for old installations); other platforms log to `/var/log/runzero.log` and `/var/log/runzero.err`. The defaults cap log files at 100MiB, create three backups, and expire logs after 90 days. Change them with these values in the `$BIN/config.txt` file: * `RUNZERO_AGENT_LOG_MAX_SIZE` sets the maximum log size in mebibytes. The default is **100**. * `RUNZERO_AGENT_LOG_MAX_BACKUPS` sets how many backup files log rotation creates. The default is **3**. * `RUNZERO_AGENT_LOG_MAX_AGE` sets the maximum age in days for all files, including backups. The default is **90**. * `RUNZERO_AGENT_LOG_COMPRESS` controls whether backups are gzip compressed. The default is **false**. * `RUNZERO_AGENT_LOG_STDOUT` controls whether logs go to standard output. The default is **true**. On Linux, this sends logs to the system log when systemd or upstart starts the Explorer. On macOS, it produces separate logs under "Log Reports" in the Console application when launchd starts the Explorer. * `RUNZERO_AGENT_LOG_FILE` controls whether logs go to the log file described above. The default is **true**; set it to `false` to stop writing the log file. Restart the Explorer for these settings to take effect. ## Certificate authorities (CAs) The Explorer validates TLS connections against the system-installed certificate authorities and an internal CA certificate bundle. By default, both the system roots and the bundled roots apply to all secure TLS connections, including Starlark-based custom integrations. Control this with environment variables, set in the `$BIN/config.txt` file or at the system level: * Set `RUNZERO_TLS_IGNORE_SYSTEM_ROOTCA` to **true** to ignore the system CA roots. * Set `RUNZERO_TLS_IGNORE_EMBEDDED_ROOTCA` to **true** to ignore the bundled CA roots. * Set `RUNZERO_TLS_ADDITIONAL_ROOTCA` to the path of a file with additional CA roots in PEM format. ## Manual mode If the Explorer detects no supported system service manager, such as systemd or upstart, it switches to manual mode: it runs in the foreground and replaces and re-executes its own binary as updates arrive. For temporary installations or container environments, pass the "manual" argument: `$ sudo ./runzero-agent.bin manual` ## Storage locations The Explorer installs into `%PROGRAMFILES%\runZero` on Windows and `/opt/runzero/bin` on all other platforms, and it writes temporary files to the operating system's default locations. You can override these locations in the `config.txt` file (see the [Configuration](#configuration) section above); restart or force-update the Explorer service for the change to take effect. Older installations may still use the `Rumble` versions of these directories and `.env` instead of `config.txt` for environment overrides. On Windows, the temporary file location is the first non-empty value of `TMP`, `TEMP`, or `USERPROFILE`, falling back to the Windows directory. To override it, add an entry like this to `config.txt`: `TMP=D:\Storage\runZero` On all other platforms, the temporary file location comes from `TMPDIR`, falling back to `/tmp`. To override it, add an entry like this to `config.txt`: `TMPDIR=/home/storage/runzero` Scans that fail to upload are kept in the Explorer installation directory. Import them into the platform manually or with the runZero CLI's `scan --import` and `scan --upload` options. ## Container installations The Explorer can run in standard container environments, with three caveats: 1. Explorer binaries update frequently, and the updates include time-sensitive security coverage. On a read-write container filesystem, the Explorer updates itself but reverts to the older state when the container restarts. We recommend rebuilding the container image frequently, or having the container's entry point fetch and run the latest binary for your organization on startup. On a read-only container, no updates apply, and each task is delayed by up to five minutes while the Console tries to update anyway. 2. The container must run as root with full privileges to access the raw network device. The exact network parameters differ by container runtime, but this typically means a bridged, macvlan, or host (not host-only) networking option when you deploy the container. Without raw network access, many runZero features stop working, including ARP scans, IPv6 neighbor discovery, TCP SYN scans, and passive network sampling through SPAN ports. 3. The container needs a persistent `RUNZERO_AGENT_HOST_ID` environment variable, and only one container with that ID should run at a time. Without it, the Explorer re-registers on every container restart, and if several containers share one identifier, they fight over task status and task processing breaks. Set the host ID to a unique 32-character hexadecimal string. The `openssl` tool can generate a suitable identifier: ```bash openssl rand -hex 16 01b0283809b24511929d0b062bd36109 ``` A sample Containerfile to edit and use: ```bash # # Sample Containerfile for running the runZero Explorer in a container, with # screenshot support. # FROM debian:stable WORKDIR /opt/runzero # Ensure curl is available and install tools for wireless scanning. # RUN apt update && apt install -y curl wireless-tools # Install Chrome for screenshots. # RUN curl -o chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ apt install -y ./chrome.deb # Set AGENT_URL to be the download URL for your Linux runZero Explorer. To # find your URL, go to https://console.runzero.com/deploy/download/explorers # and click on the first URL box to copy it to the clipboard. # ENV AGENT_URL=https://console.runzero.com/download/explorer/DT[uniqueToken]/[versionID]/runzero-agent-linux-amd64.bin # This ID is used to track the Explorer even if the container is rebuilt. # Set it to a unique 32 character hex ID. You can generate one via: # # $ openssl rand -hex 16 # ENV RUNZERO_AGENT_HOST_ID=[UNIQUE-ID] # If you need to set environment variables to change the Explorer behavior, # you can do so via the ENV directive. Example: # # ENV RUNZERO_AGENT_LOG_DEBUG=true ADD ${AGENT_URL} runzero-agent.bin RUN chmod +x runzero-agent.bin # For full functionality the runZero CLI needs to send and receive raw # packets, which requires elevated privileges. USER root # The argument `manual` tells runZero not to look for SystemD or upstart. ENTRYPOINT [ "/opt/runzero/runzero-agent.bin", "manual" ] ``` This Containerfile works with podman as well as Docker. Because the Explorer needs root privileges, start the container as root. For best results, run it with the `--privileged` option so the Explorer can listen to network traffic. ## Automated installations The Explorer installs itself automatically when run with root or administrative privileges. On Linux and BSD, automatic installation depends on a supported init service like systemd or upstart. Without one, the Explorer runs in manual mode instead, overwriting and re-executing itself with each update. To deploy automatically on systems without a supported init service, run the Explorer in the background under the `nohup` wrapper. On Windows, the Explorer installs automatically when run interactively or with the `updater` parameter. Where MSIs are required, the [Explorer MSI](explorer-msi.md) wrapper deploys an Explorer from the runZero Console or a local mirror. ## AWS EC2 installations The Explorer can run in an AWS EC2 instance, but you'll need several configuration changes to avoid packet loss when scanning. * DNS resolution from EC2 to the AWS DNS server has [a fixed cap of 1024 packets per second](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-dns.html#vpc-dns-limits) that cannot be raised. Work around it by setting a custom list of non-AWS nameservers in the advanced section of the scan configuration. * Any Security Group without a `0/0` rule triggers [connection tracking](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-connection-tracking.html), which has an undocumented limit on connections per instance type. Avoid it by adding `0/0 allow` for ICMP/UDP inbound and outbound on the Explorer instance, plus a `0/0 allow` for outbound TCP connections. (runZero scans do not currently require inbound TCP. Callback protocols may need it in the future.) * Overall packet rates have [undocumented limits that depend on instance type](https://www.bluematador.com/blog/packets-per-second-in-ec2-vs-amazons-published-network-performance). Experiment with instance sizing until scans are consistent at a given scan rate. We hope to gather and share data on appropriate instance sizes soon. The Explorer should work well on a memory optimized, compute optimized, or general compute instance. Because it can make full use of multi-core systems, you may want to match the number of cores to the number of simultaneous scans. You probably won't want to run larger scans on an instance with less than 32GiB of RAM. --- docs/explorer-msi.md --- title: "Automated MSI deployments" aliases: ["/docs/agent-msi"] --- The runZero Explorer downloads are dynamically generated binaries, which don't always play well with MSI-based installation methods. To work around this, we provide a shim ((MSI package)) for use with ((automated installers)). The package has a valid Authenticode signature, and you can also verify it with the [runZero Verifier](binary-verification.md).
Some parts of the application still use the name "Rumble" for backwards compatibility. New installations use runZero for directory, file, and user names.
Windows hosts with Intel Advanced Matrix Extensions (AMX) enabled may see Explorer instability or crashes, on physical hardware and virtual machines alike. Disable AMX at the BIOS or host level before deployment. For Windows guests on Hyper-V, enabling Processor Compatibility can mitigate this issue.
EDR, antivirus, and other endpoint protection software on Windows may interfere with Explorer installation or scan behavior. If problems occur, add allowlist exceptions for runZero and npcap/winpcap components, or use monitor-only policy modes while you validate deployments. In some environments, you may need to disable endpoint protections for stable operation.
Deploy the package with the `URL` parameter set to the organization-specific download URL from the Explorers section of the runZero Console. ```bash msiexec /i runzero-explorer-installer-amd64.msi URL=https://console.runzero.com /download/explorer/DT[uniqueToken]/[versionID]/runzero-explorer-windows-amd64.exe ```
Enter this command as one long line with a single URL parameter; it's wrapped here for display.
The MSI shim verifies that the URL points to a valid runZero Explorer binary, then installs it normally. **Warning**: Installing with the `/a` parameter does not work; use `/i` instead. ## Binary downloads | Build | SHA256 | |-------|-----| | [runZero Explorer Installer MSI x86 64-bit][msi64] | [sha-256][msi64-sum] | | [runZero Explorer Installer MSI x86 32-bit][msi32] | [sha-256][msi32-sum] | [msi64]: https://public.runzero.com/builds/runzero-explorer-msi/runzero-explorer-installer-amd64.msi [msi64-sum]: https://public.runzero.com/builds/runzero-explorer-msi/runzero-explorer-installer-amd64.msi.sum [msi32]: https://public.runzero.com/builds/runzero-explorer-msi/runzero-explorer-installer-386.msi [msi32-sum]: https://public.runzero.com/builds/runzero-explorer-msi/runzero-explorer-installer-386.msi.sum --- docs/installing-explorer-on-raspberry-pi.md --- title: Installing on a Raspberry Pi description: How to install a runZero Explorer on Raspberry Pi for remote deployment. date: 2021-04-20 --- The runZero Explorer runs discovery scans, and in most cases you can deploy it on an existing system with connectivity to the network you want to discover. Some locations, like retail stores or customer sites, may have no staff or hardware available to install one, which makes remote deployment tricky. For those sites, install a runZero Explorer on a ((Raspberry Pi)) and send the device to the location for them to plug into their network. ## What you'll need - Raspberry Pi 4 Model B (4GB or 8GB), Raspberry Pi Compute Module 4, or Raspberry Pi 400 - At least 1GB of free storage space on your Raspberry Pi's MicroSD card after installing the operating system ## Connecting to your Raspberry Pi via SSH These steps show you how to SSH to your Raspberry Pi and install the Explorer from your terminal. ### Step 1. Enable SSH on your Raspberry Pi [Enable SSH](https://www.raspberrypi.org/documentation/remote-access/ssh/README.md) on the device before you try to connect. You can add a file called ssh.txt at the root of the SD card and reboot the Raspberry Pi. The file can be empty. On reboot, the Pi enables SSH if the file is present. ### Step 2. Update the password for your Raspberry Pi With SSH enabled, you must [update your credentials](https://www.raspberrypi.org/documentation/linux/usage/users.md). Log in as the `pi` user and run `passwd` to change the default password. The `passwd` command asks for your current password before it lets you set a new one. ### Step 3. Copy the Explorer instructions - Go to your [console](https://console.runzero.com) and verify you're in the right organization. runZero keys the Explorer download link to the organization you're viewing, which associates the Explorer with that organization. - Go to the [Explorer deployment page](https://console.runzero.com/deploy/download/explorers), select **Linux Distributions**, and choose Linux ARM 32-bit V7. Raspbian uses a 32-bit kernel by default, even on 64-bit Raspberry Pi hardware. - Click the instructions at the bottom of the Linux installation page to copy the commands to your clipboard. ### Step 4. Install the Explorer
Some parts of the application still use the name "Rumble" for backwards compatibility. We'll update the documentation as they change.
Connect to the Raspberry Pi over SSH and paste the installation command into the terminal. The URL in the command ties the installation to your active organization, so yours will differ from the example below. ``` me@mac ~ % ssh pi@hostIP pi@host's password: pi@raspberrypi:~ $ sudo bash root@raspberrypi:/home/pi# cd Downloads root@raspberrypi:/home/pi# curl -o runzero-explorer.bin https://console.runzero.com/download/explorer/DT[uniqueToken]/[versionID]/runzero-explorer-linux-arm7.bin && chmod u+x runzero-explorer.bin && sudo ./runzero-explorer.bin ``` The Explorer installs itself in `/opt/runzero` and sets up a systemd service named `runzero-agent-`, which starts automatically on boot. ## Next steps Your Raspberry Pi is now a runZero Explorer box, ready to ship wherever you need it. You can view and manage your [registered Explorers](https://console.runzero.com/deploy/explorers) from your console at any time, and [Managing Explorers](docs/managing-explorers.md) covers what you can do there. --- docs/managing-explorers.md --- title: "Managing Explorers" aliases: [ "/docs/managing-explorers/" ] --- The runZero Explorer is a lightweight scan engine for network and asset discovery. You should have at least one ((Explorer)) deployed, and once you do, you manage your Explorers from the [Deploy page](https://console.runzero.com/deploy/explorers) in your runZero web console. ## Viewing all Explorers For each Explorer, you can see: - The Explorer status (whether it's communicating with runZero) - The OS it runs on - Its name - Any site it's associated with - Its IP addresses - The software version it runs - Whether the installed npcap version is up to date, if the OS is Windows (see [upgrading npcap](#upgrading-npcap) below) - The CPU architecture of the host machine - Any tags associated with the Explorer - The status of its last scan - Its capabilities, like Chrome support ## Screenshot capabilities To capture screenshots, the Explorer needs Chrome installed. To check whether an Explorer has ((screenshot)) capabilities, look for the Chrome icon in the _Capabilities_ column: - Green icon: the Explorer has access to a Google Chrome binary and can take screenshots. - Red icon: no suitable Chrome binary was found. If the icon is red, see [Explorer not capturing screenshots](docs/troubleshooting-no-screenshots.md). ## Searching for Explorers Use the search bar to find Explorers. The query syntax is similar to the other search bars in runZero, with keywords to filter by specific fields: | Keyword | Search by | Example | |------------------|------------------|-------------------------| | `arch:` | CPU architecture | `arch:amd64` | | `name:` | assigned name | `name:scanner.local` | | `address:` | IP address | `address:10.0.1.200` | | `capability:` | capabilities | `capability:screenshot` or `capability:aws` | | `tag:` | assigned tag | `tag:dev` | | `npcap_version:` | npcap version | `npcap_version:1.31` | ## Explorer actions Each Explorer has a set of action buttons: - **Reinstall an Explorer**: runs a ((reinstall)) or ((upgrade)) of the Explorer. The current Explorer downloads the latest Explorer code from runZero, then runs the install process. - **Configure an Explorer**: associates the Explorer with a specific site, enables recurring speed tests, and adds tags to it. You can also set the maximum number of concurrent scans allowed; a single Explorer can run multiple tasks at once. - **Reassign an Explorer**: moves the Explorer to a different organization within your account, or even to a different runZero client account entirely. - **Remove an Explorer**: asks a running Explorer to uninstall itself from the host machine. If the Explorer is not running, you can still tell runZero to forget it, which is useful when you've decommissioned the machine it ran on or uninstalled it manually. If a forgotten Explorer runs again, runZero adds it back to the registered Explorers list. ## Bulk management operations Bulk operations act on many Explorers at once. They live in the _Manage all Explorers_ menu: - **Update all online Explorers**: tells every Explorer that is up and communicating with runZero to upgrade its software. - **Forget all offline Explorers**: clears every Explorer that is currently offline and makes runZero forget it. No data is lost, and any Explorer that comes back online rejoins the active list. - **Uninstall all online Explorers**: tells every online Explorer to uninstall itself from its host system. - **Automatically assign sites**: goes through every Explorer not currently assigned to a specific site and checks its IP address against the CIDR ranges of the registered subnets of all sites in the current organization. If the address matches exactly one site, runZero assigns the Explorer to that site. ## Viewing Explorer details Click an Explorer's name to open a page of diagnostic information for that Explorer, including its software version, available memory, and network interfaces. At the bottom of the page is a diagnostics text area. Click _Update Diagnostics_ to fetch a fresh list of all sub-processes active within the Explorer. This is useful to send to runZero support when a particular Explorer is giving you trouble. ### Internet speed tests {#explorer-speed-tests} Explorers can run internet speed tests on recurring hourly intervals or on demand. The "Internet speed tests" table shows the most recent results, which can help you monitor the network performance of the Explorer's host machine over time. To run one now, click the "Start speed test" button; it runs a single speed test and updates the table with the results. To configure recurring speed tests: 1. From the [**Registered Explorers**](https://console.runzero.com/deploy/explorers/) page, select the Explorer that should run speed tests. 2. In the "Explorer details" card, click the "Edit" button and enter how often the speed test should run, in hours, into the "Speed tests" input. 3. Click **Save** to confirm your configuration and start recurring speed tests at that interval. Speed tests need an up-to-date Explorer. If yours is behind, click the "Update Explorer" button to bring it to the latest version, then configure the tests. To download the results table in CSV, JSON, or JSONL format, click the "Download speed test results" button and pick the file type. Every speed test also generates a `speedtest-completed` event in the runZero audit log with its results. ### Traffic sampling {#explorer-traffic-sampling} You also configure traffic sampling from the Explorer details page. 1. From the [**Registered Explorers**](https://console.runzero.com/deploy/explorers/) page, select the Explorer that should perform traffic sampling. 1. In the traffic sampling card, configure these options: - **Site**: the site that assets discovered through traffic sampling are added to. - **Discovery scope**: the IP addresses or CIDR networks that traffic sampling observes on this Explorer. - **Asset tags** (optional): the tags to apply to assets discovered through traffic sampling. - **Excluded hosts** (optional): the IP addresses or CIDR networks that traffic sampling leaves out of the results. - **Interfaces**: toggle on the interfaces this Explorer should listen on. 1. Click **Save** to store your configuration and start the traffic sampling task. To disable traffic sampling later, return to this page, toggle off the selected interfaces, and save. The traffic sampling tasks stop automatically. ## Explorer groups An Explorer group is a logical grouping of Explorers that distribute scheduled tasks among themselves. With a group, you can schedule many tasks without managing which Explorer each one runs on. Create and manage groups from the [Explorer groups](https://console.runzero.com/deploy/explorer-groups) page. A new group needs a name, description, and site, plus the Explorers you want in it. Every Explorer in the group must be set to the same site as the group, because any Explorer in the group might run a given task; without that rule, assets could be merged into the wrong site. To use a group, select it when configuring a scan or integration task, and the group elects the best-fit Explorer for the task. ## Upgrading npcap On Windows, runZero uses a licensed third-party library called [npcap](https://nmap.org/npcap/) for access to raw network traffic. Other software on the Explorer's host machine may also use ((npcap)), and sometimes it has installed an obsolete version, which can cause reliability problems. runZero flags an obsolete npcap with a warning icon in the list of Explorers. runZero can't yet reliably upgrade npcap for you, though. Because npcap/winpcap tends to be shared between applications, forcing an upgrade from the runZero side can break other services (EDRs, Wireshark, and so on). To upgrade npcap manually: 1. Stop any running runZero services from the Windows Services app. Look for "runZero Network Discovery Explorer". 2. Stop any other running software that uses npcap. 3. Uninstall Winpcap and any npcap installations from the Windows Control Panel. 4. Reboot the computer. runZero restarts automatically and installs the latest npcap. --- docs/binary-verification.md --- title: "Verifying binaries" --- runZero generates the Console, CLI, and Explorer download binaries dynamically. Dynamic binaries make it easy to deploy Explorers that connect back to the right organization, but they complicate independent integrity validation. Windows binaries have a valid Authenticode signature, and every binary also carries a secondary, internal signature. The **runZero Verifier** checks that signature: it confirms whether a given binary contains a valid ((internal signature|binary signature)), in addition to any existing Authenticode signatures. Download the latest ((verifier)) from the bottom of this page, along with the PGP signature file for your architecture. The runZero Verifier is always signed by PGP Key ID [`60EBAAE9AEF08C6D`](https://www.runzero.com/.well-known/security.pub.asc). To validate the signature of the Windows 64-bit Verifier, you need a [GPG](https://gpg4win.org/download.html) client. Then run: ``` C:\> curl -s https://www.runzero.com/.well-known/security.pub.asc | gpg --import C:\> gpg --verify runzero-verifier-3.1.0-windows-amd64.exe.asc ``` A successful validation shows a valid signature by key ID `9B5DAFF7D43349298A3039BD60EBAAE9AEF08C6D`. ``` gpg: Signature made Sun 07 Aug 2022 11:33:15 AM CDT gpg: using RSA key 9B5DAFF7D43349298A3039BD60EBAAE9AEF08C6D gpg: issuer "security@runzero.com" gpg: Good signature from "runZero Security " [unknown] ``` This warning is expected and does not mean the signature has a problem: ``` gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. ``` With the Verifier itself validated, use it to check the signature of any runZero binary: ``` C:\> runzero-verifier-3.1.0-windows-amd64.exe runzero-explorer-3.1.0-windows-amd64.exe runzero-explorer-3.1.0-windows-amd64.exe: VALID SIGNATURE ``` A failed validation shows the error `Invalid or missing signature`, and the verifier exits with status 1. ## Binary downloads {#verifying-binary-downloads} ### Windows {#binary-verification-windows} | Build | PGP sig | SHA hash | |-------|---------|----------| | [runZero Verifier x86 64-bit][windows-amd64-exe]| [pgp signature][windows-amd64-asc]| [sha-256][windows-amd64-sum] | | [runZero Verifier x86 32-bit][windows-386-exe]| [pgp signature][windows-386-asc]| [sha-256][windows-386-sum] | ### Linux {#binary-verification-linux} | Build | PGP sig | SHA hash | |-------|---------|----------| | [runZero Verifier x86 64-bit][linux-amd64-bin]| [pgp signature][linux-amd64-asc]| [sha-256][linux-amd64-sum] | | [runZero Verifier x86 32-bit][linux-386-bin]| [pgp signature][linux-386-asc]| [sha-256][linux-386-sum] | #### Additional Linux builds | Build | PGP sig | SHA hash | |-------|---------|----------| | [runZero Verifier ARM v5 32-bit][linux-arm5-bin]| [pgp signature][linux-arm5-asc]| [sha-256][linux-arm5-sum] | | [runZero Verifier ARM v6 32-bit][linux-arm6-bin]| [pgp signature][linux-arm6-asc]| [sha-256][linux-arm6-sum] | | [runZero Verifier ARM v7 32-bit][linux-arm7-bin]| [pgp signature][linux-arm7-asc]| [sha-256][linux-arm7-sum] | | [runZero Verifier ARM 64-bit (aarch64)][linux-arm64-bin]| [pgp signature][linux-arm64-asc]| [sha-256][linux-arm64-sum] | | [runZero Verifier PPC 64-bit Little Endian][linux-ppc64le-bin]| [pgp signature][linux-ppc64le-asc]| [sha-256][linux-ppc64le-sum] | | [runZero Verifier MIPS 32-bit Big Endian][linux-mips-bin]| [pgp signature][linux-mips-asc]| [sha-256][linux-mips-sum] | | [runZero Verifier MIPS 32-bit Little Endian][linux-mipsle-bin]| [pgp signature][linux-mipsle-asc]| [sha-256][linux-mipsle-sum] | | [runZero Verifier MIPS 64-bit Big Endian][linux-mips64-bin]| [pgp signature][linux-mips64-asc]| [sha-256][linux-mips64-sum] | | [runZero Verifier MIPS 64-bit Little Endian][linux-mips64le-bin]| [pgp signature][linux-mips64le-asc]| [sha-256][linux-mips64le-sum] | | [runZero Verifier S390X][linux-s390x-bin]| [pgp signature][linux-s390x-asc]| [sha-256][linux-s390x-sum] | ### macOS {#binary-verification-macos} | Build | PGP sig | SHA hash | |-------|---------|----------| | [runZero Verifier x86 64-bit][darwin-amd64-bin]| [pgp signature][darwin-amd64-asc]| [sha-256][darwin-amd64-sum] | | [runZero Verifier ARM 64-bit][darwin-arm64-bin]| [pgp signature][darwin-arm64-asc]| [sha-256][darwin-arm64-sum] | ### BSD variants {#binary-verification-bsd-variants} #### FreeBSD | Build | PGP sig | SHA hash | |-------|---------|----------| | [runZero Verifier x86 64-bit][freebsd-amd64-bin]| [pgp signature][freebsd-amd64-asc]| [sha-256][freebsd-amd64-sum] | | [runZero Verifier x86 32-bit][freebsd-386-bin]| [pgp signature][freebsd-386-asc]| [sha-256][freebsd-386-sum] | | [runZero Verifier ARM v6 32-bit][freebsd-arm6-bin]| [pgp signature][freebsd-arm6-asc]| [sha-256][freebsd-arm6-sum] | | [runZero Verifier ARM v7 32-bit][freebsd-arm7-bin]| [pgp signature][freebsd-arm7-asc]| [sha-256][freebsd-arm7-sum] | #### NetBSD | Build | PGP sig | SHA hash | |-------|---------|----------| | [runZero Verifier x86 64-bit][netbsd-amd64-bin]| [pgp signature][netbsd-amd64-asc]| [sha-256][netbsd-amd64-sum] | | [runZero Verifier x86 32-bit][netbsd-386-bin]| [pgp signature][netbsd-386-asc]| [sha-256][netbsd-386-sum] | | [runZero Verifier ARM v5 32-bit][netbsd-arm5-bin]| [pgp signature][netbsd-arm5-asc]| [sha-256][netbsd-arm5-sum] | | [runZero Verifier ARM v6 32-bit][netbsd-arm6-bin]| [pgp signature][netbsd-arm6-asc]| [sha-256][netbsd-arm6-sum] | | [runZero Verifier ARM v7 32-bit][netbsd-arm7-bin]| [pgp signature][netbsd-arm7-asc]| [sha-256][netbsd-arm7-sum] | #### Dragonfly | Build | PGP sig | SHA hash | |-------|---------|----------| | [runZero Verifier 64-bit][dragonfly-amd64-bin]| [pgp signature][dragonfly-amd64-asc]| [sha-256][dragonfly-amd64-sum] | #### OpenBSD | Build | PGP sig | SHA hash | |-------|---------|----------| | [runZero Verifier 64-bit][openbsd-amd64-bin]| [pgp signature][openbsd-amd64-asc]| [sha-256][openbsd-amd64-sum] | [windows-amd64-exe]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-windows-amd64.exe [windows-amd64-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-windows-amd64.exe.asc [windows-amd64-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-windows-amd64.exe.sum [windows-386-exe]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-windows-386.exe [windows-386-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-windows-386.exe.asc [windows-386-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-windows-386.exe.sum [linux-amd64-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-amd64.bin [linux-amd64-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-amd64.bin.asc [linux-amd64-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-amd64.bin.sum [linux-386-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-386.bin [linux-386-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-386.bin.asc [linux-386-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-386.bin.sum [linux-arm5-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-arm5.bin [linux-arm5-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-arm5.bin.asc [linux-arm5-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-arm5.bin.sum [linux-arm6-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-arm6.bin [linux-arm6-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-arm6.bin.asc [linux-arm6-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-arm6.bin.sum [linux-arm7-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-arm7.bin [linux-arm7-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-arm7.bin.asc [linux-arm7-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-arm7.bin.sum [linux-arm64-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-arm64.bin [linux-arm64-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-arm64.bin.asc [linux-arm64-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-arm64.bin.sum [linux-ppc64le-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-ppc64le.bin [linux-ppc64le-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-ppc64le.bin.asc [linux-ppc64le-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-ppc64le.bin.sum [linux-mips-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-mips.bin [linux-mips-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-mips.bin.asc [linux-mips-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-mips.bin.sum [linux-mipsle-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-mipsle.bin [linux-mipsle-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-mipsle.bin.asc [linux-mipsle-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-mipsle.bin.sum [linux-mips64-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-mips64.bin [linux-mips64-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-mips64.bin.asc [linux-mips64-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-mips64.bin.sum [linux-mips64le-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-mips64le.bin [linux-mips64le-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-mips64le.bin.asc [linux-mips64le-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-mips64le.bin.sum [linux-s390x-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-s390x.bin [linux-s390x-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-s390x.bin.asc [linux-s390x-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-linux-s390x.bin.sum [darwin-amd64-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-darwin-amd64.bin [darwin-amd64-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-darwin-amd64.bin.asc [darwin-amd64-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-darwin-amd64.bin.sum [darwin-arm64-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-darwin-arm64.bin [darwin-arm64-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-darwin-arm64.bin.asc [darwin-arm64-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-darwin-arm64.bin.sum [freebsd-amd64-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-freebsd-amd64.bin [freebsd-amd64-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-freebsd-amd64.bin.asc [freebsd-amd64-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-freebsd-amd64.bin.sum [freebsd-386-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-freebsd-386.bin [freebsd-386-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-freebsd-386.bin.asc [freebsd-386-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-freebsd-386.bin.sum [freebsd-arm6-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-freebsd-arm6.bin [freebsd-arm6-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-freebsd-arm6.bin.asc [freebsd-arm6-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-freebsd-arm6.bin.sum [freebsd-arm7-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-freebsd-arm7.bin [freebsd-arm7-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-freebsd-arm7.bin.asc [freebsd-arm7-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-freebsd-arm7.bin.sum [netbsd-amd64-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-netbsd-amd64.bin [netbsd-amd64-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-netbsd-amd64.bin.asc [netbsd-amd64-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-netbsd-amd64.bin.sum [netbsd-386-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-netbsd-386.bin [netbsd-386-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-netbsd-386.bin.asc [netbsd-386-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-netbsd-386.bin.sum [netbsd-arm5-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-netbsd-arm5.bin [netbsd-arm5-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-netbsd-arm5.bin.asc [netbsd-arm5-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-netbsd-arm5.bin.sum [netbsd-arm6-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-netbsd-arm6.bin [netbsd-arm6-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-netbsd-arm6.bin.asc [netbsd-arm6-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-netbsd-arm6.bin.sum [netbsd-arm7-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-netbsd-arm7.bin [netbsd-arm7-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-netbsd-arm7.bin.asc [netbsd-arm7-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-netbsd-arm7.bin.sum [dragonfly-amd64-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-dragonfly-amd64.bin [dragonfly-amd64-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-dragonfly-amd64.bin.asc [dragonfly-amd64-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-dragonfly-amd64.bin.sum [openbsd-amd64-bin]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-openbsd-amd64.bin [openbsd-amd64-asc]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-openbsd-amd64.bin.asc [openbsd-amd64-sum]: https://public.runzero.com/builds/verifier/runzero-verifier-3.1.0-openbsd-amd64.bin.sum --- docs/deployment-plan.md --- title: "Full-scale deployment" --- Start with the standard ((deployment plan)) and add tasks as you need them. It's broken into six stages that help you plan your requirements, execute the deployment, and optimize your environment around runZero's best practices. ## 1. Identify key success outcomes **Total attack surface visibility** - [Active discovery on all internal assets](https://help.runzero.com/docs/use-case-library/#use-case-library-active-discovery) - [Active discovery on all externally facing assets](https://help.runzero.com/docs/use-case-library/#use-case-library-active-external) - [Passive discovery and enrichment in key network segments](https://help.runzero.com/docs/use-case-library/#use-case-library-passive-discovery) - [Integrate with all cloud providers and other relevant data sources](https://help.runzero.com/docs/use-case-library/#use-case-library-cloud-integration) **Additional resources** - [Overview](https://help.runzero.com/docs/use-case-library/#use-case-library-visibility) - [RFC1918 coverage playbook](https://help.runzero.com/docs/playbooks/achieving-rfc1918-coverage/) - [Scanning OT playbook](https://help.runzero.com/docs/playbooks/scanning-ot-networks/) **Full-spectrum exposure detection** - [Rapid Response findings and asset-level pivoting](https://help.runzero.com/docs/use-case-library/#use-case-library-rapid-response-pivot) - [Network misconfiguration findings and control coverage gaps](https://help.runzero.com/docs/use-case-library/#use-case-library-network-gaps) - [Vulnerability enrichment and inside-out findings](https://help.runzero.com/docs/use-case-library/#use-case-library-enriched-findings) **Additional resources** - [Overview](https://help.runzero.com/docs/use-case-library/#use-case-library-full-spectrum) - [Rapid Response blog](https://www.runzero.com/blog/rapid-response/) - [Gaps in EDR playbook](https://help.runzero.com/docs/playbooks/finding-gaps-in-endpoint-protection/) - [Gaps in VM playbook](https://help.runzero.com/docs/playbooks/finding-gaps-in-vuln-scanning/) **Risk prioritization and insights** - [Custom dashboards](https://help.runzero.com/docs/use-case-library/#use-case-library-custom-dashboards) - [Rules and alerts](https://help.runzero.com/docs/use-case-library/#use-case-library-rules-alerts) - [Setting asset criticality and ownership](https://help.runzero.com/docs/use-case-library/#use-case-library-asset-context) **Additional resources** - [Overview](https://help.runzero.com/docs/use-case-library/#use-case-library-risk-insights) - [Custom dashboards documentation](https://help.runzero.com/docs/dashboard/) - [Alerting playbook](https://help.runzero.com/docs/playbooks/alerting-on-queries/) **Compliance, reporting, and KPIs** - [Comply with asset inventory and discovery requirements of relevant frameworks](https://help.runzero.com/docs/use-case-library/#use-case-library-asset-inventory) - [Comply with secure configuration requirements of relevant frameworks](https://help.runzero.com/docs/use-case-library/#use-case-library-secure-config) - [Comply with malware protection requirements of relevant frameworks](https://help.runzero.com/docs/use-case-library/#use-case-library-malware-protection) - [Comply with vulnerability management requirements of relevant frameworks](https://help.runzero.com/docs/use-case-library/#use-case-library-vuln-management) **Additional resources** - [Overview](https://help.runzero.com/docs/use-case-library/#use-case-library-full-spectrum) - [Compliance alignment documentation](https://help.runzero.com/docs/compliance/overview/) - [NYDFS dashboard playbook](https://help.runzero.com/docs/playbooks/nydfs-compliance/) ## 2. ((Planning|planning)) your deployment These first tasks help your team identify target results, get ahead of blockers, and avoid misconfiguring runZero. ### Tasks - Identify the organizational stakeholders - Administrators (who will set up runZero) - Integration owners (who will provide credentials for each integration) - All users take the [runZero 101 training](https://www.runzero.com/docs/training/) - Administrators take the [runZero 201 training](https://www.runzero.com/docs/training-201) - Decide whether you need to self-host ([docs](self-hosting.md) | [video](https://www.loom.com/share/965ecdeb34a6431f9c9f48104d0a2753)) - Decide whether users will sign in with SSO or local accounts. - If SSO, start any internal process needed to get the [runZero app created](https://help.runzero.com/docs/implementing-sso/) in your provider. - Identify known networks and subnets for discovery, plus any other inventory sources ([docs](sample-networks.md) | [video](https://www.loom.com/share/b218e5b64d424a72b5973ffe8c582b19)) - If you have them, prepare [CSV files](https://help.runzero.com/docs/sites/#importing-subnets) to bulk import subnets. - Configure firewalls to let the Explorer IPs scan the entire network on all ports. - Define organizations based on your RBAC requirements, including organization-level data retention and expiration thresholds ([docs](organizations.md) | [video](https://www.loom.com/share/8f28a680af2e4c47973a7082869036af)). - Decide where to deploy [Explorers](installing-an-explorer.md). - [Explorer Groups](https://help.runzero.com/docs/managing-explorers/#explorer-groups) let you combine Explorers logically to simplify task scheduling. - Identify the inbound integrations you need. Prioritize connectors for platforms such as EDR and CSPM to get full vulnerability and misconfiguration coverage. - Get the team familiar with runZero search so they can plan initial asset searches and reporting requirements. ## 3. Initial configuration {#standard-configuration} Once your plan is in place, configure runZero and run your initial scans. These tasks are in priority order, so working through them in sequence saves you from reconfiguring later. ### Tasks - Deploy the self-hosted console, if you need one ([docs](self-hosting.md) | [video](https://www.loom.com/share/965ecdeb34a6431f9c9f48104d0a2753)) - Set up [organizations](organizations.md) and configure expiration thresholds for stale data, integrations, and vulnerabilities. - Set up [sites](sites.md) and [define subnets](https://app.arcade.software/share/ta4TUUcPz5901KJ6uy1O) for discovery ([video](https://www.loom.com/share/f73750672f534cab9426f18596a4bb3a)) - **Sites do not necessarily correspond to physical locations within runZero.** Sites represent distinct networks, which may have overlapping IP space. - This also includes public IP space and domains for external scanning. - Install [Explorers](installing-an-explorer.md) ([video](https://www.loom.com/share/32fbc1877eb049bbaada7a0f77a72c6f)) - If planned, configure Explorer Groups to organize scanners logically and simplify task distribution. - Define private network addresses - If you use public IP ranges internally, set custom private IP ranges in [Account Settings](https://console.runzero.com/account). - Run your initial scan ([docs](running-initial-scans.md) | [video](https://www.loom.com/share/b4138aad97714b789ab7dc5d3442a65b)) - [Configure credentials](scanning-credentials.md) and inbound [integration](integrations-inbound.md) connections - [Cloud inventory sources](integrations-inbound.md#cloud-and-virtualization) - [Endpoint protection](integrations-inbound.md#endpoint-protection) - [Vulnerability management](integrations-inbound.md#integrations-inbound-vm) - [Directory services](integrations-inbound.md#asset-and-identity-management) - [Custom integrations](https://github.com/runZeroInc/runzero-custom-integrations/tree/main?tab=readme-ov-file#runzero-custom-integrations) ## 4. Review assets and exposures With initial discovery done and integrations connected, review the results. Paired with runZero's reporting features, that review helps you expand scan scope, prioritize risk, understand your network better, and identify exposures such as misconfigurations and actively exploited vulnerabilities. ### Tasks - Review results and exposure overview - Review the **Risk Management Dashboard** (the new default dashboard) for a centralized view of risk, with insights, trend data, and asset breakdowns ([docs](dashboard.md)). - Check the **Latest Rapid Response alerts** widget, a carousel of the five most recent Rapid Response posts that shows the matches in your inventory ([docs](em-rapid-response.md)). - Create and share multiple custom dashboards for different use cases or teams (e.g., Compliance or Vulnerability Management) ([docs](dashboard.md)). - Review the Asset Inventory ([docs](using-the-inventory.md)). It correlates and merges assets across all data sources (scan, passive, and integrations) into a single source of truth. - Review the Asset Detail View, which consolidates each asset's attributes, vulnerabilities, and software ([docs](understanding-assets.md)). - Identify and prioritize exposures with Findings - Review the **Findings** section. It groups vulnerabilities and misconfigurations into prioritized risk categories (e.g., **Internet Exposure**, **Open Access**, **End-of-Life**, **Certificates**, **Vulnerability**, and **Best Practice Violations**) ([docs](understanding-findings.md)). - Dig deeper with queries - Find risky assets with the Queries library ([docs](querying-your-data.md)): - Learn the query syntax ([docs](search-query-syntax.md)). - Apply vulnerability records to queries (e.g., for novel internal findings) ([docs](search-query-vulnerabilities.md)). - Filter assets and services by their **Finding Code** (e.g., `finding_code:rz-finding-internet-exposed-database`) to target remediation ([docs](search-query-findings.md)). - Search for assets exposed to **Known Exploited Vulnerabilities (KEV)** lists (CISA KEV, VulnCheck) and use **EPSS scores** to set priority. - Track long-term initiatives - Use Goals to track them ([docs](goal-tracking.md)). - Use **Baseline Goals** to measure progress against specific inventory subsets (e.g., a goal to remediate all expired certificates or critical vulnerabilities in the `os_eol: - Confirm that default credential and vulnerability checks are enabled on all scans. - The [Templates](em-templates.md) page lists current coverage. - Configure [asset ownership](managing-ownership.md) to speed up investigations. ## 6. Automation Now that your scans are optimized and your data analyzed, you can automate the routine work: recurring scans, automated queries, and alerts for the team. ### Tasks - Schedule recurring scan [tasks](managing-tasks.md) and any inbound [integration tasks](integrations-inbound.md) - [Automate queries](automating-queries.md) and [configure alerts](rules-engine.md) to match your use cases ([video](https://www.loom.com/share/ab137f83d8384ea79f8c3c49f50eb0f0)) - Use rules to automate tagging and asset criticality ([walkthrough](https://help.runzero.com/docs/use-case-library/#use-case-library-asset-context)) - Set up alerts for [system events](https://help.runzero.com/docs/playbooks/alerting-on-system-events/) such as an Explorer going offline or a scan failing. - Configure outbound [integration](integrations-outbound.md) connections to enrich other IT and security tools - [CMDB](integrations-outbound.md#it-service-management) - [SIEM](integrations-outbound.md#detection-and-investigation) - [SOAR](integrations-outbound.md#detection-and-investigation) - If runZero currently has no standard outbound integration for a tool you use, the [API documentation](leveraging-the-api.md) explains how to export runZero data. ## 7. Rollout As the deployment wraps up, confirm that every user has completed training and that everyone who would get value from runZero has access to the platform. ### Tasks - [Add users](managing-your-team.md) - Confirm all users are trained on runZero - Training and core documentation - [101 user training](https://www.runzero.com/docs/training/) - [201 administrator training](https://www.runzero.com/docs/training-201) - [Use case library](https://help.runzero.com/docs/use-case-library/) - [Search](search-query-syntax.md) - [Reporting](reviewing-results.md#reports) - [Exporting assets](exporting-asset-data.md) - [runZero playbooks](https://www.runzero.com/docs/playbooks/playbooks/) - Identify other teams with an interest in the asset inventory data, such as: - [Enterprise security team](https://www.loom.com/share/8ae585b714494964ab008d2df21386d4) - Security teams typically use runZero to build a complete asset inventory, find gaps in their vulnerability scanning and endpoint protection, and discover potential vulnerabilities. - [IT Operations team](https://www.loom.com/share/741bcb1ba9ba40ba8d67d5335cfcff2c) - IT Operations teams typically use runZero to build a complete inventory of all assets across on-premises and cloud infrastructure, then turn to search and reporting to identify misconfigurations and report on those assets. - [Penetration testing team](https://www.loom.com/share/7f309576b7fa445b96a5e378bbd0427f) - Penetration testing teams typically use runZero to run internal and external reconnaissance, identify vulnerable targets, and find paths to those targets with search and reporting. ## Additional resources {#deployment-plan-resources} After deployment and training, these resources can answer the questions you still have and help you get more out of runZero: - [runZero playbooks](https://www.runzero.com/docs/playbooks/playbooks/) - [Use case library](https://help.runzero.com/docs/use-case-library/) - [API documentation](leveraging-the-api.md) - [Glossary](glossary.md) - [runZero FAQs](troubleshooting.md) ## Getting help {#deployment-plan-getting-help} If you need help at any point in the process, [book a session with a runZero Customer Success Engineer](https://scheduler.zoom.us/d/z8gaq_36/runzero-customer-success-engineer). --- docs/sample-networks.md --- title: "Types of networks" --- These ((network examples)) give you a starting point for planning your runZero implementation. Each one describes a standard network type and a potential configuration for it. Every network has its own nuance, so expect your implementation to differ in places. Discovery runs through Explorers and scanners. By default, you deploy one Explorer to run discovery on as much of the network as possible and, if needed, add more for areas the primary Explorer cannot reach. You can also use a scanner for offline environments with no internet connectivity. Once you've matched your network to one of these models, follow the standard [deployment plan](docs/deployment-plan.md) to roll it out. ![runZero deployment diagram](img/deployment-diagram.svg) ## SaaS company ### Network characteristics - Flat on-premises network for offices - Multi-cloud environment - Hybrid workforce, remote and in office ### Sample runZero implementation - Explorers - Corporate network Explorer with access to all on-premises networks and private connectivity to cloud services - One Explorer per VPC that isn't routable from on-premises networks - Organizations - Single organization - Sites - Primary corporate site - One site per VPC ## Large corporation ### Network characteristics - Corporate offices with many connected branches - Multiple M&A transactions in flight at any time, onboarding new offices every year - Multiple data centers for internal and externally facing applications ### Sample runZero implementation - Explorers - Corporate network Explorer that can reach all on-premises networks - One Explorer per site with low bandwidth or legacy firewalls, proxies, etc. - One Explorer per M&A transaction to assess new risks and keep data segmented - Organizations - Corporate assets - One project per M&A transaction until the deal closes and the assets are merged - Sites - Primary corporate site - Possibly separate sites if branch offices have overlapping IP space ## Retail company ### Network characteristics - Flat on-premises network for corporate offices - Data centers - Hundreds of retail locations ### Sample runZero implementation - Explorers - Corporate network Explorer that can reach all on-premises networks - One Explorer per retail location with low bandwidth or legacy firewalls, proxies, etc. - One Explorer per data center - Organizations - Single organization - Sites - Primary corporate site - One per retail site if it has overlapping IP space ## Manufacturing company ### Network characteristics - Flat on-premises network for corporate offices - OT environment completely disconnected from the internet - Field service agents VPN in from varying locations ### Sample runZero implementation - Explorers - Corporate network Explorer that can reach all on-premises networks - Scanners - Manufacturing plant with no connection to the corporate networks - Organizations - Single organization - Sites - Primary corporate site - One per OT site if it has overlapping IP space ## Telecommunications company ### Network characteristics - Flat on-premises network for corporate offices - Segmented data centers - IoT devices scattered across the country - Field service agents VPN in from varying locations ### Sample runZero implementation - Explorers - Corporate network Explorer that can reach all on-premises networks - One for each segmented lab - One for each data center - Organizations - Corporate network - Production network - One per lab - Sites - One primary site per organization ## Managed security service provider ### Network characteristics - Many customers spinning up and down across engagements - Mostly small, flat networks - Some customers with sensitive OT environments ### Sample runZero implementation - Explorers - One per customer - Scanners - Only for customers with offline networks - Organizations - One project per customer to start - Promote the project to an organization for long-term use - Sites - One per customer, or more if a customer has overlapping IP space ## Academic organization ### Network characteristics - Many buildings and networks spread around the campus with varying connectivity - Multiple data centers managed by different departments - Multiple research and development labs disconnected from the rest of the network and from the internet ### Sample runZero implementation - Explorers - Main network Explorer that can reach all on-premises networks - One Explorer per building with low bandwidth or legacy firewalls, proxies, etc. - One Explorer per data center - Scanners - One for each disconnected lab - Organizations - Main assets - One for each lab - Sites - One primary site per organization, or more if buildings have overlapping IP space --- docs/use-case-library.md --- title: Use case library --- ## Appendix - [Total attack surface visibility](#use-case-library-visibility) - [Active discovery on all internal assets](#use-case-library-active-discovery) - [Active discovery on all externally facing assets](#use-case-library-active-external) - [Passive discovery and enrichment in key network segments](#use-case-library-passive-discovery) - [Integrate with all cloud providers and other relevant data sources](#use-case-library-cloud-integration) - [Full-spectrum exposure detection](#use-case-library-full-spectrum) - [Rapid Response findings and asset-level pivoting](#use-case-library-rapid-response-pivot) - [Network misconfiguration findings and control coverage gaps](#use-case-library-network-gaps) - [Vulnerability enrichment and inside-out findings](#use-case-library-enriched-findings) - [Risk prioritization and insights](#use-case-library-risk-insights) - [Custom dashboards](#use-case-library-custom-dashboards) - [Rules and alerts](#use-case-library-rules-alerts) - [Setting asset criticality and ownership](#use-case-library-asset-context) - [Compliance, reporting, and KPIs](#use-case-library-compliance) - [Comply with asset inventory and discovery requirements of relevant frameworks](#use-case-library-asset-inventory) - [Comply with secure configuration requirements of relevant frameworks](#use-case-library-secure-config) - [Comply with malware protection requirements of relevant frameworks](#use-case-library-malware-protection) - [Comply with vulnerability management requirements of relevant frameworks](#use-case-library-vuln-management) ## Total attack surface visibility {#use-case-library-visibility} Managing your organization's attack surface starts with seeing all of it: internal and external assets, cloud and security tooling integrations, and passive discovery. Together they give you full oversight and put you ahead of threats. ### Active discovery on all internal assets {#use-case-library-active-discovery} Identify every internal asset within your defined network boundaries, and keep the inventory current by actively monitoring the networks you manage. #### Steps: 1. Define the networks of interest: managed networks and known subnets. 2. Configure Organizations and Sites. 3. Install Explorers. 4. Configure scans. 5. Review the inventory to verify connectivity and confirm fingerprinting looks right. ### Active discovery on all externally facing assets {#use-case-library-active-external} See the external assets that make up your public-facing footprint, such as domains and IP ranges, so you can address vulnerabilities in your external attack surface before anyone exploits them. Monitoring these assets surfaces vulnerabilities and misconfigurations early. Continuous scanning and updates keep your external inventory current and those assets secure. #### Steps: 1. Define external ranges, domains, and subdomains. 2. Add the external ranges, domains, subdomains, and ASN4 numbers to the scan scope. 3. Run the scan using runZero hosted zones. 4. Review the inventory to verify the findings. ### Passive discovery and enrichment in key network segments {#use-case-library-passive-discovery} Use network TAPs or SPAN ports to identify assets and gather insight without active scanning. You get continuous monitoring with minimal disruption to network operations. Passive discovery complements active methods: it observes traffic patterns and enriches asset data without interrupting critical operations, so it's a good fit for sensitive network segments. #### Steps: 1. Set up a network TAP or SPAN port, or use an existing one. 2. Put an Explorer on the network TAP or on a host attached to the SPAN port. 3. Configure the Explorer to listen on the relevant interfaces, set the scan scope, and leave it running. ### Integrate with all cloud providers and other relevant data sources {#use-case-library-cloud-integration} Connect cloud providers and other data sources for complete visibility across hybrid environments, and simplify asset management by unifying data in one platform. Automated updates from connected sources give you real-time visibility into assets across platforms, cut manual effort, and keep data consistent. #### Steps: 1. Configure integrations with EDR, MDM, directory services, cloud solutions, and vulnerability management platforms. 2. Make sure each on-prem solution has an Explorer to run through; cloud solutions don't need one. ## Full-spectrum exposure detection {#use-case-library-full-spectrum} Correlate Rapid Response insights, asset-level context, control coverage gaps, and enriched vulnerability data for full visibility across your environment. Layering these sources speeds up detection, sharpens prioritization, and focuses your response. ### Rapid Response findings and asset-level pivoting {#use-case-library-rapid-response-pivot} Investigate Rapid Response findings by moving from high-level dashboards to individual assets. The workflow brings together threat intelligence, exposure history, and asset impact so you can act fast. #### Steps: 1. Review the [Risk Dashboard](https://console.runzero.com/dashboards/6151aaec-d99b-45f4-8279-8333f1dfaff1). 2. Read the [Rapid Response](https://www.runzero.com/blog/rapid-response/) blog for past examples. 3. Open the [Rapid Response queries](https://console.runzero.com/queries?search=category%3A%22Rapid%20Response%22) to examine historical trends. ### Network misconfiguration findings and control coverage gaps {#use-case-library-network-gaps} Use targeted queries and contextual inventory views to find network misconfigurations and security control gaps, such as missing EDR or VM coverage. You can then prioritize risk reduction around the real gaps in your defenses. #### Steps: 1. Review [sample network misconfiguration](https://console.runzero.com/findings?search=name%3Aauth) findings. 2. View [all assets with an associated finding](https://console.runzero.com/inventory?search=finding%3At). 3. View [assets missing EDR coverage](https://console.runzero.com/inventory?search=finding%3At%20not%20%28source%3Acrowdstrike%20or%20source%3Asentinelone%20or%20source%3Ams365defender%29%20%28type%3Aserver%20or%20type%3Adesktop%20or%20type%3Alaptop%29). ### Vulnerability enrichment and inside-out findings {#use-case-library-enriched-findings} Add context to your vulnerability management with KEV status, exposure points, and related asset attributes. Combine these filters with the [Network Map](network-map.md) to trace exploitable attack paths and rank choke points. #### Steps: 1. Review [KEV (Known Exploited Vulnerabilities)](https://console.runzero.com/findings?search=name%3Aknown) findings. 2. View [assets with a finding and vulnerability on the KEV](https://console.runzero.com/inventory?search=finding%3At%20kev%3At%20has_public_v4%3At). 3. Open the [Network Map](https://console.runzero.com/reports/network/map?filter=finding%3At) filtered to assets with an associated finding to see the pivot points and choke points among them. ## Risk prioritization and insights {#use-case-library-risk-insights} Tie dashboards, alerts, and asset context to risk so the issues that matter most surface first. Customizable workflows and real-time metrics improve your decisions and cut noise. ### Custom dashboards for dynamic visibility {#use-case-library-custom-dashboards} Build dashboards around your environment and objectives. Combine stock widgets, saved queries, and custom metrics to track what matters and surface trends. #### Steps: 1. Go to [the runZero home page](https://console.runzero.com/) to create a new dashboard. 2. Click Widgets to add your selection. ### Rules and alerts for automated monitoring {#use-case-library-rules-alerts} Turn searches into alerts with rules that notify your team of meaningful changes. Templates and channels make alerts quicker to create and deliver. #### Steps: 1. Create a [channel](https://console.runzero.com/alerts/channels/create) or destination for your notifications. 2. Create a [template](https://console.runzero.com/alerts/templates/create) for your payload. - See the sample [alert templates](docs/creating-alert-templates.md). 3. Go to [create rule](https://console.runzero.com/alerts/rules). 4. Finalize the logic, review, and save. ### Asset criticality, ownership, and search filters {#use-case-library-asset-context} Tag assets with criticality and ownership metadata to sharpen search results and response. These values also drive automated rule actions. #### Steps: 1. Search for specific assets in the inventory view. 2. Update asset criticality or ownership directly from the inventory. 3. Use a rule with the _Modify assets_ Action to update the values you want. ## Compliance, reporting, and KPIs {#use-case-library-compliance} Compliance standards call for accurate asset tracking, secure configurations, and effective vulnerability management. runZero simplifies all three to help you meet regulatory demands. ### Comply with asset inventory and discovery requirements of relevant frameworks {#use-case-library-asset-inventory} Meet industry standards with accurate, complete asset discovery, and demonstrate compliance through detailed inventory and reporting. A complete inventory helps you satisfy regulatory audits. Combining active, passive, and integration-based discovery leaves no asset overlooked. #### Steps: 1. Review documentation mapping runZero to compliance frameworks. 2. Review the active, passive, and integration options. 3. Use the task history to see when scans or integrations ran. 4. Display the inventory for real-time compliance visibility. ### Comply with secure configuration requirements of relevant frameworks {#use-case-library-secure-config} Find and fix insecure protocols and configurations to meet secure configuration standards and stay in line with regulatory requirements. Secure configurations cut the risk from legacy protocols and insecure settings. Automation speeds up identifying and remediating issues. #### Steps: 1. Review documentation mapping runZero to compliance frameworks. 2. Search for insecure protocols such as FTP, TFTP, Telnet, and HTTP. 3. Save the searches for tracking and add them to a dashboard for reporting. ### Comply with malware protection requirements of relevant frameworks {#use-case-library-malware-protection} Integrate your Endpoint Detection and Response (EDR) solutions to meet malware protection standards, then find and close protection gaps. Effective malware protection depends on real-time monitoring and quick response. With the range of integration options, you can detect and resolve gaps faster. #### Steps: 1. Review documentation mapping runZero to compliance frameworks. 2. Review EDR integrations and options for custom integration. 3. Search for gaps in EDR and alert on newly found gaps. ### Comply with vulnerability management requirements of relevant frameworks {#use-case-library-vuln-management} Use integrations and the inventory to meet vulnerability management requirements and track vulnerabilities until they're fixed. Meeting those requirements takes continuous monitoring, prioritization, and remediation. Automation gives you the insight to keep each step moving. #### Steps: 1. Review documentation mapping runZero to compliance frameworks. 2. Search for gaps in vulnerability scanning. 3. Use the vulnerability inventory with KEV and EPSS enrichment for deeper insight. --- docs/training.md --- title: runZero 101 training --- This training introduces the core components of the runZero platform: how runZero gathers and structures asset data, how to explore your environment, and how to start identifying risks and trends. Each section includes a walkthrough and links to deeper documentation. [runZero 201](training-201.md) covers advanced workflows, automation, and deployment planning. ## Platform overview {#platform-overview} Before you work with inventories, findings, reporting views, or dashboards, get to know the core concepts that shape how runZero organizes and processes data. They're the mental model for everything else in the console. This section gives short introductions to: - How runZero structures data using **Organizations** and **Sites** - How runZero collects and updates data using **Tasks** - How runZero builds unified asset records using **Sources** and merging behavior ### Organizations and Sites {#platform-orgs-sites} runZero uses two levels of structure to organize data and control visibility. #### Organizations {#platform-organizations} Organizations define data segmentation and RBAC boundaries. Each Organization maintains its own: - Assets - Findings - Dashboards - Queries - Integrations - Tasks Use Organizations when you need clear separation between environments (e.g., subsidiaries, departments, or multi-tenant structures). #### Sites {#platform-sites} Sites represent network structure. A Site corresponds to one or more IP ranges and is used for: - Assigning assets to a network location - Generating scan scopes - Structuring reporting - Improving segmentation in queries and dashboards Sites do not define access control. They provide context for how assets are grouped and discovered. **Learn more:** - [Organizations](organizations.md) - [Sites](sites.md) ### Tasks {#platform-tasks} Tasks are how data enters runZero. A Task performs every collection action in the platform. #### Types of Tasks {#platform-task-types} - **Scan tasks** (active discovery) - **Integration tasks** (data pulled from external systems) - **Monitor tasks** (passive discovery) Each Task includes: - Status (success, partial, failure) - Start and end timestamps - Asset and service counts - Link to the associated Explorer (if applicable) Task results drive inventory freshness, dashboard updates, findings, and search counts. If data looks out of date, check the Task history first. **Learn more:** - [Managing tasks](managing-tasks.md) - [Discovering assets](discovering-assets.md) ### Sources and merging {#platform-sources-merging} runZero unifies asset data from multiple origins: scans, integrations, and passive monitoring. An asset may carry attributes from several **sources**, and runZero automatically merges them into a single asset record. #### Key concepts {#platform-sources-key-concepts} - Source indicators show where an attribute came from - A deterministic merge strategy resolves conflicting values - Merging reduces duplicates and consolidates metadata - `source:` filters let you pivot quickly by origin system - Asset details show a breakdown of attributes by source This merging lets runZero act as a single source of truth across your IT, OT, cloud, and security stack. **Learn more:** - [Understanding assets](understanding-assets.md) - [Fingerprinting and merging](fingerprinting.md) ## Inventory views {#inventory-views} The primary inventory views in runZero are your foundation for exploring the environment. This section shows how to navigate and interpret them. ### Asset Inventory {#inventory-asset} The Asset Inventory shows every asset known to runZero across all sources. Common tasks include: - Filtering by IP, hostname, OS, software, or exposure - Identifying device types across IT, OT, IoT, and cloud - Reviewing asset context such as criticality, ownership, tags, and findings - Exporting subsets of data for analysis or reporting **Learn more:** - [Using the inventory](using-the-inventory.md) ### Asset detail {#inventory-asset-detail} The Asset detail page shows a complete, merged view of all metadata for an asset. It includes: - Attributes from each source - Services - Vulnerabilities and findings - Certificates - Ownership and criticality - Historical changes It's the primary investigative view when you troubleshoot or review an asset. **Learn more:** - [Understanding assets](understanding-assets.md) - [Managing ownership](managing-ownership.md) - [Asset risk and criticality](asset-risk-and-criticality.md) ### Service Inventory {#inventory-service} The Service Inventory lists every network service discovered through scanning or imported through integrations. It helps you identify: - Exposed services - Protocol-level misconfigurations - Public-facing services - Administrative or remote access interfaces **Learn more:** - [Service search examples](search-query-services.md) ### Vulnerability and software inventories {#inventory-vuln-sw} These views consolidate vulnerability and software metadata across all sources. #### Vulnerability Inventory {#inventory-vuln} The Vulnerability Inventory shows vulnerabilities identified through: - Native findings - Enriched vulnerability data from integrations - KEV correlation (CISA KEV and VulnCheck) #### Software Inventory {#inventory-software} The Software Inventory shows discovered software packages and versions, which you can use for: - License tracking - Version drift analysis - Identifying outdated or insecure software **Learn more:** - [Understanding findings](understanding-findings.md) - [Vulnerability search examples](search-query-vulnerabilities.md) ## Findings {#findings-overview} Findings identify exposures, misconfigurations, vulnerabilities, and security control gaps. This section introduces how Findings work and how to explore them. ### Findings overview {#findings-main} Findings combine several signals (including scan data, integration data, KEV enrichment, and novel runZero detections) into a high-level view of risk across your environment. Common categories include: - Vulnerabilities - Administrative access exposures - Network misconfigurations - Missing security controls (e.g., EDR, MDM, VM) - runZero novel findings (e.g., Widely Shared Private Keys) **Learn more:** - [Understanding findings](understanding-findings.md) ### Findings detail {#findings-detail} The Findings Detail view shows: - Description and severity - Evidence from affected assets - Remediation guidance - Links to pivot into Asset Inventory, Service Inventory, or Vulnerabilities ### Vulnerability detail {#findings-vuln-detail} The Vulnerability Detail page merges CVE data from all sources and includes: - CVSS scores and vectors - CISA KEV and VulnCheck KEV metadata - Affected assets and services - Consolidated descriptions and references ## Reporting {#reporting-overview} Reporting views visualize your network layout, segment boundaries, subnet coverage, and topology. ### Switch Topology and Unmapped MACs reports {#reporting-topology} Switch Topology shows: - Switches and physical connections - Link relationships - Interface details The Unmapped MACs report shows assets that are communicating on the network but not mapped to a switch port. **Learn more:** - [Switch topology report](switch-topology-report.md) ### Subnet Utilization and RFC1918 Coverage reports {#reporting-rfc1918} These reports help you validate scanning completeness and asset density across subnets: - Percentage of IP space scanned - Allocated vs. active subnets - Hinted assets discovered through passive observations **Learn more:** - [Coverage reports](coverage-reports.md) ### Network Bridges and Asset Route Pathing reports {#reporting-bridges} These views help you understand blast radius and segmentation: - Network Bridges visualizes internal and external network connections - Route Pathing shows the traversal paths between assets **Learn more:** - [Understanding network segmentation](understanding-network-segmentation.md) - [Asset route pathing report](asset-route-pathing-report.md) ### Custom asset and service attribute reports {#reporting-custom} These reports let you analyze: - Common OS families - Hardware vendor distribution - Service protocols - Certificate attributes - Custom attributes from integrations ## Search, Goals, and custom dashboards {#search-goals-dashboards} Search powers nearly every workflow in runZero. Goals and dashboards track trends over time and visualize the results that matter to you. ### Query Library {#search-query-library} The Query Library stores saved searches for: - Rapid Response - Gaps in controls - Common exposure profiles - Custom organization searches Saved searches power: - Dashboards - Goals - Alerts - Automation via rules **Learn more:** - [Querying your data](querying-your-data.md) - [Search syntax](search-query-syntax.md) ### Baseline Goals {#search-goals} Goals measure progress toward internal or external requirements. Examples include: - Reducing assets missing EDR - Lowering the count of public-facing services - Tracking vulnerability remediation progress **Learn more:** - [Goal tracking](goal-tracking.md) ### Custom dashboards {#dashboards} Dashboards consolidate searches and metrics. You can: - Build dashboards per team or use case - Add widgets from stock or custom searches - Share dashboards across Organizations - Recalculate on demand **Learn more:** - [Dashboard documentation](dashboard.md) ### Custom dashboard widgets {#dashboard-widgets} Widgets display data as: - Counts - Trend lines - Goal overviews You can create a widget from any saved search. ## Next steps {#training-next-steps} After this 101 training, continue with: - [runZero 201 training](training-201.md) builds on the foundations here with deeper coverage of deployment planning, Explorer strategies, advanced search techniques, automation, and workflow optimization. It suits admins and operators who maintain runZero at scale. - [Use case library](use-case-library.md) is a collection of short, outcome-focused guides to solving specific problems with runZero. Each use case includes example searches, Arcades, and recommended workflows for applying the platform to real scenarios. - [Playbooks](playbooks/playbooks.md) turn best practices into step-by-step procedures for repeatable security and IT tasks, such as achieving full RFC1918 coverage, finding gaps in endpoint protection, or preparing for compliance audits. --- docs/training-201.md --- title: runZero 201 training --- ## Prerequisites Before you start this ((training)), we have two recommendations: 1. Superuser access to a runZero account. This can be a corporate account with a paid license, or a community account created with a personal email, which makes you the superuser. 2. Completion of the [runZero 101 training](https://help.runzero.com/docs/training/), so you have the context behind the administrative actions this training covers. ### Introduction to the training This video briefly introduces what you will learn in this training. ## Self-hosting {#201selfhosting} You can [self-host](self-hosting.md) runZero. The self-hosted version is identical to the SaaS version apart from a couple of edge cases, such as the runZero Hosted explorers not being available. Self-hosting must be explicitly enabled on your runZero account. Contact your runZero sales representative for details.
You can skip this section if you use the SaaS console for runZero.
### Deployment planning The demo below walks through deployment planning; the written version follows. 1. **Hardware requirements** depend on the asset count. Recommended production system requirements: - 12 CPU Cores at 2 GHz or faster - 1TB of local disk storage - 128 GB of RAM Minimum production system requirements: - 4 CPU Cores at 2 GHz or faster - 100 GB of local disk storage - 32 GB of RAM (more for large sites) Minimum testing system requirements: - 2 CPU Cores at 2 GHz or faster - 20 GB of local disk storage - 16 GB of RAM (more for large sites) 2. **Operating system** support covers most flavors of Linux. - Ubuntu 18.04 and newer running on x86_64 - Red Hat Enterprise Linux 7.x and newer running on x86_64 - CentOS Linux 7.x and newer running on x86_64 - Oracle Linux 7.x and newer running on x86_64 - 8.x must be 8.4+ with UEK 5.4+ or kernel 4.18+ - 7.x must be 7.9+ with UEK 5.4+ or kernel 3.10+ - Debian Linux 9.x and newer running on x86_64 3. **Connectivity** For a standard deployment, the server needs outbound access on TCP port 443 for HTTP over TLS to the runZero domains and IPs, for installation and updates. The specific IP addresses and hostnames depend on your deployment model and region and are listed below. #### United States {#training-us} The console hostname is `console.runzero.com`. IPv4 * 13.248.161.247 * 76.223.34.198 IPv6 * 2600:9000:a415:cd87:fbe5:476a:3533:69f2 * 2600:9000:a716:ee91:85f9:3c9:48c9:59b9 #### Germany {#training-de} The console hostname is `console-eu.runzero.com`. IPv4 * 15.197.131.232 * 3.33.248.90 IPv6 * 2600:9000:a603:e925:542d:6d40:6897:bc3a * 2600:9000:a70e:635f:71bd:bb0a:8e43:9466 4. **Offline mode** deployment is also possible, but updates become a manual process. See [offline mode](self-hosting.md#offline-mode). ### Setup The demo below walks through self-hosted setup; the written version follows. 1. **Installation** - The runZero installation is a single command from your runZero SaaS console. - [Download it from the console](https://console.runzero.com/deploy/download/platform), assuming self-hosting is enabled on your account. - The [self-hosting documentation](self-hosting.md#step-1-download-and-run-the-installer) has more detail on this step. 2. **Post installation** - Once the console is installed, create your admin user and log in with this command: `runzeroctl initial ` - The [self-hosting documentation](self-hosting.md#step-3-initialize-the-admin-user) has more detail on this step. 3. **Using your own PostgreSQL database** - You can run the console and database on separate servers if you'd like to scale your workload horizontally. - The [self-hosting documentation](self-hosting.md#manual-database-install) has more detail on this step. 4. **Advanced configuration** A few other common customization options: - Email Server (for Alerting and User Invites) - TLS Certificates - Hostname - The [self-hosting documentation](self-hosting.md#advanced-configuration) has more detail on these options. 5. **Logging** - Self-hosted runZero logs to the standard `journalctl` to simplify capturing data. - View logs with this sample command: `journalctl --unit=runzero-console --since=-1hour --reverse` ### Using runzeroctl {#201usingrunzeroctrl} The runzeroctl CLI handles most actions you need, such as starting or stopping the service and creating the initial user. A few common commands: - Restart the service: `runzeroctl restart` - Update the platform and scanners: `runzeroctl update [--force]` - Reset a user's password and MFA: `runzeroctl user reset ` - The [self-hosting documentation](self-hosting.md#cli-service-management) has more detail on the CLI. ## Initial configurations This section covers the basics of configuring runZero: user management and data architecture. ### Users {#201users} The demo below walks through the users section; the written version follows. All user management happens under the Your team tab in the left navigation, which has 5 sub options: 1. **Users** shows all users in the current client account. 2. **Restricted** lists users who have access to only a single organization. 3. **Your Organization Name** lists users who have access to the organization you are currently using. 4. **External** lists users whose authentication happens on a different runZero client account but who have access to at least one organization in your current account. 5. **Groups** lists the available user groups. Groups define the access and permissions users have within each organization. Adding users: 1. Click the tab for the user type you'd like to create, such as External or Restricted. 2. Two options appear at the top right: Invite users and Import users. - Invite: provide an email, set the access level, and optionally edit the email invitation. - Import: runZero can bulk create users from a CSV import. First name, Last name, and Email are required. Permissions are optional, and users default to the least permissions possible if none are provided. 3. Manage **SSO** from the first Users tab by clicking _SSO Settings_. - **SSO modes** 1. Disabled: SSO is not in use. 2. Allowed: SSO and local accounts can both be used. 3. Required: SSO accounts only. Local accounts are not allowed. - **Service provider settings** 1. runZero provides the information you need to create the runZero application in your service provider when you click [Service Provider Information](https://console.runzero.com/team/sso/sp/). 2. Read [more about implementing SSO](implementing-sso.md) for specific service provider documentation. - **SSO group mappings** 1. You can create SSO group mappings in runZero to set permissions. 2. These settings apply only after the next sign-out, and you can [force sign-outs](managing-sso-group-mappings.md#forcing-a-user-to-sign-out) through the console. 3. If multiple SSO group mappings match, the highest privilege mapping takes precedence.
We generally recommend keeping a single local account for break glass situations, but support can also assist if needed.
### Organizations and Projects The demo below walks through organizations and projects; the written version follows. 1. **Organizations** are how runZero handles RBAC. To segment users' visibility into sets of assets, put the assets in different Organizations. - User permissions are also set at the Organization level, so a user could be an Admin in one, a standard User in another, and a Viewer in a third. - Every user has an All Organizations view that searches the inventories of all the Organizations they have access to at once. 2. **Projects** are for short-term engagements. They go read-only after 30 days and are deleted automatically after 90 days. ### Sites {#201sites} The demo below walks through the sites section; the written version follows. 1. **Sites** primarily represent networks with overlapping IP space, rather than physical locations. 2. Use one Primary site unless you have overlapping IP space. 3. Each site has a set of subnets, and you can apply tags to them. 4. You can also [import a CSV of subnets](https://console.runzero.com/sites/import) to create your sites.
Scanning the same IP addresses in different sites creates duplicate assets. Do this only if you have overlapping IP space.
## Managing tasks Tasks are how you get data into runZero, and they come in three primary types: 1. Active scan 2. Passive traffic sampling 3. Integration connections This section covers the ways you can schedule these tasks to run. ### Explorers The demo below walks through the explorers section; the written version follows. Explorers are primarily for active scanning and passive traffic sampling, but you can also run every integration connection from an explorer. #### Installation {#201installation} 1. **Recommended hardware** - Processor running at 2.0 GHz or faster - At least 16GiB of memory (8GiB for small environments) - At least 1GB of free storage space 2. **Supported operating systems** - The explorer installs on macOS and most Linux or Windows operating systems. - See the [full list of supported operating systems](installing-an-explorer.md#system-requirements). 3. **Installation** - Go to the [Deploy tab](https://console.runzero.com/deploy/download/explorers) in the UI to get your unique explorer download link. - Select your OS type and follow the instructions. 4. **Verify connectivity** - Once installed, your explorer checks in to the Console and shows Online. - You can [see your explorers](https://console.runzero.com/deploy/explorers) in the console. #### Configuration {#201configuration} 1. Click the explorer name on the [View explorers](https://console.runzero.com/deploy/explorers) page to see its configuration options, and click the `Edit` button at the top of the page to update them. 2. **Sites** - By default, explorers can be used across all sites. If you have multiple sites, you may want to tie an explorer to a specific site to avoid scanning the wrong site by accident. 3. **Concurrent tasks** - Explorers with Linux-based operating systems (including macOS) can perform multiple tasks at once. - We recommend 1-4 concurrent tasks for most scenarios. - For a large scan like an RFC1918 scan, avoid running multiple tasks at the same time. 4. **Tags** - Tags you apply to an explorer are added to every asset discovered with it. 5. **Passive traffic sampling** - The options to enable passive traffic sampling are also on this page. - Discovery starts once you pick the interfaces to listen on, the site to associate the assets with, and the discovery scope. - Passive tasks start in 5 minute increments and adjust dynamically to the traffic volume the explorer sees. - Passive traffic sampling limits itself to a single core, so you don't need to worry about resources. - That works because the explorer listens only for the subset of traffic useful for asset discovery, and drops any traffic it can't process. #### Explorer details page 1. System details - Every explorer reports basic info like Executable path, PID, and Memory usage. - This can be a helpful first step in diagnosing issues, rather than SSH-ing into the host. 2. Tasks - This page also lists every task the explorer has performed. - `source:runzero` shows active scans - `source:sample` shows passive traffic sampling tasks 3. Diagnostics - Explorer diagnostics are captured as needed. - Trigger a new capture by clicking _Update diagnostics_. ### Credentials {#201credentials} The demo below walks through the credentials section; the written version follows. 1. Manage all credentials for SNMP and integrations on the [Scanning with credentials](https://console.runzero.com/credentials) page. 2. Click _Add credential_ to select the credential type; the form then asks for what that type needs. 3. Setting a credential as _Global_ lets all users use it in every Organization. 4. In most cases, you will limit a credential to a specific Organization. ### Tasks {#201tasks} runZero has four pages for managing tasks, depending on what you are trying to do: 1. [Tasks](https://console.runzero.com/tasks/search/all) is the hub for tasks of all types. You can search all of your tasks here and configure any type, including active, passive, and integration connections. - `source:runzero` shows active tasks. - `source:sample` shows passive tasks. - `not source:runzero not source:sample` shows integration connections. - `type:recur` shows all tasks scheduled to run on a cadence. - `status:error or status:stopped` shows all tasks that did not finish for some reason. 2. [Scan](https://console.runzero.com/data-sources/scan) shows all the active scans you have run so far, and you can configure new active scans on this page. 3. [Monitor](https://console.runzero.com/data-sources/monitor) shows all the passive tasks that have run so far, and you can configure new passive traffic sampling tasks or import PCAPs on this page. 4. [Integrate](https://console.runzero.com/data-sources/integrate) lists the supported integrations and lets you configure them. ### Configuring an active scan The demo below walks through the active scan section; the written version follows. 1. Go to Tasks and click _Scan > _ to configure an active scan. - A [Standard scan](https://console.runzero.com/scan/) provides the full suite of configuration options. - A [Template scan](https://console.runzero.com/tasks/templatesNewScan) uses a pre-configured scan template, so you can manage configurations across many tasks at once. Some parts, like the discovery scope, remain editable per task. - An [RFC1918 scan](https://console.runzero.com/scan/?ScanPreset=rfc1918) scans the entire RFC1918 space with minimal configuration, such as the packets per second and subnet sampling rate. - See [more information on subnet sampling](https://help.runzero.com/docs/playbooks/achieving-rfc1918-coverage/#rfc1918-scanning-step2). 2. **Configuration options** - In most cases, you only need to update the options on the Standard tab of your scan configuration. - The commonly updated options: 1. **Site** should ideally be a single Primary site for all assets, but you may have reason to use multiple sites. 2. **Explorer or Hosted zone** picks between your locally deployed runZero explorers and Hosted zones, the runZero cloud-hosted explorers. You can use Hosted zones to scan public IP ranges and domains. Change explorer to None to select a Hosted zone. 3. **Scan rate** caps the explorer's packets per second. It defaults to 1000 but can usually be increased in most networks. 4. **Discovery scope** set to `defaults` uses the site's subnets configured at the site level. You can also enter IP ranges or domains, or populate the scope dynamically from your inventory with keywords like `public:all`. - See [more about discovery keywords](discovering-assets.md#discovery-keywords). 5. **Schedule** runs scans hourly, daily, weekly, and so on, based on your needs. 6. **Scheduling grace period** tells the task how long to wait if the explorer is already in use. If multiple tasks run on the same explorer, setting this to 0 can help avoid tasks failing because the explorer is already in use. - See [advanced scan configurations](discovering-assets.md#advanced-scan-options) for the other options. #### Configuring passive traffic sampling The demo below walks through passive traffic sampling; the written version follows. 1. This was covered earlier in the section on managing explorers, so the information here is a repeat. 2. Go to the explorer you want to configure passive traffic sampling on and follow these steps: - The options to enable passive traffic sampling are on this page. - Discovery starts once you pick the interfaces to listen on, the site to associate the assets with, and the discovery scope. - Passive tasks start in 5 minute increments and adjust dynamically to the traffic volume the explorer sees. - Passive traffic sampling limits itself to a single core, so you don't need to worry about resources. - That works because the explorer listens only for the subset of traffic useful for asset discovery, and drops any traffic it can't process.
Without a TAP or SPAN configured, passive traffic sampling sees only broadcast traffic, which is recommended for testing, not production use.
#### Configuring an integration connection The demo below walks through the integrations section; the written version follows. 1. Go to the [Integrate page](https://console.runzero.com/data-sources/integrate). 2. Find the integration you want and click _Configure_. 3. Create a new credential from the option in the form, or select an existing credential you created on the Credential page. 4. All integrations have these options: - **Explorer** lets any integration run from an explorer, which self-hosted services like Active Directory may need. In most cases, though, leave this as None to run directly from the Console. - **Site** is an optional backup site for assets that do not merge. Integration assets attempt to merge with assets in `all` sites in runZero. Here too, a single Primary site is highly recommended.
If you self-host runZero, we recommend running integrations from explorers to avoid resource contention on the console while other tasks are processing.
5. Depending on the integration, you will have additional options, all covered on that integration's documentation page. 6. See the [documentation about integrations](integrations-inbound.md). ## Automated asset tracking Once your asset discovery and integration tasks are configured, you can start keeping tabs on changes in your inventory in a few ways: 1. **Queries** are saved searches of your inventory that you can use to track how many assets or services of a specific type you have. 2. **Goals** are queries with targets for asset count or percentage and an optional time window. 3. **Alerts** trigger an activity like an email or webhook when your inventory has a match. 4. **Asset ownership** tracks who owns what, so you can skip pivots during investigations when you need to act on an asset. The sections below cover each of these in detail. ### Queries The demo below walks through the queries section; the written version follows. 1. The [Queries](https://console.runzero.com/queries) tab in runZero shows the out-of-the-box queries. 2. Each query shows a few attributes: - **Name** is a quick summary of what the search shows. - **Matches** is how many assets currently in your inventory match the query. - **Severity** is the level of impact if exposed. - **Risk** is the level of impact combined with the likelihood of exposure. - **CVEs** lists the CVEs related to this search. 3. You can search the Queries by these attributes as well. Two common searches: - High or critical risk with matches in the inventory: [(risk:high or risk:critical) matches:>0](https://console.runzero.com/queries?search=%28risk%3Ahigh%20or%20risk%3Acritical%29%20matches%3A%3E0) - Queries with an associated CVE and matches in the inventory: [cve:"CVE%" matches:>0](https://console.runzero.com/queries?search=cve%3A%22CVE%25%22%20matches%3A%3E0) 4. Click a query's name to view its details. 5. The details show a description and the search string, and let you test the query. 6. Vulnerability settings let you create your own vulnerability records from the runZero queries. When there is a match, it shows up on the asset as well as in the vulnerability inventory. 7. To create a custom query, click _Create query_ on the main Queries tab. You get the same options to fill in as the query details page showed. In most scenarios, we recommend matching only on live assets and testing the query before saving. ### Goals {#201goals} The demo below walks through the goals section; the written version follows. 1. Goals build on queries by letting you set targets for them. Beyond queries, you can also set goals for asset risk and ownership. 2. For example, you might set a goal on the `SSH password authentication on internet-facing host` query, meaning all of your internet-facing SSH services should require SSH keys. 3. To create a goal: - Click [New goal](https://console.runzero.com/goals/new) on the Goals tab. - Pick the type that fits your goal: System query, Custom query, Asset risk, or Asset ownership. - Set Permissions to Global to apply to all Organizations, or toggle Global off to select specific Organizations. - After clicking _Next_, you have optional inputs including description, notes, target date, and the option to pin to the dashboard (recommended) for tracking. - Click _Next_ again to set the goal's parameters. - For a query goal, pick your query and set the target asset count or percentage. - For a risk or ownership goal, set your target asset count or percentage. - Review and save your goal to start tracking it. - Once goals are configured, you can see their progress on the Goals tab, or on your dashboard if you chose to pin them there. ### Alerts {#201alerts} The demo below walks through the alerts section; the written version follows. 1. The [events tab](https://console.runzero.com/alerts/events) lists most of the events that can trigger alerts in runZero. 2. Creating an Alert requires three main steps: - Create a [template](https://console.runzero.com/alerts/templates) for the alert to use, either JSON or Email. - Create a [channel](https://console.runzero.com/alerts/channels) for the alert to go to, either an Email address or an HTTPS webhook. - Create a [rule](https://console.runzero.com/alerts/rules) for the trigger conditions to watch. - For more detailed instructions, follow the playbook on [creating alerts on asset and service changes](https://help.runzero.com/docs/playbooks/alerting-on-queries/). 3. If the alert does not need to go to an external system, you can create a rule that triggers a local alert in runZero instead. Local alerts appear on the [alerts tab](https://console.runzero.com/alerts). 4. Beyond monitoring your inventory, rules can update your assets automatically based on what you know about your environment. 5. For example, to set Asset Ownership on a set of assets: - Click [Create rule](https://console.runzero.com/alerts/rules/create/). - Name the rule, select `asset-query-results` from the event list, and configure organization access. Then click next. - Enter your query to identify the assets you want to update. - Set number of matches to is greater than 0. - Optionally set the site, explorer, or task type if you do not want the rule triggered on all events. Click next. - Change the action to Modify asset. - Set the Ownership values of interest. 6. The full list of asset values that rules can update: - OS vendor - OS product - OS version - Hardware vendor - Hardware product - Hardware version - Asset type - Asset criticality - Asset tags - All Ownership types ### Asset ownership The demo below walks through the asset ownership section; the written version follows. 1. Asset ownership in runZero tracks who owns what in your environment. 2. Asset ownership can be populated on an asset in three ways: - Automatically through integrations - Automatically through rules (see the alerts section above for an example) - Manually through the Inventory or Asset detail pages 3. Superusers can set ownership types on the [Ownership tab](https://console.runzero.com/ownership-types). - Assets can have up to 10 ownership types, for flexibility based on your environment. - The Asset owner is the default owner that integrations populate. - Add more types by clicking the _Add ownership type_ button. - For each type, you set a name, an optional reference, and whether it is hidden or visible to users. - Reference options: 1. **None** means the ownership value can be anything. 2. **Directory user or group** provides a dropdown while updating ownership, limited to Active Directory data. 3. **runZero user or group** provides a dropdown while updating ownership, limited to runZero users or groups. 4. Once types are configured, all users can set the ownership types on assets based on that configuration. 5. You can search assets by ownership in a few ways: - Asset has an owner: [has_owner:t](https://console.runzero.com/inventory?search=has_owner%3At) - Owner is named Tyler: [owner:tyler](https://console.runzero.com/inventory?search=owner%3Atyler) - Owner count is greater than or equal to 2: [owner_count:>2](https://console.runzero.com/inventory?search=owner_count%3A%3E2) - Owner type IT is known: [owner:it](https://console.runzero.com/inventory?search=ownership_type%3Ait) ## Using the API With the runZero API, you can export your inventory data, extend functionality, and automate processes. ### Authentication options The demo below walks through the authentication options section; the written version follows. Depending on the use case, you can authenticate to the runZero API in a few ways: 1. Account level access - [API clients](https://console.runzero.com/account/api/clients) use Client ID and Secret authentication. They have full read/write access to the entire account and can perform any action via the API. - [Account API keys](https://console.runzero.com/account) use HTTP Basic authentication. They have full read/write access to the entire account and can perform any action via the API. 2. Organization level access - To create Organization level access tokens, go to [Organizations](https://console.runzero.com/organizations), click the organization of interest, and click _Edit organization_. - **Organization API tokens** have full read/write access to the Organization and can perform any action via the API on that specific Organization. - **Export tokens** are read-only tokens for exporting inventory data from runZero. They are the most commonly used token, since exporting data is the most common use case. - **Download tokens** allow automated explorer deployments. Their only access is downloading the explorer binary for installation on a host. ### Common use cases Each use case below lists the relevant API endpoints and sample scripts. #### Exporting inventory 1. Use case - Customers commonly want their inventory data populated elsewhere, like a SIEM or CMDB, for other teams to consume downstream. - runZero has native integrations for tools like Splunk and ServiceNow, and customers have integrated with plenty of other tools as well.
All exports happen at the Organizational level, so if you have multiple Organizations, you may need to do multiple exports.
2. API endpoints - [Asset inventory, JSON format](https://app.swaggerhub.com/apis/runZero/runZero/3.10.11#/Export/exportAssetsJSON). Other format options include JSONL, CSV, and XML. - [Service inventory, JSON format](https://app.swaggerhub.com/apis/runZero/runZero/3.10.11#/Export/exportServicesJSON). Other format options include JSONL and CSV. - [Vulnerability inventory, JSON format](https://app.swaggerhub.com/apis/runZero/runZero/3.10.11#/Export/exportVulnerabilitiesJSON). Other format options include JSONL and CSV. - Additional inventory export options include Wireless, Software, Users, and Groups. 3. Sample scripts - [Basic export with a few different searches](https://github.com/tdiderich/runZero-scripts/tree/main/export) - [Export and transform to CSV](https://github.com/tdiderich/runZero-scripts/tree/main/export-to-csv-specific-fields) - [Export and stream to PowerBI](https://github.com/tdiderich/runZero-scripts/tree/main/export-power-bi) #### Scan task scheduling 1. Use case - If your SOAR is hooked up to runZero, you may want to search the inventory for specific IP addresses, hostnames, and so on. - If the search returns nothing, you may want to trigger a scan. 2. API endpoints - To run the search, use the export endpoints above. - To run the scan, use the [scan endpoint](https://app.swaggerhub.com/apis/runZero/runZero/3.10.11#/Organization/createScan). 3. Sample script - [Search results or scan](https://github.com/tdiderich/runZero-scripts/tree/main/search-results-or-scan) #### Custom integrations {#201customintegrations} 1. Use case - Many customers have inventory data in tools that runZero's native integrations do not currently support. - For those, runZero supports Custom Integrations. - You connect to your other sources, transform the data to the runZero data model, and upload it to merge with your runZero inventory. 2. API endpoints - [View custom integrations](https://app.swaggerhub.com/apis/runZero/runZero/3.10.11#/Account/getAccountCustomIntegrations) - [Create new custom integration](https://app.swaggerhub.com/apis/runZero/runZero/3.10.11#/Account/createAccountCustomIntegration) - [Upload custom integration data and create task to process](https://app.swaggerhub.com/apis/runZero/runZero/3.10.11#/Organization/importCustomIntegrationAssets) 3. Sample scripts - [Tanium](https://github.com/tdiderich/runZero-scripts/tree/main/sdk-sample-scripts/tanium) - [Cylance](https://github.com/tdiderich/runZero-scripts/tree/main/sdk-sample-scripts/cylance) - [JAMF](https://github.com/tdiderich/runZero-scripts/tree/main/sdk-sample-scripts/jamf%5C) --- docs/organizations.md --- title: "Organizations" --- An organization is a distinct entity: your business, a specific ((department)) within it, or one of your customers. All actions, tasks, Explorers, scans, and other objects that runZero manages belong to a specific organization and are isolated from each other. Switch your active organization with the dropdown at the top right of the runZero Console. If your default role is Viewer or higher, select **All Organizations** from the dropdown to see the data for all of your organizations in the Dashboard and Inventory. The Queries page also supports the All Organizations view. Pages that do not support it stay hidden until you select a single organization. runZero Community Edition is limited to a single organization. ## Use cases for organizations It's common to segment your assets across multiple organizations for one of these reasons: - **RBAC** limits users to the assets in the organizations they're added to, and in those organizations' children. - **Environments** such as development and production can stay in separate pools. - **Customers** of a service provider generally get one organization each. ## Creating organizations Create, modify, and deactivate organizations from the organizations section of the console: click the Organizations link under Global Settings. ## Organization configurations - **Name** is the name of the organization. - **Parent organization** makes this a sub-organization, with nesting limited to three levels. Permissions are inherited based on most privilege. - **Description** describes the organization. - **Stale asset expiration** sets the number of days before stale assets are removed from the inventory. It applies to online and offline assets not seen within that many days. - **Offline asset expiration** sets the number of days before offline assets are removed from the inventory. It applies to offline assets not seen within that many days. - **Stale integration attributes expiration** sets the number of days before stale integration attributes are removed from the inventory. You can optionally keep the latest set of integration attributes per source, even when it is older than the threshold. - **Stale vulnerability expiration** sets the number of days since last seen before stale vulnerabilities, including archived ones, are permanently removed from the inventory. - **Enable vulnerability archiving** (default: enabled) applies to all vulnerabilities being removed from the active inventory. When disabled, vulnerabilities are deleted instead of archived. Archived metadata (such as suppression state and the original first seen date) is not retained if the vulnerability returns. Disabling this setting disables `Stale vulnerability archive`. - **Stale vulnerability archive** (default: 0, disabled) sets the number of days since last seen before stale vulnerabilities are archived and removed from the active inventory. Set it lower than the stale vulnerability expiration. - **Scan data expiration** sets the number of days before completed scans are removed from the platform. It applies to the scan task metadata as well as the raw data files and change reports. ## Projects A ((project)) is a special type of organization for temporary use. Projects behave like organizations and can have sites defined within them. The differences: projects cannot be parents of organizations or other projects, they automatically become read only after 30 days, and they are automatically deleted after 90 days. Organizations let you customize expiration times; project expiration times are fixed. Your runZero license includes up to five times as many project assets as licensed live assets. For example, a license for 1,000 live assets allows up to 5,000 project assets in total. The [license information](https://console.runzero.com/license) page in the runZero console shows the total number of assets in organizations and projects. If you decide to keep a project indefinitely, convert it into an organization. Organizations support custom [data retention](data-retention.md) settings that you can edit to fit your requirements. ## Organization and project details Click the name of an organization or project to open its details page. It shows basic details about the organization or project, along with its place in the organization hierarchy. --- docs/sites.md --- title: "Sites" --- Every organization has at least one site and may have several. A site is a distinct network segment, usually defined by addressing or accessibility. Sites in runZero do not have to match physical sites or locations. They represent distinct networks that may have overlapping address space. Multiple sites can use the same ((RFC1918)) space, which is common in retail, and their assets stay distinguishable in the inventory. By default, your account has a single organization, which contains a single site, named Primary. If you delete the only site in an organization, runZero creates a replacement automatically, and it does the same if you remove the last organization. You can rename organizations and sites at any time. Because sites represent separate networks, scanning the same devices from two sites gives you two copies of the resulting assets, one set for each site's network. All analysis in runZero happens at the site level. The [Network Map](network-map.md), for example, builds its topology from a single site's devices, so you'll likely want to avoid splitting routers and non-router assets into separate sites unless they are truly on separate, disconnected networks. ## Use cases for sites For ((flat networks)), where every IP address can reach any other address on the network, a single site is usually enough, and it keeps you from accidentally creating ((duplicate assets)) by scanning the same devices from multiple sites. Sites are recommended for complicated, sprawling, and highly-segmented environments. Two situations can call for multiple sites: - With overlapping IP space, sites let you distinguish identical IPs that belong to different machines. - In a highly complex network, you can use sites as an organizational tool, though they are not required. ## Creating sites Site creation must be enabled on your account before you can add new sites. If you do not see a **New Site** button, email [support@runzero.com](mailto:support@runzero.com) to have it enabled. To create a site, click the **New Site** button at the top of the [sites](https://console.runzero.com/sites) page. ## Site configurations - **Name** is the name of your site. - **Description** can help identify the purpose of the site. - **Default scan scope** is pre-populated when you create scans for this site. - **Default scan exclusions** are pre-populated when you create scans for this site. - **Registered subnets** can automatically tag assets, services, screenshots, and software that fall within each subnet. ## Subnet tagging Tagging by subnet works a little differently from tagging assets directly or through a task. When a subnet carries a specific tag, only assets in that subnet get it. runZero removes the tag from any asset outside the subnet, even if a task or a user set it. ## Importing subnets You can create or update site subnets by importing a CSV file as part of the site configuration. A sample CSV for import: ```csv cidr,tags,description 192.168.0.0/16,purpose=endpoints,"Headquarters endpoint subnet ""quoted text""" 10.0.0.0/24,purpose=wifi,"Headquarters wireless subnet, with comma" 2001:db8::/32,"foo=bar,foobar",ipv6 subnet 1.2.3.4/16,, ``` ## Importing and exporting sites You can create or update site configurations by importing a CSV file. [Import your CSV](https://console.runzero.com/sites/import) from the sites page. The CSV format should include these columns: ```csv name,description,scope,exclusion,subnet_ranges,subnet_tags,subnet_descriptions ``` You can also export your site configurations as a CSV from the sites page. ## Sites and Explorers You can tie sites to specific Explorers, which can help limit traffic between low-bandwidth segments. The site configuration lets you define a default scan scope and an optional list of excluded scan scopes. Scans of the site can use these fields as their scope. To tie an Explorer to a site, go to the [Explorers](https://console.runzero.com/deploy/explorers) page, click the Explorer you want, and then click configure. A dropdown with your site options appears. For more on Explorers, see [Managing Explorers](managing-explorers.md). --- docs/self-hosting.md --- title: "Self-hosting runZero" date: 2021-06-15 --- ## Background The ((self-hosted)) version of runZero runs the entire platform ((on-premises)) or in your own cloud environment. It is functionally identical to the hosted service, has a fully-offline mode, and sends no inventory data back to runZero. Self-hosting is less common, but your company might choose it for a few reasons: - ISO compliance requirement - Other compliance requirement - Prefer data on-premise Self-hosting must be enabled for your account. It's available with a runZero Platform license or during an initial trial for a platform license, but not with the free Community Edition of runZero. Contact your runZero sales representative for details. ## Requirements {#self-hosting-requirements} Check your system against these requirements before you install. ### Hardware requirements **Recommended production** system requirements: - 12 CPU Cores at 2 GHz or faster - 1TB of local disk storage - 128 GB of RAM **Minimum production** system requirements: - 4 CPU Cores at 2 GHz or faster - 100 GB of local disk storage - 32 GB of RAM (more for large sites) **Minimum testing** system requirements: - 2 CPU Cores at 2 GHz or faster - 20 GB of local disk storage - 16 GB of RAM (more for large sites) ### Sample customer deployments **Up to 1M assets**: - Two virtual machines (one for console and one for database) - 32 CPU Cores at 2 GHz or faster - 1TB of local disk storage - 128 GB of RAM **Up to 500K assets**: - 32 CPU Cores at 2 GHz or faster - 1TB of local disk storage - 128 GB of RAM **Up to 50K assets**: - 16 CPU Cores at 2 GHz or faster - 1TB of local disk storage - 64 GB of RAM ### Software requirements - PostgreSQL 14 or newer (17+ preferred; the installer can install it for you) ### Supported operating systems - Ubuntu 18.04 and newer running on x86_64 - Red Hat Enterprise Linux 7.x and newer running on x86_64 - CentOS Linux 7.x and newer running on x86_64 - Oracle Linux 7.x and newer running on x86_64 - 8.x must be 8.4+ with UEK 5.4+ or kernel 4.18+ - 7.x must be 7.9+ with UEK 5.4+ or kernel 3.10+ - Debian Linux 9.x and newer running on x86_64 Windows Subsystem for Linux is not supported. A minimal install of Ubuntu or any RHEL derivative is enough for the runZero console; you don't need a GUI. The default disk partitioning scheme works, but consider LVM if you plan to resize the disk later. #### Note about Debian Debian Linux uses the `su` command instead of `sudo` by default, and you must become root with `su -`, not just `su`, so that `PATH` includes system administration commands such as `useradd`. If the installer fails with `executable file not found in $PATH`, this is the most likely reason. ### Connectivity The self-hosted runZero platform needs a connection to the runZero SaaS backend over TCP port 443 (TLS) for online updates. The IP addresses and hostnames depend on your deployment model and region. #### United States {#selfhosting-us} The console hostname is `console.runzero.com`. IPv4 * 13.248.161.247 * 76.223.34.198 IPv6 * 2600:9000:a415:cd87:fbe5:476a:3533:69f2 * 2600:9000:a716:ee91:85f9:3c9:48c9:59b9 #### Germany {#selfhosting-de} The console hostname is `console-eu.runzero.com`. IPv4 * 15.197.131.232 * 3.33.248.90 IPv6 * 2600:9000:a603:e925:542d:6d40:6897:bc3a * 2600:9000:a70e:635f:71bd:bb0a:8e43:9466 During installation and later software updates, the platform also needs to reach these sites over TCP port 443: * apt.postgresql.org ### Platform address & TLS configuration The system running the runZero platform should have a static IP address. Explorers must be able to validate their HTTPS connection to the platform with a TLS certificate. By default, the runZero platform installer sets up a self-signed certificate for the console's IP address, and downloaded Explorers come preconfigured with that URL and certificate so they can make a verified connection.
Some parts of the application still use the name "Rumble" for backwards compatibility. We'll update the documentation as they change.
Because Explorers pick up the console address and certificate at download time, changing the IP address or DNS name later means redeploying the Explorers so they receive the new address. Renewing a self-signed certificate also means redeploying them.
We recommend a real certificate from an internal or public CA for your runZero console deployment. With one in place, Explorers don't need reinstalling when the server's IP address changes or the certificate is renewed. As long as the DNS name stays the same and the new certificate still validates, Explorers keep working.
To use a real certificate from an internal or public CA, assign the console server a DNS name and set `RUNZERO_CONSOLE` in the configuration to the fully qualified domain name. Point `TLS_CERT` and `TLS_KEY` at the certificate and private key files, then restart the console with `runzeroctl restart`. Explorers downloaded after that come preconfigured with the right URL and certificate. Behind a reverse proxy, the proxy may need extra configuration to pass the `Origin` header through to the runZero Console. CSRF protection requires this header, and some features (such as the data tables throughout the product) stop working if it is missing or incorrect. ## Offline mode The self-hosted version of runZero can run in [offline mode](docs/self-hosting-offline.md). In this mode the console doesn't use the runZero update service, so you must apply [offline updates](docs/self-hosting-offline.md#offline-update) manually. Enable it on an isolated network, or whenever you don't want your self-hosted runZero console making any connection to the internet. Offline mode also disables certain DNS probes that could reflect responses to the internet during a scan. ## Installation steps For offline installs, see [offline installation](docs/self-hosting-offline.md#offline-install). For installs that use your own database credentials, see [Installation with your own PostgreSQL database](#manual-database-install). The installer: - Sets up PostgreSQL and creates a dedicated user with a strong password. - Generates TLS certificates for your IP address in `/etc/runzero/certs`. - Generates a configuration file at `/etc/runzero/config` with some defaults. - Creates a `systemD` or RC service for the runZero platform. ### Step 0: Start from a clean environment {#step-0-ensure-a-clean-starting-environment} If an earlier run of the installer hit a problem with disk space, memory, or repository verification, you may need to clean up its temporary files before retrying the install. Remove any temporary files left from the previous install: ```shell # rm -rf /tmp/update-tmp* /tmp/runzero-updates* ``` On RHEL and CentOS systems, clear any PostgreSQL remnants: ```shell # dnf remove postgresql # rm -rf /var/lib/pgsql/ ``` Use the installer binary to purge any leftovers: ```shell # ./runzero-install.bin uninstall --purge ``` ### Step 1: Download and run the installer - Go to [https://console.runzero.com/deploy/download/platform](https://console.runzero.com/deploy/download/platform). - Copy the command from the download page and run it in your terminal. It downloads the installer and marks it executable. The download path is uniquely keyed. - Run the installer. - The console installs to `/opt/runzero` by default. To change that, use the `--install-directory` option. ### Step 2: Check disk space {#step-2-ensure-sufficient-disk-space} The runZero console stores data in the `storage` directory under the install directory, `/opt/runzero/storage` by default. The `storage` directory must have room for all unexpired scan data and asset data. To move it, set the `RUNZERO_STORAGE_PATH` variable in the runZero configuration file `/etc/runzero/config`. The temporary directory also needs plenty of space for software and content updates. If the `TMPDIR` environment variable is set, runZero uses that directory; otherwise it uses `/tmp`. ### Step 3: Initialize the admin user Installing the runZero platform gives you the runZero CLI, `runzeroctl`. To initialize an admin user, run: ``` runzeroctl initial [email address] ``` ### Step 4: Sign in to your self-hosted console If everything is set up correctly, you can sign in to your console at `https://YourInternalIPAddress`. You may need to allow HTTPS through the Linux system firewall. Example commands: **Ubuntu Linux:** `sudo ufw allow https/tcp` **RHEL/CentOS/Oracle:** `sudo firewall-cmd --add-service=https` To make a `firewall-cmd` change permanent across reboots, run the command a second time with the `--permanent` flag. ## Installation with your own PostgreSQL database {#manual-database-install} By default, runZero installs and configures a PostgreSQL user and database for you. To supply your own, install with the manual database option described below. ### Requirements - PostgreSQL 13 or newer (16+ preferred) - [Password authentication](https://www.postgresql.org/docs/current/auth-password.html) must be enabled. - Two extensions are required: [pg_trgm](https://www.postgresql.org/docs/current/pgtrgm.html) and [uuid-ossp](https://www.postgresql.org/docs/current/uuid-ossp.html). Depending on where you get your PostgreSQL packages, these may ship in a `contrib` package rather than with the main PostgreSQL server install. This PostgreSQL example enables the extensions and adds a database and user: ```sql CREATE DATABASE runzero TEMPLATE='template0' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8'; CREATE USER runzero WITH PASSWORD 'YOURPASSWORD'; GRANT ALL PRIVILEGES ON DATABASE runzero TO runzero; \connect runzero; CREATE EXTENSION IF NOT EXISTS pg_trgm; CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; ``` To install the self-hosted runZero platform with your own database credentials: 1. Run this install command as root: ```bash ./runzero-platform-[VERSION]-linux-amd64.bin install --manual-database ``` 2. Add your database details to the runZero configuration in `/etc/runzero/config`. The line to edit is: ```bash DATABASE_URL=postgres://runzero:{DB_PASSWORD}@127.0.0.1:5432/runzero?sslmode=disable ``` Change it to match your credentials. You need to set the user, password, host, port, and database name, in this format: ```bash DATABASE_URL=postgres://{DB_USER}:{DB_PASSWORD}@{DB_HOST}:{DB_PORT}/{DB_NAME}?{DB_OPTIONS} ``` 4. Verify that the self-hosted runZero platform can connect to your database: `sudo runzeroctl database verify` 5. Once the database is configured and verified, restart the self-hosted runZero platform service: `sudo systemctl restart runzero-console` ## runZero updates Update the self-hosted runZero platform before first use. You can use the `runzeroctl` command to download the update and then restart the service once the update completes. For offline updates, see [CLI update with offline mode](docs/self-hosting-offline.md#offline-update). You can update the platform and scanners together or separately with the [CLI update management commands](#cli-update-management). ## Managing users Manage users in your self-hosted runZero platform console at `https://YourInternalIPAddress/team` or with the [runZero CLI](#cli-user-management). Tasks include: - Adding, deleting, and listing users - Resetting passwords - Changing default roles - Viewing details - Changing organization roles ## CLI service management ### Start the runZero service Starts the runZero platform service. ```bash runzeroctl start ``` ### Stop the runZero service Stops the runZero platform service. ```bash runzeroctl stop ``` ### Restart the runZero service Restarts the runZero platform service. ```bash runzeroctl restart ``` ### Install the runZero platform Installs the runZero platform service and its dependencies, such as PostgreSQL. Creates a systemd service, generates cron jobs, and writes a configuration file to `/etc/runzero/config`. ```bash runzeroctl install ``` ### Uninstall the runZero platform Stops the runZero platform service, removes it from systemd, and removes the generated cron jobs. Your PostgreSQL database and data stay in place. ```bash runzeroctl uninstall ``` ### Purge the runZero platform Stops the runZero platform service, removes it from systemd, and removes the generated cron jobs. It also deletes your runZero database and removes the runZero directories `/etc/runzero` and `/opt/runzero`. ```bash runzeroctl purge ``` To uninstall and purge everything except the database and your PostgreSQL settings, use this flag: ```bash runzeroctl uninstall --purge --ignore-database ``` ### Run the runZero platform manually Starts the runZero platform manually and writes logs to standard output. ```bash runzeroctl server ``` ### Verify your database is reachable Tries to connect to your database using your self-hosted runZero platform configuration, and either succeeds or shows an error. ```bash runzeroctl database verify ``` ## CLI update management ### Update the runZero platform and scanners Updates the runZero platform service and the runZero scanners. The optional `force` parameter forces the update even when the current installation is already the latest version. ```bash runzeroctl update [--force] ``` ### Update the runZero platform Updates just the runZero platform service. The optional `force` parameter forces the update even when the current install is already the latest version. ```bash runzeroctl update-platform [--force] ``` ### Update the runZero scanners Updates just the runZero scanners. The optional `force` parameter forces the update even when the current installation is already the latest version. ```bash runzeroctl update-scanner [--force] ``` ## CLI user management ### Create the initial administrator account Creates the initial admin user for a new installation. You must provide an email address. ```bash runzeroctl initial ``` ### List user accounts Lists all users with their email address, full name, and current roles. ```bash runzeroctl user list ``` ### Add a user account Creates a new user account under the initial administrator user. You must provide an email address. ```bash runzeroctl user add ``` ### Delete a user account Deletes a user account. You must provide an email address. This cannot be undone. ```bash runzeroctl user delete ``` ### Get user details Shows the details for a user account, such as full name, date created, last sign-in IP, last sign-in time, last activity, default organization role, and current roles. You must provide an email address. ```bash runzeroctl user details ``` ### Set a user role Sets a user's role to the role provided. You must provide the email and the role; the organization is optional. Without an organization, this sets the user's default role. ```bash runzeroctl user set-role [organization name or organization ID]: ``` ### Reset a user password and MFA Generates and applies a new password for the specified user and prints it to the terminal. You must provide an email address. The reset also clears any associated MFA tokens. ```bash runzeroctl user reset ``` ## CLI organization management ### List all organizations Lists all organizations by name and ID. ```bash runzeroctl organization list ``` ## Advanced configuration The file at /etc/runzero/config holds the settings described below. After editing it, apply the changes with `runzeroctl restart`. ### Email server runZero sends user account invitations and notifications through an SMTP server. The default configuration expects an SMTP server on localhost that needs no authentication: ```bash SMTP_SERVER=127.0.0.1:25 SMTP_AUTH_METHOD=none ``` With plaintext SMTP servers, runZero uses STARTTLS automatically and validates the certificate. If your internal SMTP server lacks a valid TLS certificate, disable verification with: ```bash SMTP_TLS_NOVERIFY=true ``` For transport-layer TLS instead of STARTTLS, set: ```bash SMTP_TLS=true ``` If the server requires authentication, configure these three settings: ```bash SMTP_AUTH_METHOD=plain SMTP_AUTH_USER=YourUsername SMTP_AUTH_PASS=YourPassword ``` The supported values for `SMTP_AUTH_METHOD` are `plain`, `login`, and `none` (no authentication). Emails come from `noreply@runzero.com` by default. To change the sender, set the `FROM_EMAIL` option: ```bash FROM_EMAIL=runzero@yourcompany.int ``` ### Hostname and port The RUNZERO_CONSOLE variable is the address that users and deployed Explorers use to connect to the platform. runZero also uses it to build inbound links, configure deployed Explorers, and generate the default self-signed TLS certificate. ``` RUNZERO_CONSOLE=https://{IP ADDRESS OR HOSTNAME}:443 ``` Changing it may require regenerating the TLS certificate and redeploying Explorers. ``` runzeroctl generate-certificate ``` To run runZero on a different port, set CONSOLE_PORT. This is the port the console listens on; users and Explorers still connect to the RUNZERO_CONSOLE value, so in most cases the two should match. ``` CONSOLE_PORT=443 ``` ### TLS configuration {#tls-config-selhosted} runZero generates a self-signed TLS certificate and serves all web requests using HTTP over TLS. The standard configuration uses a self-signed certificate stored in the filesystem: ``` TLS=true TLS_CERT=/etc/runzero/certs/cert.pem TLS_KEY=/etc/runzero/certs/key.pem ``` The certificate and key file are PEM encoded, and you can replace them with any valid certificate. Any new certificate must list the value of RUNZERO_CONSOLE among its Subject Alternative Names. The key file must be unencrypted (not password protected). If it has a passphrase, remove it with OpenSSL. For example: ``` # RSA key openssl rsa -in key.pem -out newkey.pem # DSA key openssl dsa -in key.pem -out newkey.pem ``` Behind a TLS-terminating reverse proxy (AWS ELB, nginx, etc), you can disable TLS at the application level: ``` TLS=false ``` The web interface is then reachable over plain HTTP, but Explorers refuse to connect to a plain HTTP port, and features like WebAuthn MFA only work when the site is accessed through TLS. You can also set specific TLS versions and ciphers. TLS versions are chosen by minimum and maximum: ``` TLS_VERSION_MIN=1.2 TLS_VERSION_MAX=1.3 ``` TLS ciphers may be chosen by profile name: * **default**: a set of strong ciphers, a good fit for most configurations * **nist80052**: a set of strong ciphers, approved in [NIST 800-52r2](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-52r2.pdf) * **nist80052-aes256**: a set of strong ciphers, approved in [NIST 800-52r2](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-52r2.pdf), restricted to AES-256 variants TLS 1.3 ciphers work differently, so if you need a specific set of ciphers, set both TLS_VERSION_MIN and TLS_VERSION_MAX to `1.2`. For example, to restrict runZero to only the NIST 800-52r2 approved ciphers using AES-256: ``` TLS_VERSION_MIN=1.2 TLS_VERSION_MAX=1.2 TLS_CIPHERS=nist80052-aes256 ``` TLS ciphers may also be chosen as a comma-separated list of [cipher constants](https://golang.org/src/crypto/tls/cipher_suites.go). ### Certificate authorities (CAs) {#server-certificate-authorities-cas} The server validates TLS connections against the system-installed certificate authorities and an internal CA certificate bundle. By default, both the system roots and the bundled roots are considered for every secure TLS connection. * Set `RUNZERO_TLS_IGNORE_SYSTEM_ROOTCA` to `true` to ignore the system CA roots. * Set `RUNZERO_TLS_IGNORE_EMBEDDED_ROOTCA` to `true` to ignore the bundled CA roots. * Set `RUNZERO_TLS_ADDITIONAL_ROOTCA` to the path of a file containing additional CA roots in PEM format. ### Database configuration runZero keeps all platform data in a PostgreSQL database, except raw scan files, change reports, and images processed from scans. By default, runZero configures a local PostgreSQL server on the same system, with a random password and without TLS encryption: ``` DATABASE_URL=postgres://runzero:{DB_PASSWORD}@127.0.0.1:5432/runzero?sslmode=disable ``` If you prefer a separate database, any PostgreSQL server running 12.x or newer should work. TLS (sslmode=require) should be enabled whenever the database server is not local. For high-throughput environments, you can change the default database pool (connection count): ``` DATABASE_POOL_COUNT=50 ``` ### Proxy configuration runZero makes outbound connections to receive platform updates (in online mode), to reach third-party APIs, and to deliver webhooks for notifications. If those connections need a proxy server, set: ``` HTTPS_PROXY=host:port ``` You can set a separate proxy for AWS connections; it takes precedence over `HTTPS_PROXY`: ``` HTTPS_PROXY_AWS=host-for-aws-services:port ``` Besides standard HTTP proxies, you can use a SOCKS proxy by specifying a URL like: ``` HTTPS_PROXY=socks5://socks.example.com:1080 ``` ### Storage configuration runZero stores raw scan data, change reports, and images retrieved from assets in local file storage. The storage directory must be owned by the `runzero` user and mounted below the /opt/runzero path. ``` RUNZERO_STORAGE_MODE=local RUNZERO_STORAGE_PATH=/opt/runzero/storage ``` Files in the storage directory are split into two groups, assets and scans. To rename them, set: ``` ASSET_BUCKET=assets SCAN_BUCKET=scans ``` To use AWS S3 for file storage instead, set: ``` RUNZERO_STORAGE_MODE=s3 ASSET_BUCKET=company-runzero-assets SCAN_BUCKET=company-runzero-scans ``` For a non-AWS backend that is compatible with the S3 API, use the same AWS and bucket variables, override `AWS_REGION`, and set `AWS_ENDPOINT_URL_S3` or `RUNZERO_STORAGE_ENDPOINT` to the endpoint. Reach out to runZero support if you run into trouble with the endpoint configuration. If the S3 buckets are in a different region than the environment, set `RUNZERO_STORAGE_REGION` to the buckets' region. With S3, AWS must also be [configured](#aws-configuration) with at least the `AWS_REGION` variable set, even when a non-AWS backend is enabled. ### Secret configuration runZero secures the platform with three randomly generated secret tokens. Each is a hexadecimal string made from 16 random bytes, and OpenSSL can generate compatible values: ``` $ openssl rand -hex 16 ``` The authentication key for local storage HMAC operations can be rotated as long as you restart the service afterwards: ``` RUNZERO_STORAGE_KEY_SECRET={SECRET_32_HEX} ``` The session secret key signs and validates browser session cookies. You can rotate it, but doing so invalidates all existing web sign-ins: ``` SESSION_SECRET={SECRET_32_HEX} ``` The DB key encrypts sensitive fields (user password hashes). It cannot be rotated without breaking password authentication: if it changes, users must reset their password from the command line or the web interface using email before they can sign back in: ``` DB_KEY={SECRET_32_HEX} ``` ### AWS configuration The AWS region is required: ``` AWS_REGION=us-east-1 ``` The Access Key ID and Secret must be valid and belong to a user with read-write access to the S3 buckets and read-only access to Secrets Manager. ``` AWS_ACCESS_KEY_ID=AKIA.... AWS_SECRET_ACCESS_KEY=SECRET.... ``` runZero can load almost any configuration setting from AWS Secrets Manager at startup. The Secrets Manager entries should match the key names in the configuration file. Set the secret name with: ``` AWS_SECRETS_MANAGER_KEY=runzero/production ``` Most [AWS CLI environment variables](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html) are also available alongside these variables for finer tuning. These settings change where the Explorer and scanner binaries are stored. They should still live under /opt/runzero, or the service can't load them: ``` RUNZERO_RELEASE_DIR=/opt/runzero/agent/ RUNZERO_SCANNER_RELEASE_DIR=/opt/runzero/scanner/ ``` ### Content security policy With a non-standard S3 configuration (or an S3-like deployment such as minio), the Content Security Policy headers must allow external image loads. Set CSP_IMAGES to one or more (comma-delimited) external image sources: ``` CSP_IMAGES=https://*.custom-storage-backend.lan ``` These CSP settings are also available: ``` CSP_SCRIPTS=https://*.myscripts.lan CSP_FONTS=https://*.myfonts.lan CSP_STYLES=https://*.mystyles.lan ``` ### Logging The self-hosted runZero console writes its ((logging)) output to standard output. On Linux, systemd picks this up and stores it in the ((journal)), where you can query it with the `journalctl` tool. For example, this command shows the most recent hour of logs, newest first: ``` journalctl --unit=runzero-console --since=-1hour --reverse ``` You can pipe the ((journalctl)) output to a text file to send to runZero support. You can configure the systemd logging subsystem to send log messages to a local ((syslog)) daemon as well as the journal. Once logs are in syslog, you can forward them across the network to ((remote logging)) servers using the standard syslog protocol. Some Linux distributions, such as RHEL, forward logs from systemd to syslog by default. Others, such as Ubuntu and Debian, don't include a syslog daemon in their default minimal server installs. To make systemd send logs to syslog, use the [ForwardToSyslog option](https://www.freedesktop.org/software/systemd/man/journald.conf.html#ForwardToSyslog=) in `/etc/systemd.conf`. Alternatively, some syslog daemons can read the systemd journal themselves; rsyslog, for example, has [imjournal](https://rsyslog.readthedocs.io/en/latest/configuration/modules/imjournal.html). runZero writes its logs in [((CEE))-enhanced](https://cee.mitre.org/language/0.6/CEE_Transport-Syslog_Mapping.html) JSON format, which works with rsyslog, [syslog-ng](https://www.syslog-ng.com/community/b/blog/posts/parsing-sudo-json-logs-building-a-syslog-ng-configuration), DataDog, and other common logging tools. For rsyslog, the [mmjsonparse](https://rsyslog.readthedocs.io/en/latest/configuration/modules/mmjsonparse.html) module can filter the logs on individual JSON fields and [forward them to ((ElasticSearch))](https://www.rsyslog.com/json-elasticsearch/) or other JSON databases. Set `LOG_MAX_LENGTH` in runZero's config file to cap the length of each log line, in bytes of UTF-8 text. A value of 0 means no limit, and other values below 480 are treated as 480. When truncating, runZero tries to preserve the most useful logging fields, and the result stays valid JSON. The limit applies before systemd or syslog adds anything to the start of the line. Set `LOG_FORMAT` to `text` to turn off the CEE and JSON format and log in plain text. For example: ``` LOG_FORMAT=text LOG_MAX_LENGTH=512 ``` ### HTTP timeouts Three configuration variables set the built-in web server's HTTP idle, read, and write timeouts. The defaults are below and don't usually need changing. ``` HTTP_IDLE_TIMEOUT_MINUTES=3 HTTP_READ_TIMEOUT_MINUTES=60 HTTP_WRITE_TIMEOUT_MINUTES=720 ``` ### Concurrent processing The runZero Console can process more than one completed task at a time when `RUNZERO_CRUNCHER_INSTANCES` is set to a value greater than 1. Tasks run concurrently only when they belong to different organizations, or to different sites within the same organization when the task doesn't require cross-site asset merging. Most third-party connectors and integrations require cross-site merging, so they can't take advantage of concurrent site processing within one organization. Resource requirements for concurrent task processing scale linearly with the instance count. This example lets the console process up to four concurrent tasks across all organizations: ``` RUNZERO_CRUNCHER_INSTANCES=4 ``` ### Custom JavaScript The self-hosted runZero Console can run your own JavaScript on its web pages. Add your JavaScript to /opt/runzero/etc/custom.js. The custom.js file doesn't exist until you create it in the /opt/runzero/etc folder. Then enable the feature by adding this variable to your configuration: ``` RUNZERO_CUSTOM_JS=true ``` ### HTTP headers You can disable the security headers sent by the runZero Console as needed with these options: ``` # Disable Strict-Transport-Security RUNZERO_DISABLE_HSTS=true # Disable X-Frame-Options RUNZERO_DISABLE_HXFO=true # Disable X-Content-Type-Options RUNZERO_DISABLE_HXCTO=true # Disable X-XSS-Protection RUNZERO_DISABLE_HXXP=true # Disable Referrer-Policy RUNZERO_DISABLE_HRP=true # Disable Content-Security-Policy RUNZERO_DISABLE_HCSP=true # Disable CSRF-Protection RUNZERO_DISABLE_CSRF=true ``` ### API availability This setting controls whether public APIs such as /health are enabled: ``` # Disable all unauthenticated API endpoints (/health) RUNZERO_DISABLE_PUBLIC_APIS=true ``` ### Disabling entitlements You can force-disable any license entitlement for the entire instance by setting `RUNZERO_DISABLE_` to `true`, where `` is the uppercased entitlement name. This overrides the license: it can only remove an entitlement, never grant one, and it applies to every account and organization on the instance. For example, to disable autonomous (autoscan) discovery everywhere: ``` RUNZERO_DISABLE_AUTOSCAN=true ``` The full set of supported variables is below, one per entitlement. Each is commented out; set the value to `true` to disable that entitlement. ``` # Asset ownership # RUNZERO_DISABLE_ASSET_OWNERSHIP=true # Risky assets # RUNZERO_DISABLE_RISKY_ASSETS=true # Passive monitoring, traffic sampling, and PCAP import # RUNZERO_DISABLE_PASSIVE_MONITORING=true # Manage Explorer groups # RUNZERO_DISABLE_EXPLORER_GROUPS=true # Goal tracking # RUNZERO_DISABLE_GOAL_TRACKING=true # Unlimited organizations (not just one) # RUNZERO_DISABLE_ORGS_UNLIMITED=true # Unlimited projects (not just one) # RUNZERO_DISABLE_PROJECTS_UNLIMITED=true # Continuous scanning and variable TTL # RUNZERO_DISABLE_SCANS_UNLIMITED=true # Concurrent scanning on Explorers # RUNZERO_DISABLE_SCANS_CONCURRENT=true # Subnet ping and host ping (sampling) modes # RUNZERO_DISABLE_SCANS_SAMPLING=true # Advanced scan targeting # RUNZERO_DISABLE_SCANS_TARGETING=true # Autonomous (autoscan) discovery scanning # RUNZERO_DISABLE_AUTOSCAN=true # AI features # RUNZERO_DISABLE_AI=true # Organization API access # RUNZERO_DISABLE_API_ORG=true # Account (client) API access # RUNZERO_DISABLE_API_ACCOUNT=true # Adjust organization data retention settings # RUNZERO_DISABLE_DATA_RETENTION=true # Rule engine processing # RUNZERO_DISABLE_RULES_BASIC=true # Basic reporting # RUNZERO_DISABLE_REPORTS_BASIC=true # Disable external (shareable, email-verified) report links # RUNZERO_DISABLE_DISABLE_EXTERNAL_REPORTING=true # ServiceNow export APIs # RUNZERO_DISABLE_INT_SERVICENOW=true # Splunk sync APIs # RUNZERO_DISABLE_INT_SPLUNK=true # Cisco export APIs # RUNZERO_DISABLE_INT_CISCO=true # HP export APIs # RUNZERO_DISABLE_INT_HP=true # Censys search import # RUNZERO_DISABLE_INT_CENSYS=true # CrowdStrike import # RUNZERO_DISABLE_INT_CROWDSTRIKE=true # Microsoft 365 Defender import # RUNZERO_DISABLE_INT_MS365DEFENDER=true # Miradore import # RUNZERO_DISABLE_INT_MIRADORE=true # Nessus import # RUNZERO_DISABLE_INT_NESSUS=true # Rapid7 Nexpose import # RUNZERO_DISABLE_INT_RAPID7=true # SentinelOne import # RUNZERO_DISABLE_INT_SENTINELONE=true # VMware API import # RUNZERO_DISABLE_INT_VMWARE=true # Tenable vulnerability management # RUNZERO_DISABLE_INT_TENABLE=true # Prisma Cloud integration # RUNZERO_DISABLE_INT_PRISMA=true # Tenable Security Center integration # RUNZERO_DISABLE_INT_TENABLE_SECURITY_CENTER=true # Rapid7 InsightVM vulnerability management # RUNZERO_DISABLE_INT_INSIGHTVM=true # Qualys vulnerability management # RUNZERO_DISABLE_INT_QUALYS=true # Shodan integration # RUNZERO_DISABLE_INT_SHODAN=true # Azure AD import # RUNZERO_DISABLE_INT_AZURE_AD=true # LDAP import # RUNZERO_DISABLE_INT_LDAP=true # Intune import # RUNZERO_DISABLE_INT_INTUNE=true # Google Workspace import # RUNZERO_DISABLE_INT_GOOGLE_WORKSPACE=true # Wiz import # RUNZERO_DISABLE_INT_WIZ=true # Meraki integration # RUNZERO_DISABLE_INT_MERAKI=true # Microsoft MECM integration # RUNZERO_DISABLE_INT_MECM=true # Tanium integration # RUNZERO_DISABLE_INT_TANIUM=true # NetBox integration # RUNZERO_DISABLE_INT_NETBOX=true # Dragos integration # RUNZERO_DISABLE_INT_DRAGOS=true # Jira integration # RUNZERO_DISABLE_INT_JIRA=true # Palo Alto Networks integration # RUNZERO_DISABLE_INT_PAN=true # Manage directory users # RUNZERO_DISABLE_DIRECTORY_USERS=true # Manage directory groups # RUNZERO_DISABLE_DIRECTORY_GROUPS=true # Cloud connections (AWS, GCP, Azure) # RUNZERO_DISABLE_INT_CLOUD=true # Create custom integrations # RUNZERO_DISABLE_INT_CUSTOM_INTEGRATIONS=true # Custom integration scripts # RUNZERO_DISABLE_INT_CUSTOM_INTEGRATION_SCRIPTS=true # Advanced reports # RUNZERO_DISABLE_REPORTS_ADVANCED=true # Self-hosted platform # RUNZERO_DISABLE_SELFHOSTED=true # Bulk user management # RUNZERO_DISABLE_BULK_USER_MANAGEMENT=true # Group expiration # RUNZERO_DISABLE_GROUP_EXPIRATION=true # SSO group mapping # RUNZERO_DISABLE_GROUP_MAPPING=true # Hosted external scans (hosted zones) # RUNZERO_DISABLE_HOSTED_ZONES=true # Rebrand # RUNZERO_DISABLE_REBRAND=true # Knowledge base sidebar # RUNZERO_DISABLE_KNOWLEDGE_BASE=true # Customizable dashboards # RUNZERO_DISABLE_CUSTOM_DASHBOARDS=true # Multiple customizable dashboards # RUNZERO_DISABLE_MULTIPLE_DASHBOARDS=true # Query builder # RUNZERO_DISABLE_QUERY_BUILDER=true # Metadata minimization # RUNZERO_DISABLE_METAMIN=true # Offline mode # RUNZERO_DISABLE_OFFLINE=true # Certificate inventory # RUNZERO_DISABLE_CERTIFICATE_INVENTORY=true # Findings inventory # RUNZERO_DISABLE_FINDINGS=true # Risk management event rule types # RUNZERO_DISABLE_RISK_EVENTS=true # Baseline goals # RUNZERO_DISABLE_BASELINE_GOALS=true # Immediate analysis recalculation on rapid response publish # RUNZERO_DISABLE_IMMEDIATE_RAPID_RESPONSE_RECALC=true # Create new sites # RUNZERO_DISABLE_CREATE_SITES=true # Suppress vulnerabilities, vulnerability groups, and findings # RUNZERO_DISABLE_SUPPRESSION=true # Issues # RUNZERO_DISABLE_ISSUES=true # Archive vulnerabilities # RUNZERO_DISABLE_ARCHIVE_VULNERABILITIES=true ``` ### Unofficial CPEs When runZero fingerprints an asset's operating system, it generates a CPE. If the NIST database has no official match, runZero generates an unofficial CPE by default. To turn this off, set `RUNZERO_GENERATE_UNOFFICIAL_CPE` to `false`: ``` RUNZERO_GENERATE_UNOFFICIAL_CPE=false ``` Unofficial CPEs include `r0_unofficial` in the `other` field of the CPE by default. You can change this to any alphanumeric-constrained tag of up to 32 characters: ``` RUNZERO_UNOFFICIAL_CPE_TAG=custom_unoffical_tag ``` ### Rewriting `cve.org` URLs To rewrite the `cve.org` links in the product UI to point at an internal mirror or another site, set the environment variable `RUNZERO_REPLACE_URL_PREFIX_CVEORG`. For example: ``` RUNZERO_REPLACE_URL_PREFIX_CVEORG=https://cve.mirror.local/cve/ ``` With this example, `cve.org` URLs in the product interface are rewritten to `https://cve.mirror.local/cve/$1`, where `$1` is replaced with the CVE identifier, such as `CVE-12345`. ## Permissions Installing and managing the self-hosted platform from the command line requires **root** access. The platform service (`runzero-console`) runs as **root** and spawns a worker subprocess that runs as the **runzero** user account inside a chroot environment (/opt/runzero). All substantive work happens in that isolated subprocess. Older installations use `rumble` instead of `runzero` in directory, file, and user names. The self-hosted platform uses these filesystem locations: ### /etc/runzero | Path | Owner | Permission | Notes | |---------------------------|-------|------------|----------------------------------------------------| | `/etc/runzero` | root | 0700 | Configuration files and certificates | | `/etc/runzero/config` | root | 0600 | A plain-text configuration file | | `/etc/runzero/certs` | root | 0700 | A directory containing the TLS certificate and key | | `/etc/runzero/certs/cert.pm` | root | 0600 | The TLS certificate in PEM format | | `/etc/runzero/certs/key.pm` | root | 0600 | The TLS certificate private key in PEM format | ### /opt/runzero {.pagebreak} | Path | Owner | Permission | Notes | |----------------------------------------|--------|------------|-----------------------------------------------| | `/opt/runzero/tmp` | runzero | 0755 | A temporary directory | | `/opt/runzero/storage` | runzero | 0700 | Contains asset and scan artifacts | | `/opt/runzero/console` | root | 0755 | Contains the platform executable | | `/opt/runzero/console/runzero-console.bin` | root | 0755 | The platform executable | | `/opt/runzero/agent` | root | 0755 | Contains the Explorer binaries | | `/opt/runzero/agent/runzero-agent-*` | root | 0755 | The Explorer binaries | | `/opt/runzero/scanner` | root | 0755 | Contains the CLI binaries | | `/opt/runzero/agent/runzero-scanner-*` | root | 0755 | The CLI binaries | | `/opt/runzero/proc` | root | 0755 | Contains copies of system /proc files | | `/opt/runzero/proc/cpuinfo` | root | 0644 | A copy of /proc/cpuinfo | | `/opt/runzero/proc/meminfo` | root | 0644 | A copy of /proc/meminfo | | `/opt/runzero/proc/version` | root | 0644 | A copy of /proc/version | | `/opt/runzero/etc` | root | 0755 | Contains copies of system files | | `/opt/runzero/etc/resolv.conf` | root | 0644 | A copy of /etc/resolv.conf | | `/opt/runzero/etc/hosts` | root | 0644 | A copy of /etc/hosts | | `/opt/runzero/etc/ca-certificates.crt` | root | 0644 | A copy of the system root CA store | | `/opt/runzero/etc/runzero` | runzero | 0700 | Contains instance identifiers | | `/opt/runzero/etc/runzero/cruncher.id` | runzero | 0700 | A unique ID to identify the cruncher instance | | `/opt/runzero/etc/runzero/hub.id` | runzero | 0700 | A unique ID to identify the hub instance | | `/opt/runzero/config` | root | 0700 | Unused today | ## Backup and restoration You can back up and restore your runZero installation and data to preserve your configuration. ### runZero data backup To back up a self-hosted installation, archive the file system and the database. The file system archive includes these paths: - `/etc/runzero` - `/opt/runzero` - `/lib/systemd/system/runzero-console.service` - `/etc/systemd/system/multi-user.target.wants/runzero-console.service` - `/usr/bin/runzeroctl` A sample file system backup command: ```bash # tar zcvf runzero-backup-fs.tar.gz /etc/runzero/ /opt/runzero/ \ /lib/systemd/system/runzero-console.service \ /etc/systemd/system/multi-user.target.wants/runzero-console.service \ /usr/bin/runzeroctl ``` Back up the PostgreSQL database separately. A sample command: ```bash # sudo su - postgres $ pg_dumpall -f runzero.sql && gzip runzero.sql ``` ### runZero data restoration To restore the runZero install: 1. Stop any running runZero service: ```bash # runzeroctl stop ``` 2. Unpack the filesystem archive: ```bash # tar -C / -zxvf /path/to/runzero-backup-fs.tar.gz ``` 3. Restore the PostgreSQL database: ```bash # sudo su - postgres $ dropdb runzero; gzip -dc runzero.sql.gz | psql ``` 4. Restart the runZero service: ```bash sudo systemctl restart runzero-console ``` ## Support and debugging The `runzeroctl` command includes a debugging tool that collects diagnostics from your server and assembles them into a zip file you can send to support. If support asks for it, run: ```bash runzeroctl diagnostics run-script ``` Data is written to `/opt/runzero/collector`. To examine the script before running it, save a copy to the current directory instead: ```bash runzeroctl diagnostics write-script ``` For more on the diagnostics collection script, see [Self-hosted troubleshooting](docs/self-hosting-collection.md). ## Manual migrations Starting with version `4.0.240221.0`, the runZero self-hosted upgrade runs migrations before restarting the service. If you run an older version and want to avoid downtime while upgrading a single-node self-hosted installation, use these steps: 1. Get the self-hosted download link from the [runZero SaaS](https://console.runzero.com). 2. Download the file manually to your self-hosted systems: `$ curl -o platform.bin https://console.runzero.com/....../runzero-platform.bin` 3. Mark the file executable and run it with the `task db:migrate` parameter: `$ chmod u+x platform.bin; ./platform.bin task db:migrate` 4. Once the migrations finish, install the update as usual: `$ runzeroctl update` --- docs/self-hosting-offline.md --- title: "Offline mode configuration" --- ## Supported operating systems {#offline-supported-operating-systems} The runZero self-hosted console runs on the same operating systems whether you install online or offline: Ubuntu 18.04+, RHEL 7+, CentOS 7+, Oracle Linux 7+, and Debian 9+, on x86_64. See [Supported operating systems](self-hosting.md#supported-operating-systems) in Self-hosting runZero for the full list. Offline installs need PostgreSQL packages available locally. The PostgreSQL.org RPM bundles linked below cover RHEL/CentOS 8, 9, and 10. On older or other distributions, supply PostgreSQL through your own offline mirror, or use `--distro-packages-only` to install the PostgreSQL version your OS provides (it must be PostgreSQL 14 or newer). ## ((Offline installation|offline installation)) {#offline-install} The install command accepts these flags: `--offline`, `--postgres-version`, `--distro-packages-only`, and `--postgres-rpm-directory`. `--offline` : Configures the installation to run without internet access. The installer may still need network access during installation to fetch dependencies. It uses the upstream postgresql.org packages by default; the options below turn that off. `--postgres-version` : Selects a major version of PostgreSQL (14-18). If your operating system doesn't ship the default version (18), you may need the PostgreSQL.org packages instead, which for an offline installation may mean downloading them ahead of time. `--distro-packages-only` : Installs the platform without third-party repositories. The installer looks for the PostgreSQL package in the operating system's configured repositories (local or remote). If no repository is reachable, you can point it at a directory of packages on the file system with the option below. OS packages may be limited to older versions of PostgreSQL. `--postgres-rpm-directory [directory]` : Installs from ((PostgreSQL)) RPM files you supply (requires RHEL or CentOS). The installer uses the ((RPMs)) in the specified directory to satisfy the PostgreSQL dependencies. The console installs to `/opt/runzero` by default. To change that, use the `--install-directory [directory]` option. ### PostgreSQL RPMs required for `--postgres-rpm-directory` Installing PostgreSQL requires four RPMs: - postgresql18 - postgresql18-server - postgresql18-contrib - postgresql18-libs #### x86_64 Intel - [RHEL/CentOS 10 RPMs](https://download.postgresql.org/pub/repos/yum/18/redhat/rhel-10-x86_64/) - [RHEL/CentOS 9 RPMs](https://download.postgresql.org/pub/repos/yum/18/redhat/rhel-9-x86_64/) - [RHEL/CentOS 8 RPMs](https://download.postgresql.org/pub/repos/yum/18/redhat/rhel-8-x86_64/) #### 64-bit ARM - [RHEL/CentOS 10 RPMs](https://download.postgresql.org/pub/repos/yum/18/redhat/rhel-10-aarch64/) - [RHEL/CentOS 9 RPMs](https://download.postgresql.org/pub/repos/yum/18/redhat/rhel-9-aarch64/) - [RHEL/CentOS 8 RPMs](https://download.postgresql.org/pub/repos/yum/18/redhat/rhel-8-aarch64/) ### Example install commands for offline mode First, download the [runZero platform](https://console.runzero.com/deploy/download/platform). #### RHEL/CentOS 8, 9, or 10 1. Download the RPMs listed above and store them in a directory. 2. Run this install command as root: ```bash ./runzero-platform-[VERSION]-linux-amd64.bin install --offline --postgres-rpm-directory [RPM_DIRECTORY] --postgres-version=18 ``` #### Ubuntu 18.04+, Debian 9+, RHEL 7+, CentOS 7+, or Oracle Linux 7+ 1. Run this install command as root: ```bash ./runzero-platform-[VERSION]-linux-amd64.bin install --offline --distro-packages-only ``` On Debian, become root with `su -`, not just `su`. On distributions whose default PostgreSQL is older than 14, supply a newer PostgreSQL through `--postgres-rpm-directory` (RHEL/CentOS 8/9/10) or your own offline mirror.
Some parts of the application still use the name "Rumble" for backwards compatibility. We'll update the documentation as they change.
## Enabling offline mode for existing installs - Open `/etc/runzero/config` in an editor. - Find `OFFLINE=` and change it to `OFFLINE=true`. - Restart the runZero service with `runzeroctl restart`. ## CLI update with offline mode {#offline-update} Update the self-hosted runZero platform before first use. ### Update the runZero platform and scanners with an offline update - Go to [https://console.runzero.com/deploy/download/platform](https://console.runzero.com/deploy/download/platform). - Copy the command from the download page and run it in your terminal, or run one of these commands against the zip archive you downloaded: ```bash runzeroctl update runzero-platform-update-[VERSION].zip ``` ```bash runzeroctl update --offline --zip-file-path runzero-platform-update-[VERSION].zip ``` Change the version to match the zip archive you downloaded. --- docs/self-hosting-ha.md --- title: "High-availability configuration" aliases: ["/docs/self-hosted-ha/"] --- You can configure a self-hosted runZero installation for ((high-availability)): a load balancer directs traffic to multiple console servers, which share a PostgreSQL cluster and a storage backend. The diagram below shows an example architecture on AWS with two availability zones. ![Self-Hosted HA Architecture](img/self-hostedHA.svg) In the diagram, an application load balancer (ALB) terminates TLS and points to a target group of two runZero servers in separate availability zones. Both servers use a multi-availability-zone PostgreSQL RDS instance configured for the same two zones, and both point to the same set of S3 storage buckets. ## Installation steps {#high-availability-install} Installing and configuring a high-availability instance of runZero takes these steps: 1. [Deploy an application load balancer.](#deploy-a-load-balancer-with-tls-termination) 2. [Install and configure the first server node.](#prepare-the-first-runzero-server-node) 3. [Install and configure subsequent server nodes.](#installing-and-configuring-subsequent-nodes) ## Deploy a load balancer with TLS termination An application load balancer gives the runZero cluster its high-availability interface: it receives TLS connections and forwards the HTTP requests to the available servers. The load balancer should be highly available on its own. Any load balancer that can proxy large HTTP requests and websockets should work. It should add an X-Forwarded-For header to the requests it sends on to the runZero servers, and it should detect unhealthy nodes so that failover happens automatically. You can use the /health endpoint on the runZero servers for its health checks. ## Prepare the first runZero server node To install and configure the first runZero node: 1. Install the runZero platform. 2. Configure the console URL and TLS/XFF settings. 3. Configure the database settings. 4. Configure the shared storage settings. 5. Verify your configuration. 6. Create the initial user account. 7. Add the runZero server to the load balancer and verify the connection. ### Install the runZero platform {#high-availability-first-install}
Some parts of the application still use the name "Rumble" for backwards compatibility. We'll update the documentation as they change.
1. Go to the [platform download page](https://console.runzero.com/deploy/download/platform) in the runZero Console. 2. Copy the URL of the platform installer from the download page. The download path is uniquely keyed to your license. 3. Download the installer with Wget or cURL: - `wget -O runzero-platform.bin https://console.runzero.com/download/platform-combined//62e41615/runzero-platform-vX.X.X-linux-amd64.bin` - `curl -o runzero-platform.bin https://console.runzero.com/download/platform-combined//62e41615/runzero-platform-vX.X.X-linux-amd64.bin` 4. Make the installer executable: ```bash # chmod u+x runzero-platform.bin ``` 5. Run the install command with the manual database option: ```bash # ./runzero-platform.bin install --manual-database ``` ### Configure the console URL and TLS/XFF The high-availability settings live in `/etc/runzero/config`. Start with the console URL and the TLS/XFF settings. - Set the RUNZERO_CONSOLE variable to the hostname or IP address of the load balancer: ```bash RUNZERO_CONSOLE=https://{IP ADDRESS OR HOSTNAME}:443 ``` - Disable TLS and trust X-Forwarded-For headers with these two lines: ``` TLS=false RUNZERO_TRUST_XFF=true ``` ### Configure the database - Edit the DATABASE_URL value to match this format: ```bash DATABASE_URL=postgres://{DB_USER}:{DB_PASSWORD}@{DB_HOST}:{DB_PORT}/{DB_NAME}?{DB_OPTIONS} ``` An example DATABASE_URL for AWS RDS looks like: ```bash DATABASE_URL=postgres://rumble:[password]@rumbledb.rds-id.us-east-1.rds.amazonaws.com:5432/rumble?sslmode=require ``` To send read-only queries to a replica, set DATABASE_REPLICA_URL with the same syntax. For RDS Aurora, use the read-only endpoint as the replica URL. Without replicas, only DATABASE_URL is required, and on RDS Aurora it should point to the writer endpoint. With any other type of PostgreSQL clustering, make sure DATABASE_URL points to the highly-available endpoint for the active writer. ### Configure shared storage The shared storage backend holds asset data, raw scan data, and reports. runZero supports both mounted NFS and object storage. - To use NFS, mount a read-write NFS share at /opt/runzero/storage and select local storage mode with these options. The bucket names are created under the NFS mount base directory. ```bash RUNZERO_STORAGE_MODE=local RUNZERO_STORAGE_PATH=/opt/runzero/storage ASSET_BUCKET=runzero-assets SCAN_BUCKET=runzero-scans ``` - To use AWS S3 as the shared storage, either configure an IAM instance role with read-write access to two S3 buckets, or put the AWS credentials in the configuration file. - To set AWS credentials specifically for runZero, use this syntax: ```bash AWS_ACCESS_KEY_ID=AKIA… AWS_SECRET_ACCESS_KEY=[SECRET] ``` - Select S3 storage and name the two buckets: ```bash AWS_REGION= RUNZERO_STORAGE_MODE=s3 ASSET_BUCKET=-runzero-assets SCAN_BUCKET=-runzero-scans ``` For a non-AWS backend that is compatible with the S3 API, use the same AWS and bucket variables, override AWS_REGION, and set AWS_ENDPOINT_URL_S3 to the endpoint. Reach out to runZero support if you run into trouble with the endpoint configuration. Most [AWS CLI environment variables](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html) are also available alongside these variables for finer tuning. ### Verify the configuration 1. After saving the configuration file, verify that the self-hosted runZero platform can connect to your database: ```bash sudo runzeroctl database verify ``` 2. Once the settings are configured and verified, restart the self-hosted runZero platform service: ```bash sudo systemctl restart runzero-console ``` ### Create the initial user account - Run `runzeroctl initial ` to create the initial user account. ### Add the runZero server to the load balancer and verify the connection - Point the load balancer at the new runZero server's IP on port 80 (unless you changed it). - Browse to the load balancer URL over HTTPS using the configured DNS name. - Verify that the user account you just created can sign in. ## Installing and configuring subsequent nodes - Download and install the runZero platform binary on each node as above, with the `--manual-database` option. - Copy the configuration file from the first node to `/etc/runzero/config` on each subsequent node. - After saving the configuration file, verify that the self-hosted runZero platform can connect to your database: ```bash sudo runzeroctl database verify ``` - Restart the platform service: ```bash sudo systemctl restart runzero-console ``` Spread the runZero nodes across multiple availability zones and add them to the load balancer's target group. To confirm that requests reach each node, review the syslog entries on that node. ## AWS advanced configuration {#high-availability-s3} runZero can load configuration settings from AWS Secrets Manager at startup. The Secrets Manager entries should match the key names in the configuration file. Set the secret name with: ``` AWS_SECRETS_MANAGER_KEY=rumble/production ``` For runZero to reach Secrets Manager, the configuration file must set AWS_REGION, and the instance needs either an IAM instance role with permission to read the Secrets Manager key or AWS credentials specified directly in the configuration file. With Secrets Manager in use, only the AWS options need to be in the configuration file; runZero loads the rest of the settings from the Secrets Manager key. That means copying the settings from the generated configuration file into the Secrets Manager key-value pairs. Many settings must be identical across the runZero cluster for web requests and authentication to work, including the session secrets, the DB encryption key, and the console URL. --- docs/self-hosting-collection.md --- title: "Self-hosted troubleshooting" --- The runZero console includes a ((diagnostics collection)) script that gathers the performance statistics, log files, system configuration, and profile debug capture needed to troubleshoot a self-hosted environment, then compresses them into one archive you can send to runZero support. Collecting that data by hand means running many different commands and finding many files. The script checks permissions and dependencies first, and it works the same way on a system running your self-hosted console or an Explorer. ## Requirements {#self-hosted-troubleshooting-requirements} Run the script on a Linux system with these dependencies installed: | Dependency | To install (Ubuntu) | To install (RHEL, CentOS, Fedora, Oracle Linux) | |------------|-----------------------|-------------------------------------------------| | `zip` | `apt install zip` | `dnf install zip` | | `unzip` | `apt install unzip` | `dnf install unzip` | | `lsscsi` | `apt install lsscsi` | `dnf install lsscsi` | | `iostat` | `apt install sysstat` | `dnf install sysstat` | | `curl` | `apt install curl` | `dnf install curl` | Run it as `root` or with `sudo` so it can read the system files and the `/opt/runzero` and `/etc/runzero` directories. ## Running the script {#self-hosted-troubleshooting-script} ### Using runzeroctl To run the script through `runzeroctl`, use: `runzeroctl diagnostics run-script` Output goes to `/opt/runzero/collector`. ### Manually To run the script by hand, first write a copy of it to the current directory: `runzeroctl diagnostics write-script` The copy is named `runZero-collector.sh`. Run it with: `sudo ./runZero-collector.sh` The script also has a `--help` option. The script performs these tasks: * Check for the required permissions. * Check for the dependency commands (lsscsi / zip / unzip / iostat / curl). * Check that the operating system is Linux. * Check that either a runZero Explorer or runZero console is installed. * Collect system configuration information. * Collect system performance statistics. * Collect database configuration information. * Collect some basic statistics from the database. * Collect runZero debug information from the console or log files from the Explorer. * Create a zip file of the data collected and the log from the script. ## Logging {#self-hosted-troubleshooting-logging} The script logs every action to a file in `/tmp` and tells you the file name. When it finishes, it moves the log into the `/opt/runzero/collector` directory. Installing a runZero Explorer or runZero console doesn't create that directory, so the script creates it if needed and places all of its files there. --- docs/data-retention.md --- title: "Data retention" --- You can set ((data retention)) periods for each [organization](organizations.md). The organization settings page gives you three ways to control how runZero manages your asset and scan data. runZero expires data in a nightly batch job, using the current settings of each organization in your account. The runZero Platform keeps data for up to 1 year by default. For active subscriptions, the retention period can be increased to a maximum of 3 years. The runZero Community Edition is limited to 30 days of retention. ## ((Stale asset expiration)) Stale asset expiration purges out-of-date information from runZero: assets that haven't been seen in the specified number of days are deleted automatically. The deletion task runs once per day. The limit applies to online and offline assets alike. If an asset was online when last scanned but hasn't been scanned (or imported through a connector) in the specified number of days, its information is stale and runZero deletes it. It's like running the asset search `last_seen:>Xdays` (where X is a number) and deleting the results. You can set stale asset expiration at both the Organization and Site levels; the lower value wins. To disable it, set the number of days to zero. ## ((Offline asset expiration)) Offline asset expiration clears out information about assets that no longer exist on the network: assets that are offline and haven't been seen in the specified number of days are deleted automatically. Online assets are untouched. The deletion task runs once per day. This setting applies to offline assets discovered by runZero scans. Assets with only connector/import data fall under stale asset expiration. The asset state (`alive:false`) determines whether an asset is offline. The `last_seen` value then measures the asset's age against the configured threshold; on its own, that value doesn't classify an asset as offline. The cleanup also requires scan-backed assets (`scanned:true`) with a runZero scan source. This is useful for guest wireless networks or networks with short DHCP leases. It's closest to running the asset search `last_seen:>Xdays AND alive:false AND scanned:true` (where X is a number) and deleting the results. Stale asset expiration runs separately and can remove the same assets sooner when its threshold is lower. To disable offline asset expiration, set the number of days to zero. ## ((Stale integration attribute expiration)) Stale integration attribute expiration clears out data from integrations that no longer report an asset: attributes the integration hasn't reported in more than the specified number of days are deleted automatically, and assets left with no data sources are removed too. The deletion task runs once per day. You can keep the latest attribute set per integration, even when it is older than the threshold. To disable stale integration attribute expiration, set the number of days to zero. ## ((Stale vulnerability expiration)) Stale vulnerability expiration removes out-of-date vulnerability data: vulnerabilities not updated in more than the specified number of days are deleted automatically. The deletion task runs once per day. To disable stale vulnerability expiration, set the number of days to zero. ## ((Scan data expiration)) Scan data expiration controls how long runZero keeps the raw data and metadata for Scan and Import tasks. If your organization has a maximum data retention policy for cloud services, use this setting to force the removal of any data older than a given number of days. The default of 365 keeps one year of historical scan data. ## ((Event records)) Account-level event records (under Alerts -> Events) are always kept for one year. To keep copies longer than that, export and archive them through the API. ## ((AI threads and artifacts)) Data from the [AI section of the console](ai-threads.md) has fixed retention windows that you can't change: * **AI threads** (conversations, private to the user who started them) are removed 180 days after their last use. Every new turn resets the clock, so an active thread never expires; renaming one does not. * **Unshared AI artifacts** are removed with the thread that produced them, attached files included. **Shared artifacts** are kept indefinitely while shared; unsharing one restores the thread-derived expiry. * **AI run records** (the job and its streamed event log) are temporary: about 15 minutes while a run is active and 24 hours after it ends. The durable results are the thread and its artifacts. Cleanup runs daily. Users can delete their own threads and artifacts at any time, and deleting a thread removes its unshared artifacts immediately. ## ((Custom integration script versions)) Custom integrations keep the [most recent 25 versions](custom-integration-scripts.md#version-history) of their script. Older versions are pruned as new ones are saved, and deleting a custom integration deletes its version history. ## ((Data deletion after account termination)) When your runZero Platform subscription ends, runZero deletes your data according to the table below. | Data Type | Default | Maximum | |-----------|---------|---------| | Stale assets (devices that have not received any new data from active, passive, or integration tasks) | 180 days, unless requested earlier by emailing support[at]runzero.com | 3 years (solely as set by you in runZero Platform prior to account termination) | | Task data (raw data associated with each discovery task) | 1 year, unless requested earlier by emailing support[at]runzero.com | 3 years (solely as set by you in runZero Platform prior to account termination) | | All other data (including data contained in support tickets, administrative data, etc.) | Upon written request by you to runZero at support[at]runzero.com | n/a | | Any of the above data types archived as a copy on backup systems | 1 year from date original data point is deleted | n/a | If you downgrade from a runZero Platform subscription to the free Community Edition, runZero deletes your data according to the table below. | Data Type | Default | Maximum | |-----------|---------|---------| | Stale assets (devices that have not received any new data from active, passive, or integration tasks) | 30 days, unless requested earlier by emailing support[at]runzero.com | 3 years (solely as set by you in runZero Platform prior to account termination ) | | Task data (raw data associated with each discovery task) | 10-30 days, unless requested earlier by emailing support[at]runzero.com | 3 years (solely as set by you in runZero Platform prior to account termination ) | | All other data (including data contained in support tickets, administrative data, etc.) | Upon written request by you to runZero at support[at]runzero.com | n/a | | Any of the above data types archived as a copy on backup systems | 1 year | n/a | --- docs/managing-your-team.md --- title: "Managing access" --- runZero supports multiple concurrent users with different ((roles)). You set roles per user, both as a default and per organization. The built-in roles are administrator, user, billing, annotator, viewer, and no access. A superuser role also exists for managing global settings. You can also define [custom roles](custom-roles.md) that grant exactly the permissions a team needs, and assign them anywhere a built-in role can be assigned. The console URLs in this article use `console.runzero.com` as an example. Use the URL for your runZero deployment instead. When a user holds several roles, the most privileged one wins. For example, a user who has user access through a group and admin access assigned directly gets admin privileges. ## Available roles ### Superuser The first user created in the runZero console is a ((superuser)). Superusers manage global settings such as subscriptions and SSO parameters, and the console shows their access level as "everything". If you are a superuser, you can promote another user: check their row and click the _Promote to superuser_ button. If you use [SSO authentication](implementing-sso.md), configure at least one superuser with a strong password and MFA as a backup, so you can still change the SSO settings if you need to. We strongly recommend more than one superuser, particularly if you use MFA. If an MFA token is lost or a superuser leaves your organization, another superuser can fix the problem. ### Administrator ((Administrators)) can modify any aspect of an organization. Only they can permanently delete bulk data, create additional organizations, and reset settings for other users. ### User Users have full access to an organization: they can update sites, modify assets, schedule scans, and use most other functionality. They cannot reset other users' security credentials, bulk delete data, or delete an organization. ### Billing ((Billing)) users manage the licensing, billing, and entity settings for the account. They cannot see any asset data. ### Annotator ((Annotators)) have the same permissions as a viewer, plus the ability to add tags to assets. They have no other write access within an organization, so they cannot modify or remove existing tags. Only a runZero user or administrator can change an existing tag. ### Viewer ((Viewers)) have read-only access to an organization, including inventory data, findings, queries, and reports. They cannot interact with tasks, modify settings, or update assets. They also cannot install explorers or download the CLI scanner, and they have no access to client API tokens or organization-level API tokens. Viewers cannot generate some reports, including the Organization overview report, the External assets report, and the Organization and site comparison report. Previously generated versions of these reports remain visible. ### No access The _no access_ role is usually set as a default. An account with ((no access)) as its default can reach only the organizations you grant it. If you grant none, the user can only manage their own account settings. The no access global role lets you create a single-organization user, such as a customer or third party who needs access to the inventory of one specific organization. For consulting use cases, a single-organization user gives clients visibility into their own environment at no additional cost. The _no access_ role also works as the account default when you place no limits on who can sign in through your SSO system. New users sign in and request access, and you then grant their newly created account access to the appropriate organizations. ### Custom roles When no built-in role fits, define a [custom role](custom-roles.md) with the exact permissions you want. You create custom roles once for the account on the [Roles](https://console.runzero.com/account/roles) page, then use them as a user's default role, a per-organization role, a group role, the SSO enrollment default, or locked to an [API client](api-clients.md). [Custom roles and permissions](custom-roles.md) covers the permission model and how multiple roles combine. ## Inviting users To add a ((team member)), open the [Your team](https://console.runzero.com/team) page and click the _Invite user_ button to send an invitation. The **Your team** menu entry has several submenus. - _Users_ shows all users in the current client account. - _Restricted_ lists users who by default have no access to any organization. - The entry named for the current organization (the one selected in the organization selector at the top of the screen) shows only the users with access to that organization. - _External_ is where you invite users from other runZero client accounts. - _Groups_ lists the available [user groups](managing-user-groups.md). Use groups to set the access and permissions users have within each organization. ## User details On the Users page, click a user to open their details page, which lists their effective access to each organization in three sections: - _User access_ lists organizations the user was granted directly. - _Group access_ lists organizations the user reaches through membership in a group that has access to them. - _SSO group access_ lists the same kind of group access, for groups assigned through [SSO group roles](implementing-sso.md). To edit a user's directly assigned permissions, click the gear icon at the right of their row in the user listing, or the button at the top right of their user details page. The gear icon edits the explicitly assigned roles. The user details page shows the resulting access levels. ## Account settings {#account-settings} The _Account_ page is available to superusers. Its settings apply to all users and organizations within the account. ### Single sign-on (((SSO))) {#sso-settings} runZero supports [SSO](implementing-sso.md) through SAML2. If you use a SAML2-compatible single sign-on (((SSO))) implementation, configure your Identity Provider (IdP) on the [SSO Settings](https://console.runzero.com/team/sso/idp/) page so permitted users can sign in to the runZero console. ### Multi-factor authentication (((MFA))) {#mfa-settings} runZero supports ((multi-factor authentication)), also known as ((two-factor authentication)) or ((2FA)). Physical hardware keys such as [Google TitanKey](https://cloud.google.com/titan-security-key/) and [Yubico YubiKey](https://www.yubico.com/store/) work through the [WebAuthn](https://webauthn.guide/) standard.
The WebAuthn standard does not accept an IP address as the relying party identifier, so you cannot configure multi-factor authentication on a self-hosted console unless you access the console by domain name.
Configure MFA policies for your account on the [Account settings page](https://console.runzero.com/account). If you require multi-factor authentication, users without an MFA token must set one up the next time they sign in. You can require it for all users or only for non-SSO users. The second option is useful when your SSO server already enforces MFA. Once a user registers one or more MFA tokens, they must use one of them every time they sign in. **Changing the account settings to no longer require MFA does not alter the MFA status of existing accounts.** Those accounts keep the MFA tokens they registered and must still use one to sign in. To disable MFA for a user, that user must clear their own token registration on their [user settings page](https://console.runzero.com/settings) by clicking the red "Unlink" text next to the token ID in the bottom right. ### Disabling support access {#disabling-support} Check the box labeled _Disable support access to your account_, and runZero support staff can no longer switch to your account. Disabling support access may make it harder for runZero support to answer your questions. In some cases we may need you to turn it back on before we can help. ### Idle times and sign in duration {#session-timeout} You can set a maximum idle session time in minutes. Users whose web browsers don't access runZero for that long are considered idle and signed out. You can also set a maximum sign in duration. Users then have to sign in again at least that often. ### Account API keys {#account-api-keys} The ((Account API)) is a REST API for account-level operations such as adding and removing organizations and sites, adding users, and reading the system event log. The _Generate API Key_ button on the Account page creates a token that grants access to the Account API. ### Roles {#roles-settings} The _Roles_ page lists the built-in roles and any [custom roles](custom-roles.md) defined for the account, with the permissions each one grants and how many users, groups, and API clients hold it. Superusers and administrators of every organization can create and change custom roles there. ### API clients {#api-clients-settings} The _API clients_ page manages [account-bound API clients](api-clients.md#account-bound): credentials with an explicit set of permissions and organizations, not tied to any user account. Users manage their own [user-bound API clients](api-clients.md#user-bound) from [My API clients](https://console.runzero.com/settings/api-clients) in their settings. ### License information {#license-info} The _License_ page shows your runZero software license: how many assets you are licensed for, how many assets you have across all organizations, and when the license renews. ### Entity information {#entity-info} The _Entity_ page is where you update information about the legal entity runZero is licensed to. Keep that information current if your company changes its name or location, because we use it to calculate taxes and to comply with the applicable regulations. ### Audit log {#audit-log} The _Audit log_ page shows the history of system events relevant to the superuser, such as login events, which the organization Events page does not show. [runZero events](events.md) lists the full catalog of event actions. --- docs/custom-roles.md --- title: "Custom roles and permissions" --- Every ((role)) in runZero is a set of permissions. The [built-in roles](managing-your-team.md#available-roles) are fixed sets that cover the common cases. A ((custom role)) is a set you define yourself, so you can grant exactly the access a team needs instead of rounding up to Administrator or down to Viewer. You define a custom role once for the whole client account, then assign it anywhere a built-in role can go: as a user's default role, as a per-organization role for a user or a [group](managing-user-groups.md), as the [SSO enrollment default](implementing-sso.md), or locked to an [API client](api-clients.md). The console URLs in this article use `console.runzero.com` as an example. Use the URL for your runZero deployment instead. ## How permissions work {#permission-model} A permission is a ((verb)) applied to an ((area)). An area is a family of records or settings, such as inventory or alerts. A verb says what you may do to it. ### Verbs Verbs are ranked, and a higher verb includes every lower one. Granting `write` on an area also grants `annotate` and `read` on that area. | Verb | What it allows | | ---- | -------------- | | Read | Read, search, list, view detail, and export existing records. Nothing changes. | | Annotate | Change user-supplied metadata on a record you can already read: tags, comments, ownership, criticality, and issue status. It never changes scan-derived facts or configuration. | | Write | Create, change, and delete records, and run operations that change data. | | Manage | Change the settings that govern an area for everyone else, and create or change credentials, permissions, and organization structure. | Only inventory and findings have anything that can be annotated. Every other area goes straight from read to write. ### Areas {#permission-matrix} | Area | Covers | Verbs available | | ---- | ------- | --------------- | | `inventory` | Assets, services, software, certificates, and sites. | read, annotate, write, manage | | `findings` | Vulnerabilities and issues. | read, annotate, write, manage | | `tasks` | Scan tasks, scan templates, and raw task artifacts. | read, write, manage | | `events` | The activity record. Append-only, so read is the only verb. | read | | `alerts` | Alert rules, notification channels, and alert templates. | read, write, manage | | `explorers` | Explorers, explorer groups, and hosted zones. | read, write, manage | | `sources` | Integration sources and custom integrations. | read, write, manage | | `queries` | The saved query library, including the Rapid Response feed. | read, write, manage | | `directory` | Directory user and group records collected by integrations and scans. Harvested data, so read is the only verb. | read | | `users` | Console users, user groups, and invitations. | read, write, manage | | `organizations` | Organizations, their settings, and their hierarchy. | read, write, manage | | `credentials` | The credentials runZero uses to authenticate scans and integrations. | read, write, manage | | `tokens` | API keys, export tokens, and API clients. | read, manage | | `ai` | AI Hub, AI threads, and query translation. | read, write, manage | | `reports` | Reports, external reporting, and goals. | read, write, manage | | `account` | Account settings and license information. | read, manage | | `content` | Reference content runZero ships, such as vulnerability match rules and scan checks. Read-only for everyone. | read | Four distinctions are worth reading twice, because the names are similar and the access is not: - `users` is console identity and `directory` is collected data. `users` covers the people who sign in to your console. `directory` covers the user and group records that scans and integrations bring back from LDAP, Entra ID, and similar sources. Granting one does not grant the other. - `credentials` is scan credentials and `tokens` is API credentials. `credentials` covers the secrets runZero uses to log in to your systems. `tokens` covers the keys and clients that let something log in to runZero. A credential that can create another credential is a way to escalate privilege, so keep `tokens` restricted. - `tasks` includes raw scan artifacts. A raw artifact includes the inventory and directory records the scan collected, so `tasks:read` reaches that data without a separate `inventory` or `directory` grant. - Permission is not the same as visibility. A permission says what you may do; the organizations attached to the assignment say where. Both apply on every request. ### What the verbs mean in practice The same permissions drive the console, the [API](leveraging-the-api.md), and [MCP](mcp.md). If a role cannot write inventory, the console hides the buttons that write inventory, the matching API routes refuse the call, and the AI client is not offered the MCP tools that would change inventory. No surface enforces a permission the others skip. Worked examples for the areas where the line between verbs matters most: | Permission | What it allows | | ---------- | -------------- | | `inventory:read` | Search and view assets, services, software, certificates, and sites, and export them. | | `inventory:annotate` | The above, plus tagging assets, setting ownership and criticality, and adding comments. | | `inventory:write` | The above, plus editing and deleting assets, and moving them between sites. | | `inventory:manage` | The above, plus bulk deletion and the inventory settings that apply to everyone. | | `tasks:read` | View scan and integration task history, and download raw task artifacts, which include the inventory and directory data those scans collected. | | `tasks:write` | Start, stop, and delete scans. | | `tasks:manage` | The above, plus creating and changing scan templates. | | `findings:annotate` | Change issue status and suppression state without changing the underlying findings. | | `sources:write` | Configure and run integration sources. | | `sources:manage` | The above, plus custom integrations. | | `users:read` | See who is on the team and what access they have. | | `users:manage` | Invite, change, and remove console users and groups. This is the permission that makes someone an administrator of an organization. | | `tokens:read` | See which API credentials exist. | | `tokens:manage` | Create, change, and revoke API keys, export tokens, and API clients, and approve [MCP connections](mcp.md#mcp-oauth). | | `credentials:manage` | Create, change, and delete the credentials used to authenticate scans, and list them through the API and MCP. Secret values are never returned by any permission. | An export always requires the same permission as reading the data in the console. No separate export permission exists to grant or withhold. ### What a custom role cannot grant {#structural-privileges} Some privileges are structural and never part of a role's permissions: - Superuser: global settings, subscriptions, and SSO configuration. - Billing: licensing, billing, and entity settings, which stay with the built-in Billing role. - Account settings: the `account` area is reserved for built-in roles, so a custom role cannot grant it. - Managing roles: a custom role can never authorize changes to roles, including its own permissions. ## What the built-in roles grant {#built-in-role-permissions} The built-in roles are the same permission model expressed as fixed sets. Use this table as a starting point when deciding which permissions a custom role should include. A dash means no access to that area. | Area | Administrator | User | Annotator | Viewer | Billing | | --- | --- | --- | --- | --- | --- | | `inventory` | manage | write | annotate | read | - | | `findings` | manage | write | annotate | read | - | | `tasks` | manage | manage | - | - | - | | `events` | read | read | read | read | - | | `alerts` | manage | manage | read | read | - | | `explorers` | manage | write | read | read | - | | `sources` | manage | write | read | read | - | | `queries` | manage | read | read | read | - | | `directory` | read | read | read | read | - | | `users` | manage | read | read | read | - | | `organizations` | manage | read | read | read | - | | `credentials` | manage | - | - | - | - | | `tokens` | manage | read | - | - | - | | `ai` | manage | write | write | write | - | | `reports` | manage | write | read | read | - | | `account` | read | read | read | read | manage | | `content` | read | read | read | read | - | Superuser is not in this table because it is a flag on a user rather than a role. ## Creating a custom role {#creating} Manage custom roles from the **Roles** page under **Account** in the left navigator, at [console.runzero.com/account/roles](https://console.runzero.com/account/roles). If the page is missing from your navigator, either you do not administer every organization or custom roles are not enabled for your account. The page lists the built-in roles as read-only rows alongside your custom roles, with the permissions each one grants and, for the people who manage roles, how many users, groups, and API clients hold the role. Superusers and all-organization administrators can open the Roles page, and they are the only people who can create, change, or delete a role. Everyone else can still read the role catalog, which is how the role dropdowns and effective-access views elsewhere in the console explain what each role allows. To create one: 1. Click **Create role**. 2. Give it a **Name**. Names are 2 to 64 characters of letters, digits, spaces, underscores, periods, and hyphens, and must start with a letter or digit. They are unique within the account without regard to case, and cannot reuse a built-in role name or label. 3. Add a **Description**. This is the help text shown to whoever assigns the role, so describe what the role is for rather than restating the permissions. 4. Set the **Permissions**. Choose a verb for each area you want the role to grant, and leave the rest at no access. The `account` area is not offered. 5. Save. A role must grant at least one permission. The copy action on an existing row starts a new role from that role's permissions, which is the quickest way to build "Viewer, plus one thing". ### Editing, renaming, and deleting {#editing} Editing a role changes access immediately for everyone who holds it, with no separate publish step. Renaming a role rewrites every assignment that refers to it, including SSO enrollment defaults and API client locks, so nothing is orphaned. runZero refuses to rename onto a name that still has assignments rather than merge the two. Deleting a role leaves its name on the assignments that used it, but the role stops contributing any permission. Those assignments display as disabled, and effective access views show "No access" and mark the role as disabled. Other roles assigned to the user continue to apply. The delete confirmation lists the users, groups, API clients, and organizations affected. Plan for two consequences: - An API client locked to a deleted role cannot authenticate until a role with that name exists again. - Recreating a role with the same name re-enables every assignment that still refers to it. The create form warns you when a name still has assignments and asks you to confirm. This is deliberate, so you can undo a mistaken delete, but it means the name itself retains authority. Treat recreating a deleted role name with the same care as granting the access directly. ## Assigning custom roles {#assigning} A custom role appears in every role dropdown that a built-in role appears in, with its description as help text. Nothing about how you assign roles changes. ### To a user On the [Your team](https://console.runzero.com/team) page, use the gear icon on a user's row, or the button on their user details page, to edit their permissions. You can set a custom role as the user's default role in every organization, or per organization. The user details page shows effective access per organization, split into direct user access, group access, and SSO group access, so you can see what a role resolves to for that person. ### To a group [User groups](managing-user-groups.md) take custom roles the same way, either as the group's default role in every organization or per organization. Group membership can come from the console or from [SSO group mappings](managing-sso-group-mappings.md). ### As the SSO enrollment default The **Default role in any organization** field on the [SSO settings](https://console.runzero.com/team/sso/idp/) page accepts custom roles as well as built-in ones. Users provisioned through SSO enroll with that role. If the role was deleted by the time a new user enrolls, they enroll with no access rather than inheriting something unintended, and runZero records the event. Recreating the role does not retroactively change users who already enrolled, though it does re-enable their stored assignment. ### To an API client You can lock an [API client](api-clients.md) to a role, so the credential's access follows later changes to that role, or use a role as the starting point for a one-off set of permissions. See [Role locks](api-clients.md#role-locks). ## How multiple roles combine {#effective-access} A user can hold roles through several routes at once: their own default role, a per-organization role, a group's default role, and a group's per-organization role. Permissions add together. In a given organization, the user gets the best built-in role that applies plus every custom role that applies, unioned. Where two roles grant different verbs on the same area, the higher one wins. A custom role can only add access, and never reduces what a built-in role already grants. If someone has Viewer by default and a custom role granting `tasks:write` in one organization, they can start scans in that organization and remain a viewer everywhere else. A custom role can bring an organization into view. If a custom role is the only thing granting a user access to an organization, that organization appears in their organization picker and in their effective access. Custom roles never confer structural privileges. No combination of custom roles makes someone a superuser, gives them billing access, or lets them manage roles. See [What a custom role cannot grant](custom-roles.md#structural-privileges). Each role slot contains one role. Assigning a new role to a user's default slot replaces the role that was there. To give someone several distinct sets of permissions, combine a default role with per-organization roles, or with group membership. ## Auditing {#auditing} The [audit log](managing-your-team.md#audit-log) records role changes as `role-created`, `role-updated`, and `role-deleted` events. An update records which fields changed, including the previous name and permissions. A delete records how many assignments it disabled. On the Roles page, the usage columns and the usage view list the users, groups, and API clients assigned each role, and whether it is the SSO enrollment default. --- docs/managing-user-groups.md --- title: Managing user groups --- ((User groups)) let you treat users who need the same set of permissions as one unit. A user group explicitly sets the organizational [role](managing-your-team.md) for its members, which determines what they can do within each organization. You can assign both built-in roles and [custom roles](custom-roles.md) to a group, either per organization or as a single role across all organizations. [SSO group mappings](managing-sso-group-mappings.md) can also apply single sign-on settings to groups.
Conflicting permissions

runZero always grants the role with the highest permissions level. For example, an account with a viewer role for all organizations joins a user group that has a user role for all organizations. That user now has user-level permissions for all organizations. If the user group expires, the user's role reverts to their account-level role.

A user group can also have an expiration date, which gives specific users time-bound access to organizations within runZero. When the date passes, the user reverts to their account-level permissions. Without an expiration date, the user group settings stay in effect indefinitely. ## Creating user groups runZero administrators and superusers can create user groups. 1. Go to [Your team > Groups](https://console.runzero.com/groups/new) and click Add Group. 2. Enter a name for the user group. 3. Choose the default role for the group. This sets the access level for every organization you have. 4. Set per-organization roles if specific organizations need different access levels. 5. Set an expiration date if the permissions should be time-bound. When the date passes, group members revert to their user-level permissions. Without an expiration date, the group stays in effect indefinitely. 6. Go to the **Add users** tab and search for the users you want to add, by username or email. 7. Save the user group. It appears on the [Groups page](https://console.runzero.com/groups). ## Adding users to user groups To add users to several groups at once, use the _Edit group membership_ button on the [Users page](https://console.runzero.com/team/). The _Edit group membership_ window lists every user group each selected user is in, and changes you make there apply to all selected users. Only runZero administrators and superusers can add users to user groups. 1. Go to the [Users page](https://console.runzero.com/team/). 2. Select the users you want to add to a group. 3. Click the **Edit group membership** button. 4. Choose the user groups to add the users to. 5. Save your changes. ## Setting an expiration date for a user group runZero administrators and superusers can set an expiration date for a user group. 1. Go to [Your team > Groups](https://console.runzero.com/groups/). 2. Find the user group and click its name to open the config page. 3. Set the expiration date. After it passes, members revert to their account-level permissions. 4. Save the user group. The [Groups page](https://console.runzero.com/groups) shows the expiration date. ## Viewing users in a user group 1. Go to [Your team > Groups](https://console.runzero.com/groups/). 2. Find the _Users_ column in the _User groups_ table, which shows each group's user count. 3. Click the count to list the users assigned to the group. ## Viewing user groups assigned to a user 1. Go to [Your team > Users](https://console.runzero.com/team/). 2. The Groups column shows how many groups each user belongs to. 3. Click a number to list those groups. ## Removing users from a user group runZero administrators and superusers can remove users from a user group. 1. Go to [Your team > Groups](https://console.runzero.com/groups/). 2. Find the user group and click its name to open the config page. 3. Go to the _Users_ tab. 4. Remove the users you no longer want in the group. Their permissions revert to their account-level ones. 5. Save your changes. ## Deleting user groups runZero administrators and superusers can delete user groups. 1. Go to [Your team > User groups](https://console.runzero.com/groups/). 2. Select the user group you want to delete. 3. Click the **Delete** button. 4. Confirm you want to delete the user group. ## Searching for users and user groups On the [Users page](https://console.runzero.com/team/) or [Groups page](https://console.runzero.com/groups/), you can search the table with these keywords: | Keyword | Description | Example | |--------------|----------------------------------------------------------------------------------------------|--------------------| | `id` | User's ID. | `id:123456789` | | `name` | User's name. | `name:john` | | `expires_at` | [Time or date](search-query-syntax.md/#time-and-date-values) the user group expires. | `expires_at:>2weeks` | | `created_at` | [Time or date](search-query-syntax.md/#time-and-date-values) the user group was created. | `created_at:>2weeks` | | `updated_at` | [Time or date](search-query-syntax.md/#time-and-date-values) the user group was last updated.| `updated_at:>1year` | | `has_expiration` | Whether the group has an expiration date. | `has_expiration:true` | | `created_by_id` | ID of user who created the user group. | `created_by_id:123456789` | | `created_by_email` | Email of the user who created the user group. | `created_by_email:user@example.com` | | `group_id` | The user group ID. | `group_id:123456789` | | `group_name` | The user group's name. | `group_name:group1` | The group ID appears in the URL of the group config page, `https://console.runzero.com/groups//edit`. The `group_id` keyword is only available for the users table; for the groups table, use `id`. --- docs/bulk-importing-users.md --- title: Bulk importing users --- runZero administrators can ((add multiple users)) at once with a bulk import instead of adding them one at a time. To ((bulk import users)), create a CSV (comma separated values) file with the user information, such as each user's first name, last name, email, role, and organizational access. A bulk import only adds new users; it does not update existing ones. If the file contains a user who already exists in the system, the import does not complete. Remove all duplicate users from your CSV file and import it again. The high-level steps: 1. [Create a CSV file](bulk-importing-users.md#creating-the-csv-file-for-importing-users) with your user information. 2. [Import the CSV file](bulk-importing-users.md#importing-users-into-runzero) into runZero. 3. [Verify users have registered](bulk-importing-users.md#verifying-users-have-registered) their accounts. ## Creating the CSV file for importing users Start from the provided [template](https://console.runzero.com/team/templateCSV) or create the CSV file from scratch. Either way, follow these guidelines and include the fields below. * The first row is the header row, and the file must include it. It names the fields, which must follow this order: `first_name`, `last_name`, `email`, `all_orgs_role`, `org_roles`. * runZero requires the `first_name`, `last_name`, and `email` fields. The organization-level fields, `all_orgs_role` and `org_roles`, are optional. * Write `org_roles` values as `orgName=role`, and separate multiple definitions with pipes. * If you leave out `all_orgs_role`, users get the no-access role in all organizations. * If you leave out `orgs_role`, users get the role in `all_orgs_role`. If you leave out both, every user gets the no-access role and must contact the runZero administrator to change their account access. ### User fields for the CSV file The fields you can include: | Field | Description | Example | |-----------|-----------------------------------------|----------------------------| |`first_name` | The user's first name. | `sarah` | |`last_name` | The user's last name. | `smith` | |`email` | The user's email address. | `ssmith@company.org` | |`all_orgs_role` | The role assigned to the user for all organizations. This is optional. | user | |`org_roles` | The role assigned to the user for a specific site. Use pipes to separate the organizations. This field is optional. | org1=user | The resulting CSV file looks like this: ``` first_name,last_name, email,all_orgs_role,orgs_role Sarah,Smith,ssmith@company.org,user,org1=annotator|org2=annotator ``` ## Importing users into runZero 1. Go to your [Team Import](https://console.runzero.com/team/import/) page. 2. Choose the CSV file with your user information and upload it. 3. Import the file. runZero alerts you to problems with the file. If the file contains an existing user, for example, the import does not complete until you remove all duplicate users and import it again. ## Verifying users have registered Each imported user receives an email invitation to join your team. The email contains a link to register their email address, which prompts them for the name and password for their account. Once the account exists, they can sign in to the runZero console. The [Teams](https://console.runzero.com/team) page shows each user's status and last sign in. Users who completed registration show an _Activated_ status. --- docs/inviting-external-users.md --- title: "Managing external users" --- You can invite ((external users)) into your runZero instance, where they can view the organizational data you make available to them. External users are useful for consultants, value-added resellers, and managed service providers who want to share runZero data with partners and clients. If you are a superuser, you can invite any user with a runZero account to join yours. They receive the invitation by email. After they accept it and sign in to runZero, a new menu next to their organization switcher lists every client they can access, including yours.
If the person you want to invite has no runZero client account, they need to sign up for one before you can invite them as an external user. A free runZero Community Edition account qualifies.
External users appear only on the [External users page](https://console.runzero.com/team/external), separate from your other user lists. They sign in with their existing credentials and switch between the clients and organizations they have access to. ## Inviting an external user into your account 1. Go to **Your team > External** and click [Invite external users](https://console.runzero.com/team/external/invite/). 2. Choose the default role the user gets in all organizations. 3. Enter the user's email address. The user must already have a runZero account. 4. Customize the user's access per organization. When the global and per-organization permissions conflict, runZero grants the higher one. 5. Add a custom email subject or body if you want. The default template tells the user you have invited them to your account and includes a link to activate the invitation. The sender is your name and the subject line is "Invitation to join [client] by [your name]." 6. Send the email. Once they activate the invitation, they can sign in to runZero, switch clients, and view your organizational data. ## Switching clients and organizations as an external user External users with access to another account see a client switcher (a client dropdown menu) next to their organization switcher at the top right of the runZero web interface. Changing the client changes the organizations they can access and view. The account that granted them access decides which organizations and permissions they have within that client account. ## Removing an external user from your account Removing an external user takes away their access to your data, and they can no longer choose your client. Go to the [External users page](https://console.runzero.com/team/external), select the user account, click **Remove user account**, and confirm. The user returns to their primary client account and can no longer reach your runZero data. --- docs/implementing-sso.md --- title: "Implementing SSO" --- If you use a SAML2-compatible single sign-on (((SSO))) implementation, configure your SSO Identity Provider (IdP) on the [SSO Settings](https://console.runzero.com/team/sso/idp/) page so permitted users can sign in to the runZero console. runZero's SSO implementation is designed for common ((SAML)) providers and needs minimal configuration. A few requirements apply: - Your users authenticate to a single domain such as `example.com`, not to multiple domains or a domain with many subdomains. - You configure that domain name in the SSO identity provider settings in runZero. This applies even to self-hosted runZero deployments. - Your SAML IdP should send something that looks like an email address in the standard ((NameID)) parameter. It doesn't need to be a valid email address, but it should be a unique value with the syntax of one (`user@example.com`). The field name `NameID` is case sensitive. - If the `NameID` does not look like an email address, runZero checks the fields `email`, `user.email`, `emailaddress` and `email address` for a suitable ID. These field names are not case sensitive. - runZero looks for the user's full name in the fields `name`, `gecos`, `user.name` and `displayname`. If none is present, it looks for a first name in `first_name`, `firstname`, `given_name`, `user.firstname`, `givenname` or `first name`, and for a last name in `last_name`, `lastname`, `family_name`, `user.lastname`, `surname`, `sn`, or `last name`. These field names are not case sensitive. You must be [a superuser](managing-your-team.md#superuser) to manage runZero SSO settings.
Once a user signs in with SSO, they can no longer sign in with a password, even if they could before. We strongly recommend that you set up and keep a non-SSO superuser account, so you can update the settings if SSO stops working for any reason.
## Specific SSO providers The [Azure AD](set-up-azure-ad-saml-sso.md) and [Okta](set-up-okta-saml-sso.md) pages cover those providers in detail. The basic configuration steps are: 1. Add runZero as an application. 2. Set up SSO in runZero. 3. Provision users to the runZero app. For other SSO providers, the following sections explain the settings you need. ## Identity provider settings To open the identity provider settings, choose _Your team_ in the left navigator, then click the SSO Settings button at the top right of the page. The identity provider settings form takes the details of your SSO identity provider. The easiest way to configure SSO is with XML metadata, if your SSO service provides it. You usually set up runZero as an application on your SSO provider, then download an XML file. Open the XML in a text editor and paste it into the box at the bottom of the runZero identity provider settings form. If the XML decodes successfully, the form fills in the main fields for you. ### Single sign on mode Choose whether to allow regular runZero accounts, SSO-provisioned accounts, or both. Allowing both lets you keep backup administrator accounts in case your SSO provider is unavailable. ### Domain name runZero uses the domain name to find the correct SSO IdP settings when a user chooses to sign in via SSO, so it can redirect them to the right SSO provider. For example, if the domain is `example.com`, the runZero sign-in page expects users to start by entering an address of the form `username@example.com`. The SSO provider also passes the domain back after sign in, and runZero uses it to fetch the SSO IdP settings it needs to verify and process the data. The domain is part of the ACS URL in the sign in request sent to the SSO provider. If you change the domain, you need to reconfigure the SSO provider to accept the new ACS URL. ### Default role in any organization {#sso-default-role} The default role given to users the first time they sign in through SSO. It accepts the [built-in roles](managing-your-team.md#available-roles), any [custom role](custom-roles.md) defined for the account, and Superuser. _No access_ is a common choice when anyone in your identity provider can sign in. New users then start with no organization access, and you grant access to the appropriate organizations after they first sign in. If a custom role set here is deleted, users who enroll afterwards are created with no access rather than inheriting something unintended. Recreating the role restores the assignment for those users. Roles assigned through [SSO group mappings](managing-sso-group-mappings.md) apply on top of this default. ### Issuer URL The issuer URL, often called the entity ID, is a URL your SSO provider uses to identify itself in data passed back to runZero. Get this value from your SSO provider. runZero does not normalize trailing slashes, so the value must match exactly. ### Sign in URL The sign-in URL is where runZero redirects users to begin the sign-in process at your SSO provider. ### Certificate The certificate is the PEM encoded CA certificate runZero uses to verify the signature on the data from your SSO provider. If you paste multiple CA certificates into the box, your SSO provider needs to include a `KeyInfo` element in the data it passes back, to say which certificate runZero should check the signature against. ## SSO walkthrough Configuring and debugging SSO settings is easier when you know how the SAML sign-in process works. SAML SSO authentication runs on messages passed through the user's web browser. runZero and the SSO identity provider (IdP) never connect to each other directly, in either direction. A normal sign-in starts when the user opens the runZero console sign-in page, chooses **Sign in via SSO**, and enters their email address. runZero uses the domain name of that address to find the correct SSO identity provider settings in its database. runZero then redirects the user's web browser to the Sign in URL from those settings, adding parameters to the URL as the SAML specifications require. The SSO IdP verifies those parameters. The user signs in on the SSO IdP website. The IdP then redirects the browser back to runZero, to the Assertion Consumer URL (ACS URL), along with a digitally signed blob of encoded data about the authenticated user. The ACS URL appears on the service provider information tab of the SSO settings. It includes the domain name, which is how runZero finds the correct set of SSO settings to process the data. runZero decodes the data and checks its digital signature against the certificate from the identity provider settings. If the certificate is valid, runZero trusts the decoded information about the user, provisions a runZero user account if necessary, and signs the user in to a new runZero session. ## Service provider information After you fill out the identity provider settings, switch to the service provider information tab for the values your SSO identity provider needs from runZero. The Assertion Consumer URL, sometimes called the SSO URL, is where the SSO identity provider redirects a person's web browser after they sign in successfully. The URL contains the domain from the identity provider settings, which runZero uses to find the right set of SSO settings and verify the data from the SSO provider. If you change the domain in the identity provider settings for any reason, the ACS URL changes, and your SSO provider needs the new URL. The user sign-in URL is a URL you can visit to begin the sign-in process. It displays the computed identity provider URL to help with debugging. ## Common problems ### A user signs in on the SSO provider, but runZero refuses the sign in The most common cause is an Assertion Consumer URL on the IdP that is missing the domain name set in the runZero SSO identity provider settings, or that has the wrong domain name. A correct ACS URL looks like `https://console.runzero.com/auth/example.com/saml20/process`, where `example.com` is the domain name configured in the runZero SSO identity provider settings. ### Missing x509 Element The full error message is "invalid SAML response: error validating response: Missing x509 Element". This error can occur if you entered multiple CA certificates in the certificate field of the runZero SSO settings but your SSO IdP didn't include a `KeyInfo` element saying which certificate to check the signature against. Either configure your IdP to send `KeyInfo` naming the CA certificate to use, or use a single CA certificate. --- docs/managing-sso-group-mappings.md --- title: "Managing SSO group mappings" date: 2022-03-08 ---
Only runZero administrators can map users to user groups automatically with SSO attributes and custom rules.
((SSO group mapping)) maps your ((SAML)) attributes to user groups in runZero. A user group explicitly sets the organizational [role](managing-your-team.md), which determines what users can do within each organization. To set up a mapping, you name the SSO attribute and the value to match. When a user's attribute matches, runZero applies the group settings to that user, so SSO users land in the right runZero groups. For example, your IT team may need administrator privileges. Create a user group with the administrator role, then create an SSO group mapping from the SAML attribute that identifies your IT team to that group. When someone from the IT team signs in to runZero, they get the appropriate access and permissions automatically, with no pre-provisioning of their account. After evaluating all SSO group mapping rules, runZero grants the user the highest privilege assigned for each organization. Where [custom roles](custom-roles.md) are involved, the permissions of every role that applies add together. ## Creating SSO group mappings Before you create an SSO group mapping, [set up SSO](set-up-okta-saml-sso.md) for your organization and [create user groups](managing-user-groups.md), because a mapping needs both. Only runZero superusers can create SSO group mappings. 1. Go to [Your team > SSO settings > Group mappings > Add group mapping](https://console.runzero.com/team/sso/groups/new). 2. In the **SSO attribute** field, enter the attribute to check for matching values. Your SSO configuration defines these values. - For Azure AD SSO, the **SSO attribute** field must match the claim name from Azure AD. 3. In the **SSO value** field, enter a comma separated list of values the attribute can match. On a match, runZero applies the group permissions. 4. Click the **Group** dropdown and choose the user group to assign on a match. The dropdown lists every user group you have created. 5. Save the SSO group mapping. It applies the next time the user signs in to runZero. Changes do not reach users who are currently signed in until they sign out and back in. To apply the SSO group mappings immediately, you can force users to sign out. ## Forcing a user to sign out Permission changes take effect only after the user signs out and back in to runZero. Forcing users to sign out ends their current session, so their updated permissions apply as soon as they sign back in. Only superusers and admins with access to all organizations can force sign-outs. Go to the [Teams page](https://console.runzero.com/team), select the users you want to sign out, and click the sign-out button. ## Viewing SSO group mappings The [Group mappings page](https://console.runzero.com/team/sso/groups) lists every SSO group mapping. From there you can create, edit, or delete mappings. ## Viewing SSO group mapping assignments To see which SSO groups a user belongs to, go to the [Users page](https://console.runzero.com/team). The _Groups_ column shows the number of user groups and SSO groups for each user, with the SSO group count in parentheses. Click the gear icon under actions to open the user's settings. The access summary tab lists all of their organizations and roles. ## Deleting a group mapping 1. Go to the [Group mappings page](https://console.runzero.com/team/sso/groups). 2. Select the group you want to delete and click the **Delete** button. All users provisioned through the mapping revert to their account-level permissions. ## Searching for SSO group mappings On the [Group mappings page](https://console.runzero.com/team/sso/groups), you can search the table with these keywords: | Keyword | Description | Example | |--------------|------------------------------------------------------------------------------------------|--------------------| | `id` | User's ID. | `id:123456789` | | `sso_attribute` | User's SSO attribute. | `sso_attribute:department` | | `sso_value` | User SSO attribute value. | `sso_value:securityteam` | | `created_at` | [Time or date](search-query-syntax.md#time-and-date-values) user group was created. | `created_at:>2weeks` | | `updated_at` | [Time or date](search-query-syntax.md#time-and-date-values) user group was last updated. | `updated_at:>1year` | | `created_by_email` | Email of user who created the group. | `created_by_email:user@example.com` | | `group_id` | User group ID. | `group_id:123456789` | | `group_name` | User group's name. | `group_name:group1` | To find a group ID, go to [the group config page](https://console.runzero.com/groups/) and enable the ID column from the Columns menu above the data grid. The `group_id` keyword is only available for the Users table; for the groups table, use `id`. The `group_name` keyword is only available for the Users table. --- docs/set-up-azure-ad-saml-sso.md --- title: Setting up Microsoft Entra SSO --- Superusers can configure single sign-on to the runZero Console through an external identity provider (IdP), so your single sign-on (SSO) solution handles authentication and user access control for the runZero Console. SSO is available by default but not required to sign in to the console. You can make it required or disable it completely. The high-level steps to set up Microsoft ((Entra)) (formerly ((Azure AD))) SSO for runZero: 1. [Add and configure runZero as an Entra app](#step-1-add-and-configure-runzero-as-an-azure-app). 2. [Download the SSO configuration metadata in XML format](#step-2-download-the-sso-configuration-metadata). 3. [Set up SSO in runZero](#step-3-set-up-entra-id-sso-in-runzero). 4. [Add users to your runZero app in Entra ID](#step-4-add-users-to-the-runzero-app-in-azure). ## Requirements {#azure-ad-sso-requirements} Before you set up SSO for the ((Microsoft Identity Platform)): * Verify that you have administrator privileges for Azure AD. * Verify that you are a [superuser in runZero](https://console.runzero.com/team). Look for the yellow star in your account status. ## Step 1: Add and configure runZero as an Azure app First, [add runZero as a non-gallery application](https://docs.microsoft.com/en-us/azure/active-directory/manage-apps/add-application-portal) to your Azure AD setup and [configure the settings for runZero](https://docs.microsoft.com/en-us/azure/active-directory/manage-apps/add-application-portal-configure) as an Azure AD application. 1. In Azure, go to **Enterprise Applications > New Application > Create your own application**. 2. Under the **What are you looking to do with your application?** section, choose the **Non-gallery application** option. 3. Name your application something like `runZero` and add it. 4. Go to **Azure Active Directory > Enterprise applications** and open the new runZero application. 5. Select the **Single sign-on** tab and choose **SAML** as the sign-on method. 6. For the fields on the **Configure App Settings** page, go to https://console.runzero.com/team/sso/sp and copy the service provider details: * Entity ID * Single sign-on URL * SSO callback (ACS) URL 7. Enter the values in the matching fields in the Azure AD portal. 8. **Do not** set a value for "Sign on URL (Optional)" or "Relay State (Optional)". 9. To use group information from Azure for group membership in runZero, [configure the IdP to send group information](https://learn.microsoft.com/en-us/entra/identity-platform/saml-claims-customization#add-a-group-claim). ## Step 2: Download the SSO configuration metadata While editing your application settings, download the SSO configuration metadata in XML. You need it to set up SSO in runZero. 1. On the **Configure App Settings** page, find the **SAML Signing Certificate** section. 2. Locate the XML download link under the [Federation Metadata URL](https://docs.microsoft.com/en-us/azure/active-directory/manage-apps/configure-saml-single-sign-on#saml-signing-certificate). 3. Download the file. The next step uses its contents. ## Step 3: Set up Entra ID SSO in runZero With the metadata XML in hand, configure the Entra ID SSO settings in runZero. 1. Go to https://console.runzero.com/team/sso/idp to open the SSO IdP provider settings page in runZero. 2. Choose a mode to enable SSO: * **Allowed** enables SSO, but users can still sign in without it. * **Required** makes users sign in with SSO. Only superusers can sign in without SSO. 3. Enter the domain name associated with SSO authentication. This is likely your company domain (companyabc.com). 4. Choose a default role for SSO users. This is the [role](managing-your-team.md) every new user gets when their account is created. 5. Copy the XML you downloaded from Azure and paste it into the Metadata XML field on the runZero SSO IdP page. 6. Apply your SSO settings. The remaining IdP fields fill in automatically. * The issuer URL looks something like `https://sts.windows.net/00000000-0000-0000-0000-000000000000/`, where the UUID at the end is your unique Microsoft Active Directory (tenant) ID, listed under **App registrations > Overview > Endpoints**. * The sign-in URL looks something like `https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/saml2`, with the zero UUID replaced by your unique tenant ID. * The certificate is Microsoft's PEM encoded certificate, extracted automatically from the XML. * On the Microsoft side, the redirection URL for runZero should be `https://console.runzero.com/auth//saml20/process`, where \ is the domain specified in the runZero SSO settings. ## Step 4: Add users to the runZero app in Azure With setup complete, go to the runZero app in the Azure portal to [add users and assign their access](https://docs.microsoft.com/en-us/azure/active-directory/manage-apps/add-application-portal-assign-users). Users you add to the runZero app appear on the [Team members page](https://console.runzero.com/team) in runZero once they have signed in. ## Step 5: Update SSO group mappings to match any configured Azure groups (if applicable) If you created user groups within Azure, update your [SSO group mappings](managing-sso-group-mappings.md) in runZero to associate those Azure groups with runZero user groups. That way your users get the appropriate access and permissions when they sign in to runZero. When you set up the [SSO group mappings](managing-sso-group-mappings.md), the **SSO attribute** field must match the claim name from Entra ID. --- docs/set-up-okta-saml-sso.md --- title: Setting up Okta SSO --- Superusers can set up single sign-on to the runZero Console through an external SAML identity provider (IdP) such as ((Okta)). The IdP then handles authentication and user access control, and your users sign in without typing credentials. Setting up single sign-on (((SSO))) with Okta takes these high-level steps: * [Add runZero as an application in Okta.](#step-1-add-and-configure-runzero-as-an-okta-app) * [Set up SSO in runZero.](#step-2-set-up-sso-in-runzero) * [Add users to the runZero app in Okta.](#step-2-set-up-sso-in-runzero) ## Requirements {#okta-requirements} Before you can set up Okta SAML: * Confirm that you have administrator privileges for Okta. * Confirm that you are a [superuser in runZero](https://console.runzero.com/team). Look for the yellow star in your account status. ## Step 1: Add and configure runZero as an Okta app 1. Go to **Okta > Applications > Create App Integration**. In the **Create a new app integration** window, select `SAML 2.0` as your sign-in method. ![Sign-in method](img/okta-saml-option.png) 2. In the general settings, name the app `runZero`. You can also add a logo so users can pick out the runZero app. 3. For the SAML settings, open the [service provider information page](https://console.runzero.com/team/sso/sp) in runZero to find the URLs you need. * **Single sign on URL** is the assertion consumer service (ACS) URL shown in runZero. * **Audience URI or SIP Entity ID** is the runZero entity ID, or SAML audience: `https://console.runzero.com`. * Include the leading 'https://' when you enter this field in Okta. 4. For the remaining settings, such as the attribute statements, the Okta documentation explains [how to configure them](https://saml-doc.okta.com/SAML_Docs/How-to-Configure-SAML-2.0-for-KnowBe4.html). 5. Once the SAML settings are done, Okta asks for feedback on how you will use the app. Answer or skip it to finish creating the app. 6. After Okta creates the app, go to the **Sign On** tab for the runZero app and open the SAML 2.0 instructions. You'll need these details in the next step. ![Okta SAML instructions](img/okta-saml-instructions.png) ## Step 2: Set up SSO in runZero 1. Go to the [SSO setup page](https://console.runzero.com/team/sso/idp) in runZero and choose a mode to enable SSO: * **Allowed** enables SSO but still lets users sign in without it. * **Required** makes users sign in with SSO. Only superusers can sign in without it. 2. Enter the domain name associated with SSO authentication. This is likely your company domain (companyabc.com). 3. Choose a default role for SSO users. runZero assigns this [role](managing-your-team.md) to every new user when it creates their account. 4. Copy the fields from Okta into runZero. * **Issuer URL** takes the **Identity Provider Issuer URL** from Okta. It looks something like `http://www.okta.com/`. * **Sign-in URL** takes the **Identity Provider Single Sign-On URL** from Okta. It looks something like `http:///app///sso/saml`. * **Certificate** holds the X.509 certificate from Okta. Paste its entire contents. 5. Apply your SSO settings. ## Step 3: Add users to the runZero app in Okta With setup complete, go to the runZero app in Okta to [add and manage user access](https://help.okta.com/en/prod/Content/Topics/users-groups-profiles/usgp-people.htm). Once added, your users can reach runZero from your SSO sign-in URL. ## Step 4: Update SSO group mappings to match any configured Okta groups (if applicable) If you created user groups in Okta, update your [SSO group mappings](managing-sso-group-mappings.md) in runZero to map each Okta group to a runZero user group. Your users then get the right access and permissions when they sign in to runZero. --- docs/managing-licenses.md --- title: Managing licenses description: "How to manage your runZero license and billing" --- As a runZero superuser or billing user, you can view and manage your organization's ((licensing)), plan, and ((billing information)). If you aren't a superuser or billing user, ask your organization's [superuser or billing user](https://console.runzero.com/team/) for help with licensing and billing. These users are tagged with a yellow star. ## How do I view my license? As a superuser or billing user, go to [Account > License](https://console.runzero.com/license) to view your runZero licensing information. The License page shows: - How many organizations, sites, Explorers, and user accounts you have. - How many ((recent assets)) you have across all organizations. - How many ((project assets)) you have. - How many recent assets and project assets your license supports in total. ## What counts as recent assets? {#what-count-as-recent-assets} runZero counts how many assets were seen during the last 30 days. If a scan has seen an asset in the last 30 days, it counts as recent. If third party data reports the device was seen in the last 30 days, it also counts. License limits are the same for every asset type. Online or offline, scanned or unscanned, and whatever the source of the data, the asset counts the same way. When an asset has multiple data sources with different last-seen dates, the most recent date applies. runZero recalculates the recent asset count in the background, so after you delete assets the number may take a short while to update. ## When does my subscription expire? Go to [Account > License](https://console.runzero.com/license) to see when your subscription or license expires. Find the line: `This is a runZero [edition] subscription that expires at [date and time].` An expired subscription shows `This is a runZero [edition] subscription that expired on [date and time].` instead, and you can no longer run discovery scans. To keep using runZero, [renew your subscription](#how-do-i-renew-my-subscription).
The Community license never expires. It's part of our free tier, and you can keep using it as long as you have no more than 100 recent assets.
## How do I renew my subscription? To renew, contact us by [email](mailto:accounts@runzero.com) or through our [online form](https://www.runzero.com/contact-sales/). ## How do I convert to the Community Edition? If you no longer need the full platform, you can [convert it to the Community Edition](https://console.runzero.com/license/convert/community). This plan is on our free tier and supports up to 100 recent assets. ## How do I find my invoices? Superusers and billing users can view all ((invoices)) in the runZero Console on the [License page](https://console.runzero.com/license). ## How do I change or cancel my subscription? [Contact us](mailto:accounts@runzero.com) to change or cancel your subscription. --- docs/gathering-data.md --- title: "Network discovery" --- runZero gathers asset data through unauthenticated ((active scanning)), ((passive)) ((traffic sampling)), and inbound integrations. ## Active scanning The runZero Explorer and scanner run [unauthenticated active scanning](docs/discovering-assets.md) against the networks you specify, using the configuration you set. They use several network protocols to discover and fingerprint the assets connected to the network. You can run an active scan once or on a schedule, and scan templates keep the settings consistent across scan tasks. ## Traffic sampling An Explorer can passively sample traffic in your environment to identify the assets communicating across your networks. You configure [traffic sampling](docs/managing-explorers.md#explorer-traffic-sampling) per Explorer on the Explorer details page. When a scan task arrives, the Explorer automatically pauses traffic sampling to handle it, then resumes parsing sniffed traffic once the scan completes. Traffic sampling can also ingest a PCAP file and pull asset data from it. ## Inbound integrations [Inbound integrations](docs/integrations-inbound.md) with many platforms enrich your runZero asset context and give you insight into coverage and capabilities. You configure an integration as either a connector or a scan task. --- docs/discovering-assets.md --- title: "Active scanning" --- An ((active scan)) finds every responsive device on a network, fingerprints each one, and fills the asset, services, screenshot, and software inventory. Regular scans of internal and external networks are a basic part of network management. You configure a scan by site, Explorer, and scan scope, and the scope can include IP ranges, domain names, ASNs, and even entire country codes. A new scan has many parameters you can set, from a schedule to the advanced options below. To start one, log in to the runZero Console, select Scan from the Data sources section of the navigation menu, and choose "Start Standard Scan". You can also launch scans from the Inventory views. ## Site {#discovering-site} runZero organizes information into ((organizations)) and ((sites)). An organization is a distinct entity that keeps its data separate and holds a collection of sites. Sites model segmented networks, particularly independent networks that use the same private IP address ranges. For example, you might have several physical locations, each with its own local network on the 10.0.0.0/8 private IP range. Define each one as a site with its own Explorer, and runZero treats the networks and assets as completely independent, even when similar systems appear at the same IP addresses in each.
runZero treats each site as a separate IP space. Subnets can therefore overlap within an organization, but scanning the same network in different sites of the same organization can cause duplication.
Because scan analysis happens at the site level, the boundaries you define for a site become the default scope for its scans. ## Explorer {#discovering-explorer} From the Explorers registered to the site, select the ((Explorer)) that will run the scan. It must be able to communicate directly with the networks and addresses in your discovery scope, and ideally it reaches every address in the scope with no firewall in the way. ((Stateful firewalls)) and ((VPN gateways)) may interfere with discovery. ## Hosted External Explorer {#discovering-hosted-external-explorer} runZero Platform users can scan public IP space with runZero-hosted Explorers. When you create a scan, choose a ((Hosted External Explorer)) in the 'Run task with' dropdown. With this option, the discovery scope must use public IP addresses or ranges, or resolve to public IP space. ## Discovery scope The discovery ((scope)) defines which IP addresses the scan covers. The keyword "defaults" uses the site settings, and you can change the scope per scan as well. The scope should include at least one IP address or hostname. You can write IPv4 ((address ranges)) in most standard formats: * `10.0.0.1` * `10.0.0.0/24` * `10.0.0.0/255.255.255.0` * `10.0.0.1-10.0.0.255` You can specify individual IPv6 addresses, but not IPv6 ranges. ((Hostnames)) in the scope are resolved at runtime by the assigned Explorer. If a hostname resolves to multiple IP addresses, the scan covers all of them. A hostname can also carry a mask, which expands around each resolved address. For example, if `example.com` resolves to both `1.2.3.4` and `5.6.7.8`, the input `example.com/24` becomes `1.2.3.0/24` and `5.6.7.0/24`. IPv6 addresses returned from hostname resolution are scanned if the Explorer has a valid IPv6 address and a route to the target.
runZero load balances the scan across as many subnets as possible, in a quasi-random order.
### Discovery keywords These keywords work in both scan scopes and exclusions. * **asn4** selects the IPv4 ranges associated with a given AS number: `asn4:`. * **country4** selects the IPv4 ranges associated with a given two-character country code: `country4:`. * **public** and **private** select the IPv4 and IPv6 addresses of assets in the current organization: `public:` and `private:`. Set the mode to `all`, `primary`, or `secondary` to choose which IP addresses are used. The `public` keyword selects all non-reserved IP addresses on organization assets, and the `private` keyword selects all RFC-1918 and private use IP addresses on organization assets. * **domain** automatically selects the publicly-known hostnames for a given domain name: `domain:`. The `domain:` keyword is available to cloud-hosted users. ## Scan name Give your scan task a name so it's easier to track. ## ((Scan speed)) Set the maximum ((packet rate)) for the whole discovery process, in network packets per second. 500 is conservative, 3000 works for most LANs including WiFi, and 10000 or more may help large sites with fast connectivity. Scan speed directly affects how long the scan takes. An approximate formula: > time in seconds = hosts x ports x attempts / scan speed The discovery scope mostly determines the number of hosts. The number of ports is around 500 by default, and the scan makes three connection attempts. The advanced scan options can change the number of hosts and ports scanned, and the maximum host rate and group size can also affect speed; see the advanced scan options below. The formula leaves out the time spent taking screenshots, following web server redirects, and processing the scan data. ## ((Schedule|scheduled scans)) You can set a date and frequency for your scan task. Dates and times follow your browser's advertised timezone. A scan scheduled to start in the past launches immediately, then repeats at the specified time at the frequency you selected. ## Scheduling ((grace period)) Set how many hours the scan waits for an available Explorer before giving up. With a zero or negative value, the scan retries indefinitely until an Explorer becomes available. ## Scan duration limit Set a limit in hours on scan duration; if scanning is still in progress when the time runs out, runZero cancels the scan. This limit does not cover processing time. If you set this to 0, runZero applies no limit. ## Advanced scan options On the Advanced tab you can view and change more scan settings, such as network exclusions, scan speed, the ((ports)) the TCP scan covers, and which ((probes)) are enabled. The defaults should work for most organizations but may need tuning for slow networks or unreliable links. ### Maximum host rate Beyond the overall scan rate in packets per second, you can also cap the rate at which packets go to any single host IP address. This helps when you have devices that are quick to overload under network traffic. The default should be safe for most systems. ### Max group size When runZero scans your network, it spreads the load across many IP addresses at once. The ((max group size)) sets how many IP addresses can be actively scanned at the same time, allowing for hosts that take a while to respond to probes. It needs to be at least as large as the overall scan speed, or it would hold the scan below the speed you set. If you enter a value lower than the overall scan speed, runZero raises it automatically at scan time. Max group size is most useful with stateful network devices that can track only a limited number of connections at once, since it restricts how many active TCP sessions a runZero scan creates. ### Max TTL The IP standards define a maximum hop count for packets: the ((Time To Live)) or TTL in IPv4, and the Hop Limit in IPv6. Every device that processes a packet must decrease the TTL or Hop Limit by one, and when the value reaches zero, the router receiving the packet must discard it. Max TTL sets the maximum hop limit for scan traffic. ### ToS The IP standards define a ((Type of Service)) or ToS for packets. IPv4 calls it the ((Type of Service)) or ToS, and IPv6 calls it the Traffic Class or TC. Switches and routers use the ToS or Traffic Class to prioritize network traffic, and the lower bits of the IPv4 ToS are also used for congestion control. This option sets the ToS or Traffic Class for scan traffic. The ToS/Traffic Class setting applies only to the basic discovery probes, not to all traffic runZero sends. Some protocols, such as SNMP, and integrations, such as VMware, do not set the ToS/Traffic Class fields on their packets. If all scan traffic must carry the correct ToS or Traffic Class, tag it through settings on the managed switch port instead. ### TCP ports The **Included TCP ports** and **Excluded TCP ports** fields override the default scan ports. The string "defaults" looks up the current default port list at scan time. The current port list is:

### Prescan modes for large IP spaces Sometimes you don't know the extent of your IP space, which subnets are in use, or how many assets you have, and that can make discovery scans hard to tune for efficiency and speed. When the space is also large, like a /16 with a few thousand IPs in use, a full discovery scan can take longer because it checks more than 500 TCP ports and 15 UDP ports on every address. In these cases, you may want to tune your scan settings to prefilter ranges and IP addresses before a full scan. runZero has two ((prescan modes)) for faster scans: ((subnet sampling)) and ((host ping)). #### Subnet sampling To speed up scans of large subnets, turn on the **"Only scan subnets with active hosts"** advanced scan option. A prescan then runs against the target space to find the subnets with an active host, using heuristics runZero has collected about which addresses are more likely to respond across subnets. That lets runZero cover a large space quickly by identifying the subnets in use before it starts full probes. Every subnet found to have active hosts is then fully scanned, unless you enable host pings. Subnet sampling has two parameters. The ((sample rate)) sets what percentage of addresses in each subnet the prescan checks to decide whether to scan the subnet. The ((subnet size)) sets how many IP addresses make up each subnet. By default, the subnet size is 256 addresses, a /24 subnet, and the prescan checks 3% of the addresses in each subnet. #### Host ping Once you know which subnets are in use, you may want to limit the full scan to addresses that answer the most common ping methods, such as ICMP and some TCP and UDP ports. With the **"Limit scans to pingable hosts"** advanced scan option, only hosts that respond to a ping request are fully scanned. The runZero Explorer uses multiple protocols for ping scans: - Conventional ((ICMP ping)), which sends an ICMP echo request and looks for an ICMP echo reply. - ((TCP ping)), which sends a TCP SYN packet to a series of common ports and checks whether the host answers with RST or TCP SYN/ACK. - ((UDP ping)), which sends a packet to port 65535 and checks for an ICMP port unreachable response. You can adjust the ports used for TCP and UDP ping in the LAYER2 section of the Probes and SNMP tab when you set up a scan task. Enterprise firewalls often block ping, and hosts are often configured to ignore ping requests, so limiting scans to pingable hosts can miss assets entirely even though their IP addresses were probed. If your goal is faster scans, subnet sampling is usually the better option. You can use subnet sampling and the pingable-host limit together, but we recommend it only as a last resort for reducing scan times. --- docs/autonomous-discovery.md --- title: "Autonomous discovery" --- ((Autonomous discovery)) is a scan mode that reviews the results of every completed scan and automatically queues bounded follow-up scans to expand coverage. Rather than asking you to enumerate every subnet or subdomain up front, runZero starts from a small seed scope, reads the evidence each scan produces (routing tables, ARP caches, traceroute hops, TLS certificates, DNS answers), and decides what to scan next. The loop repeats until nothing new is left to find. Autonomous discovery works out of the box on deterministic rules and needs no AI. Accounts with [AI enabled](ai-threads.md#ai-requirements) can let their own AI provider drive the analysis instead; [AI-assisted discovery](autonomous-discovery.md#autonomous-ai) describes both paths. ![The autonomous discovery loop: a seed scan feeds a review wave, candidates pass guardrail validation, follow-up scans are queued, and each completed follow-up repeats the review until the loop converges](img/autonomous-discovery-loop.svg) ## Requirements {#autonomous-requirements} * Your account needs the autonomous discovery entitlement, which comes with every runZero license tier, Community Edition included. * Internal discovery needs at least one active [Explorer](installing-an-explorer.md) that can reach the private networks you want to explore. * External discovery targets public IP space and typically runs through a [Hosted External Explorer](discovering-assets.md#discovering-hosted-external-explorer). * AI is not required. AI-assisted analysis runs only when the account has the AI entitlement and a working [AI configuration](https://console.runzero.com/account/ai). ## How it works {#how-autonomous-discovery-works} 1. You launch a scan with an autonomous discovery mode selected. This seed scan runs like any other scan. 2. After the console processes the results, a **review wave** analyzes the new evidence and proposes follow-up candidates: private subnets, related hostnames and domains, or deeper scans of confirmed-live networks. 3. runZero validates every candidate against the guardrails below, deduplicates it against everything the lineage has already scanned, and drops it if its confidence score is below 0.30. 4. Surviving candidates are queued as child scan tasks, capped at 5 to 12 follow-ups per wave depending on how confident the wave is (8 is typical). Adjacent `/24` candidates share a single task, and discovered hostnames land as one multi-target scan. 5. Each follow-up keeps the autonomous mode, so the loop repeats when it completes, up to 12 waves and 150 distinct scopes per lineage. The loop **converges** (stops queueing new work) when a wave produces no actionable candidates, novelty drops off, asset growth or vendor diversity plateaus for consecutive waves, or the iteration and scope limits are reached. The task reports convergence as a status, not as an error. ### Guardrails * Follow-up scans never leave the lane they started in: internal discovery only proposes private address space, and external discovery only proposes names under your seed domains. * Follow-ups always respect site exclusions, existing scope, and everything the lineage has already scanned. * Overly wide targets are rejected: internal candidates are never broader than a `/16` (IPv4) or `/48` (IPv6). * Follow-up scans do not inherit credentials from the seed scan. runZero strips credential IDs and sensitive scan options before it creates each child task. ## Internal discovery {#autonomous-internal} Internal mode grows coverage of private networks from topology evidence: SNMP routing tables, interface addresses and ARP caches, RIP routes, traceroute hops, CDP and LLDP management addresses, and default gateway attributes. It ignores public routes and default routes. Internal discovery uses a depth progression rather than deep-scanning everything immediately: * **discovery** runs a light probe of a newly inferred subnet to confirm live hosts. * **sweep** runs a coarse liveness scan of a wider private block when clustered evidence justifies it. * **deepen** runs a full default scan of a `/24` (or IPv6 `/48`) that discovery confirmed as live. A subnet is deepened only once, and a subnet that looks like a firewall answering on every address is never treated as live. runZero also tracks coverage per scope and per dimension (liveness, ports, screenshots, and so on), so later waves can re-deepen scopes whose deep coverage has gone stale rather than only chasing new space. ## External discovery {#autonomous-external} External mode starts from the public IPs and `domain:` targets in your seed scope and expands through names: TLS certificate subjects and SANs, forward DNS answers, parent domains, and observed hostname patterns such as region or environment series. Expansion is strictly bounded by ownership. A candidate hostname or domain must share a registrable domain with your seed scope; an unrelated domain that appears in a shared certificate is dropped, and observed ASNs are never turned into IP sweeps. On the first wave, if public IPs are present, runZero may also queue a one-time passive [Shodan](shodan.md) import to enrich the seed assets before active expansion. When scanning reveals infrastructure that cannot be enumerated over the network, such as cloud accounts or virtualization hosts, the review records an **integration hint** that suggests the relevant [integration](integrations-inbound.md) instead of queueing a scan. ## Starting an autonomous scan {#starting-autonomous} On the [Scan page](https://console.runzero.com/data-sources/scan) in the Data sources section of the navigation menu, the **External** and **Internal** buttons open the scan form pre-configured for that mode, with a recognizable task name and a recommended starting scope. You can also set up any standard scan by hand: in the scan form, set the **Autonomous discovery** control to **Off**, **Internal**, or **External**, and use the **Use recommended targets** button to fill the scope with the site's default scope (internal) or your organization's domain and public egress IP (external). * Internal discovery works best with a **Continuous** schedule and a seed scope drawn from the Explorer's local networks. Internal scopes must contain private IP addresses only, with no hostnames or public ranges. * External discovery works best with a recurring schedule (the form defaults to every 5 minutes, since hosted scans do not support the Continuous frequency) and a seed scope of public IPs, ASNs, and `domain:` targets. External scopes must not contain private addresses. * On Community Edition licenses, autonomous scans default to an hourly schedule. [Scan templates](managing-scan-templates.md) can set a default autonomous discovery mode, so recurring scans created from a template participate automatically. ## Working with follow-up scans {#autonomous-follow-ups} Queued follow-ups appear on the [tasks page](https://console.runzero.com/tasks) named `Autonomous follow-up: `, tagged `autonomous=true`, with a description recording the wave number, confidence, and the evidence that motivated them. Each runs on the same site and Explorer (or hosted zone) as its parent. Every autonomous task's detail page includes an **Autonomous discovery** card. It shows the loop status (mode, state, wave number, assets discovered, novelty, and vendor diversity) plus the latest review wave: which brain ran, every candidate it considered, its confidence, and the outcome (queued, skipped for low confidence, deferred by the wave cap, duplicate, or stop signal). When AI was used, the card also reports the wave's token usage. To stop the loop, stop or dismiss any task in the lineage. This cancels the entire lineage: active siblings and descendants stop, and no further follow-ups are queued. ## AI-assisted discovery {#autonomous-ai} Autonomous discovery runs one of two analysis engines, and the task details card tells you which one reviewed each wave. ![Brain selection: when the account has no working AI configuration the deterministic rule-based brain runs; when AI is entitled, configured, and within budget the AI-assisted brain runs using your own provider; both feed the same validation and guardrails](img/autonomous-discovery-brains.svg) ### Without AI: the rule-based brain By default, review waves use the **rule-based** brain: deterministic topology and certificate analysis that runs entirely inside the runZero platform. Nothing is sent to any AI provider, there is no per-wave cost, and results are fully reproducible. This is the complete, supported path: the rule-based brain implements all of the internal and external expansion logic described above. ### With AI: bring your own key runZero AI support is BYOK (bring your own key): you connect a model from your own AI provider account rather than runZero supplying one. When AI is available, review waves use the **AI-assisted** brain, and your configured model examines the same scan snapshot through a set of read-only tools and proposes candidates with reasoning. This can produce smarter expansion, such as recognizing naming conventions, prioritizing interesting segments, and stopping earlier when evidence is weak. To use it: 1. Your account must have the AI entitlement. 2. A superuser enables AI under [Account settings > AI configuration](https://console.runzero.com/account/ai) by selecting or creating an AI provider credential. Supported providers include Anthropic, OpenAI, Google Gemini, Google Vertex AI, AWS Bedrock, Azure OpenAI, and OpenAI-compatible or Anthropic-compatible endpoints (OpenRouter, Ollama, internal proxies). **Verify & save** runs a live check against the provider before activating the configuration. 3. Each organization can override the account provider with its own credential, or opt out of AI entirely, from its AI settings. The AI-assisted brain follows the same [token budgets](ai-threads.md#ai-requirements) as other AI features. You can set daily input and output token caps per account and per organization, and each wave's usage is recorded against the `autoscan` feature in the AI usage report on the AI configuration page, as well as on the task itself. What to expect from AI-assisted waves: * AI proposals are advisory. Every candidate passes exactly the same validation, scope, ownership, and deduplication checks as rule-based output before anything is queued. * The AI-assisted brain sees only a compact summary of the completed scan's results and cannot browse your wider inventory. As with all BYOK features, your agreement with your provider governs the data sent to it. * If AI is unavailable for any reason (missing entitlement, a deleted credential, an exhausted budget, or a provider error mid-wave), the wave falls back to the rule-based brain and the loop continues. Autonomous discovery never stalls waiting for AI. ## Limits {#autonomous-limits} * A lineage runs at most 12 review waves and 150 distinct scopes. * Each wave queues at most 5 to 12 follow-up scans; the rest are deferred to the next wave. * Candidates below a confidence score of 0.30 are recorded but never scanned. * Internal candidates are capped at `/16` (IPv4) and `/48` (IPv6) widths; external candidates must stay under a seed registrable domain. ## Troubleshooting {#autonomous-troubleshooting} If autonomous discovery isn't behaving the way you expect, the questions and answers below may help. ### Why didn't my autonomous scan queue any follow-up scans? 1. Check the **Autonomous discovery** card on the task details page. If the state is **Converged**, the review wave found no actionable evidence. That is the loop working as intended, not a failure. 2. Review the candidates table on the same card. The wave may have proposed candidates and then skipped them for low confidence, deduplicated them against earlier waves, or deferred them under the wave cap. 3. Verify the task was not stopped or dismissed while results were processing; a canceled lineage never queues follow-ups. ### Why does the task show the rule-based brain when AI is enabled? 1. Confirm the account has the AI entitlement and that the [AI configuration](https://console.runzero.com/account/ai) shows an active provider. A deleted credential disables AI-assisted waves rather than borrowing another provider. 2. Check whether the organization has opted out of AI or exhausted its daily token caps; budget-exhausted waves fall back to rules until the budget resets. 3. A provider error during a wave also falls back to rules for that wave; check the AI usage report for partial usage. ### Why do follow-up scans run without my scan credentials? This is by design. Inferred targets do not inherit trust from the seed scan, so runZero strips credentials and sensitive scan options from every follow-up. If you need deeper authenticated data, run a credentialed scan of the discovered scope manually. ### Why did external discovery skip a hostname it found in a certificate? External expansion follows only names whose registrable domain matches your seed scope, so a hostname on a shared certificate that belongs to another organization's domain is dropped on purpose. If you own that domain and want it explored, add it to a new seed scan's scope. --- docs/running-initial-scans.md --- title: "Initial network scans" --- ## Background {#firstscanbackground} Once you have an Explorer installed, you can start network discovery. The end goal is scheduled scans you set and forget, but the first scans deserve a more structured approach. Use your ((first scans)) to: - Verify the Explorer is set up properly and has everything installed - Validate Explorer connectivity to different parts of the network - Learn how long scans of different sizes take, which helps with future scheduling ## Your first few scans Start small to confirm everything works as expected: a few /24 network blocks from each of the ((RFC 1918)) ranges. To set up the first scan: 1. Go to **Sites > New Site > Create** a new temporary site within the Organization 2. Go to **Tasks > Scan > Standard Scan** to create a scan task 3. Choose the new site you created in step 1 4. In the Discovery Scope, include a range of RFC1918 IP addresses plus a small network or two that you know is in use. A suggested RFC1918 range: ``` 10.0.0.0/24,10.0.255.0/24,10.64.0.0/24,10.64.255.0/24,10.128.0.0/24,10.128.255.0/24, 10.192.0.0/24,10.192.255.0/24,10.255.0.0/24,10.255.255.0/24,192.168.0.0/24,192.168.64.0/24, 192.168.128.0/24,192.168.192.0/24,192.168.255.0/24,172.16.0.0/24,172.23.0.0/24,172.31.0.0/24, ``` 5. On the Advanced tab, enable the _Subnet sampling_ option 6. Click Initialize Scan When these scans complete, check the following: - Check the `ipv4.traceroute` value for assets in each RFC1918 range to verify you aren't sending traffic to an edge router or firewall. - Unused private IPs should have stubbed-out routes so traffic doesn't go to the default gateway, which can create a loop. Traceroutes from the Explorer can also verify this. - If your scan results show a long run of roughly sequential IPs with only ICMP or a few of the same ports open, that's probably a proxy or firewall. Check those IPs to see if any are real. To find assets with only ICMP enabled, use the inventory query `alive:t AND service_count:=1 AND service_count_icmp:=1` - You can add an allow rule for the Explorer IP to scan the devices on the other side properly - Or add a second Explorer on the other side of the proxy or firewall - If you get reports or alerts about service outages, look for session-aware devices such as routers, firewalls, and proxies struggling with the session load. If you run into this, you have a couple of options. - The simplest fix is another Explorer on the other side of the device, running its own scans - Or segment your scans on the existing Explorer: run smaller, separate scan tasks for the network ranges on the other side of the device, with lower packets per second and _max group_ sizes so fewer IPs are scanned at once - Check how long each scan took to estimate how long larger scans would take - Verify you see screenshots on ports that accept HTTP/HTTPS requests - If you don't see any, you likely need to install Chrome on the machine - Check for MAC addresses - If you aren't seeing them, configure SNMP - If SNMP is configured, verify the community strings and check for unmanaged switches
Once your first scan has run successfully, you can delete the temporary site and set up a real scan.
## Full RFC 1918 scans After the initial test scans, expand scanning to cover every subnet with live assets. One way to find all of them is a full RFC 1918 scan. The **Full RFC 1918 discovery** scan option discovers assets across these private address ranges in a single task: - 10.0.0.0/8 or 10.0.0.0-10.255.255.255 - 172.16.0.0/12 or 172.16.0.0-172.31.255.255 - 192.168.0.0/16 or 192.168.0.0-192.168.255.255
The Full RFC 1918 discovery scan option is recommended only for small networks with limited complexity, and only in a single site configuration.
In a large, complex network, a single scan of the entire RFC 1918 private address space can take days, if not weeks. For more on scanning the full RFC 1918 space, runZero recommends the [Achieving RFC 1918 coverage](https://help.runzero.com/docs/playbooks/achieving-rfc1918-coverage/) playbook. Once you've scanned your private address space, review [Identifying gaps in scanning](identify-gaps-in-scanning.md) for the built-in reports that help you understand your network coverage. --- docs/identify-gaps-in-scanning.md --- title: "Identifying gaps in scanning" --- ## Background {#gapsbackground} After a full network discovery scan, you can start to understand your coverage and optimize it. This guide covers the built-in reports in runZero that show your gaps in network coverage. ### ((RFC 1918)) coverage {#identifying-gaps-rfc1918} Start with the **RFC 1918 coverage** report. It shows which internal IPv4 subnets you have scanned, which likely contain assets, and which are still unknown. The scan coverage maps show every address scanned within the `10.0.0.0/8`, `172.16.0.0/12`, and `192.168.0.0/16` ranges, and the legend gives the percentage of each address space you have scanned. Click into any scanned subnet to open the subnet grid for deeper asset analysis. **Identify scanned and un-scanned areas with the coverage map:** Red outlines mark un-scanned addresses that runZero knows about indirectly but hasn't scanned directly, for example when it finds a secondary IP address on a multi-homed device within a scanned subnet. The red boxes show the subnets most likely to be in use but un-scanned. **Scan missing subnets:** From the coverage report, you can launch a scan for any missing subnets in a given RFC1918 block. Look for the binocular icon. **Scan missed subnets:** The missing subnets appear in the scan scope with subnet ping enabled by default. Tune the scan configuration as needed for your environment. ### ((Subnet utilization|subnet utilization)) {#identifying-gaps-subnet-utilization} The **Subnet utilization** report shows a view of your network similar to the RFC 1918 coverage report, with the emphasis on subnets that contain live assets. It lists each subnet in your site definitions with a count of live assets for that site and subnet and a utilization percentage. Live assets outside any site subnet are grouped into an inferred subnet based on the network mask size you select. From this report, you can pivot to the asset inventory for a subnet or start a new scan of it. You can also export the results as a CSV, which helps with more complex data analysis and with scheduling recurring scans. ### ((Network Map)) {#identifying-gaps-network-map} The [Network Map](network-map.md) is the fastest way to spot scanning gaps. It overlays Layer-2 switch topology, Layer-3 routing, traceroute paths, and bridges in a single interactive view, and renders **unmapped MACs** and **unscanned traceroute hops** by default, so every gap shows up as a node without an asset behind it. Search and filter directly inside the map (`multi_homed:t`, `category:OT`, etc.), then click any unmapped node to see which Explorer or scan reached it and which subnet it sits in. ### ((Switch topology|switch topology)) {#identifying-gaps-switch-topology} The Switch Topology report shows layer-2 link information extracted from SNMP-enabled switches. Use it to find unmapped assets and investigate why they aren't showing up in your scans. **Configuration for this report:** The Switch Topology report maps switch ports to assets from data enumerated over SNMP. Where SNMP v1 or v2 with the default public or private communities is in use, this enumeration happens automatically. You can also provide non-default communities for SNMP v1/v2/v3 in the scan configuration. Click a node in the report to expand it and show its connections. **Finding unmapped MACs:** This topology view helps you see how a given asset or switch is connected, and it also gives you a data point about risk: the number of unmapped assets. An unmapped asset is a MAC address connected to a switch but not found in an ARP cache or through any of runZero's other techniques for remote MAC address discovery. **Re-scan to properly map MAC addresses:** Where a runZero agent is connected to each network segment, unmapped MACs may point to VLANs or network segments missing from the scan scope. Where runZero scans assets multiple hops away, the unmapped asset count can estimate how well the remote segment is being identified. ### ((Unmapped MACs|unmapped MACs)) {#identifying-gaps-unmapped-macs} For a condensed view of all unmapped MACs, use the Unmapped MACs report. It lists every unmapped MAC in your organization, organized by switch and then by port, and you can use this data the same way as the unmapped MACs data from the Switch Topology report. --- docs/managing-scan-templates.md --- title: "Managing scan templates" --- A ((scan template)) is a predefined set of scan options and settings. If you use a scan configuration often, save it as a scan template, and the next time you create a scan, choose the template instead of configuring the settings by hand. Every update you make to the template applies automatically to new and recurring scans based on it, and to any queued scans that were set up from it but haven't started yet. Templates save you time and make a misconfigured scan less likely. When you create a scan from a template, you can't edit the fields the template sets. You can still configure the site, scan name, discovery scope, Explorer, and scan schedule, because the template doesn't define those. Each time a scan runs with values from a template, runZero saves the scan task with a copy of those parameters, so the task lists the values it used even if the template changes after the scan completes. ## Creating a scan template You can create a scan template in a few ways: - From **Tasks > Task library** - From an existing scan task - From an existing scan template ### Creating a scan template from scratch 1. Go to **Tasks > Task library** to open the [task library](https://console.runzero.com/tasks/library). 2. From the **Task library**, click **Add template**. 3. In the scan configuration form, enter a name for the template. You'll use this name to find the template and assign it to a new scan. 4. [Configure the scan](discovering-assets.md) as you normally would, using these tabs: * **Standard** holds the name, description, and scan rate for the template. * **Advanced** covers excluded hosts, included ports, tags, host rates, group size, UDP probe max attempts, max TTL for all scan probe packets, ToS, screenshots, and subnet sampling. * **Probes and SNMP** enables SNMP and additional probes and takes their credentials. With the SNMP probe enabled, the scan uses the port and credentials you provide to find anything with SNMP enabled. * **Credentials** enables any preconfigured credentials you want the scan to use; see [Scanning with credentials](scanning-credentials.md). The scan uses a credential when its defined CIDR scope matches the scan target. 5. Save the template. To use the template, open the _Templates_ tab when you [configure a scan](https://console.runzero.com/scan/) or [create a Template scan](https://console.runzero.com/tasks/templatesNewScan) from the scan menu on the [inventory](https://console.runzero.com/inventory) or [tasks](https://console.runzero.com/tasks) pages. ### Creating a scan template from a scan task 1. Go to **Tasks** to open the [Tasks overview page](https://console.runzero.com/tasks/). 2. Find the scan task you want to base the template on and click its name to view the task details. 3. From the task details, click the **Copy** dropdown menu and choose **Copy for new template**. 4. In the scan configuration form, enter a name for the template. You'll use this name to find the template and assign it to a new scan. 5. [Configure the scan](discovering-assets.md) as you normally would, using these tabs: * **Standard** holds the name, description, and scan rate for the template. * **Advanced** covers excluded hosts, included ports, tags, host rates, group size, UDP probe max attempts, max TTL for all scan probe packets, ToS, screenshots, and subnet sampling. * **Probes and SNMP** enables SNMP and additional probes and takes their credentials. With the SNMP probe enabled, the scan uses the port and credentials you provide to find anything with SNMP enabled. * **Credentials** enables any preconfigured credentials you want the scan to use; see [Scanning with credentials](scanning-credentials.md). The scan uses a credential when its defined CIDR scope matches the scan target. 6. Save the template. To use the template, open the _Templates_ tab when you [configure a scan](https://console.runzero.com/scan/) or [create a Template scan](https://console.runzero.com/tasks/templatesNewScan) from the scan menu on the [inventory](https://console.runzero.com/inventory) or [tasks](https://console.runzero.com/tasks) pages. ### Creating a scan template based on a template 1. Go to **Tasks > Task library** to open the [task library](https://console.runzero.com/tasks/library). 2. From the **Task library**, find the template you want to base the new one on and click its name to open it. 3. On the scan template configuration page, click **Copy**. runZero duplicates it as a new scan template. 3. In the scan configuration form, enter a name for the template. You'll use this name to find the template and assign it to a new scan. 4. [Configure the scan](discovering-assets.md) as you normally would, using these tabs: * **Standard** holds the name, description, and scan rate for the template. * **Advanced** covers excluded hosts, included ports, tags, host rates, group size, UDP probe max attempts, max TTL for all scan probe packets, ToS, screenshots, and subnet sampling. * **Probes and SNMP** enables SNMP and additional probes and takes their credentials. With the SNMP probe enabled, the scan uses the port and credentials you provide to find anything with SNMP enabled. * **Credentials** enables any preconfigured credentials you want the scan to use; see [Scanning with credentials](scanning-credentials.md). The scan uses a credential when its defined CIDR scope matches the scan target. 5. Save the template. To use the template, open the _Templates_ tab when you [configure a scan](https://console.runzero.com/scan/) or [create a Template scan](https://console.runzero.com/tasks/templatesNewScan) from the scan menu on the [inventory](https://console.runzero.com/inventory) or [tasks](https://console.runzero.com/tasks) pages. ## Applying a scan template to a scan When you configure a scan, the **Templates** tab lists every template available for it. Pick one instead of configuring the scan by hand. You can also open the **Task library** page and choose **Create a scan based on this template** from the template's actions. ## Editing a scan template Every update to a scan template affects every scan that uses it. After you change a template, the next scan picks up the new settings automatically, and so does any scan queued to run. ### Editing a scan that uses a scan template To change the settings of a scan that uses a template, edit the template; the change reaches every scan that uses it. Otherwise, delete the scan and create a new scan configuration with your changes. When you create a scan from a template, you can't edit the fields the template sets. You can still configure the standard fields, such as the site, scan name, discovery scope, Explorer, and scan schedule, because the template doesn't define those. ## Deleting a scan template Deleting a template removes it from runZero permanently, along with all of its configuration. To delete one, go to [the Task library](https://console.runzero.com/tasks/library), find the template, and click **Delete**. A dialog asks you to confirm, because the deletion can't be undone. --- docs/scanning-credentials.md --- title: "Scanning with credentials" aliases: ["/docs/credentials"] --- The ((Credentials)) page is a single place to store any secure credentials runZero needs, including: - SNMPv3 credentials - Access secrets for cloud services like AWS and Azure - API keys for services such as Censys and Miradore runZero stores credentials encrypted in its database. Credentials that runZero Explorers use, such as SNMP passwords, are also encrypted in transit to the Explorers. For security reasons, the secret part of any credential can't be viewed once entered. When you add a credential, you can make it a ((global credential)) available to all organizations, or allow access only to specific organizations. The **Allow all** and **Disallow all** buttons apply the same setting across every organization at once, and you can also toggle access for each organization on its own. You can edit most credential fields after saving. Some fields, like URLs, can't be edited after saving for security reasons. Sensitive fields, such as passwords or access keys, are hidden but can be overwritten. ## Credential settings The fields and options for a credential depend on its type. VMware and SNMP credentials, which the runZero Explorer uses, accept a CIDR allow list that limits which scanned IP addresses the credential is used with. That keeps your SNMP or VMware credentials from going to every scanned host on the network and limits them to specific IP addresses or ranges. ## Credential verification You can verify a credential when you create or edit it to confirm it authenticates. Choose **Verify & save** to run the verification before saving. If verification fails, runZero shows an error message and offers **Save anyway**, which saves the most recent verification status. ## Credential management Managing credentials takes administrator-level permissions. Users with **Administrator** as their [default role](managing-your-team.md) can fully manage all credentials. Users with [per-organization permissions](organizations.md) can't access global credentials and can manage credentials only in organizations where they hold administrator permissions. An organization administrator can't delete a shared credential. --- docs/scanning-snmp.md --- title: "Scanning with SNMP" aliases: ["/docs/snmp"] --- ((SNMP)) is an open standard network protocol for collecting information about devices on a network. runZero scans with all three main versions of the protocol. With the right community strings or SNMP v3 credentials, a scan collects details such as serial numbers, device models, ARP caches, and switch port tables. If an asset is missing SNMP data, skip ahead to [Checking SNMP v3 credentials and SNMP v1/v2 authentication](#checking-snmp-v3-credentials-and-snmp-v1v2-authentication). ## SNMP versions 1 and 2 SNMP v1 and SNMP v2 both send community strings across the network in plain text. Neither version encrypts its data packets, and because SNMP runs over UDP, there's no way to add TLS for a secure connection. SNMP version 1 was designed in the 1980s as an interim protocol, meant to be replaced by ISO CMIP. It was built to run on any network common at the time, not only TCP/IP, so security was left to the host network. The protocol defined a community string for grouping assets in any way you liked, but didn't specify how access should be granted. SNMP version 2 tried to introduce a security model based on "parties," but it wasn't widely adopted, so a revised standard was issued as SNMP v2c. SNMP v2c dropped party-based security and went back to plain ((community strings)). The original SNMP v2 specification is considered obsolete. ## SNMP version 3 SNMP v3 fixes the security problems of SNMP v2 by building password-based authentication and encryption (called privacy protection) into the standard. The catch is that the standard allows several algorithms for both authentication and encryption, and you have to know which ones your network devices use. Unlike SSH, for example, the protocol has no negotiation of encryption methods. SNMP v3 devices operate in one of three modes: - ((noAuthNoPriv)): no authentication and no privacy protection (no encryption). - ((authNoPriv)): authentication is required, but there's still no privacy protection. - ((authPriv)): both authentication and privacy protection are required. ## runZero's SNMP support runZero scans with SNMP v1, SNMP v2 (the common `v2c` variant), and SNMP v3. A scan can use only v1/v2, only v3, or both. SNMP scanning is on by default. You can turn it off or customize it on the SNMP tab when you set up a scan or a scan template. ### SNMP v1 & v2 scanning You can set up community strings for SNMP v1/v2 scanning in two ways. The first is to enter them as a comma-separated list on the SNMP tab. By default, runZero supplies the community strings `public` and `private`, which are common defaults on network-enabled hardware such as printers and NAS servers. If you remove those defaults, runZero does not probe with them. The second is to store them in the [credentials feature](scanning-credentials.md) as the credential type _SNMP v2 Communities_. Communities technically shouldn't be used as credentials, because they cross the network in plain text, but in practice many networks use them that way. Storing your community strings as ((credentials|SNMP credentials)) lets you use the ((CIDR allow list)) feature to control which parts of the network receive them, which reduces the risk of a rogue device capturing them. If you remove all community strings from the SNMP tab and store no ((SNMP v2 Communities)) as credentials, runZero performs no SNMP v1/v2 scanning. ### SNMP v3 scanning Most devices only give up potentially sensitive information, such as serial numbers and software versions, in response to an _authenticated_ SNMP v3 query. To perform ((authenticated SNMP v3)) scanning, set up an _SNMP v3 Credential_ record in runZero's credentials feature. The ((authentication protocol)) sets the hashing algorithm that processes the ((authentication passphrase)): in other words, how the runZero Explorer logs in to the remote device. The most common default authentication algorithm on devices is `sha` (HMAC-SHA-96), which the SNMP v3 standards require. Newer devices may support more secure variants such as SHA-256, and runZero supports up to SHA-512. runZero also supports HMAC-MD5-96, as the standards require, but avoid it on your network because the MD5 algorithm is known to be insecure. The ((privacy protocol)) determines how data to and from the remote device is encrypted against eavesdropping. The ((privacy passphrase)) seeds the encryption. The most common privacy algorithm, required by the original SNMP v3 standards, is CBC-DES-128, selected as `des` in the runZero user interface. Later RFCs added AES-128, represented as `aes`. runZero also supports more secure variants that newer devices may use, such as AES256. As [described above](#snmp-version-3), devices may require only authentication, both authentication and privacy, or neither. Some device configurations have room for only a single passphrase. This usually means the device uses the same passphrase for both privacy and authentication when it runs in authPriv mode. As with SNMP v2 community strings, you can set a CIDR allow list to control which IP addresses receive SNMP v3 credentials. This is especially recommended if your network doesn't require privacy passphrases. Beyond credentialed scanning, runZero also gathers information from the SNMP v3 pre-authentication handshake. To perform SNMP v3 scanning across Cisco switches, modify the ACLs to include the following rule: - Newer IOS versions: `snmp-server group YourGroupName v3 auth context vlan- match prefix` - Older IOS versions: `snmp-server group YourGroupName v3 auth context vlan-1` (repeated for every VLAN) ### Choosing which versions of SNMP are scanned To scan with SNMP v3 only, remove the community strings from the SNMP tab when you set up a scan or template, and disable any SNMP v2 community strings stored as credentials on the Credentials tab. To turn off authenticated SNMP v3 scanning and scan with SNMP v1/v2 only, disable any SNMP v3 credentials on the Credentials tab and specify community strings, either on the SNMP tab or in a credential. To turn off all SNMP scanning, including uncredentialed SNMP v3, switch off the toggle on the SNMP tab labeled _Use the SNMP protocol for discovery_. ### How scans are performed runZero probes each device with every configured SNMP version and every community string, because devices often return different levels of data for SNMP v3 than for SNMP v2, and may return different information for different community strings. SNMP runs over UDP, which doesn't guarantee packet order, so there's no way to control the order in which a remote device receives the community strings. SNMP v3 authentication errors don't count as scan failures, because networks commonly use different sets of SNMP v3 credentials on different segments, and misconfigured devices with incorrect passphrases are common too. ## Checking SNMP v3 credentials and SNMP v1/v2 authentication If an asset you expected to have SNMP data has none, a common cause is a network firewall, which often blocks SNMP traffic entirely. If you can, deploy an Explorer on the far side of the firewall, on the network segment you want to scan with SNMP. The second most common cause is incorrect SNMP v3 credentials. The asset's attributes tell you what happened: - If runZero attempted SNMP v3 authentication, the asset records an _SNMP engine ID_ as `snmp.engineID.raw`. The engine ID is usually a long string of hex digits and is used to calculate access keys. - If SNMP v3 authentication failed, the attribute `snmp.failedAuth` reports the error. A request timeout likely means authentication succeeded but the encrypted data channel could not be set up, so you may have the wrong privacy password or privacy algorithm. - If SNMP authentication succeeded (v1/v2 or v3), the `snmp.credentials` attribute holds the UUID of each credentials record that succeeded. - If SNMP v1/v2 authentication with a community string succeeded, the asset has `snmp.secretCommunities` or `snmp.defaultCommunities` attributes, depending on the type of community string. - If SNMP v1/v2 authentication succeeded with community strings entered directly into the task request rather than stored as credentials, the `snmp.secretCommunities` and/or `snmp.defaultCommunities` attributes are still present, but `snmp.credentials` is a zero UUID. ### Debugging credential issues Trying to ((debug SNMP v3)) credential problems by trial and error, one scan at a time, is frustrating. Use the `snmpwalk` utility instead. It's part of the [net-snmp](http://www.net-snmp.org/) open source project, packaged for most Linux distributions and available for macOS through Homebrew. Windows has unofficial builds, or you can install it in the Windows Subsystem for Linux (WSL). `snmpwalk` connects to an IP address and dumps all the information it can retrieve. This example connects in `authPriv` mode with both authentication and privacy passphrases: ```shell snmpwalk -v3 -l authPriv -a SHA -A "authentication passphrase" -x AES -X "privacy passphrase" -u username 10.0.1.25 ``` (The text above is wrapped onto two lines, but it's one command.) The parameters are: - `-v3`: switch to SNMP v3 mode. - `-l authPriv`: run in [authPriv](#snmp-version-3) mode, with both authentication and privacy required. - `-a SHA`: authentication algorithm is SHA (SHA-128). - `-A`: specify the authentication passphrase as the next argument. - `-x AES`: privacy (encryption) algorithm is AES (AES-128). - `-X`: specify the privacy passphrase as the next argument. - `-u username`: specify the login username. - `10.0.1.25`: the IP address to probe. With the right passphrases and algorithms, you get data back, probably a lot of it. Otherwise you get an error message that may point to the cause. To check SNMP v2 community strings, use a command like this: ```shell snmpwalk -v2c -c commstring 10.0.1.25 ``` The `-v2c` argument selects SNMP v2 (SNMP v2c) mode, and `-c` specifies the community string. With the wrong community string, `snmpwalk` runs for a while and then prints a timeout error. ## Reviewing discovered SNMP services When a scan finds SNMP services, runZero tracks their protocol versions at the asset level: you see `snmp` along with `snmp1`, `snmp2`, and `snmp3`, depending on which versions responded. That keeps [asset inventory](https://console.runzero.com/inventory) queries such as `protocol:snmp2` fast. SNMP services also record how they authenticated and which protocols they used. If a common SNMP v2 community value worked (such as `public`, `private`, some vendor defaults, and common values like `password`, `cisco`, and `community`), the service details list the communities that responded in cleartext under `snmp.defaultCommunities`, and the asset details list them under `snmp.v2DefaultCommunities`. If the SNMP v2 community is not a common value, the service details report `snmp.secretCommunities` with a value of `true`, and the asset details carry an attribute called `snmp.v2SecretCommunities` with a value of `true`. If SNMP v3 was used, runZero populates `snmp.v3Usernames` at the asset level. Finally, an asset attribute called `snmp.auth` records whether `v2DefaultCommunity`, `v2SecretCommunity`, or `v3Username` authenticated to the asset. ## Improving OS fingerprinting using Net-SNMP's `extend` feature On some Linux distributions, the data Net-SNMP provides isn't enough to fingerprint the OS correctly. Distributions based on Red Hat Enterprise Linux, such as AlmaLinux OS, CentOS, Oracle Linux, and Rocky Linux, all return exactly the same values for a given point release. Net-SNMP's [`extend` mechanism](https://www.net-snmp.org/docs/man/snmpd.conf.html), which runs a defined command and returns its output over SNMP, can improve the result. Each target asset must run Net-SNMP as its SNMP software, and you must modify its SNMP configuration: 1. Modify `/etc/snmp/snmpd.conf` and 1. Add the line: `extend os-release /bin/cat /etc/os-release` 1. Grant the SNMP community string or user that runZero uses the right to collect the data by adding a line like: `view systemonly included .1.3.6.1.4.1.8072.1.3.2` 2. Restart the SNMP service: ```shell sudo systemctl restart snmpd ``` 3. Verify that the community string or account the runZero task will use can access the OID. ```shell snmpwalk -v2c -c commstring 10.0.1.25 .1.3.6.1.4.1.8072.1.3.2.3.1.2.10.111.115.45.114.101.108.101.97.115.101 ``` ## Object identifiers (OIDs) This is the complete list of OIDs runZero may query on an asset. Some apply only to specific vendors. **System attributes** - `1.3.6.1.2.1.1.*.0` **IP addresses** - `.1.3.6.1.2.1.4.20.1.3.*` **MAC addresses** - `.1.3.6.1.2.1.2.2.1.6.*` **ARP caches** - `.1.3.6.1.2.1.4.35.1.4.*` - `.1.3.6.1.2.1.3.1.1.2.*` - `.1.3.6.1.2.1.4.22.1.2.*` **Routes** - `.1.3.6.1.2.1.4.24.7.1.7.*` **Port (CAM) tables** - `.1.3.6.1.2.1.17.7.1.2.2.1.2.*` - `.1.3.6.1.2.1.17.4.3.1.2.*` **VLANs** - `.1.3.6.1.2.1.17.7.1.4.3.1.1.*` - `.1.3.6.1.4.1.9.9.46.1.3.1.1.4.1.*` **Interface names** - `.1.3.6.1.2.1.17.1.4.1.2.*` - `.1.3.6.1.2.1.31.1.1.1.1.*` **Serial numbers** - `.1.3.6.1.2.1.47.1.1.1.1.11.*` **Device models** - `.1.3.6.1.2.1.47.1.1.1.1.13.*` **Hostnames** - `.1.3.6.1.4.1.9.2.1.3.*` **Model names from Juniper switches** - `.1.3.6.1.4.1.2636.3.1.2.0.*` **Serial numbers from A10 devices** - `.1.3.6.1.4.1.22610.2.4.1.6.2` **OS release information from Net-SNMP's extend functionality (see above)** - `.1.3.6.1.4.1.8072.1.3.2.3.1.2.10.111.115.45.114.101.108.101.97.115.101`
For Cisco Catalyst & Nexus switches, the Explorer requires per-VLAN access to the ARP/FDB tables, through either community indexing (v2) or contexts (v3). runZero automatically enumerates the ARP cache and port table for each discovered VLAN. Without this access, the switch may be missing its snmp.macs.ports and snmp.macs.vlans attributes and may not appear on the Switch Topology report.
runZero gathers information from SNMP v3 systems even when no credentials are available. This information includes the engineID and the values of the following OIDs: - `.1.3.6.1.6.3.15.1.1.1.0`: `usmStatsUnsupportedSecLevels` - `.1.3.6.1.6.3.15.1.1.2.0`: `usmStatsNotInTimeWindows` - `.1.3.6.1.6.3.15.1.1.3.0`: `usmStatsUnknownUserNames` - `.1.3.6.1.6.3.15.1.1.4.0`: `usmStatsUnknownEngineIDs` - `.1.3.6.1.6.3.15.1.1.5.0`: `usmStatsWrongDigests` - `.1.3.6.1.6.3.15.1.1.6.0`: `usmStatsDecryptionErrors` --- docs/using-custom-fingerprints.md --- title: "Using custom fingerprints" --- If you run a ((self-hosted)) instance or the standalone ((scanner)), you can write your own fingerprints. Custom fingerprints add coverage for one-of-a-kind or custom assets and services, such as device prototypes or proprietary applications and services. They can also override similar built-in runZero fingerprints when you give them a same-or-higher certainty value. [Understanding fingerprints](docs/fingerprinting.md) explains how runZero builds its own.
To use custom fingerprints with the runZero standalone scanner, set `RUNZERO_EXTERNAL_FINGERPRINTS` as an environment variable when you launch the scanner.
## Create new fingerprints {#custom-fingerprints-create} Custom fingerprints follow the structure and format of the [open-source Recog fingerprint database](https://github.com/rapid7/recog). Write your fingerprint XML entries in files named and formatted like [those in Recog](https://github.com/rapid7/recog/tree/main/xml). When an asset or service matches both a built-in runZero fingerprint and a custom fingerprint of the same kind, the fingerprint with the higher "certainty" value(s) wins (for example `hw.certainty`, `os.certainty`, `service.certainty`). If the certainty values tie, the custom fingerprint wins. ## Add new fingerprints to your self-hosted runZero instance Custom fingerprints must live inside the runZero installation directory ([/opt/runzero](docs/self-hosting.md#permissions) by default) so the self-hosted instance can read them. To set them up: * Create a new directory within the runZero install directory (for example `mkdir /opt/runzero/myfingerprints`) * Update your `/etc/runzero/config` file with the new directory location (see below) * Copy your custom fingerprint XML files into the new directory (for example `cp *.xml /opt/runzero/myfingerprints`) To point `/etc/runzero/config` at your custom fingerprints directory, add this line to the end of the file with your favorite editor, replacing `myfingerprints` with the name of the directory you created: ``` RUNZERO_EXTERNAL_FINGERPRINTS=myfingerprints ``` You only need to create the directory and update `/etc/runzero/config` once. After that, add, remove, or modify custom fingerprints in the directory as needed, then restart the runZero application to reload them. ## Restart the runZero service {#custom-fingerprints-restart} [Restart](docs/self-hosting.md#restart-the-runzero-service) the self-hosted instance whenever you add, remove, or update custom fingerprints. Watch the runZero log file during the restart to confirm that the fingerprints loaded or to catch an error. A successful load logs a message like this: ``` @cee:{"level":"info","msg":"loaded (5) external fingerprints","time":"2022-09-12T19:51:49Z"} ``` If runZero hits a problem loading or processing the custom fingerprints, or reaches a 10 second timeout, it logs a warning and keeps running without any custom fingerprints. ## Verify your fingerprints {#custom-fingerprints-verify} After you add the custom fingerprints and restart the instance, check that they behave as expected in one of two ways: * Run a scan task against a relevant asset or service, or * Import an existing scan data file for the relevant asset or service When the scan task or the import finishes, open the [asset](https://console.runzero.com/inventory) or [service](https://console.runzero.com/inventory/services) in the inventory and confirm that your custom fingerprints took effect. --- docs/traffic-sampling.md --- title: Passive sampling --- runZero Explorers can identify assets, services, and vulnerabilities by passively monitoring network traffic. ((Passive sampling)) can be an alternative data source where active scanning is prohibited, and it can help you find unknown IP ranges. A passive sampling task is limited to a single CPU core and temporarily skips packets when it reaches that limit. If an active scan runs on an Explorer with a passive sampling task, the passive task is interrupted and restarts once the active scan completes. ## Configuring passive sampling Configure passive sampling from the Explorer details screen: choose _Deploy_ from the left navigator and click an Explorer. The network interfaces available for passive sampling appear on the left. Once enabled, the sampling task processes any traffic received on these interfaces, including plain layer-2 frames from ((SPAN)) and ((TAP)) ports, traffic encapsulated with 802.1q (VLAN or QinQ), and layer-3 traffic encapsulated with GRE or VXLAN. A full ((SPAN)) capture gives the best results, but any traffic, including broadcast, adds useful enrichment. The passive sampling task automatically enables ((promiscuous mode)) on the selected interfaces. Some virtual infrastructure, such as VMware ESXi, may require promiscuous mode on the virtual switch before it forwards traffic to the interface. The _Discovery scope_ sets which IP ranges qualify for asset, service, and vulnerability creation. runZero ignores traffic with no source or destination inside an allowed range. You can also list _Excluded hosts_ for IP ranges you want to skip. The _Site_ option sets where assets are created and updated. If the same IPs exist in other sites, you can end up with duplicate asset records. You can set _Asset tags_ for systems identified through passive traffic sampling. Tags can help you review the new assets and learn more about them with [active scans](docs/discovering-assets.md). --- docs/troubleshooting-protocols-supported.md --- title: Protocol support lastmodexempt: true aliases: ["/docs/troubleshooting-protocols-scanned/"] --- --- docs/troubleshooting-ports-scanned.md --- title: Default ports lastmodexempt: true --- runZero scans a broad default port set, and you can configure any TCP or UDP port range. ## What TCP ports does runZero scan? runZero scans the following TCP ports by default: ## What UDP ports does runZero scan? runZero scans the following UDP ports by default: --- docs/troubleshooting-iot-and-ot.md --- title: Scanning IoT and OT --- ## Can I safely scan my IoT and OT environments? Yes. ((IoT)) and ((OT)) equipment is often sensitive to high packet rates or malformed traffic, and past experiences with aggressive scanners have led many teams to put a "don't scan" rule in place for these networks. runZero was built to operate safely in these environments, so most organizations can include their IoT and OT assets in their active inventory. runZero discovers assets with a lightweight active scan engine called the [Explorer](installing-an-explorer.md). You can deploy the Explorer almost anywhere on your network, with no SPAN or TAP ports to configure and no agents to install on individual devices. Because discovery runs actively from a single point on the network, you don't have to modify the environment you want to inventory. ## What makes the Explorer safe for sensitive environments? The Explorer was engineered with fragile OT and IoT systems in mind. It is not based on `nmap`, `masscan`, or any other open source or commercial scanner. It sends only well-formed, standards-compliant traffic: never a malformed packet, and never an attempt to exploit a vulnerability. Safety controls built into every scan include: - Scan rates are conservative. The defaults are `1000` packets per second across the entire scan and `40` packets per second per host. Both values are adjustable, and traffic is balanced evenly across all targets in scope. - You can exclude critical assets, subnets, and individual TCP/UDP ports globally or per scan. - Every UDP service probe, including each OT/IoT-specific probe, can be enabled or disabled individually. - The Explorer paces connections: it balances SYN and ACK traffic and watches for port exhaustion on both the scanner and the target. - A configurable max group size limits how many targets are probed concurrently, which directly controls the connection load on stateful middle boxes such as firewalls, proxies, and small routers. - Only TCP and UDP ports that yield actionable fingerprinting data are probed, rather than all 65535. The list is fully adjustable for specialized equipment on non-standard ports (see [Ports scanned by runZero](troubleshooting-ports-scanned.md#what-tcp-ports-does-runzero-scan)). - Probe behavior is tuned per protocol for known-fragile services. For example, the Explorer collects a banner from `9100/tcp` on a printer but never sends active probe data that could result in printed "garbage." For a step-by-step rollout plan, see the [Scanning OT networks](https://help.runzero.com/docs/playbooks/scanning-ot-networks/) playbook. ## Where should I deploy the Explorer? Two patterns are common: - Co-locate the Explorer with your existing vulnerability scanners. Those hosts typically already have allow-lists, network reachability, and session-table sizing that account for scan traffic, which simplifies deployment. - Deploy dedicated Explorers at remote and OT sites. An Explorer on the same network segment as the assets it scans gives the best layer-2 visibility, removes middle-box concerns, and lets you tune scans independently per location. For isolated OT networks with no internet access, deploy a [self-hosted runZero console](self-hosting.md) or use the [offline scanner](self-hosting-offline.md) so Explorers never need to leave the OT zone. ## OT/ICS vendors runZero fingerprints runZero recognizes many OT, ICS, and IoT vendors out of the box, including: - ABB - Allen-Bradley / Rockwell Automation - AutomationDirect - Beckhoff - BARIX - Cisco - CODESYS - Control Solutions - Control Techniques - Danfoss - Delta Electronics - Digi - Emerson - Festo - GE - GENEREX - GLC Controls - Hilscher - Hirschmann - HMS Networks - Honeywell - ifm - Johnson Controls - Lantronix - Linor Koda - Mitsubishi Electric - Moxa - Murrelektronik - Omron - Phoenix Contact - Pilz - Pressac - ProSoft Technology - Red Lion - Rittal - Saia-Burgess - Schneider Electric - SICK - Siemens - Turck - WAGO - Weidmüller - Westermo - Yokogawa ## IoT and OT protocols runZero ships dedicated probes for the most common industrial, building-automation, and field-bus protocols. Each probe is standards-compliant and asks only for the information needed to fingerprint a device. You can toggle every probe individually in your [scan templates](managing-scan-templates.md). | Probe | Protocol | Typical port(s) | Notes | | --- | --- | --- | --- | | `BACNET` | BACnet/IP | `47808/udp` | HVAC, lighting, building management. Enumerates routed devices and BBMD/FDT entries as sub-assets. | | `ETHERNETIP` | EtherNet/IP (CIP) | `44818/tcp+udp`, `2222/udp` | Rockwell / Allen-Bradley and other CIP devices. Enumerates backplane modules as sub-assets. | | `MODBUS` | Modbus/TCP | `502/tcp` | Tune `modbus-identification-level` to match device capabilities. Enumerates connected unit IDs as sub-assets. | | `S7COMM` | Siemens S7Comm | `102/tcp` | Set `s7comm-request-extended-information` to `true` for richer data. Enumerates rack/slot modules as sub-assets. | | `KNXNET` | KNXnet/IP | `3671/udp` | Building automation; enumerates KNX devices behind the IP interface. | | `DNP3` | DNP3 | `20000/tcp+udp` | Some outstations only talk to one master at a time; test before broad rollout. | | `PROFINET` | PROFINET | `34962-34964/udp` | Cyclic and acyclic real-time control; enumerates slot/subslot modules. | | `ETHERCAT` | EtherCAT | `34980/udp` | Enumerates slaves on the EtherCAT segment. | | `FINS` | Omron FINS | `9600/tcp+udp` | Omron PLCs and compatible controllers; enumerates connected units. | | `MELSECQ` | Mitsubishi MELSEC-Q | `5006-5007/tcp` | Returns CPU model and type; enumerates backplane CPUs. | | `HARTIP` | HART-IP | `5094/tcp` | Multiplexers in front of HART field instruments; walks Cmd 84 sub-device indices. | | `IEC104` | IEC 60870-5-104 | `2404/tcp` | SCADA telecontrol; enumerates outstation addresses. | | `MMS` | IEC 61850 MMS | `102/tcp` | Substation IEDs; enumerates logical devices. | | `ADS` | Beckhoff ADS | `48898/tcp` | Beckhoff TwinCAT runtime; enumerates ADS sub-devices. | | `C37118` | IEEE C37.118 Synchrophasor | `4712/tcp` | PMUs reported by Phasor Data Concentrators. | | `ATG` | Veeder-Root Automatic Tank Gauge | `10001/tcp` | Fuel-tank monitoring at retail / fleet sites. | | `BSAP-IP` | Emerson BSAP/IP | `1234-1235/udp` | Emerson ControlWave / Bristol RTUs in oil & gas SCADA. | | `C12.22` | ANSI C12.22 | `1153/tcp` | Electric-utility AMI head-ends and relays. | | `CSPV4` | Allen-Bradley CSPv4 / PCCC | `2222/tcp` | Legacy SLC 5/05 and MicroLogix PLCs. | | `DOIP` | Diagnostics over IP | `13400/tcp+udp` | In-vehicle ECUs over Ethernet; enumerates reachable ECUs. | | `FOCAS` | Fanuc FOCAS | `8193/tcp` | Fanuc CNC machine tools and robots. | | `HSMS` | SEMI HSMS / SECS-GEM | `5000/tcp` | Semiconductor fab equipment (SEMI E37). | | `MBUS-TCP` | M-Bus over TCP | `8888-8889/tcp` | Tunneled EN 13757 utility-meter aggregators. | | `OPCUA` | OPC UA | `4840/tcp`, `4843/tcp` | Vendor-neutral industrial information model and data access. | Fifteen of these probes (BACnet, CIP, Modbus, KNXnet, S7Comm, DNP3, PROFINET, EtherCAT, Omron FINS, MELSEC-Q, HART-IP, IEC 60870-5-104, IEC 61850 MMS, Beckhoff ADS, IEEE C37.118) also enumerate downstream devices behind the gateway and report each as its own sub-asset linked back to the gateway. See [Protocol gateways](protocol-gateways.md) for how that works and how to query the resulting sub-assets. The [protocol catalog](troubleshooting-protocols-supported.md) has the complete list. Start with the OT-specific probes disabled, validate a limited scan against a representative subset of devices, then enable additional protocols as your team gains confidence. The [Scanning OT networks](https://help.runzero.com/docs/playbooks/scanning-ot-networks/) playbook lays out this phased rollout. --- docs/integrations-inbound.md --- title: "Inbound integrations" aliases: ["/docs/integrations/"] --- ## Enriching runZero results with data from other tools runZero integrates with several sources of asset data so you can enrich your asset inventory and find assets and subnets that aren't effectively managed or protected. Through product APIs and export/import functionality, runZero can pull data from many IT and security tools to extend visibility across your organization's network. ## Supported integrations ### Cloud and virtualization * [Amazon Web Services](docs/aws.md) * [Google Cloud Platform](docs/google-cloud-platform.md) * [Microsoft Azure](docs/azure.md) * [Prisma](docs/prisma.md) * [VMware](docs/vmware.md) * [Wiz](docs/wiz.md) ### Endpoint protection * [CrowdStrike Falcon](docs/crowdstrike.md) * [Microsoft 365 Defender](docs/microsoft-365-defender.md) * [Microsoft Intune](docs/microsoft-intune.md) * [Miradore MDM](docs/miradore.md) * [SentinelOne](docs/sentinelone.md) * [Tanium API Gateway](docs/tanium.md) ### Endpoint management * [Microsoft Endpoint Configuration Manager (MECM)](docs/mecm.md) ### Asset and identity management * [Google Workspace](docs/google-workspace.md) * [Microsoft Active Directory](docs/microsoft-active-directory.md) * [Microsoft Entra ID](docs/microsoft-entra-id.md) (formerly Azure AD) ### Vulnerabilities and risk {#integrations-inbound-vm} * [Censys Search & Data](docs/censys.md) * [Censys Platform](docs/censysplatform.md) * [Dragos](docs/dragos.md) * [Qualys VMDR](docs/qualys.md) * [Rapid7](rapid7.md) * [InsightVM](rapid7-insightvm.md) * [Nexpose](rapid7-nexpose.md) * [Shodan](docs/shodan.md) * [Tenable](tenable.md) * [Tenable Vulnerability Management](tenable-vm.md) * [Tenable Nessus Professional](tenable-nessuspro.md) * [Tenable Security Center](tenable-sc.md) * [Tenable Nessus (file import)](tenable-nessus.md) ### Network management * [Cisco Meraki Dashboard](docs/meraki.md) * [Tailscale](docs/tailscale.md) ### Custom integrations If runZero has no integration for the tool you want to draw data from, Platform and Community users can add asset data from custom sources with the [custom integrations](https://console.runzero.com/custom-integrations/) feature. The primary path is [custom integration scripts](custom-integration-scripts.md), which run on your Explorers or on the console and can pull from REST APIs or directly over SSH, SMB, WinRM, WMI, and SQL. A library of over a hundred ready-to-use scripts is available in the [runzero-custom-integrations](https://github.com/runZeroInc/runzero-custom-integrations) repository and from the example picker in the console's script editor. Where AI is enabled, the console can [generate a script](custom-integration-scripts.md#ai-generator) from a plain-language description. You can also import custom asset data through the API or the [runZero Python SDK](https://runzeroinc.github.io/runzero-sdk-py/). Each custom integration is available either to every organization in the account or only to the organizations granted access to it, and administrators can edit only the integrations that belong to organizations they administer. See [organization access](custom-integration-scripts.md#integration-organization-access) for details. ## Scan probes or connector tasks {#integration-probe-connector} Most integrations can run either as a ((scan probe)) or as a ((connector task)). **Scan probes** run as part of a scan task, so one task can scan your environment and sync integrations at the same time. To run an integration as a scan probe: 1. Configure a scan task from the _Scan_ menu in your inventory or tasks page. 2. Activate the integration under the _Probes_ tab. 3. Activate the correct credential under the _Credentials_ tab. 4. Configure, activate, or deactivate other scan task options as preferred. **Connector tasks** run independently of scan tasks, so you can schedule integration syncs and asset scans separately. They run from the runZero cloud by default, or from an Explorer in your organization if you prefer. To run an integration as a connector task: 1. Configure a connector task from the [Integrations page](https://console.runzero.com/integrations/) or the _Integrate_ menu in your inventory or tasks page. 2. Select an Explorer from the _Explorer_ menu (optional). 3. Configure, activate, or deactivate other connector task options as preferred. ## Importing integration data Some integrations can be used by importing data from the other platform into runZero. For example, runZero ingests `.nessus` files from [Tenable Nessus](docs/tenable-nessus.md) and `.xml` files from [Rapid7 Nexpose](docs/rapid7-nexpose.md) without connecting to their APIs. ## Automatic asset merge {#integrations-merging} runZero maps each integration host to an asset like this: * If the host matches an existing runZero asset, runZero updates the asset-level attributes and adds the integration-specific attributes. * If the host matches no existing runZero asset, runZero creates a new asset in the site you chose when you set up the integration task. runZero matches integration data to existing assets by the following, in priority order: 1. MAC address 2. IP address (3-day window) 3. Hostname You can also merge integration assets into runZero assets by hand with the _Merge_ button on the [Asset Inventory](https://console.runzero.com/inventory) page. ## Removing an integration data source {#integrations-removal} When you remove an integration as a data source, runZero removes its attributes from your assets. Because some asset attribute fields are merged, attributes populated by both runZero scans and the integration may be deleted too. Rescanning the affected assets restores them. ## Excluding integration attributes You can configure your account and organizations to skip collecting certain integration attributes, for example personally identifiable information (PII) such as usernames or email addresses. Some attributes drive runZero's merging and fingerprinting, though, and excluding them may make your inventory less accurate. Set excluded attributes in your [Account settings](https://console.runzero.com/account) under _Personally Identifiable Information (PII) collection_ to apply them across all organizations, or in the settings of an individual [Organization](https://console.runzero.com/organizations) to override the account-level settings. You can use the default list of attributes or define your own. Attributes take the format `@source.resourceType.attributeName`. For example, `@crowdstrike.dev.firstLoginUser` excludes the attribute "firstLoginUser" from CrowdStrike devices. Only integrations that import PII support attribute exclusions. At this time those are: * CrowdStrike * SentinelOne * Tanium * Google Workspace * Intune * Miradore The Directory Users and Directory Groups inventories don't support attribute exclusions. The AzureAD, LDAP, and Google Workspace integrations import directory users and groups by default, but you can turn that off in the task configuration. ## Source names and IDs {#integration-sources} This table maps each source name to the source ID you use when querying assets and vulnerabilities. --- docs/aws.md --- title: Amazon Web Services aliases: ["/docs/set-up-aws/"] --- runZero integrates with ((Amazon Web Services)) (((AWS))) to give you better visibility across your cloud environment. The integration imports data from each applicable API to add detail to your asset inventory: * [AWS EC2 API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Welcome.html) * [AWS RDS API](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/ProgrammingGuide.html) * [AWS ELBv1 API](https://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/Welcome.html) * [AWS ELBv2 API](https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/Welcome.html) * [AWS Lambda API](https://docs.aws.amazon.com/lambda/latest/dg/API_Reference.html) * [AWS FSx API](https://docs.aws.amazon.com/fsx/latest/APIReference/API_Operations.html) * [AWS Inspector2 API](https://docs.aws.amazon.com/inspector/v2/APIReference/Welcome.html) With AWS synced, you can see at a glance how many EC2 instances, elastic load balancers, relational database services, FSx file systems, and VPCs you have running, along with their region, account, and more. The integration imports all running EC2 instances, RDS instances, Lambda functions, FSx file systems, VPCs, and active application, network, gateway, or classic load balancers. You can connect it to a single AWS account or to all accounts in your organization, and it imports data across multiple regions. ## Getting started {#aws-getting-started} runZero supports these AWS resource types: * EC2 instances * Elastic load balancers * RDS instances * Lambda instances * FSx file systems * VPCs To set up the AWS integration: 1. Configure AWS to allow API access for runZero. 2. Add the AWS credential to runZero, including the access key and secret key. 3. Choose whether to run the integration as [a scan probe or connector task](integrations-inbound.md#integration-probe-connector). 4. Activate the AWS integration to sync your data with runZero. ## Requirements {#aws-requirements} Before you set up the AWS integration: * Make sure you have access to the AWS console. * Use [AWS Organizations](https://aws.amazon.com/organizations/) if you want to connect to multiple accounts. * With [AWS Organizations](https://aws.amazon.com/organizations/) and a compatible credential, such as the [IAM Role Credential](#iam-role-credential), runZero enumerates the member accounts to sync all of their data. ## Step 1: Create an AWS credential runZero can authenticate to AWS with any of these credential types: * [IAM Role Credential](#iam-role-credential) (recommended): runZero authenticates to AWS with an IAM role that you create in your AWS account. No long-term access keys are needed. * IAM Role credentials are not supported for self-hosted instances, GovCloud-based accounts, or Explorer tasks. Use IAM Key credentials in those cases. * [IAM Role Credential - Manual Account Selection](#iam-multi-account-credential) (alternative): runZero authenticates to AWS the same way as the IAM Role Credential, but with account IDs you specify by hand rather than AWS Organization subaccounts. Recommended only for advanced use cases. * [IAM Key Credential](#iam-key-credential) (deprecated): runZero authenticates to AWS with an IAM user and long-term access keys. ### Option A: IAM role credential {#iam-role-credential} To give runZero authenticated access to AWS through an IAM role, you need an **External ID**. An external ID is a unique ID that runZero provides for your IAM role. You use it when configuring the IAM role so that only your runZero account can access the role. For more on external IDs in cross-account access, see [AWS' documentation on the confused deputy problem](https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html). #### Step 1a.1: Create a runZero credential and external ID To generate an external ID, create an AWS IAM Role credential in the runZero console: 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) and click **Add Credential**. 2. Choose **AWS IAM Role** from the list of credential types. 3. Name the credential, for example `AWS IAM Role`. 4. In the AWS IAM role ARN field, enter the full ARN of the IAM role you will create in the next step. An IAM role ARN has the format `arn:aws:iam::123456789012:role/runzero-sync`, where `123456789012` is your AWS account ID and `runzero-sync` is the name of the role you will create. If you don't know your AWS account ID yet, use `arn:aws:iam::XXXXXXXXXXXX:role/runzero-sync` as a placeholder and update it later. 5. Click **Save** to save the credential and generate an external ID. Verify & Save won't work yet, because the IAM role doesn't exist in AWS. You'll test the credential in Step 1a.3. 6. Copy the external ID. You'll need it in the next step. #### Step 1a.2: Create AWS IAM role(s) Follow the directions below to create an IAM role in every AWS account you want to sync with runZero. If you use AWS Organizations, reuse the same role name and external ID from your credential in each account. The preferred way to create the IAM role is with CloudFormation StackSets: 1. Create a `runzero-cloudformation-stackset.json` file with the following content. Replace `` with the external ID generated in the runZero console. ```json "Resources": { "IamrunZeroAccessRole": { "Type": "AWS::IAM::Role", "Properties": { "RoleName": "runzero-sync", "AssumeRolePolicyDocument": { "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::336004405641:root" }, "Action": "sts:AssumeRole", "Condition": { "StringEquals": { "sts:ExternalId": "" } } }] }, "ManagedPolicyArns": [ "arn:aws:iam::aws:policy/AmazonEC2ReadOnlyAccess", "arn:aws:iam::aws:policy/AmazonRDSReadOnlyAccess", "arn:aws:iam::aws:policy/AWSLambda_ReadOnlyAccess", "arn:aws:iam::aws:policy/AmazonFSxReadOnlyAccess", "arn:aws:iam::aws:policy/AWSOrganizationsReadOnlyAccess", "arn:aws:iam::aws:policy/AmazonInspector2ReadOnlyAccess" ] } } } ``` 2. Go to **CloudFormation > StackSets** and click **Create StackSet**. 3. Select **Template is ready** and **Upload a template file**. Upload the template you just created. 4. Enter a name for the StackSet, for example runZero-IAM-Role. Click next. 5. (Optional) Set tags. Click next. 6. Set deployment options. Click next. 7. Review and create the StackSet. 8. The StackSet creates an IAM role with the format `arn:aws:iam:::role/runzero-sync`. Copy the full ARN of the role. You'll need it in Step 1a.3. To create the IAM role(s) manually instead: 1. Sign in to the AWS console. 2. Go to **Identity and Access Management (IAM) > Roles** to create a role that gives runZero access. 3. Click the **Create role** button. 4. On the "Select trusted entity" step: 1. Select **AWS account** in the **Trusted entity type** panel. 2. Select **Another AWS account** in the **An AWS account** panel. 3. Enter `336004405641` for the account ID. This is the account runZero uses to access your AWS account. 4. Check the **Require external ID…** checkbox and enter the external ID generated in Step 1a.1. 5. Click the **Next** button. 5. On the "Add permissions" step, select the following AWS managed policies and click the **Next** button. These grant runZero read-only access to the inventory in your AWS account. - `AmazonEC2ReadOnlyAccess` to sync EC2, ELB, and VPC resources - `AmazonRDSReadOnlyAccess` to sync RDS instances - `AWSLambda_ReadOnlyAccess` to sync Lambda functions - `AmazonFSxReadOnlyAccess` to sync FSx file systems - `AWSOrganizationsReadOnlyAccess` to sync AWS Organization account information - `AmazonInspector2ReadOnlyAccess` to import [AWS Inspector](https://docs.aws.amazon.com/inspector/v2/userguide/what-is-inspector.html) vulnerability findings for EC2 instances and Lambda functions 6. On the "Name, review, and create" step, enter a role name, such as `runzero-sync`, and a description. Click the **Create role** button. 7. Copy the full ARN of the new role. It has the format `arn:aws:iam:::role/`. You'll need it in Step 1a.3. Additional notes: - A StackSet often can't configure the payer account by default. In that case, the StackSet can configure all member accounts, and you may need to configure the payer account manually. - If you intend to sync AWS regions that are not enabled by default, [change the region compatibility of the global STS endpoint](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html?icmpid=docs_iam_console#sts-regions-manage-tokens). In the AWS console, go to IAM > Account Settings > Security Token Service (STS) and change the Global Endpoint to be compatible with "All AWS Regions." ### Step 1a.3: Update the runZero credential 1. Return to the runZero console, go to the [Credentials](https://console.runzero.com/credentials/) page, and edit the credential you created in Step 1a.1. 2. Update the **AWS IAM role ARN** field with the full ARN of the role you created in Step 1a.2. 3. Click **Verify & Save** to save and test the credential. The credential is ready. Continue to [Step 2](#aws-choose-configuration) to set up and activate the connection that brings in data from AWS. ### Option B: IAM role credential with manual account selection {#iam-multi-account-credential} Choose this option only when the default IAM Role Credential can't target the subset of AWS accounts you need. It adds operational overhead, so weigh it carefully. #### Step 1b.1: Create a runZero credential and external ID This step is almost the same as step 1a.1. To generate an external ID, create an AWS IAM Role credential in the runZero console: 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) and click **Add Credential**. 2. Choose **AWS IAM Role - Manual Account Selection** from the list of credential types. 3. Name the credential, for example `AWS IAM Role - Manual`. 4. In the AWS IAM Role field, enter the name of the role you are using for all accounts. 5. Enter a newline-separated list of the account IDs to import asset information from. An AWS account ID is a 12-digit number, so an entry looks like `123456789012`. 6. Click **Save** to save the credential and generate an external ID. Verify & Save won't work yet, because the IAM role doesn't exist in AWS. You'll test the credential in Step 1b.3. 7. Copy the external ID. You'll need it in the next step. #### Step 1b.2: Create AWS IAM role(s) Follow the directions in step 1a.2: the setup is the same. Repeat them in each account you intend to import asset data from, because this credential type doesn't use AWS Organizations the way the IAM Role Credential does. ### Step 1b.3: Update the runZero credential 1. Return to the runZero console, go to the [Credentials](https://console.runzero.com/credentials/) page, and edit the credential you created in Step 1b.1. 3. Click **Verify & Save** to save and test the credential. The credential is ready. Continue to [Step 2](#aws-choose-configuration) to set up and activate the connection that brings in data from AWS. ### Option C: IAM key credential {#iam-key-credential} If you created an IAM role in Option A above, skip this section and proceed to [Step 2](#aws-choose-configuration). This option authenticates runZero to AWS with an IAM user and long-term access keys, which we don't recommend. Use an IAM role instead. #### Step 1c.1: Create an AWS IAM user 1. Sign in to the AWS console. If you use AWS Organizations and intend to sync multiple accounts, sign in to the AWS Organizations management account, sometimes called the "payer" or "root" account. 2. Go to **Identity and Access Management (IAM) > Users** and select or create a user that gives runZero API access. 3. Click **Add permissions > Attach existing policies directly**. Search for and attach the policies for the services you want to sync: - `AmazonEC2ReadOnlyAccess` to sync EC2, ELB, and VPC resources - `AmazonRDSReadOnlyAccess` to sync RDS instances - `AWSLambda_ReadOnlyAccess` to sync Lambda functions - `AmazonFSxReadOnlyAccess` to sync FSx file systems - `AWSOrganizationsReadOnlyAccess` to sync AWS Organization account information - `AmazonInspector2ReadOnlyAccess` to import AWS Inspector vulnerability findings for EC2 instances and Lambda functions 4. Add an inline policy that allows assuming runZero roles in sub-accounts (only required with AWS Organizations): ```json { "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Action": "sts:AssumeRole", "Resource": "arn:aws:iam::*:role/" }] } ``` 5. From the user summary screen, open the **Security credentials** tab and click **Create access key**. 6. Save the **Access key ID** and **Secret access key**. You'll need them in Step 1c.3. 7. If you intend to sync AWS regions that are not enabled by default, [change the region compatibility of the global STS endpoint](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html?icmpid=docs_iam_console#sts-regions-manage-tokens). In the AWS console, go to IAM > Account Settings > Security Token Service (STS) and change the Global Endpoint to be compatible with "All AWS Regions." #### Step 1c.2: Add an IAM role to sub-accounts If you use AWS Organizations and want runZero to sync all accounts in your organization, create an IAM role in each sub-account that lets the IAM user from Step 1c.1 assume it. If you aren't using AWS Organizations, skip this step and proceed to Step 1c.3. In every AWS sub-account: 1. Go to **Identity and Access Management (IAM) > Roles** and click **Create role**. 2. Choose **Another AWS Account** for the type of trusted entity. 3. For Account ID, enter the ID of your organization's management account. 4. Click **Next: Permissions**. 5. Attach the `AmazonEC2ReadOnlyAccess` policy if you want to sync EC2, ELB, and VPC resources. 6. Attach the `AmazonRDSReadOnlyAccess` policy if you want to sync RDS instances. 7. Attach the `AWSLambda_ReadOnlyAccess` policy if you want to sync Lambda functions. 8. Attach the `AmazonFSxReadOnlyAccess` policy if you want to sync FSx file systems. 9. Attach the `AmazonInspector2ReadOnlyAccess` policy if you want to import AWS Inspector vulnerability findings for EC2 instances and Lambda functions. 10. Click **Next: Tags** and optionally add tags. 11. Click **Next: Review** and name the role. (The role must have the same name in every account.) 12. Click **Create role**. #### Step 1c.3: Add the AWS credential to runZero 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero and click **Add Credential**. 2. Name the credential, for example `AWS IAM User`. 3. Choose **AWS Access & Secret** from the list of credential types. 4. Fill in the credential: * In **AWS access key**, enter the access key ID from Step 1c.1. * In **AWS secret access key**, enter the secret access key from Step 1c.1. * In **AWS role**, enter the assumed role used to connect to other accounts in your organization. This is the role name you used in Step 1c.2. * Select the region(s) that you want to sync. 5. Save the credential. ## Step 2: Choose how to configure the AWS integration {#aws-choose-configuration} You can run the AWS integration as either a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during a scan task. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. ## Step 3: Set up and activate the AWS integration to sync data After you add your AWS credential, set up a connector task or scan probe to sync your data. ### Step 3a: Configure the AWS integration as a connector task A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates new AWS-only assets. 1. Activate a [connection to AWS](https://console.runzero.com/ingest/aws). All available third-party connections are reachable from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 2. Choose the credential you added earlier. If it isn't listed, make sure the credential has access to your current organization. 3. Name the task, for example `AWS sync`. 4. Schedule the sync to run once or on a recurring schedule. It starts on the date and time you set. 5. Under **Task configuration**: * Choose the site to add your assets to. All newly discovered assets are stored in this site. You can also choose **Automatically create a new site per VPC** or **Automatically create a new site per account**, and runZero creates the sites for newly discovered assets or accounts. * Choose whether to **automatically delete stale AWS assets**. With this option checked, runZero deletes AWS assets it saw in an earlier sync but did not find in the most recent one. * Choose whether to include AWS assets that are not currently running. With this option checked, runZero imports asset data for AWS assets that are not in a running state. 6. Under **Service options**, select the services to sync data from. You must choose at least one. 7. To import [AWS Inspector](https://docs.aws.amazon.com/inspector/v2/userguide/what-is-inspector.html) vulnerability findings for your EC2 instances and Lambda functions, switch the **Import AWS vulnerabilities** toggle to _Yes_. The credential's IAM role or user needs the `AmazonInspector2ReadOnlyAccess` managed policy (or the equivalent `inspector2:ListFindings` permission) attached in each account you sync. See [Step 1: Create an AWS credential](#step-1-create-an-aws-credential) above. runZero imports findings only for resources that AWS Inspector has already scanned and matched to an existing EC2 instance or Lambda function. 8. To exclude from the import any assets that runZero has not scanned, switch the **Exclude unknown assets** toggle to _Yes_. By default, the integration includes assets that runZero has not scanned. 9. Activate the connection when you are done. The sync runs on the schedule you set, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next sync will occur. ### Step 3b: Configure the AWS integration as a scan probe 1. Create a new scan task or select a future or recurring scan task from your [Tasks page](https://console.runzero.com/tasks). 2. Add or update the scan parameters as needed. 3. On the Probes and SNMP tab, choose which additional probes to include, set the AWS toggle to _Yes_, and change any default options if needed. 4. On the Credentials tab, set the AWS toggle for the credential you want to use to _Yes_. 5. Click **Initialize scan** to save the scan task and run it immediately or at the scheduled time. ## Step 4: View AWS assets After a successful sync, [go to your inventory](https://console.runzero.com/inventory) to view your AWS assets. They show an AWS icon in the **Source** column. To filter for AWS assets, try these queries: * [View all AWS assets](https://console.runzero.com/inventory?search=source%3Aaws): ``` source:aws ``` * [View all AWS EC2 instances](https://console.runzero.com/inventory?search=source%3Aaws%20AND%20has%3A%22%40aws.ec2.instanceID%22): ``` source:aws AND has:"@aws.ec2.instanceID" ``` * [View all AWS Elastic Load Balancers](https://console.runzero.com/inventory?search=source%3Aaws%20AND%20%28has%3A%22%40aws.elb.loadBalancerArn%22%20OR%20has%3A%22%40aws.elb.loadBalancerName%22%29): ``` source:aws AND (has:"@aws.elb.loadBalancerArn" OR has:"@aws.elb.loadBalancerName") ``` * [View all AWS VPCs](https://console.runzero.com/inventory?search=source%3Aaws%20AND%20has%3A%22%40aws.vpc.vpcID%22): ``` source:aws AND has:"@aws.vpc.vpcID" ``` Click into an asset to see its attributes as returned by the AWS APIs. ## Troubleshooting {#aws-troubleshooting} If the integration isn't working, the questions and answers below may help. ### Why is the Amazon Web Services integration unable to connect? 1. Check whether the AWS integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the AWS integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue ### Why aren't AWS Inspector vulnerabilities showing up on my EC2 or Lambda assets? 1. Confirm the **Import AWS vulnerabilities** option is enabled on the connector task or scan probe. This is separate from selecting the EC2 or Lambda service options. 2. Confirm the IAM role or user behind the credential has the `AmazonInspector2ReadOnlyAccess` managed policy (or a custom policy granting `inspector2:ListFindings`) attached in the specific AWS account and region being synced. Every member account needs this permission, not just the payer/root account. If it is missing, the task log shows an `AccessDeniedException` similar to: ``` AccessDeniedException: User: arn:aws:sts:::assumed-role//runZeroAWSIntegrationSession is not authorized to perform: inspector2:ListFindings on resource: arn:aws:inspector2:::/findings/list because no identity-based policy allows the inspector2:ListFindings action ``` 3. Confirm that AWS Inspector scanning (EC2 deep inspection and/or Lambda standard scanning) is activated for the account and region, and that AWS Inspector has scanned the resource. runZero imports only findings that AWS Inspector has already generated; it does not trigger new scans. 4. For Lambda functions, confirm the function was invoked or updated within the last 90 days, uses the `$LATEST` version, and is not excluded from scanning by tag or a customer-managed KMS key. --- docs/enriching-assets-with-ec2-metadata.md --- title: Enriching scans with EC2 h2Styled: false --- During a discovery scan, runZero automatically enriches scanned assets with data from the ((AWS)) ((EC2)) API when it's available. Assets pick up internal IP addresses, external IP addresses, hostnames, MAC addresses, and tags, along with other EC2-specific attributes such as the account ID and instance type. runZero needs no extra configuration for this enrichment, but you may need to [modify the permissions](#add-permissions-to-describe-instances) on the instance's ((IAM)) role. ## Find Explorers with EC2 enrichment capabilities EC2 enrichment works when the runZero Explorer runs on an instance with permission to describe your EC2 instance list. You can grant that through an IAM role attached to the instance or by configuring AWS credentials for the root user account. To see which Explorers have this capability, view your [registered Explorers](https://console.runzero.com/deploy/explorers). An Explorer with the cloud icon can enumerate EC2 instances. Scans from these Explorers automatically merge EC2 instance fields into the asset for any in-scope target that matches the instance list. ## Add permissions to describe instances To enable EC2 instance data enrichment, add the EC2 [`ec2:DescribeInstances`](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html) permission to the instance role configured for your instance. The [Amazon docs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-policies-ec2-console.html) explain how to create and update policies. Your policy will look like this: ``` { "Version": "2012-10-17", "Statement": [{ "Sid": "VisualEditor0", "Effect": "Allow", "Action": [ "ec2:DescribeInstances", ], "Resource": "*" } ] } ``` In the IAM UI, go to **Roles > Permissions > Attach policies** and search for the EC2 service. Under the actions, select `DescribeInstances`, which is listed under List. Instead of the IAM instance role, you can also configure credentials on the instance by running [`aws configure`](https://docs.aws.amazon.com/cli/latest/reference/configure/index.html) as root. After you save your policy, restart your Explorer. The easiest way is to force an update from the Explorer menu. If your configuration uses one region but the instance is in another, the Explorer uses the instance's region for all API requests. ## Attributes runZero gets from the EC2 API When runZero determines that an IP address is also an EC2 instance, it enriches the existing asset data with EC2 metadata, including more hostnames (based on AWS asset tags), MAC addresses, and internal and external IPs. Attributes runZero can get from the EC2 API metadata include: - aws.accountID - aws.architecture - aws.availabilityZone - aws.hypervisor - aws.imageID - aws.instanceID - aws.instanceType - aws.ipv4 - aws.ipv6 - aws.keyName - aws.launchTimeTS - aws.macs - aws.privateDNS - aws.privateIP - aws.publicDNS - aws.publicIP - aws.region - aws.rootDeviceName - aws.rootDeviceType - aws.scanner.instanceID - aws.scanner.instanceType - aws.state - aws.subnetID - aws.tags - aws.tenancy - aws.virtualizationType - aws.vpcID runZero also reports other things that respond to the scan but don't match an EC2 entry. You may see Amazon RDS, temporary ELBs, and Lambdas in your inventory, but only EC2 assets carry EC2 metadata. For broader visibility across your AWS environment, set up the [Amazon Web Services integration](docs/aws.md). --- docs/censys.md --- title: Censys Search & Data --- runZero can import assets from the [Censys Search API](https://support.censys.io/hc/en-us/categories/4405770552724-Censys-Search). For the Censys Platform API, see [Censys Platform](docs/censysplatform.md). ## Censys Search API To use the ((Censys Search)) API, register for a [Censys Search account](https://censys.io/register). Your API credentials are in the [My Account](https://search.censys.io/account/api) section. In runZero, go to the Credentials page and click [Add Credential](https://console.runzero.com/credentials/new). Select _Censys Search API Key_ as the credential type, and enter your API ID and API secret. Then go to your [asset inventory](https://console.runzero.com/inventory), click the **Connect** button, and choose **Censys Search API**. Select the credential you just created from the Censys Search credential dropdown. ### Configuration {#censysconfig} runZero connects to the Censys Search API in one of two modes. * In **Custom Query** mode, runZero runs a Censys search query you specify and imports all of the results. Write the query in [Censys Search Language](https://search.censys.io/search/language?resource=hosts), and test it in the main [Censys Search 2.0](https://search.censys.io/) interface before running an import task. * In **All Assets** mode, runZero assembles a list of public IP addresses from all of the assets in the selected site, then uses the API to find Censys Search information for those addresses. It imports what it finds and merges it into the matching assets. As with a runZero scan, select a site to hold the scan data. The usual task scheduling options are available. When you have finished editing the Censys Search configuration, click **Activate Connection**. ## Troubleshooting {#censys-troubleshooting} If the integration isn't working, the questions and answers below may help. ### Why is the Censys Search integration unable to connect? 1. Check whether the Censys Search integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the Censys Search integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue --- docs/censysplatform.md --- title: Censys Platform --- runZero imports assets from the [Censys Platform API](https://docs.censys.com/reference/get-started). * [Importing assets from the Censys Platform API](#censys-platform-api) ## Censys Platform API You need a [Censys Platform account](https://censys.io/register) to use the API. Once registered, find your API credentials in the [My Account](https://search.censys.io/account/api) section. In runZero, go to the Credentials page and click [Add Credential](https://console.runzero.com/credentials/new). Select _Censys Platform API Key_ as the credential type, then enter your API ID and API secret. Now go to your [asset inventory](https://console.runzero.com/inventory), click **Connect**, and choose **Censys Platform API**. Select the credential you just created from the Censys Platform credential dropdown. ### Configuration {#censysplatformconfig} runZero connects to the Censys Platform API in one of two modes. * In **Custom Query** mode, runZero runs a Censys query you specify and imports all the results. Write the query in [Censys Query Language](https://search.censys.io/search/https://docs.censys.com/docs/censys-query-languagelanguage?resource=hosts). It's a good idea to test it in the main [Censys Platform](https://platform.censys.io/home) interface before you run an import task. * In **All Assets** mode, runZero assembles a list of public IP addresses from all the assets in the selected site, then uses the API to look up Censys information for those addresses. runZero imports what it finds and merges it into the corresponding assets. As with a runZero scan, you'll need to select a site to hold the scan data. The usual task scheduling options are available. When you're done editing the Censys Platform configuration, click **Activate Connection**. After the task runs, look for the imported assets in [your inventory](docs/using-the-inventory.md). ## Troubleshooting {#censysplatform-troubleshooting} If you're having trouble with this integration, start with the questions and answers below. ### Why is the Censys Platform integration unable to connect? 1. Check whether the Censys Platform integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the Censys Platform integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue --- docs/meraki.md --- title: Cisco Meraki Dashboard --- runZero imports ((Cisco Meraki Dashboard)) data through the [Cisco Meraki Dashboard API](https://documentation.meraki.com/General_Administration/Other_Topics/Cisco_Meraki_Dashboard_API). With your Meraki devices and network clients in runZero, you get better visibility of your network. ## Getting started with Meraki {#meraki-getting-started} To set up the Meraki integration, you'll need to: 1. Generate an API key for your Cisco Meraki Dashboard administrator account. 1. Add the Meraki credential to runZero. 1. Choose whether to run the integration as [a scan probe or connector task](integrations-inbound.md#integration-probe-connector). 1. Activate the integration to pull your data into runZero. ## Requirements {#meraki-requirements} Before you set up the Meraki integration: * Make sure you have administrator access to the Meraki Dashboard. ## Step 1: Generate an API key in Cisco Meraki Dashboard {#meraki-step1} 1. Sign in to Cisco Meraki Dashboard with an administrator account. 1. Check that access to the Cisco Meraki Dashboard API is enabled. Each organization you want to sync needs API access enabled. 1. Go to **Organization > Settings** and enable **API access** under **Dashboard API access**. 1. Go to **My profile** and generate an API key. The key inherits the permissions of the account that created it. ## Step 2: Add the Meraki API key to runZero {#meraki-step2} 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero. 1. Choose **Meraki API Key** from the list of credential types. 1. Give the credential a name, like `Meraki`. 1. Fill in the connection details: * For **Meraki API URL**, enter the API endpoint URL for the Cisco Meraki Dashboard API. * For **Meraki API key**, enter the API key for the Cisco Meraki Dashboard administrator account. 1. To let other organizations use this credential, select _Make this a global credential_. Otherwise, you can configure access per organization. 1. Save the credential. ## Step 3: Choose how to configure the Meraki integration {#meraki-step3} You can run the Meraki integration as either a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during a scan task. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. ## Step 4: Set up and activate the integration to sync data {#meraki-step4} After you add your Meraki credential, set up the sync that pulls your data from Meraki. ### Step 4a: Configure the Meraki integration as a connector task {#meraki-step4a} A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new Meraki-only assets. 1. Activate a connection to [Meraki](https://console.runzero.com/ingest/meraki). You can reach every available third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 1. Choose the credentials you added earlier. If they aren't listed, check that they have access to the organization you're currently in. 1. Optionally, list the organization IDs or names to include in the import, separated by commas. runZero imports data only for the organizations you list. 1. Optionally, list the network IDs or names to include in the import, separated by commas. runZero imports data only for the networks you list. 1. Optionally, list the VLANs to exclude from the import, separated by commas. runZero skips devices associated with those VLANs. 1. To exclude assets that have no VLAN, set the **Exclude clients with no VLAN** option to _Yes_. 1. Optionally, list the SSIDs to exclude from the import, separated by commas. runZero skips devices connected on those SSIDs. 1. Enter a name for the task, like `Meraki Sync` (optional). 1. Choose the Explorer that runs this connector task (optional). 1. Choose the site for your assets. runZero stores all newly discovered assets in this site. 1. Enter a description for the task (optional). 1. To leave out assets that runZero has not scanned, switch the **Exclude unknown assets** toggle to _Yes_. By default, the integration includes assets runZero has not scanned. 1. Schedule the sync to run once or on a recurring schedule. It starts on the date and time you set. 1. Activate the connection when you're done. The sync runs on the schedule you defined, and [Scheduled tasks](https://console.runzero.com/tasks) shows when the next sync will occur. ### Step 4b: Configure the Meraki integration as a scan probe {#meraki-step4b} When you run the Meraki integration as a scan probe, the runZero Explorer pulls your Meraki assets into the runZero Console. In a new or existing scan configuration: * Set the `MERAKI` option to _Yes_ in the _Probes and SNMP_ tab and change any default options if needed. * Set the correct `MERAKI` credential to _Yes_ in the _Credentials_ tab. ### Step 5: View Meraki assets {#meraki-step5} After a successful sync, [go to your inventory](https://console.runzero.com/inventory) to view your Meraki assets. They show a Cisco icon in the **Source** column. To filter for Meraki assets, run this query: * [View all Meraki assets](https://console.runzero.com/inventory?search=source%3Ameraki): ``` source:Meraki ``` Click into any asset to see the attributes runZero gathered from Meraki. To narrow the results further, use the [asset inventory search keywords](search-query-assets.md). --- docs/crowdstrike.md --- title: CrowdStrike Falcon aliases: ["/docs/set-up-crowdstrike/"] --- runZero imports ((CrowdStrike)) data through the [CrowdStrike Falcon API](https://www.crowdstrike.com/blog/tech-center/get-access-falcon-apis/) to sync and enrich your asset inventory, pull vulnerability data from Falcon Spotlight, and pull software data from Falcon Discover. With CrowdStrike data in runZero, finding endpoints that are missing an EDR agent takes one query. ## Getting started {#crowdstrike-getting-started} To set up the CrowdStrike integration, you'll need to: 1. Configure CrowdStrike to allow API access to runZero. 2. Add the CrowdStrike credentials to runZero: the client ID, the client secret, and the CrowdStrike base API URL. 3. Choose whether to run the integration as [a scan probe or connector task](integrations-inbound.md#integration-probe-connector). 4. Activate the CrowdStrike integration to sync your data with runZero. ## Requirements {#crowdstrike-requirements} Before you set up the CrowdStrike integration: - Make sure you have access to the CrowdStrike admin portal. ## Step 1: Configure CrowdStrike to allow API access to runZero 1. Sign in to CrowdStrike. 2. Go to **Support > API Clients and Keys**. When the **API Key** page appears, add a new API client. 3. Fill in the API client details: - For **Client name**, enter a name such as runZero. - For **API scope**, choose the permissions for the data you want to ingest: - To ingest host details, include read permissions for **Hosts** and **Host Groups**. - To ingest vulnerability data, include read permissions for **Vulnerabilities**. - To ingest software data, include read permissions for **Assets**. 4. Add the client. A window confirms the API client was created and shows the client ID and client secret. You'll need both to configure the integration in runZero. 5. Copy the client ID and client secret now. You may not be able to get them later. ## Step 2: Add the CrowdStrike credentials to runZero 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero. Give the credentials a name, like `CrowdStrike Falcon`. 2. Choose **CrowdStrike Falcon API key** from the list of credential types. 3. Fill in the connection details: - For **CrowdStrike client ID and CrowdStrike client secret**, enter the pair you generated under **Support > API Clients and Keys > OAuth2 API clients > Add new API Client** in your CrowdStrike portal. - For **CrowdStrike API URL**, enter your organization's base URL. It depends on your account type, and the CrowdStrike API Swagger documentation lists it. - For a **US-1** account, use `api.crowdstrike.com` - For a **US-2** account, use `api.us-2.crowdstrike.com` - For a **US-GOV-1** account, use `api.laggar.gcw.crowdstrike.com` - For an **EU-1** account, use `api.eu-1.crowdstrike.com` 4. To let other organizations use these credentials, select _Make this a global credential_. Otherwise, you can configure access per organization. 5. Save the credentials. ## Step 3: Choose how to configure the CrowdStrike integration You can run the CrowdStrike integration as either a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during a scan task. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. ## Step 4: Set up and activate the CrowdStrike integration to sync data With your CrowdStrike credential saved, set up a connector task or scan probe to sync your data. ### Step 4a: Configure the CrowdStrike integration as a connector task A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new CrowdStrike-only assets. 1. Activate a [connection to CrowdStrike](https://console.runzero.com/ingest/crowdstrike). You can reach every available third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 2. Choose the credential you added earlier. If it isn't listed, check that it has access to the organization you're currently in. 3. Set the severity and risk levels you want to import (optional). 4. Set the _Fingerprint only_ toggle to _Yes_ to ingest vulnerability records for fingerprint analysis without storing them in your runZero vulnerability inventory (optional). 5. Add a [filter](#crowdstrike-filtering) for imported assets (optional).
If the CrowdStrike API key has access to Falcon Discover or Falcon Spotlight, runZero imports software and vulnerability data only for the assets in the filtered results.
6. Enter a name for the task, like `CrowdStrike sync` (optional). 7. Choose the Explorer that runs this connector task (optional). 8. Choose the site for your assets. runZero stores all newly discovered assets in this site. 9. Enter a description for the task (optional). 10. To leave out assets that runZero has not scanned, switch the _Exclude unknown assets_ toggle to _Yes_. By default, the integration includes assets runZero has not scanned. 11. Schedule the sync to run once or on a recurring schedule. It starts on the date and time you set. 12. Activate the connection when you're done. The sync runs on the schedule you defined, and [Scheduled tasks](https://console.runzero.com/tasks) shows when the next sync will occur. ### Step 4b: Configure the CrowdStrike integration as a scan probe 1. Create a new scan task, or select a future or recurring scan task from your [Tasks page](https://console.runzero.com/tasks). 2. Add or update the scan parameters to fit any additional requirements. 3. On the Probes and SNMP tab, choose which additional probes to include, set the CrowdStrike toggle to _Yes_, and change any default options if needed. 4. On the Credentials tab, set the CrowdStrike toggle to _Yes_ for the credential you want to use. 5. Click **Initialize scan** to save the scan task. It runs immediately or at the scheduled time. ## Step 5: View CrowdStrike assets and vulnerabilities After a successful sync, [go to your inventory](https://console.runzero.com/inventory) to view your CrowdStrike assets and vulnerabilities. They show a CrowdStrike icon in the **Source** column. To filter by CrowdStrike attributes, try these queries: - [View all CrowdStrike assets](https://console.runzero.com/inventory?search=source%3Acrowdstrike) ``` source:crowdstrike ``` - [Find assets that have a CrowdStrike EDR agent installed](https://console.runzero.com/inventory?search=edr.name%3ACrowdStrike) ``` edr.name:crowdstrike ``` - [Find Windows assets, excluding servers, that are missing a CrowdStrike EDR agent](https://console.runzero.com/inventory?search=os%3Awindows%20and%20not%20type%3Aserver%20and%20not%20edr.name%3Acrowdstrike) ``` os:windows and not type:server and not edr.name:CrowdStrike ``` - [View all CrowdStrike vulnerabilities](https://console.runzero.com/inventory/vulnerability?search=source%3Acrowdstrike) ``` source:crowdstrike ``` - [View all CrowdStrike software results](https://console.runzero.com/inventory/software?search=source%3Acrowdstrike) ``` source:crowdstrike ``` Click into an asset or vulnerability to see its individual attributes. runZero shows the attributes the CrowdStrike API returned, except policies. If missing EDR agents are what you're after, continue with the [Finding gaps in endpoint protection](https://help.runzero.com/docs/playbooks/finding-gaps-in-endpoint-protection/) playbook. ## Filtering CrowdStrike assets {#crowdstrike-filtering} You can add a filter to CrowdStrike integration tasks. runZero filters with CrowdStrike's Falcon Query Language (FQL), which follows the syntax `:[operator]`. Combine expressions with a `+` between them for more complex filters, or separate them with commas for an OR expression. ### Properties {#crowdstrike-filtering-properties} These CrowdStrike properties are useful in FQL filters. [CrowdStrike's API documentation](https://falcon.crowdstrike.com/documentation/46/crowdstrike-oauth2-based-apis) lists the other attributes you can filter on. | CrowdStrike Property | runZero Attribute | Description | Example | | -------------------- | ----------------- | --------------------------------------------------------------- | -------------------- | | `external_ip` | externalIP | The external IP address of the device | 18.191.169.203 | | `first_seen` | firstSeen | The timestamp of when CrowdStrike first saw the device | 2022-01-08T19:42:34Z | | `hostname` | hostname | The hostname of the device | EXPLORER-01 | | `last_seen` | lastSeen | The timestamp of when CrowdStrike last saw the device | 2022-09-13T19:14:30Z | | `local_ip` | localIP | The local IP address of the device | 192.168.1.100 | | `mac_address` | macAddress | The MAC address of the interface communicating with CrowdStrike | 0a-6e-20-4a-e6-56 | | `os_version` | osVersion | The operating system version of the device | Ubuntu 20.04 | | `platform_name` | platformName | The platform running on the device | Linux | | `product_type_desc` | productTypeDesc | The type of device | Server | ### Operators {#crowdstrike-filtering-operators} FQL filters accept these operators. | Operator | Description | | -------- | --------------------------------------------------------------------------------- | | ! | Not equal to | | > | Greater than | | >= | Greater than or equal to | | < | Less than | | <= | Less than or equal to | | ~ | Text match. Tokenizes the string, ignoring spaces, case and punctuation | | !~ | Does not text match. Tokenizes the string, ignoring spaces, case and punctuation | | * | Wildcard matching. Matches one or more characters | ### Example filters {#crowdstrike-filtering-examples} You can apply filters like these to the CrowdStrike sync. | Search Filter | Description | | ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | | `hostname:'WIN10*'` | Import all devices where the hostname starts with WIN10 | | `platform_name:'Linux'` | Import all Linux devices | | `product_type_desc:'Server'` | Import all devices that CrowdStrike identifies as a Server | | `hostname:'PROD*'+platform_name:'Linux'` | Import all Linux devices with a hostname that starts with PROD | | `local_ip:'192.168.1.100'` | Import only the device with a local IP address of 192.168.1.100 | | `local_ip:!'192.168.1.100'` | Import all devices, excluding 192.168.1.100 | | `local_ip.raw:*'192.168.1.*'` | Import all devices with a local IP address in the 192.168.1.0/24 range | | `(local_ip.raw:*'192.168.1.*'),(local_ip.raw:*'192.168.2.*')` | Import all devices with a local IP address in the 192.168.1.0/24 or 192.168.2.0/24 range | | `local_ip.raw:!*'192.168.1.*'` | Import all devices, excluding devices with a local IP address in the 192.168.1.0/24 range | | `local_ip.raw:!*'192.168.1.*'+local_ip.raw:!*'192.168.2.*'` | Import all devices, excluding devices with a local IP in the 192.168.1.0/24 and 192.168.2.0/24 ranges | ## Troubleshooting {#crowdstrike-troubleshooting} If you're having trouble with this integration, start with the questions and answers below. ### Why is the CrowdStrike integration unable to connect? 1. Check whether the CrowdStrike integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the CrowdStrike integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue 4. If the integration endpoint is on-premises, verify that the integration task runs from an Explorer with access to the CrowdStrike host. ### How can I solve the following CrowdStrike error? `Unable to collect software data for CrowdStrike devices: invalid response 403 Forbidden` This error occurs when your API client is missing the **Assets** API scope. To fix it, return to [step 1](#step-1-configure-crowdstrike-to-allow-api-access-to-runzero) above and enable read permissions for **Assets**. The integration needs read-only permissions for **Assets** to collect software information. Host and vulnerability data should still come through. --- docs/custom-integration-scripts.md --- title: "Custom Integration Scripts" --- ((Custom integration)) scripts let you import asset data from any source that runZero does not already integrate with, or export runZero data to another system. You write them in [((Starlark))](https://github.com/google/starlark-go/blob/master/doc/spec.md#starlark-in-go-language-definition), a Python-like language, and they run in a sandbox on one of your [Explorers](managing-explorers.md) or on the runZero console itself. runZero 5.1 expanded what custom integration scripts can do: * An embedded [`CONFIG` block](custom-integration-scripts.md#config) describes the integration and its parameters. From it, the console generates a typed credential form, validates input, applies defaults, and routes secrets through encrypted storage. * Shared [TLS and HTTP option suites](custom-integration-scripts.md#option-suites) (`OPTIONS_TLS` and `OPTIONS_HTTP`) add standard connection controls to any script without copying boilerplate parameters. * [`report_assets`](custom-integration-scripts.md#report-assets) streams assets to runZero page by page, so a large import no longer has to sit in memory. * A CONFIG-level [`matchBehavior` policy and per-asset `trust_*` flags](custom-integration-scripts.md#match-behavior) let a script control how imported assets merge with existing inventory. * A much larger [library of built-in modules](custom-integration-scripts.md#libraries), including typed `kwargs` accessors, HTTP helpers with retry support, parsers for CSV/XML/streaming JSON, JWT and AWS SigV4 signing, and direct-protocol modules for SSH, SMB, WinRM, WMI, and SQL. * The `runzero script` CLI command gained a [`--validate` mode](custom-integration-scripts.md#cli-validate) that smoke-tests a script's CONFIG and HTTP/TLS wiring against a local dummy server, and an [`--output` mode](custom-integration-scripts.md#cli-output) that writes real scan output for inspection. * The custom integration page in the console became a [script workbench](custom-integration-scripts.md#console-workspace) with an editor, [test runs against real endpoints](custom-integration-scripts.md#test-runs), a shipped example library, version history, and, where AI is enabled, a [generative AI assistant](custom-integration-scripts.md#ai-generator) that drafts and revises scripts. The [runzero-custom-integrations](https://github.com/runZeroInc/runzero-custom-integrations) GitHub repository holds a library of ready-to-use integrations built on these capabilities, including a [boilerplate template](https://github.com/runZeroInc/runzero-custom-integrations/tree/main/boilerplate) to start from. ## Overview To set up a ((custom integration)) script: 1. Write the script, starting with a `CONFIG` block and a `main` function. 1. Test it locally with the [runZero CLI](custom-integration-scripts.md#cli) (`runzero script`). 1. Create the custom integration in the console and paste in the script. 1. Create a credential. The console builds the form from the script's `CONFIG` parameters. 1. Create an integration task to run the script on a schedule. ## Writing a script ### The Starlark language Starlark is a dialect of Python with some notable differences: 1. Starlark has no exception handling (`try`/`except`). Use return values to signal errors. 1. F-string `f'{var}'` formatting is unavailable. Use `"{}".format(var)` for string interpolation. 1. The standard library is limited to the [built-in modules](custom-integration-scripts.md#libraries) that runZero provides. The custom integration sandbox also rejects recursion, top-level `if`/`for` statements, and reassignment of global variables. `while` loops and the `set()` type are available. ### The entrypoint Every script must define a `main` function. runZero calls it with the task's arguments and keyword arguments: ```python load('runzero.types', 'ImportAsset') def main(*args, **kwargs): asset = ImportAsset( id='device-1', hostnames=['web1.example.com'], os='Linux', osVersion='6.1', manufacturer='Example Corp', model='VM', ) return [asset] ``` * `args` receives any positional arguments configured on the task, as strings. * `kwargs` receives the credential fields and task keyword arguments, as strings. Declare every key your script reads in [`CONFIG["params"]`](custom-integration-scripts.md#config), and read them with the typed [`kwargs` accessors](custom-integration-starlark-libraries.md#starlark-lib-kwargs). * For inbound integrations, `main` returns a `list` of `ImportAsset` objects (or a single `ImportAsset`). Returning `None` is valid when the script streams assets with [`report_assets`](custom-integration-scripts.md#report-assets) instead. * For outbound integrations, `main` does its export work and returns `None`. ### Streaming large imports with report_assets {#report-assets} For sources with large inventories, stream each page to runZero as you process it. Returning one large list from `main` holds every asset in memory at once, along with the raw API responses used to build them. `report_assets` is a predeclared builtin, so it needs no `load()`: ```python load('runzero.types', 'ImportAsset') def fetch_page(cursor): # Replace with a real paginated API call. if cursor == None: return [{"id": "a-1"}, {"id": "a-2"}], "page-2" return [{"id": "b-1"}], None def main(*args, **kwargs): total = 0 cursor = None while True: page, cursor = fetch_page(cursor) if not page: break assets = [ImportAsset(id=item["id"]) for item in page] total += report_assets(assets) # stream this page to runZero if not cursor: break print("reported {} assets".format(total)) return None # nothing buffered in main ``` `report_assets` accepts a single asset, several positional assets, or a list/tuple of assets, and returns the number reported. Assets streamed with `report_assets` and assets returned from `main` are both imported, so partial adoption is safe. The singular `report_asset` (also predeclared) takes exactly one `ImportAsset` (or `None`, a no-op) and returns `1` or `0`. Streaming already batches internally, so the simplest correct pattern is to report each asset as you build it. Accumulating a page into a list first gains nothing: ```python for device in devices: report_asset(build_asset(device)) ``` For the pagination loop itself, the predeclared `pager` builtin guards against a cursor that never advances. `p = pager(label="devices")` returns an object whose `p.next()` is the `while` condition. If the loop reaches the page ceiling ([`maxPages`](custom-integration-scripts.md#config), default 1,000,000), the script stops with an error naming the label rather than truncating silently or spinning forever. `max_pages()` returns the effective ceiling. ## The CONFIG block {#config} The `CONFIG` block is an embedded, declarative description of the integration. When you save a script in the console, runZero extracts `CONFIG` (without executing the script) and uses it to: * Render a typed credential form with labels, groups, and conditional fields. * Validate submitted values (`required`, `min`, `max`, `pattern`, `options`) and apply `default` values before `main` runs. * Route `secret` parameters through encrypted storage and redact their values from script logs and error messages. * Refuse to run the script on runZero versions older than `minVersion`. ```python CONFIG = { "id": "runzero-example", "name": "Example integration", "type": "inbound", "description": "Imports devices from the Example API.", "version": "1", "minVersion": "5.1.0", "params": [ {"key": "url", "label": "Example API URL", "type": "url", "required": True}, {"key": "api_token", "label": "API token", "type": "secret", "required": True}, {"key": "page_size", "label": "Page size", "type": "int", "required": False, "default": 100, "min": 1, "max": 1000}, ], "includes": { "tls_": OPTIONS_TLS, "http_": OPTIONS_HTTP, }, } load("runzero.types", "ImportAsset") # ...rest of script ``` Rules for the block itself: * `CONFIG` must be the first top-level statement in the script. Comments and blank lines may come before it; `load(...)` calls, constants, and other statements may not. * Every value must be a literal: strings, numbers, `True`/`False`/`None`, lists, tuples, and dicts with string keys. Function calls, variable references, and arithmetic are rejected. The one exception is `CONFIG["includes"]`, which may reference the predeclared option-set identifiers `OPTIONS_TLS` and `OPTIONS_HTTP`. * Scripts without a `CONFIG` block continue to run with the legacy `access_key` and `access_secret` credential fields, so existing integrations keep working unchanged. * `sourceId` and `sourceName` are reserved for runZero's own shipped integrations. runZero refuses to save a script that declares either. ### Top-level fields | Field | Description | | ----- | ----------- | | `id` | Stable lower-case identifier, for example `runzero-tailscale`. | | `name` | Display name for the integration. | | `type` | `inbound`, `outbound`, or `internal` (descriptive). | | `description` | Short summary of what the integration does. | | `version` | The script's own revision, bumped when the script changes, for example `"1"`. | | `minVersion` | Minimum runZero version that can run the script, for example `5.1.0`. Older Explorers refuse to run it and report an upgrade message. | | `params` | List of [parameter definitions](custom-integration-scripts.md#config-params). | | `includes` | Shared [option suites](custom-integration-scripts.md#option-suites), keyed by prefix. | | `atLeastOneOf` | List of parameter-key groups; at least one key in each group must be set. | | `exactlyOneOf` | List of parameter-key groups; exactly one key in each group must be set. | | `rejectUnknown` | Reject keys that are not declared in `params`. Unknown keyword arguments are always rejected at run time for CONFIG-based scripts. | | `validationMode` | How `runzero script --validate` exercises the script: the default expects an HTTP request; `"compile"` only checks that CONFIG parses and `main` exists. Use `"compile"` for direct-protocol (SSH/SMB/WMI/WinRM/SQL) integrations. | | `maxPages` | Page ceiling enforced by the predeclared [`pager` builtin](custom-integration-scripts.md#report-assets); defaults to 1,000,000. A script may lower the effective ceiling by passing `limit=` to `pager`, but not raise it. | | `matchBehavior` | Integration-wide [merge policy](custom-integration-scripts.md#match-behavior), a space-separated string of flags. | | `assetType` | Asset type applied to every asset the integration reports, overridable per asset with the `assetType` field on `ImportAsset`. | | `assetTypeBehavior` | Map of asset type to a `matchBehavior`-style flag string, layered over the integration-wide `matchBehavior` for assets of that type. Also accepted as `sourceTypeBehavior`; declaring both with different values is an error. | | `ownershipAttributes` | Attribute keys the integration supplies that should be treated as ownership data. | | `trustOS`, `trustOSVersion`, `trustType` | Trust this integration's OS, OS version, or device type over other sources, for every asset it reports. The per-asset `trust_*` fields on [`ImportAsset`](custom-integration-scripts.md#match-behavior) do the same thing for one asset. | ### Parameter definitions {#config-params} Each entry in `params` describes one credential form field and one keyword argument delivered to `main`. `type` accepts `string`, `secret`, `int`, `float`, `bool`, `enum` (requires `options`), `url`, `textarea`, and `json`. | Field | Description | | ----- | ----------- | | `key` | Keyword argument name. Must match `^[a-zA-Z_][a-zA-Z0-9_]*$` and match the name the script reads. | | `label` | Form label. | | `description` | Help text shown under the field. | | `type` | One of the types above. `secret` values get masked input, encrypted storage, and log redaction. | | `secret` | Treat the value as a secret regardless of its `type`. Equivalent to `type: "secret"` for masking, storage and redaction. | | `required` | Whether the field must be set. | | `default` | Default value applied when the field is left blank. Not allowed on `secret` parameters. | | `placeholder` | Placeholder text for the form field. | | `options` | Allowed values for `enum` parameters. | | `multi` | For `enum`: allow multiple comma-separated selections. | | `min` / `max` | Numeric bounds for `int`/`float`; length bounds for `string`/`secret`/`textarea`. | | `pattern` | Regular expression the value must fully match (`string`, `secret`, `textarea`, `url`). | | `aliases` / `caseInsensitive` | For `enum`: alternate spellings that normalize to a canonical option before `main` runs. | | `dependsOn`, `visibleIf`, `visibleIfValue` | Show this field only when another declared field is set (optionally to a specific value). | | `requiredIf`, `requiredIfValue` | Make this field required when another declared field is set (optionally to a specific value). | | `group` | Section heading used to group fields in the form. | ### How values reach your script * Each declared parameter arrives in `kwargs` under its `key`, as a string. Read it with the [`kwargs` module](custom-integration-starlark-libraries.md#starlark-lib-kwargs) (`get_string`, `get_int`, `get_bool`, `get_list`, ...) to get type coercion and defaults. * runZero applies declared `default` values, normalizes enum aliases, and runs validation before it calls `main`. * CONFIG-based scripts reject unknown keyword arguments. * Credential keys starting with `_` (for example `_integration_id`) stay on the credential and never reach the script. * For backward compatibility, runZero still injects the credential's `access_key` and `access_secret` fields when the task does not provide them. ## Shared TLS and HTTP option suites {#option-suites} Most integrations talk to an HTTPS API, and most of them need the same connection controls: trusting a private CA, pinning a certificate, presenting a client certificate, disabling validation in a lab, or sending a specific `User-Agent`. Rather than declaring these parameters in every script, add the predeclared option suites to `CONFIG["includes"]`: ```python "includes": { "tls_": OPTIONS_TLS, "http_": OPTIONS_HTTP, }, ``` Each include expands into a set of parameters, and the dict key (`"tls_"`, `"http_"`) is prepended to every generated parameter key. In the credential form, suite parameters render after the script's own fields as collapsed sections named for the suite (**TLS**, **HTTP**); a section holding an empty required field is forced open with a **Needs attention** badge. When you include the same suite under two prefixes, each section is named for its prefix, for example **TLS (src_tls)**. ### OPTIONS_TLS With the conventional `tls_` prefix, `OPTIONS_TLS` generates these keyword arguments: | Generated kwarg | Type | Default | Description | | --------------- | ---- | ------- | ----------- | | `tls_disable_validation` | `bool` | `False` | Allow connections to endpoints with untrusted TLS certificates. | | `tls_ca_cert` | `textarea` | no default | PEM-encoded certificate authorities to trust when validating the endpoint certificate. | | `tls_peer_hash` | `string` | no default | SHA-256 fingerprint of the endpoint certificate to trust (certificate pinning). Separate multiple pins with commas, semicolons, spaces, or newlines. | | `tls_client_cert` | `textarea` | no default | PEM-encoded client certificate to present for mutual TLS. | | `tls_client_key` | `secret` | no default | PEM-encoded private key for the client certificate. Required when `tls_client_cert` is set. | ### OPTIONS_HTTP With the conventional `http_` prefix, `OPTIONS_HTTP` generates: | Generated kwarg | Type | Default | Description | | --------------- | ---- | ------- | ----------- | | `http_user_agent` | `string` | `""` | Optional `User-Agent` header sent with HTTP requests. | ### Using the option suites {#using-option-suites} Declaring the includes only creates the form fields; the script must pass the collected values to the HTTP client. The `kwargs` module does this in one call: ```python load("http", "get_json", "bearer") load("kwargs", "get_string", "get_url_base", "get_http_options") def main(*args, **kwargs): http_options = get_http_options(kwargs, headers={ "Authorization": bearer(get_string(kwargs, "api_token")), "Accept": "application/json", }) data, err = get_json("{}/v1/devices".format(get_url_base(kwargs)), **http_options) ``` `get_http_options(kwargs, prefix="http_", tls_prefix="tls_", headers=None)` gathers the suite values into a dict of keyword arguments (`headers=` and `tls=`) that you can splat into any `http` module function (`get`, `post`, `get_json`, `post_json`, `oauth2_token`, and so on). The mapping is: | Suite kwarg | Effect | | ----------- | ------ | | `tls_disable_validation` | `tls={"insecure": True}` | | `tls_ca_cert` | `tls={"ca_pem": ...}` | | `tls_client_cert` / `tls_client_key` | `tls={"client_cert_pem": ..., "client_key_pem": ...}` | | `tls_peer_hash` | `tls={"thumbprints": [...]}` | | `http_user_agent` | `headers={"User-Agent": ...}` (only when the header is not already set) | Use `get_http_tls(kwargs, "tls_")` when a script only needs the `tls=` dict and manages headers itself. You can also build the `tls=` dict by hand. It accepts the keys `insecure`, `server_name`, `ca_pem`, `client_cert_pem`, `client_key_pem`, and `thumbprints`, and rejects anything else. Two things to watch: * `runzero script --validate` verifies the wiring: a script that declares `OPTIONS_HTTP` or `OPTIONS_TLS` but never passes the collected options to an HTTP call fails validation. * The stateful [`requests.Session`](custom-integration-starlark-libraries.md#starlark-lib-requests) object does not accept the `tls=` dict; only its `insecure_skip_verify` constructor flag is available. Prefer the `http` module functions when the TLS suite matters. ### Multiple endpoints A script that talks to more than one endpoint can include a suite more than once under different prefixes and collect each set separately: ```python "includes": { "src_tls_": OPTIONS_TLS, "src_http_": OPTIONS_HTTP, "dst_tls_": OPTIONS_TLS, "dst_http_": OPTIONS_HTTP, }, ``` ```python src_options = get_http_options(kwargs, "src_http_", "src_tls_", src_headers) dst_options = get_http_options(kwargs, "dst_http_", "dst_tls_", dst_headers) ``` ## A complete example {#complete-example} The script below puts the pieces together: a CONFIG block with typed parameters and both option suites, option-suite plumbing through `get_http_options`, paginated fetching with `get_json`, and streaming import through `report_assets`. It passes `runzero script --validate` as-is, and you can use it as the starting point for a real integration (see also the [boilerplate template](https://github.com/runZeroInc/runzero-custom-integrations/tree/main/boilerplate) on GitHub). ```python CONFIG = { "id": "runzero-example", "name": "Example integration", "type": "inbound", "description": "Imports devices from the Example API.", "version": "1", "minVersion": "5.1.0", "params": [ {"key": "url", "label": "Example API URL", "type": "url", "required": True}, {"key": "api_token", "label": "API token", "type": "secret", "required": True}, ], "includes": { "tls_": OPTIONS_TLS, "http_": OPTIONS_HTTP, }, } load("runzero.types", "ImportAsset", "to_custom_attributes") load("net", "network_interface") load("http", "get_json", "bearer") load("kwargs", "require", "get_string", "get_url_base", "get_http_options") def build_asset(device): return ImportAsset( id=str(device["id"]), hostnames=[device.get("hostname", "")], os=device.get("os", ""), networkInterfaces=[network_interface(mac=device.get("mac"), ips=device.get("ips", []))], customAttributes=to_custom_attributes(device), ) def main(*args, **kwargs): require(kwargs, "url", "api_token") base_url = get_url_base(kwargs) http_options = get_http_options(kwargs, headers={ "Authorization": bearer(get_string(kwargs, "api_token")), "Accept": "application/json", }) total = 0 page = 1 while True: data, err = get_json("{}/v1/devices".format(base_url), params={"page": str(page)}, retries=2, **http_options) if err: print("request failed: {}".format(err)) break devices = data or [] if not devices: break total += report_assets([build_asset(d) for d in devices]) page += 1 print("imported {} devices".format(total)) return None ``` ```bash runzero script --filename example-integration.star --validate ``` ``` INFO example-integration.star validated with 1 HTTP request(s) INFO validated 1 script(s) with dummy HTTP/TLS server https://127.0.0.1:52084 ``` ## Controlling how assets merge {#match-behavior} By default, imported assets merge with existing inventory on the asset `id`, MAC address, IP address, and hostname. You declare merge policy once for the whole integration, as the `matchBehavior` key of the [CONFIG block](custom-integration-scripts.md#config): ```python CONFIG = { # ... "matchBehavior": "no-mac-break no-ip-break no-name-break", } ``` `matchBehavior` accepts a space-separated string of flags built from `no-` + (`id`|`mac`|`ip`|`name`) + (`-match`|`-break`), plus the break-only `no-type-break`, which allows merges across an integration's own asset types. Two presets cover most cases: * `"no-mac-break no-ip-break no-name-break"`: use this when your source supplies a stable, unique id (vendor UUID, serial number). The id still drives merges, but differing MACs, IPs, or names will not disqualify a merge with an existing asset. * `"no-id-match no-id-break"`: use this when your source only emits ephemeral or per-run ids. runZero ignores the id and merges on MAC, IP, and hostname instead. `matchBehavior` is no longer a per-asset field on `ImportAsset`: a script that reads or sets `ImportAsset.matchBehavior` fails with an error pointing at the CONFIG key. Two related controls remain per-asset: * `assetType` on `ImportAsset` overrides the CONFIG-level `assetType` for one asset. When the CONFIG also declares `assetTypeBehavior`, the asset's type selects which merge policy applies to it. * `trust_device_type`, `trust_os`, and `trust_os_version` (booleans) apply the script's `deviceType`, `os`, and `osVersion` values to the asset fingerprint even when runZero cannot normalize them through its fingerprint engine. The CONFIG-level `trustType`, `trustOS`, and `trustOSVersion` do the same for every asset the integration reports. Leave `matchBehavior` unset to keep the default matcher behavior, which is right for most integrations. The [asset identity guidance](https://github.com/runZeroInc/runzero-custom-integrations#readme) in the custom integrations repository covers the subject in more depth. ## Testing scripts with the runZero CLI {#cli} The [runZero CLI](using-the-cli.md) includes a `script` sub-command for developing and debugging integration scripts locally, using the same Starlark engine and modules as the Explorer. ``` runzero script [--filename file] [--args a] [--kwargs key=value] runzero script repl [--filename file] ``` | Flag | Description | | ---- | ----------- | | `-f, --filename` | Script file to load and run. `--validate` also accepts a directory. | | `--args` | Positional argument passed to `main` (repeatable). | | `--kwargs key=value` | Keyword argument passed to `main` (repeatable). | | `--validate` | Validate the script CONFIG and smoke-test HTTP/TLS wiring against a local dummy server. | | `-o, --output` | Directory to write scan output to (`scan.runzero.gz`). | | `--overwrite` | Replace the output directory if it already exists. | | `--custom-integration-id` | Integration UUID stamped on exported records; required with `--output`. | | `--starlark-allow-cidrs` | Restrict every network connection the script makes to the listed CIDRs or IPs (default deny). Enforced after DNS resolution, across the `http`, `requests`, `socket`, direct-protocol, and SQL modules. | | `--starlark-block-cidrs` | Block script connections to the listed CIDRs or IPs (default allow). Same coverage as `--starlark-allow-cidrs`. | ### Running scripts Save a minimal script as `hello.star`: ```python def main(*args, **kwargs): print("Hello {}!".format(kwargs.get("name", "world"))) ``` ```bash runzero script --filename hello.star --kwargs name=Dave ``` ``` INFO script: Hello Dave! INFO script completed successfully with 0 returned asset(s) ``` Repeat `--args` and `--kwargs` to pass as many values as you need: ```bash runzero script --filename hello.star --args one --args two --kwargs api_token=foo --kwargs url=https://api.example.com ``` A local run calls `main` with exactly the arguments you provide. The console and Explorer apply CONFIG defaults and validation at task time, and `--validate` applies them locally. ### Validating scripts {#cli-validate} `--validate` checks a script end-to-end without touching the real vendor API: ```bash runzero script --filename example.star --validate ``` ``` INFO example.star validated with 1 HTTP request(s) INFO validated 1 script(s) with dummy HTTP/TLS server https://127.0.0.1:52084 ``` For HTTP integrations, validation parses the CONFIG block, generates type-appropriate placeholder values for every parameter, initializes the script, calls `main`, and transparently routes every HTTP request to a local TLS server that returns canned responses. Validation fails if the script never makes an HTTP request, and if declared `OPTIONS_HTTP`/`OPTIONS_TLS` options never reach the HTTP client. Scripts with `"validationMode": "compile"` (templates and direct-protocol integrations) stop after verifying that CONFIG parses and `main` exists. Passing a directory validates every `.star` file under it: ```bash runzero script --filename ./my-integrations/ --validate ``` A successful validation confirms the CONFIG and the wiring. It does not prove that the vendor API accepts your credentials or returns the expected payload; for that, test against the real API with `--kwargs`. ### Exporting scan output {#cli-output} To inspect exactly what a script would import, write real scan output to a directory: ```bash runzero script --filename example.star --kwargs api_token=MY_TOKEN -o ./out --overwrite --custom-integration-id 11111111-2222-3333-4444-555555555555 ``` This writes `./out/scan.runzero.gz`, a gzip-compressed stream of JSON records (one per asset) in the same format an integration task produces. Without `--output`, assets streamed through `report_assets` are counted, then discarded with a warning. ### REPL `runzero script repl` starts an interactive session with all modules preloaded. With `--filename`, you can call the script's functions and globals directly: ``` $ runzero script repl --filename hello.star >>> main(**{"name": "Dave"}) INFO script: Hello Dave! >>> load('json', json_decode='decode') >>> data = json_decode('{"greeting": "hello"}') >>> print(data["greeting"]) INFO script: hello ``` Exit the REPL with `^D`. ## Building and testing a script in the console {#console-workspace} The custom integration page in the console is a script workbench: an editor with a test-credentials panel, a live output console, and, where it is enabled, an AI assistant that can draft or revise the script for you. You do not have to write a script in a local editor and paste it in; everything lives on the page itself, with no separate workspace to open or close. The workbench is laid out like this: * A pinned action bar that stays on screen while the page scrolls. Its left half holds the verdict row, one line stating the result of the last thing you did (validated, ran, saved, loaded, or generated; empty until it has something to report), and the example picker. Its right half holds **Revert**, **Validate**, **Run test** (which becomes **Stop** while a run is going), and **Full screen**. * The editor, with a rail beside it carrying two tabs: **Test credentials** (the default) and **Generative AI**. Switching tabs never interrupts a test run or a generation. The editor has its own resize grabber for height and no drag dividers. * The output console directly under the editor, a capped scroller that carries the detail: test-run logs and reported assets, per-line compile errors, and the progress and transcript of an AI generation. Save with the page's **Save** (or **Update**) button, or with **Cmd/Ctrl+S** from anywhere in the workbench. A workbench save reports **Script changes saved** in the verdict row rather than in a toast. On a brand-new integration, Cmd/Ctrl+S creates the integration in place: the URL moves to the edit page without disturbing the editor, a generation, or a running test. **Full screen** fills the window with the editor alone. **Esc** (or the **Exit full screen** button) leaves it, Cmd/Ctrl+S still saves, and the label shows **unsaved changes** whenever the editor differs from the last saved script. Full screen is unavailable while a generation is writing into the editor. While a test run or a generation is in flight, the **Enable custom integration script** toggle refuses to turn off and says why. Turning the toggle off otherwise stashes the editor content locally; turning it back on restores it. An empty editor shows a starter panel with three ways in: **Generate with AI**, **Load a blank template**, and **Browse examples**. ### Starting from an example The example picker in the action bar (**Select an example…**) loads a shipped integration into the editor as a starting point. These are the same scripts published in the [runzero-custom-integrations repository](https://github.com/runZeroInc/runzero-custom-integrations), grouped as **Start from scratch** (a blank template with commented examples), **Import assets from a vendor**, and **Other automations**. The library ships through content updates, so it grows and refreshes between releases. Loading an example replaces what is in the editor, so the picker asks first when you have something there. On an integration you have already saved, your previous script goes into [version history](custom-integration-scripts.md#version-history) before it is replaced, so you can always load it back. Loading also fills in an empty integration name and description from the example, and picking the example already in the editor reports **No change**. The integration remembers which example a script came from and at which version. When the shipped copy no longer matches yours, a banner says **A newer version of the _name_ example is available**, notes when you have local modifications, and offers **Update to v_N_**. Updating asks first too, and snapshots what you have. ### Generating a script with AI {#ai-generator} Where generative AI is enabled for your account, the workbench rail has a **Generative AI** tab (an empty editor also offers **Generate with AI** directly). The tab holds a short form: * **What should this integration do?** takes your description of the vendor, the API, and the data you want imported, in your own words. (When revising an existing script, the field asks **What should change?**) The **Authentication**, **Asset fields** and **Scope** buttons under the box insert the three questions the assistant most needs answered and cannot guess: how the API authenticates, which response fields are the address, MAC and hostname, and what to leave out. * **Documentation links (optional)** takes one vendor API documentation URL per line, up to 10. The field says how many of the links you entered will be read. Press **Generate** to write a new script, or **Update script** to revise the one already in the editor. The assistant works for several minutes: it consults the shipped integration library for the same vendor, reads the documentation you linked, and writes the script. Before it answers, the finished script must pass runZero's real validators. A script that fails goes back to the assistant to fix, shown as **Fixing validation errors**, and any `load()` lines the script forgot are added mechanically afterward. Progress appears in the output console below the editor (the pages it reads, the tools it calls, and its own commentary), and the script itself streams into the editor as it is written. You can switch back to the **Test credentials** tab while it works; the run keeps going and keeps reporting in the verdict row. **Stop**, in the AI form or beside the transcript in the output console, cancels the run. Nothing else does: an AI run is deliberately independent of the browser, so leaving the page or closing the tab leaves it running. Returning to the integration page picks the run back up, including anything that streamed while you were away. Every attempt also runs as a live turn on its own [AI thread](ai-threads.md), with the running indicator, the work log, and its own Stop, so a run that failed or that you left behind is still there to look at. The output console links it as **View this request in AI Threads**. If a run fails or you stop it before it finishes, whatever script was in the editor beforehand comes back. A run can also finish without a script (the assistant declining, asking a question, or answering in prose), and that answer appears under **What the model said**. When it succeeds, the assistant's own account of what it built stays in the output console under **What the model says it built**, beside the code. **Clear** removes the transcript when you are done with it. #### What the assistant is given, and what it is not The model receives only three things: your description, the documentation URLs you supplied, and, when you are revising, the script currently in the editor. No inventory, asset, organization or credential data is sent, ever. The assistant has four tools: it can fetch a documentation page, list and read runZero's shipped example integrations, and validate a candidate script. Validation only parses and compiles the script; nothing runs, no network call is made, and nothing is saved. Documentation pages are fetched under the same protections as the rest of the platform: private and internal addresses are blocked, and the content is treated as untrusted throughout, because someone else wrote the page the assistant reads. **Read the script before you save or run it.** It is drafted from third-party documentation, and it will run with your integration credentials. #### Limits {#ai-generator-limits} * An authoring run is capped at 10 minutes. * Documentation fetching within a run is capped at 10 pages and 90 seconds in total. * A script sent for revision must be under 48 KiB. Above that the run still works, but it is generated from your description alone, and the form says so. * Generative AI requires the AI feature to be enabled for the account and the organization, in addition to the custom integration script entitlement and administrator access (the same requirement as authoring a script by hand). * Generations count against the same [AI run limits](ai-threads.md#ai-limits) as threads: 4 running AI jobs per user and 12 per account. #### Where the generated script goes When the run finishes, the script loads into the editor. If you have already saved the integration, it is committed straight away as a new version (the output console notes **Saved as version N**), so a generation is never one navigation away from being lost. A script that does not compile is not saved as a version; the output console says so and leaves it in the editor for you to fix. On an integration you have not saved yet, the output console reminds you to save the integration to keep the script. Each run also produces an [AI artifact](ai-threads.md#ai-artifacts) holding the script. Artifacts start private to you and can be shared; an unshared artifact is [retained](ai-threads.md#ai-retention) as long as the thread it came from. Artifacts are listed under **Artifacts** in the AI section of the console, where **Use in custom integration** loads one back into the integration it was written for (or into a new one). The handoff lands directly on the workbench: the editor flashes, and the verdict row confirms what was loaded. For a new integration, the verdict row also suggests a name derived from the artifact's title, which you can change before saving. ### Validating and previewing **Validate** runs the same checks the save path runs: the size cap, the Starlark parse and compile, the [CONFIG block](custom-integration-scripts.md#config) extraction and schema, and the reserved-name rules. Nothing is executed. Failures are reported per line in the output console, and the editor marks the line. The **Credential fields** disclosure below the workbench lists every parameter the CONFIG block declares (label, key, type, whether it is required and secret, and its default), refreshed when the integration loads and after each save. It is the quickest way to check that a CONFIG block says what you meant. To see the rendered form itself, switch the test rail to **Enter values for this run only**, which shows the same fields the person creating the credential will see. ### Running a test {#test-runs} **Run test** executes the script in the editor immediately, including changes you have not saved, and streams back its output, a preview of the assets it reported, and a plain-language verdict. A test run is not a task, and differs from one in ways that matter: * It runs on the console, not on an Explorer. Internal and link-local addresses are blocked, on self-hosted consoles too, so an integration that targets an endpoint inside your network cannot be tested this way. Test that one from an Explorer with the [runZero CLI](custom-integration-scripts.md#cli) instead. * Nothing is imported. No task is created, no assets reach your inventory, and nothing is written to your organization. The assets shown are a preview, discarded when the run ends. * Credentials are not stored. You can run against a saved credential, or switch the rail to **Enter values for this run only**. Values you type in for a run are held for the length of that run and never saved; to schedule an integration whose CONFIG requires values, you still need a saved credential. Picking a saved credential shows its stored values in the rail, so the choice is not blind: non-secret values appear verbatim, and secret values show only that a value is stored, because they are never sent to the browser. Your non-secret selections (credential mode, credential choice, non-secret parameter values) are remembered per integration in the browser between visits; secret values start empty every time. Before anything executes, the run checks the credential values against the script's CONFIG schema; values that can never satisfy it are refused up front, naming the parameter keys (never the values). The rail also warns beside **Run test** when no credential is selected and the CONFIG declares required fields. The run redacts credential values from everything it prints, including error text, crash output, and the asset preview. That covers every value supplied to the run, saved or typed in, and every CONFIG `secret` value. #### Test run limits | Limit | Value | | ----- | ----- | | Wall clock | 120 seconds | | Memory | 256 MiB | | Computation | 2,000,000,000 interpreter steps; time spent waiting on an API does not count | | Assets | 100, after which the run stops and reports success | | Assets shown in full | the first 10, with up to 24 attributes each, values truncated at 256 bytes | | Log output | 500 lines, 4 KiB per line | You can run one test at a time, up to six runs a minute; the account as a whole is capped at twenty starts a minute. Reaching the 100-asset ceiling is reported as a **success**: the script worked and was stopped early because this is a test. A real task is not capped this way. Every run ends with a named outcome rather than a bare failure: it completed, it stopped at the asset limit, you stopped it, the script raised an error, it ran out of time, memory, computation or stack, the sandbox stopped it, it stopped unexpectedly, or it never started. Each comes with a short explanation of what to look at next. A run that completes without reporting any assets says so; it usually means the response was parsed differently than expected, or a filter in the script excluded everything. A run that could not be started at all is explained the same way, including the compiler's own line and column when the script did not compile, so you do not have to press **Validate** to find out what was wrong. ### Version history {#version-history} Every change to a script is snapshotted, including versions committed by an [AI generation](custom-integration-scripts.md#ai-generator). The **Script version history** disclosure on the custom integration page (its title carries the count and the current version) opens a table listing each version with its author, timestamp, size, and the example it came from, if any. runZero keeps the most recent 25 versions. **Load**, offered on every version other than the current one, puts a stored version into the editor so you can look at it or work from it. It asks first when the editor holds something else. Nothing is written until you save, and saving creates a new version rather than rewriting history. **Revert** appears in the action bar whenever the editor differs from the last saved script, and restores that saved script locally. Like Load, it only changes the editor; it asks first, because the editor may be the only copy of what you have typed. ## Adding the integration to your console ### Step 1: Create the custom integration 1. Go to the [Custom sources page](https://console.runzero.com/custom-integrations) and click **Add custom integration**. 1. Enter a name (no spaces) and, optionally, an icon (PNG, up to 256x256). 1. Choose whether the integration is available to every organization in the account or only to specific organizations. See [organization access](custom-integration-scripts.md#integration-organization-access). 1. Toggle **Enable custom integration script**, then paste in your script, [start from an example, or generate one with AI](custom-integration-scripts.md#console-workspace). 1. Click **Validate** to check the script syntax and CONFIG block, and optionally [run the script against a real endpoint](custom-integration-scripts.md#test-runs) before you schedule it. 1. Click **Save**, or **Save & create task**, which saves and lands on the task form with the integration pre-selected. ### Step 2: Create the credential 1. Go to the [Credentials page](https://console.runzero.com/credentials) and click **Add Credential**. 1. Choose **Custom Integration Script Secrets** as the credential type. 1. Select the custom integration. The form shows the fields declared in the script's `CONFIG` block, including any option-suite fields such as `tls_disable_validation` and `http_user_agent`. 1. For legacy scripts without a CONFIG block, provide the **Access key (legacy)** and **Access secret (legacy)** values, which reach the script as the `access_key` and `access_secret` kwargs. 1. To let other organizations use this credential, select the _Make this a global credential_ option. 1. Save the credential. ### Step 3: Create the task 1. Go to the [custom integration task page](https://console.runzero.com/ingest/custom/), click **Integrate** on the Tasks page and choose **Custom Scripts**, or use one of the shortcuts that pre-select the integration: **Save & create task** on the integration page, or the play action on its row of the Custom sources grid. 1. Select the custom integration and the credential you created above. Saving the task validates the pair: the script must compile, and the credential must satisfy every parameter the CONFIG block requires. A save with no credential, or with a credential missing required parameters, fails with an error naming the parameter keys. (Legacy scripts without a CONFIG block skip this check.) 1. Select the Explorer to run the script from, or leave the selection empty to run the task on the console itself. Console-hosted tasks cannot reach private or link-local addresses, and on runZero-hosted consoles they run under a tighter budget, so use an Explorer for anything that targets your internal network. 1. Set the site, description, and schedule. 1. Activate the connection to start the task. Once the task completes, assets appear in your inventory, and the search `custom_integration:` finds them. Tasks list the integration with its own icon, and the task search `custom_integration:` accepts a name or a UUID, including the UUID of a deleted integration. ## Organization access {#integration-organization-access} A custom integration is available either to every organization in the account or only to the organizations it was granted to. Custom integrations that existed before this option was added are available to every organization, so their tasks keep working until an administrator narrows an integration's scope. Managing custom integrations requires administrator-level permissions. Users with **Administrator** as their [default role](managing-your-team.md) can manage every custom integration. Users with [per-organization permissions](organizations.md) see only the integrations available to their organizations, and can edit an integration only if they hold administrator permissions in every organization it is available to. Only a superuser or a user whose default role is Administrator can edit an integration that is available to every organization. Reading an integration's script and its configuration parameters requires administrator permissions in one of the organizations the integration was granted to; the script of an integration available to every organization is visible only to superusers and users whose default role is Administrator. Users, viewers and annotators can see that an integration exists, including its name and icon, so the asset data it collected stays readable, but they cannot see its script or its configuration parameters. Selecting an integration when configuring a task requires at least user-level (write) access in an organization the integration is available to; viewers and annotators cannot. An integration task can only use a custom integration that is available to the organization the task belongs to. runZero checks access again each time the task runs, so removing an organization's access also stops tasks that were already scheduled, with an error naming the integration and organization. Deleting an organization removes it from every integration's access list; an integration that was scoped only to that organization is kept, but is visible only to superusers and account-wide administrators until it is re-scoped. The [account API](leveraging-the-api.md) exposes the same organization scope: custom integration objects carry `global` and `organizationIds` fields (mutually exclusive), and organization-scoped API tokens see only integrations shared with their organizations. ## Deleting a custom integration {#integration-deletion} Deleting a custom integration requires typing the word `delete` to confirm, and the confirmation states the impact: the saved script versions are deleted, the data the integration added to assets is removed, and scheduled tasks that use it are **paused** rather than deleted. Each paused task shows the reason, and you can re-point it at another integration. Credentials are kept, and another integration can use them. ## Script limits and sandbox behavior {#limits} * Scripts are limited to 1 MiB of source. A script sent to the [AI assistant](custom-integration-scripts.md#ai-generator) for revision has a much smaller ceiling of 48 KiB. * Scripts can only `load()` the [registered modules](custom-integration-scripts.md#libraries), with no filesystem access and no relative imports. * A script run has an execution-step ceiling and a wall clock, and the deadline also bounds HTTP requests and `time.sleep` calls. A task on an Explorer or a self-hosted console gets 24 hours and 720 billion steps; one on a runZero-hosted console gets 2 hours and 240 billion steps. A [console test run](custom-integration-scripts.md#test-runs) is much tighter again, at 120 seconds. Only computation consumes steps, so time spent waiting on an API does not count against the ceiling. Self-hosted operators can override both budgets with the `RUNZERO_CUSTOM_INTEGRATION_MAX_STEPS` and `RUNZERO_CUSTOM_INTEGRATION_MAX_RUN_SECONDS` environment variables. * HTTP response bodies are capped at 1 GiB, and a script's cumulative network reads across `http`, `requests`, `socket`, SSH, and SMB are capped at 4 GiB per run. Other per-call caps include 64 MiB per SMB file read, 16 MiB per SSH command output stream, and gzip decompression bounded at 1 GiB and a 500:1 expansion ratio (see the [library reference](custom-integration-starlark-libraries.md)). * A script can hold at most 256 open connections and sessions (sockets, SSH, SMB, WinRM, WMI, SQL) at once; closing one frees its slot. * runZero redacts the values of `secret` parameters from `print` output, progress messages, and error text. * On an Explorer task, every network module (`http`, `requests`, `socket`, and the direct-protocol modules `runzero.ssh`, `runzero.smb`, `runzero.winrm`, `runzero.wmi`, and `runzero.sql`) can reach the internal addresses visible to that Explorer. On console-hosted runs (both [test runs](custom-integration-scripts.md#test-runs) and tasks run without an Explorer), private and link-local addresses are blocked for every module. The CLI's [`--starlark-allow-cidrs` and `--starlark-block-cidrs`](custom-integration-scripts.md#cli) flags pin script egress for local runs. ## Available libraries {#libraries} Load only what you use; each module comes in through `load(...)`. The [Starlark libraries](custom-integration-starlark-libraries.md) page has full signatures and runnable examples for every module. | Module | Provides | | ------ | -------- | | [`runzero.types`](custom-integration-starlark-libraries.md#starlark-lib-types) | `ImportAsset`, `NetworkInterface`, `Service`, `ServiceProtocolData`, `Software`, `Vulnerability`, `to_custom_attributes` | | [`kwargs`](custom-integration-starlark-libraries.md#starlark-lib-kwargs) | Typed accessors: `require`, `get_string`, `get_bool`, `get_int`, `get_float`, `get_list`, `get_url_base`, `get_http_tls`, `get_http_options` | | [`coerce`](custom-integration-starlark-libraries.md#starlark-lib-coerce) | Total (never-raising) conversions for messy API data: `as_text`, `as_dict`, `as_list`, `dicts`, `as_int`, `as_float`, `as_bool`, `dedupe` | | [`http`](custom-integration-starlark-libraries.md#starlark-lib-http) | HTTP verbs, `get_json`/`post_json` with retries, `bearer`/`basic`/`oauth2_token`, `url_encode`/`url_parse`/`url_join`, `multipart` | | [`requests`](custom-integration-starlark-libraries.md#starlark-lib-requests) | Stateful HTTP `Session` with sticky headers and cookies | | [`net`](custom-integration-starlark-libraries.md#starlark-lib-net) | `ip_address`, `network_interface`, `normalize_mac`, `ip_network`, `ip_in_network`, `resolve`, plus identity screens `routable_ip`, `routable_ips`, `clean_hostname`, `clean_hostnames`, `mac_key` | | [`json`](custom-integration-starlark-libraries.md#starlark-lib-json) | `encode`, `decode`, `encode_indent`, `indent` | | [`jsonstream`](custom-integration-starlark-libraries.md#starlark-lib-jsonstream) | `iter_array`, `iter_lines` for large JSON/NDJSON responses | | [`csv`](custom-integration-starlark-libraries.md#starlark-lib-csv) | `read_all`, `read_rows`, `write_all`, `write_dicts` | | [`xml`](custom-integration-starlark-libraries.md#starlark-lib-xml) | `parse` into an element tree | | [`re`](custom-integration-starlark-libraries.md#starlark-lib-re) | RE2 regular expressions: `match`, `find_all`, `sub`, `split`, `compile` | | [`time`](custom-integration-starlark-libraries.md#starlark-lib-time) | `now`, `parse_time`, `parse_ts`, `parse_duration`, `from_timestamp`, `sleep` | | [`uuid`](custom-integration-starlark-libraries.md#starlark-lib-uuid) | `new_uuid` | | [`base64` / `hex` / `base32`](custom-integration-starlark-libraries.md#starlark-lib-encoding) | Standard encodings, including raw and URL-safe variants | | [`crypto`](custom-integration-starlark-libraries.md#starlark-lib-crypto) | Hashes, HMAC, AWS SigV4 signing, CSPRNG output | | [`jwt`](custom-integration-starlark-libraries.md#starlark-lib-jwt) | `encode`, `decode`, `decode_unverified` | | [`gzip`](custom-integration-starlark-libraries.md#starlark-lib-gzip) | `compress`, `decompress` | | [`flatten_json`](custom-integration-starlark-libraries.md#starlark-lib-flatten-json) | `flatten` nested structures | | [`runzero.progress`](custom-integration-starlark-libraries.md#starlark-lib-progress) | `report`, `info`, `warn` task progress in the console | | [`socket`](custom-integration-starlark-libraries.md#starlark-lib-socket) | Raw TCP/UDP/TLS connections | | [`runzero.ssh` / `runzero.smb` / `runzero.winrm` / `runzero.wmi` / `runzero.sql`](custom-integration-starlark-libraries.md#starlark-lib-protocols) | Direct-protocol collection from systems without a REST API | The predeclared names `report_assets`, `report_asset`, `pager`, `max_pages`, `OPTIONS_TLS`, and `OPTIONS_HTTP` are always available without a `load()`. ## Existing custom integrations --- docs/custom-integration-starlark-libraries.md --- title: "Starlark libraries" --- This page is the reference for the Starlark modules available to [custom integration scripts](custom-integration-scripts.md), with a runnable example for each. Save any example as a `.star` file and run it with the [runZero CLI](custom-integration-scripts.md#cli): ```bash runzero script --filename example.star ``` Every module comes in through `load(...)`; load only the names you use. The names `report_assets`, `report_asset`, `pager`, `max_pages`, `OPTIONS_TLS`, and `OPTIONS_HTTP` are predeclared and never need a `load()`. ```python load("runzero.types", "ImportAsset", "NetworkInterface", "Service", "ServiceProtocolData", "Software", "Vulnerability", "to_custom_attributes") load("kwargs", "require", "has", "get", "get_string", "get_bool", "get_int", "get_float", "get_list", "get_url_base", "get_http_tls", "get_http_options") load("http", http_get="get", http_post="post", "head", "put", "patch", "delete", "get_json", "post_json", "url_encode", "url_parse", "url_join", "multipart", "bearer", "basic", "oauth2_token") load("requests", "Session", "Cookie") load("net", "ip_address", "network_interface", "normalize_mac", "ip_network", "ip_in_network", "resolve", "routable_ip", "routable_ips", "clean_hostname", "clean_hostnames", "mac_key") load("coerce", "as_text", "as_dict", "as_list", "dicts", "as_int", "as_float", "as_bool", "dedupe") load("json", json_encode="encode", json_decode="decode") load("jsonstream", "iter_array", "iter_lines") load("csv", csv_read="read_all", csv_write="write_dicts") load("xml", xml_parse="parse") load("re", re_match="match", re_find_all="find_all", re_sub="sub") load("time", "now", "parse_time", "parse_ts", "parse_duration", "sleep") load("uuid", "new_uuid") load("base64", base64_encode="encode", base64_decode="decode") load("hex", hex_encode="encode", hex_decode="decode") load("base32", b32_encode="encode", b32_decode="decode") load("crypto", "sha256", "hmac_sha256", "sign_v4", "random_hex") load("jwt", jwt_encode="encode", jwt_decode="decode") load("gzip", gzip_compress="compress", gzip_decompress="decompress") load("flatten_json", "flatten") load("runzero.progress", progress_report="report", progress_info="info") load("socket", "tcp", "udp", "tls") load("runzero.ssh", ssh_dial="dial") load("runzero.smb", smb_dial="dial") load("runzero.winrm", winrm_dial="dial") load("runzero.wmi", wmi_dial="dial") load("runzero.sql", sql_connect="connect") ``` ## runzero.types {#starlark-lib-types} Constructors for the objects a script imports. Every keyword argument accepts both camelCase (`osVersion`) and snake_case (`os_version`) spellings. * `ImportAsset(id, ...)`: `id` is required and must be a stable, unique string (up to 1024 characters). Optional fields: `hostnames`, `domain`, `os`, `osVersion`, `manufacturer`, `model`, `deviceType`, `assetType`, `tags`, `firstSeenTS`, `lastSeenTS`, `networkInterfaces`, `services`, `software`, `vulnerabilities`, `customAttributes`, `runZeroID`, `trust_device_type`, `trust_os`, `trust_os_version`. Merge policy is no longer set per asset: declare [`matchBehavior` in the CONFIG block](custom-integration-scripts.md#match-behavior) instead. Passing it to `ImportAsset` is an error. * `NetworkInterface(macAddress=None, ipv4Addresses=[], ipv6Addresses=[])`: build one directly, or with [`net.network_interface`](custom-integration-starlark-libraries.md#starlark-lib-net), which handles mixed and messy input. * `Service(address, port, transport, ...)`: the first three are required; `vendor`, `product`, `version`, `protocolData`, and `customAttributes` are optional. * `ServiceProtocolData(name, attributes={})`: protocol-specific details attached to a `Service`. * `Software(id, ...)`: optional `vendor`, `product`, `version`, `update`, `cpe23`, `serviceAddress`, `serviceTransport`, `servicePort`, `installedAt`, `installedSize`, `installedFrom`, and more. * `Vulnerability(id, ...)`: optional `name`, `description`, `solution`, `cve` (must match `CVE-YYYY-NNNN`), `cpe23`, `cvss2BaseScore`, `cvss3BaseScore`, `severityRank`/`riskRank` (0=Info through 4=Critical), `severityScore`/`riskScore`, `exploitable`, service linkage, and timestamps. * `to_custom_attributes(value, ...)`: coerces arbitrary nested data into the `string -> string` map required by `customAttributes`. Nested dicts are flattened with `separator` (default `"."`), lists are joined with `list_join` (default `","`), empty values are dropped unless `drop_empty=False`, and `prefix`, `exclude`, `max_key`, `max_value`, and `max_entries` give finer control. The platform caps custom attributes at 1024 entries, with keys up to 256 and values up to 1024 characters. Each asset holds up to 256 network interfaces, 100 hostnames (260 characters each), and 100 tags. `hostnames` and `tags` silently drop empty strings, but a `None` entry in `hostnames` is an error that aborts the run, so `hostnames=[device.get("hostname")]` fails whenever the field is absent. Pass hostname fields through [`net.clean_hostnames`](custom-integration-starlark-libraries.md#starlark-lib-net), which also screens out placeholder names. ```python load("runzero.types", "ImportAsset", "Service", "ServiceProtocolData", "Software", "Vulnerability", "to_custom_attributes") load("net", "network_interface") def main(*args, **kwargs): nic = network_interface( mac="9C:B6:D0:F1:D2:04", ips=["192.0.2.5", "fe80::1%eth0", "[2001:db8::1]:443"], ) svc = Service( address="192.0.2.5", port=443, transport="tcp", vendor="nginx", product="nginx", version="1.25.3", protocolData=[ ServiceProtocolData(name="http", attributes={"server": "nginx"}), ServiceProtocolData(name="tls", attributes={"subject": "CN=acme"}), ], ) asset = ImportAsset( id="device-123", hostnames=["web1.acme.local"], os="Linux", osVersion="6.1", deviceType="Server", manufacturer="Acme", model="Rack-42", tags=["prod", "web"], networkInterfaces=[nic], services=[svc], software=[Software(id="pkg-1", vendor="F5", product="NGINX", version="1.25.3", serviceAddress="192.0.2.5")], vulnerabilities=[Vulnerability(id="vuln-1", name="Example finding", cve="CVE-2023-0001", severityRank=3, severityScore=8.1, riskRank=3, riskScore=8.1)], customAttributes=to_custom_attributes({ "name": "web1", "labels": ["prod", "edge"], # joined with "," "sys": {"os": "linux", "ver": 5}, # flattened with "." "empty": "", # dropped }), ) return [asset] ``` ## kwargs {#starlark-lib-kwargs} Typed, validating accessors over the `**kwargs` dict passed to `main`. Values arrive as strings; these helpers coerce them and apply defaults. * `require(kwargs, *keys)`: an error if any key is missing or blank. * `has(kwargs, key)`: `True` when the key is present and non-empty. * `get(kwargs, key, default="")` / `get_string(...)`: aliases. * `get_bool(kwargs, key, default=False)`: accepts `true`/`false`, `1`/`0`, `yes`/`no`, `y`/`n`, `on`/`off`. * `get_int(kwargs, key, default=0)` / `get_float(kwargs, key, default=0.0)` * `get_list(kwargs, key, default=[], sep=",")`: splits a delimited string, or passes a list through. * `get_url_base(kwargs, key="url", default="")`: extracts scheme + host from a URL kwarg, dropping any path or query. * `get_http_tls(kwargs, prefix="tls_")`: collects the [`OPTIONS_TLS` include](custom-integration-scripts.md#option-suites) into a `tls=` dict. * `get_http_options(kwargs, prefix="http_", tls_prefix="tls_", headers=None)`: collects the `OPTIONS_HTTP` and `OPTIONS_TLS` includes into a dict of keyword arguments for any `http` function. ```python load("kwargs", "require", "has", "get_string", "get_bool", "get_int", "get_list") def main(*args, **kwargs): require(kwargs, "client_id", "client_secret") client_id = get_string(kwargs, "client_id") page_size = get_int(kwargs, "page_size", default=100) include_offline = get_bool(kwargs, "include_offline", default=False) regions = get_list(kwargs, "regions", default=[]) print(client_id, page_size, include_offline, regions) if has(kwargs, "region"): print("region override:", get_string(kwargs, "region")) ``` ```bash runzero script --filename example.star --kwargs client_id=abc --kwargs client_secret=xyz --kwargs include_offline=yes --kwargs regions=us-east,us-west ``` ## coerce {#starlark-lib-coerce} Total conversions for messy API data: nothing in this module raises, so a malformed or missing field degrades to a default instead of aborting the import. * `as_text(value, default="", join="")`: any value to a string; lists are joined with `join` when set. * `as_dict(value)`: a dict, or `{}` for anything else. * `as_list(value, wrap=True)`: a list; scalars are wrapped in a one-element list unless `wrap=False`. * `dicts(value)`: the dict elements of a list, dropping everything else. * `as_int(value, default=0)` / `as_float(value, default=0.0)`: numbers from ints, floats, or numeric strings. * `as_bool(value, default=False)`: the usual true/false spellings. * `dedupe(values, fold_case=False)`: order-preserving deduplication. ```python load("coerce", "as_text", "as_int", "as_list", "dicts") def main(*args, **kwargs): device = {"name": None, "port": "8443", "ips": "192.0.2.5", "disks": [{"id": 1}, "oops", {"id": 2}]} print("name:", as_text(device["name"], default="unknown")) print("port:", as_int(device["port"])) print("ips:", as_list(device["ips"])) # a scalar becomes a one-item list print("disks:", dicts(device["disks"])) # non-dict entries dropped ``` ## http {#starlark-lib-http} Stateless HTTP requests, JSON convenience wrappers, auth helpers, and URL utilities. `get(url, headers=None, params=None, timeout=60, insecure_skip_verify=False, tls=None)` and `head(...)` take the same arguments; `post`, `put`, `patch`, and `delete` also accept `body=` (bytes/string) or `json=` (auto-encoded dict). All verbs default to a 60-second timeout, and `params=` replaces any query string already present in the URL. Each returns a response struct with `status_code` (int), `status` (string), `headers` (values are lists of strings), and `body`. `get_json` and `post_json` wrap the common fetch-check-decode pattern in one call and return a `(data, err)` tuple. `err` is `None` on success, or a short string: `"status 401: ..."` for an HTTP failure, or the transport error text for a connection failure. A 2xx response with an empty body decodes to `None`. Both also accept `insecure_skip_verify=` and `tls=`. Transient failures are retried by default: `retries` defaults to 3, with exponential backoff (`retry_backoff`, default 1 second, doubling up to `retry_max_backoff`, default 30 seconds) on transient statuses (`408, 425, 429, 500, 502, 503, 504` by default; override with `retry_on=[...]`), honoring `Retry-After` headers. Pass `retries=0` to opt out, and do so for non-idempotent writes. `bearer(token)` and `basic(username, password)` format `Authorization` header values. `oauth2_token(token_url, client_id, client_secret, scope=None, audience=None, grant_type="client_credentials", extra=None, headers=None, timeout=60, insecure_skip_verify=False, tls=None)` performs an OAuth token exchange and returns the access token string. `url_encode(params)` builds a query string; `url_parse(url)` returns a struct (`scheme`, `host`, `hostname`, `port`, `path`, `query`, `fragment`, ...) or `None`; `url_join(base, ref)` resolves a relative reference (useful for pagination `next` links); and `multipart(fields)` builds a `multipart/form-data` body and returns `(body_bytes, content_type)`. ```python load("http", "get_json", "url_parse", "url_join", "bearer") def main(*args, **kwargs): url = "https://hacker-news.firebaseio.com/v0/topstories.json" data, err = get_json(url, headers={"Accept": "application/json"}, retries=2) if err: print("fetch failed:", err) return None print("top story IDs:", data[:5]) u = url_parse(url) print("host:", u.host, "path:", u.path) print("next page:", url_join(url, "/v0/beststories.json")) print("auth header:", bearer("example-token")) ``` In an integration, collect the [option-suite settings](custom-integration-scripts.md#option-suites) once and splat them into every call: ```python http_options = get_http_options(kwargs, headers={"Authorization": bearer(token)}) data, err = get_json(url, params={"limit": 100}, **http_options) ``` The `tls=` argument accepts a dict with the keys `insecure`, `server_name`, `ca_pem`, `client_cert_pem`, `client_key_pem`, and `thumbprints` (SHA-256 pins); unknown keys are an error. Use the raw verbs instead of `get_json` when you need response headers, cookies, or the status code directly. Where an egress filter applies (console-hosted runs, or the CLI's `--starlark-allow-cidrs`/`--starlark-block-cidrs` flags), a request to a refused address aborts the script rather than returning an `err` tuple. ## requests {#starlark-lib-requests} A stateful HTTP `Session` with sticky headers and a cookie jar. Verbs (`get`, `post`, `put`, `patch`, `delete`, `head`) accept `headers`, `cookies`, `params`, `body`, `json`, and `timeout` (default 60 seconds), and return the same response struct as the `http` module. `Session` does not accept the `tls=` dict; only `Session(insecure_skip_verify=True)` is available. Prefer the `http` module when the [TLS option suite](custom-integration-scripts.md#option-suites) matters. ```python load("requests", "Session", "Cookie") load("json", json_decode="decode") def main(*args, **kwargs): session = Session() session.headers.set("Accept", "application/json") session.headers.set("User-Agent", "runZero-Example/1.0") url = "https://hacker-news.firebaseio.com/v0/topstories.json" response = session.get(url) if response.status_code == 200: data = json_decode(response.body) print("top story IDs:", data[:5]) else: print("request failed with status:", response.status_code) ``` `session.headers` exposes `get(key)` and `set(key, value)` (`value=None` deletes a header). `session.cookies` exposes `get(url)`, `set(url, cookies)`, and `clear()`; `Cookie(name, value, path="", domain="", secure=False, ...)` builds a full cookie object for `cookies.set`. ## net {#starlark-lib-net} IP, MAC, and DNS helpers, plus identity screens that keep placeholder values out of asset matching. * `ip_address(s)`: validates one address; the result exposes `.version` (4 or 6) and stringifies to canonical form. * `network_interface(mac=None, ips=None, ipv4=None, ipv6=None)`: builds a `NetworkInterface` from messy input. It handles mixed v4/v6 lists, `addr:port` and `[addr]:port` suffixes, and `%zone` IDs, drops duplicates, and keeps up to 99 addresses per family. It returns `None` when nothing usable remains, so `if nic:` guards work. * `normalize_mac(s, preserve_bits=True)`: canonical lowercase colon form from any common format (colons, dashes, Cisco dotted, bare hex); returns `None` for unparseable input. Pass `preserve_bits=False` to clear the locally-administered bit, the historical matching form; `network_interface` stores the asset MAC with the bit cleared regardless. * `mac_key(s)`: `normalize_mac` plus rejection of values that cannot identify a device. All-zero and broadcast addresses and synthetic `ip-` placeholders return `None`. * `routable_ip(value, exclude=None)` / `routable_ips(values, exclude=None)`: the canonical identity-usable address (or `None`), rejecting loopback, unspecified, link-local, multicast, and broadcast addresses while keeping RFC1918, CGNAT, and ULA space. Accepts bracketed, `host:port`, `%zone`, and CIDR-suffixed input. `exclude=[...]` overrides the exclusion list; `exclude=[]` disables it. * `clean_hostname(value, extra=None, max_length=253)` / `clean_hostnames(values, ...)`: a usable hostname or `None`, rejecting placeholders (`localhost`, `unknown`, `none`, `-`, `n/a`), IP-shaped values, all-numeric names, over-long names, and illegal DNS characters. `extra=[...]` adds source-specific placeholders; the plural form also deduplicates case-insensitively. * `ip_network(cidr)`: a struct with `cidr`, `version`, `prefix`, `network`, `broadcast`, `netmask`, and a `contains(ip)` method. * `ip_in_network(ip, cidr)`: a one-shot membership check; `False` for malformed or mixed-family input. * `resolve(host, timeout=10)`: an A/AAAA lookup returning a list of IP addresses; returns an empty list (never an error) for unresolvable input. ```python load("net", "ip_address", "network_interface", "normalize_mac", "ip_network", "ip_in_network", "resolve", "routable_ip", "clean_hostnames", "mac_key") def main(*args, **kwargs): addr = ip_address("192.0.2.5") print("ip:", addr, "version:", addr.version) print("mac:", normalize_mac("9CB6.D0F1.D204")) net10 = ip_network("10.0.0.0/8") print("contains:", net10.contains("10.1.2.3")) print("in network:", ip_in_network("10.1.2.3", "10.0.0.0/8")) for ip in resolve("localhost"): print("resolved:", ip, ip.version) nic = network_interface(mac="9c-b6-d0-f1-d2-04", ips=["192.0.2.5", "fe80::1%eth0", "[2001:db8::1]:443"]) print("nic:", nic) print("routable:", routable_ip("127.0.0.1"), routable_ip("10.1.2.3:8443")) print("hostnames:", clean_hostnames(["web1.acme.local", "localhost", None])) print("mac key:", mac_key("00:00:00:00:00:00")) # None: not an identity ``` ## json {#starlark-lib-json} ```python load("json", json_encode="encode", json_decode="decode") def main(*args, **kwargs): data = {"name": "runZero", "features": ["scan", "API", "integrations"]} encoded = json_encode(data) print("encoded:", encoded) decoded = json_decode(encoded) print("decoded name:", decoded["name"]) ``` The module also provides `encode_indent` and `indent` for pretty-printed output. ## jsonstream {#starlark-lib-jsonstream} Stream large JSON documents without materializing them. `iter_array(body, path=None)` iterates the elements of an array (optionally at a dot-separated path inside the document); `iter_lines(body)` iterates NDJSON / JSON-lines input. Both accept strings or bytes; pass a response `body` directly. ```python load("jsonstream", "iter_array", "iter_lines") def main(*args, **kwargs): big_json = '{"data": {"items": [{"id": 1}, {"id": 2}]}}' for item in iter_array(big_json, path="data.items"): print("streamed id:", item["id"]) for line in iter_lines('{"a": 1}\n{"a": 2}'): print("ndjson:", line["a"]) ``` ## csv {#starlark-lib-csv} `read_all(text, delimiter=",", comment="", header=True)` returns a list of dicts keyed by the header row (or a list of lists with `header=False`); `read_rows` is the header-less form. `write_all(rows)` and `write_dicts(rows, fields=None)` serialize back to CSV strings. ```python load("csv", csv_read="read_all", csv_write="write_dicts") def main(*args, **kwargs): rows = csv_read("id,name\n1,web1\n2,web2\n") print("first row:", rows[0]["name"]) print("as csv:", csv_write(rows)) ``` ## xml {#starlark-lib-xml} `parse(text)` returns an element tree. Elements expose `tag`, `text`, `tail`, `attrib`, and `children`, plus the methods `find(path)`, `find_all(path)`, `get(name, default="")`, and `text_all()`. ```python load("xml", xml_parse="parse") def main(*args, **kwargs): doc = xml_parse("web1") print("name:", doc.find("device/name").text) print("count:", len(doc.find_all("device"))) ``` ## re {#starlark-lib-re} Regular expressions using Go RE2 syntax. `match(pattern, string)` and `search(...)` return a struct (`.match`, `.start`, `.end`, `.groups`, and `.named` for named groups) or `None`. Also available: `find_all`, `find_all_groups`, `sub(pattern, repl, string, count=-1)`, `split`, `escape`, and `compile(pattern)` for a reusable pattern object. ```python load("re", re_match="match", re_find_all="find_all", re_sub="sub") def main(*args, **kwargs): matches = re_find_all(r"id=(\d+)", "id=10 id=20") print("matches:", matches) print("cleaned:", re_sub(r"\s+", " ", "a b\tc")) m = re_match(r"(?P\d+)\.(?P\d+)", "5.1") print("named groups:", m.named) ``` ## time {#starlark-lib-time} The standard Starlark `time` module plus a sandbox-aware `sleep`. * `parse_time(s)`: parses RFC 3339 strings into a `time` value with `year`, `month`, `day`, `hour`, `minute`, `second`, `unix`, and `unix_nano` fields, plus `format(layout)` and `in_location(name)` methods. It raises on input it does not recognize, and a raise from a builtin aborts the whole script, so use it for literals and `parse_ts` for API-supplied values. * `parse_ts(value, default=None, assume_utc=True, clamp_to_now=True, unit="s")`: a never-raising timestamp parser for values a vendor API returns. It accepts epoch ints, floats, and numeric strings (`unit` selects `s`/`ms`/`us`/`ns`) plus a wide set of datetime layouts, and reads zone-less values as UTC. Non-positive epochs yield `default`, and future values are clamped to now, because the platform drops an `ImportAsset` whose first- or last-seen timestamp is ahead of the clock. * `parse_duration(s)`: parses `"90m"`, `"1h30m"`, `"250ms"`, and similar into a `duration` with `hours`, `minutes`, `seconds`, and related fields. Time and duration values support arithmetic. * `now()`: the current time. `from_timestamp(sec)` converts a Unix timestamp. * `sleep(duration)`: accepts a duration string or value, and respects the task deadline. ```python load("time", "now", "parse_time", "parse_ts", "parse_duration", "sleep") def main(*args, **kwargs): t = parse_time("2026-08-14T15:00:00Z") print("unix:", t.unix, "year:", t.year) print("formatted:", t.format("2006-01-02")) seen = parse_ts("2026-08-14 15:00:00") # zone-less, read as UTC print("api time:", seen) print("bad input:", parse_ts("not-a-date")) # None, never a crash d = parse_duration("90m") print("minutes:", d.minutes) print("90 minutes from now:", now() + d) sleep("250ms") ``` ## uuid {#starlark-lib-uuid} ```python load("uuid", "new_uuid") def main(*args, **kwargs): print("generated UUID:", new_uuid()) ``` ## base64, hex, and base32 {#starlark-lib-encoding} `base64` provides `encode`/`decode` plus `raw_encode`/`raw_decode` (unpadded), `url_encode`/`url_decode` (URL-safe alphabet), and `raw_url_encode`/`raw_url_decode` (both); its decode functions return strings. `hex` provides `encode`/`decode`, and `base32` provides `encode`/`decode` plus unpadded `raw_encode`/`raw_decode`; their decode functions return bytes. ```python load("base64", base64_encode="encode", base64_decode="decode") load("hex", hex_encode="encode", hex_decode="decode") load("base32", b32_encode="encode") def main(*args, **kwargs): enc = base64_encode("user:pass") print("base64:", enc, "->", base64_decode(enc)) print("hex:", hex_encode("hi")) print("base32:", b32_encode("hi")) ``` ## crypto {#starlark-lib-crypto} Hashes, HMAC, AWS request signing, and random values. * Hashes: `sha1`, `sha256`, `sha512`, and `md5` accept strings and return hex. * HMAC: `hmac_sha1`/`hmac_sha256`/`hmac_sha512(key, data, output="hex")` and the generic `hmac(algorithm, key, data, output="hex")`; `output` may be `"hex"`, `"base64"`, `"base64_raw"`, or `"bytes"`. * `sign_v4(method, url, headers, body, access_key, secret_key, region, service, session_token=None, timestamp=None)`: returns the AWS Signature V4 headers (`Authorization`, `X-Amz-Date`, `X-Amz-Content-Sha256`, and `X-Amz-Security-Token` when a session token is given). * `random_bytes(n)` / `random_hex(n)`: cryptographically secure random output. ```python load("crypto", "sha256", "hmac_sha256", "random_hex", "sign_v4") def main(*args, **kwargs): print("sha256:", sha256("test")) print("hmac:", hmac_sha256("key", "message")) print("random:", random_hex(8)) headers = sign_v4("GET", "https://ec2.us-east-1.amazonaws.com/?Action=DescribeInstances", {}, "", "AKIDEXAMPLE", "EXAMPLESECRET", "us-east-1", "ec2") print("signed headers:", sorted(headers.keys())) ``` ## jwt {#starlark-lib-jwt} `encode(claims, key, algorithm="HS256", headers=None)`, `decode(token, key, algorithms=None)` (verifies the signature), and `decode_unverified(token)` (returns `{"header": ..., "claims": ...}` without verification). HS, RS, PS, ES, and EdDSA algorithm families are supported; the `none` algorithm is rejected. ```python load("jwt", jwt_encode="encode", jwt_decode="decode", "decode_unverified") def main(*args, **kwargs): token = jwt_encode({"sub": "runzero", "exp": 1893456000}, "example-signing-key") print("claims:", jwt_decode(token, "example-signing-key")) print("header:", decode_unverified(token)["header"]) ``` ## gzip {#starlark-lib-gzip} `compress(data)` and `decompress(data)` operate on bytes and return bytes. Decompression is bounded at 1 GiB of output and a 500:1 expansion ratio to guard against decompression bombs. ```python load("gzip", gzip_compress="compress", gzip_decompress="decompress") def main(*args, **kwargs): original = bytes("Hello, runZero!") compressed = gzip_compress(original) print("compressed length:", len(compressed)) print("round trip:", gzip_decompress(compressed)) ``` ## flatten_json {#starlark-lib-flatten-json} `flatten(input, separator="_", root_keys_to_ignore=None)` flattens nested structures into a single-level dict. For building `customAttributes`, prefer [`to_custom_attributes`](custom-integration-starlark-libraries.md#starlark-lib-types), which also stringifies values and applies the platform limits. ```python load("flatten_json", "flatten") def main(*args, **kwargs): flat = flatten({"a": {"b": 1, "c": 2}, "d": 3}) print("flattened:", flat) # {"a_b": 1, "a_c": 2, "d": 3} ``` ## runzero.progress {#starlark-lib-progress} Surface progress and log lines from a running task in the runZero console. * `report(pct, msg="")`: clamps the percentage between 0 and 100 and coalesces calls within 250 ms; messages are truncated to 256 bytes. * `info(msg)` / `warn(msg)`: emit log lines through the task logger. ```python load("runzero.progress", progress_report="report", progress_info="info", progress_warn="warn") def main(*args, **kwargs): progress_report(0, "starting sync") progress_info("fetched page 1") progress_warn("retrying after 429") progress_report(100, "done") ``` ## report_assets, report_asset, and pager (predeclared) {#starlark-lib-report-assets} Stream `ImportAsset` values to runZero while the script runs, instead of returning them all from `main`. No `load()` is required. See [streaming large imports](custom-integration-scripts.md#report-assets) for the pagination pattern. * `report_asset(asset)`: reports exactly one asset (or `None`, a no-op) and returns `1` or `0`. Streaming batches internally, so report per record; accumulating a page into a list first gains nothing. * `report_assets(...)`: accepts a single asset, several positional assets, or a list/tuple, returning the count. * `pager(label="pages", limit=0)`: a loop guard for pagination. `p.next()` is the `while` condition; reaching the page ceiling ([CONFIG `maxPages`](custom-integration-scripts.md#config), default 1,000,000) is an error naming the label, never a silent stop. `limit=` may lower the effective ceiling but not raise it, and `p.page` is the 1-based current page. * `max_pages()`: the effective page ceiling. ```python load("runzero.types", "ImportAsset") def main(*args, **kwargs): a = ImportAsset(id="asset-1") b = ImportAsset(id="asset-2") report_asset(a) # one asset; the preferred streaming pattern report_assets(a, b) # several positional assets n = report_assets([a, b]) # a list, returning the count print("reported", n) p = pager(label="devices") while p.next(): print("page", p.page) break # a real script would fetch until the API runs dry return None ``` ## socket {#starlark-lib-socket} Raw TCP, UDP, and TLS connections for simple line- or byte-oriented protocols. * `tcp(host, port, timeout=30, tls=None, insecure_skip_verify=False, server_name=None)`: `tls=` accepts a bool or the same dict of TLS overrides as the [`http` module](custom-integration-starlark-libraries.md#starlark-lib-http) (`insecure`, `server_name`, `ca_pem`, `client_cert_pem`, `client_key_pem`, `thumbprints`), so `kwargs.get_http_tls()` output can be splatted straight into a socket. * `udp(host, port, timeout=30)` * `tls(host, port, timeout=30, insecure_skip_verify=False, server_name=None, tls=None)` Sockets expose `send(data, timeout=None)`, `recv(max=..., timeout=None)` (max defaults to 16 MiB, per-call ceiling 200 MiB), `recv_exact(n, ...)`, `recv_line(...)` and `recv_until(delim, ...)` (max defaults to 1 MiB), `starttls(...)` (TCP only, also accepts `tls=`), `set_timeout(seconds)`, and `close()`, plus the attributes `local_addr`, `remote_addr`, `is_tls`, `closed`, and `network`. Always `close()` sockets when done. On an Explorer task, sockets can reach the internal addresses visible to that Explorer, the same as the direct-protocol modules, so scope the Explorer and the credential to the intended system. On console-hosted runs, private and internal addresses are blocked for every module, sockets included. ```python load("socket", "tls") def main(*args, **kwargs): host = kwargs.get("host", "example.com") sock = tls(host, 443, timeout=10) print("connected to:", sock.remote_addr, "tls:", sock.is_tls) sock.close() ``` ## Direct-protocol modules {#starlark-lib-protocols} For sources without a REST API, these modules open authenticated connections from the Explorer the task runs on, and can reach internal addresses visible to that Explorer. They return session objects. Always `close()` them when done: a script can hold at most 256 open connections and sessions at once, and network reads across every module share a 4 GiB per-run budget. Scripts using these modules should declare [`"validationMode": "compile"`](custom-integration-scripts.md#config), since `--validate` cannot dial a real endpoint. The examples below read their targets from `--kwargs` so they can run against a test system: ```bash runzero script --filename example.star --kwargs host=192.0.2.10 --kwargs username=svc --kwargs password=... ``` ### runzero.ssh `dial(host, username, password=None, private_key=None, private_key_passphrase=None, host_key=None, host_keys=None, insecure_ignore_host_key=False, port=22, timeout=30)`. Host keys are never trusted on first use: pin the expected host key(s), in `authorized_keys` or PEM form (for example from `ssh-keyscan`), or explicitly pass `insecure_ignore_host_key=True`. Combining pins with the insecure flag is an error. Password auth also answers keyboard-interactive prompts, and timeouts clamp at 600 seconds. Sessions provide: * `run(command, stdin=None, timeout=0)`: returns `(stdout, stderr, exit_code)`; a `timeout` of 0 uses the session timeout. `stdin` is capped at 1 MiB and each output stream at 16 MiB; `run_command` is an alias. * `stream(command, stdin=None, timeout=0)`: starts a long-lived remote command and returns a stream with `send(data)`, `recv(max=..., timeout=None)` (max defaults to 1 MiB; `b""` on EOF), `close_stdin()`, `close()`, and the attributes `exit_code` (`None` until exit), `stderr`, and `closed`. Output is consumed incrementally with no per-stream cap, so a stream can process more than `run` can return. * `open_unix(path)` / `open_tcp(host, port)`: port forwarding to a remote Unix socket or a TCP address reachable from the remote host, returning a full [socket](custom-integration-starlark-libraries.md#starlark-lib-socket) object. This is how a script reaches a service that only listens locally on the remote system, such as a management socket or a loopback-only listener. Sessions also expose `host`, `port`, `username`, and `close()`. ```python load("runzero.ssh", ssh_dial="dial") def main(*args, **kwargs): host = kwargs.get("host") if not host: print("pass --kwargs host=... --kwargs username=... --kwargs password=... to run") return None session = ssh_dial(host=host, username=kwargs["username"], password=kwargs.get("password"), insecure_ignore_host_key=True) stdout, stderr, code = session.run("uname -a") session.close() print("exit:", code, "output:", stdout) ``` ### runzero.smb `dial(host, username, password="", domain="", nt_hash=None, port=445, timeout=30)` accepts `DOMAIN\user` shorthand in `username`, and timeouts clamp at 600 seconds. Sessions provide `list_shares()` and `mount(share)`; a mounted share has `read(path, limit=0)` (single reads capped at 64 MiB), `list(path="/")`, `stat(path)`, `exists(path)`, `unmount()`, `close()`, and a `name` attribute. Access refusals are values, not errors: `mount()` and `list()` return `None` on access denied (distinct from an empty list), so a script can skip a share it cannot read and keep going. `read()` and `stat()` still raise; `exists()` is `stat`'s soft counterpart. ```python load("runzero.smb", smb_dial="dial") def main(*args, **kwargs): host = kwargs.get("host") if not host: print("pass --kwargs host=... --kwargs username=... --kwargs password=... to run") return None session = smb_dial(host=host, username=kwargs["username"], password=kwargs["password"]) print("shares:", session.list_shares()) session.close() ``` ### runzero.winrm `dial(host, username, password, port=0, https=False, insecure_skip_verify=False, ca_cert=None, auth="ntlm", timeout=60)` (port 0 selects the default, 5985 or 5986 with `https=True`). Sessions provide `run(command)` (alias `run_command`), `run_powershell(script)` (alias `run_ps`), and `wql(query, namespace="root/cimv2")`, plus the attributes `host`, `port`, and `https`. ```python load("runzero.winrm", winrm_dial="dial") def main(*args, **kwargs): host = kwargs.get("host") if not host: print("pass --kwargs host=... --kwargs username=... --kwargs password=... to run") return None session = winrm_dial(host, kwargs["username"], kwargs["password"]) stdout, stderr, code = session.run_powershell("Get-ComputerInfo | Select-Object OsName") session.close() print(stdout) ``` ### runzero.wmi `dial(host, username, password, transport="tcp", namespace="//./root/cimv2", target_name="", timeout=60, port=0, smb_port=445)` (port 0 selects the default, 135). Sessions provide `query(query, limit=0, page=100)` returning a list of dicts. ```python load("runzero.wmi", wmi_dial="dial") def main(*args, **kwargs): host = kwargs.get("host") if not host: print("pass --kwargs host=... --kwargs username=... --kwargs password=... to run") return None session = wmi_dial(host, kwargs["username"], kwargs["password"]) rows = session.query("SELECT Caption, Version FROM Win32_OperatingSystem") session.close() print(rows) ``` ### runzero.sql `connect(driver, dsn, timeout=30, max_open_conns=4, max_idle_conns=4, conn_max_lifetime=0)` with drivers `postgres`, `mysql`, and `mssql` (and common aliases). Sessions provide `query(query, params=None, limit=100000, timeout=0)` returning a list of dicts (row limit up to 1,000,000), and `exec(query, params=None, timeout=0)` returning a dict with `rows_affected` and `last_insert_id`. A `timeout` of 0 uses the session timeout; timeouts clamp at 600 seconds. DSNs are restricted to network connections: file-reading options (such as `sslkey`, `passfile`, or `allowAllFiles`) and Unix-socket or named-pipe transports are rejected. ```python load("runzero.sql", sql_connect="connect") def main(*args, **kwargs): dsn = kwargs.get("dsn") if not dsn: print("pass --kwargs dsn=postgres://user:pass@host:5432/db to run") return None db = sql_connect("postgres", dsn) rows = db.query("SELECT version()") db.close() print(rows) ``` --- docs/dragos.md --- title: Dragos --- runZero imports assets and vulnerabilities from the ((Dragos)) API to help expand your OT visibility. ## Getting started with Dragos {#dragos-getting-started} To set up the Dragos integration: 1. Generate a Dragos API ID and API Secret with these privileges: * asset:read * detection:read * vulnerability:read 1. Configure the Dragos credential in runZero. 1. Activate the integration to pull your data into runZero. ## Step 1: Generate a Dragos API ID and API Secret {#dragos-step1} 1. Log into the Dragos console, go to Admin, then Users. Under the user, click the Add New API Key button. 1. In the Generate New API Key box, name your API ID and API Secret, then click Generate Key. 1. Copy the ID and Secret. You'll need both in the next step. ## Step 2: Add the Dragos API ID and API Secret to runZero {#dragos-step2} 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero. 1. Choose **Dragos API ID & Secret** from the list of credential types. 1. Name the credential, for example `Dragos`. 1. Fill in the credential fields: * **Dragos API ID** is the API ID from Step 1. * **Dragos API Secret** is the API Secret from Step 1. * **Dragos API URL** is the URL of your Dragos instance, without a trailing slash. For example, `https://my.instance.dragos.cloud`. * **Insecure** allows authentication to untrusted endpoints. Enabling it disables certificate validation, so use it with caution. 1. If other organizations should be able to use this credential, select the _Make this a global credential_ option. Otherwise, you can grant access per organization. 1. Verify and save the credential. If the URL is an internal IP address, verification is unsupported, but you can still save the credential and use the integration from an Explorer. ## Step 3: Choose how to configure the Dragos integration {#dragos-step3} You can run the Dragos integration as either a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during a scan task. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. ## Step 4: Set up and activate the integration to sync data {#dragos-step4} With your Dragos credential saved, set up a connector task or scan probe to sync your data. ### Step 4a: Configure the Dragos integration as a connector task {#dragos-step4a} A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new Dragos-only assets. 1. Activate a connection to [Dragos](https://console.runzero.com/ingest/dragos). All third-party connections are also available from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 1. Choose the credentials you added earlier. If they are missing from the list, confirm that they have access to the organization you are working in. 1. Name the task, for example `Dragos Sync` (optional). 1. Describe the task (optional). 1. Choose the Explorer that runs this connector task (optional). 1. Choose the site to add your assets to. Every newly discovered asset is stored in this site. 1. To leave out assets that runZero has not scanned, select the **Exclude assets that cannot be merged into an existing asset** option. By default, the integration includes assets that runZero has not scanned. 1. To skip importing vulnerabilities detected on Dragos assets, select the **Disable importing vulnerabilities from the Dragos inventory** option. By default, the integration imports both assets and vulnerabilities. 1. Choose the combination of **Priorities**, **Severities**, **Tags**, and **Subnets** to filter assets by. These match the filter criteria available in Dragos. 1. Schedule the sync to run once or on a recurring schedule. The schedule starts on the date and time you set. 1. Activate the connection. The sync runs on the schedule you set, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next sync will occur. ### Step 4b: Configure the Dragos integration as a scan probe {#dragos-step4b} When the Dragos integration runs as a scan probe, the runZero Explorer pulls your Dragos assets into the runZero Console. In a new or existing scan configuration: * Set the _DRAGOS_ option to _Yes_ in the _Probes and SNMP_ tab, and adjust the default options if needed. * Set the correct _DRAGOS_ credential to _Yes_ in the _Credentials_ tab. ## Step 5: View Dragos assets {#dragos-step5} After a successful sync, [open your inventory](https://console.runzero.com/inventory) to see your Dragos assets. They show a Dragos icon in the **Source** column. To filter for Dragos assets, run this query: * [View all Dragos assets](https://console.runzero.com/inventory?search=source%3Adragos): ``` source:Dragos ``` Click into any asset to see its attributes, including those gathered from Dragos. For more ways to filter, see the [asset inventory search keywords](search-query-assets.md). --- docs/google-cloud-platform.md --- title: "Google Cloud Platform" aliases: [ "/docs/gcp/" ] --- The ((Google Cloud Platform)) (((GCP))) integration syncs your GCP cloud inventories with runZero to give you visibility into your cloud assets. runZero also integrates with other cloud providers, such as [Microsoft Azure](azure.md) and [Amazon AWS](aws.md). As with other integrations, you add the [credentials](scanning-credentials.md) needed to authenticate to GCP and set up a connector in runZero. runZero pulls in GCP compute instance VMs along with their GCP attributes, which you can view on each asset. The integration supports these GCP asset types: - Compute Engine instances - Load balancers - Cloud SQL ## Requirements {#gcp-requirements} Before you begin, you need: - A [Google Cloud service account](https://cloud.google.com/iam/docs/creating-managing-service-accounts#creating) with the `Compute Network Viewer` and `Cloud SQL Viewer` [roles](https://cloud.google.com/iam/docs/understanding-roles). - Grant this service account access to each project you want the integration to gather data from. - A [downloaded key](https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating) for the GCP service account. - These [GCP APIs enabled](https://cloud.google.com/endpoints/docs/openapi/enable-api) on each project: - Compute Engine - Cloud SQL Admin ## How to set up the Google Cloud Platform integration Work through these steps in order: - [Create a Google Cloud Platform credential](#step-1-create-google-cloud-platform-credentials) in runZero. - Choose whether to run the integration as [a scan probe or connector task](#step-2-choose-how-to-configure-the-gcp-integration). - [Activate the integration](#step-3-activate-the-google-cloud-platform-integration) for Google Cloud Platform. - [View your GCP assets](#step-4-view-your-google-cloud-platform-assets). ## Step 1: Create Google Cloud Platform credentials 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) and click **Add Credential**. 2. From the **Credentials type** dropdown, choose **GCP Service Account Key**. 3. Name the credential, for example `GCP`. 4. Set the **Include all projects** toggle to _Yes_ to gather asset data from every GCP project the service account can access. With the toggle at _No_, the integration gathers asset data only from the project named in the key file. 5. Click **Choose file** and upload the service account key file you downloaded from GCP. 6. If other organizations should be able to use this credential, select the **Make this a global credential** option. Otherwise, you can grant access per organization. 7. Save the credential. ## Step 2: Choose how to configure the GCP integration You can run the GCP integration as either a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during a scan task. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. ## Step 3: Activate the Google Cloud Platform integration With your GCP credential saved, set up a connector task or scan probe to sync your data. ### Step 3a: Configure the GCP integration as a connector task 1. [Activate a connection to GCP](https://console.runzero.com/ingest/gcp/). All third-party connections are also available from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 2. Choose the credential you added earlier. If it is missing from the list, confirm that the credential has access to the organization you are working in. 3. Name the task, for example `Google Cloud Platform sync`. 4. Schedule the sync to run once or on a recurring schedule. The schedule starts on the date and time you set. 5. Choose the site to add your assets to, either an existing site or a new one created when the sync runs. Sites group related assets, and you can have runZero automatically generate a new site per GCP project by selecting that option in the task configuration. 6. To leave out assets that runZero has not scanned, switch the **Exclude unknown assets** toggle to _Yes_. By default, the integration includes assets that runZero has not scanned. 7. Activate the connection. The sync runs on the schedule you set, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next sync will occur. ### Step 3b: Configure the GCP integration as a scan probe 1. Create a new scan task, or select a future or recurring scan task from your [Tasks page](https://console.runzero.com/tasks). 2. Add or update the scan parameters as needed. 3. On the Probes and SNMP tab, choose any additional probes to include, set the GCP toggle to _Yes_, and adjust the default options if needed. 4. On the Credentials tab, set the GCP toggle to _Yes_ for the credential you want to use. 5. Click **Initialize scan** to save the scan task. It runs immediately or at the scheduled time. ## Step 4: View your Google Cloud Platform assets After a successful sync, [open your inventory](https://console.runzero.com/inventory) to see your GCP assets. They show a Google icon in the **Source** column. To filter for GCP assets, run this query: * [View all GCP assets](https://console.runzero.com/inventory?search=source%3Agcp): ``` source:gcp ``` Click into any asset to see its attributes, including those returned by GCP. For more ways to filter, see the [asset inventory search keywords](search-query-assets.md). ## Troubleshooting {#gcp-troubleshooting} If you are having trouble with this integration, the questions and answers below may help. ### Why is the Google Cloud Platform integration unable to connect? 1. Check whether the GCP integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the GCP integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue --- docs/google-workspace.md --- title: Google Workspace --- runZero imports ((Google Workspace)) data to sync and enrich your asset inventory and to give you visibility into users and groups. With Google Workspace data in runZero, unmanaged assets on your network are easier to find. The integration supports the ChromeOS, Mobile, and Endpoint [registered asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types). ## Requirements {#googleworkspace-requirements} * Use an existing [Google service account](https://cloud.google.com/iam/docs/creating-managing-service-accounts#creating) or create one in whichever project suits you best. * [Create and download a key](https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating) for the service account, and save the JSON file. * Enable the `Admin SDK` and `Cloud Identity` APIs for the project. Use the search box in the [API Library](https://console.cloud.google.com/apis/library) to find each API and enable it. * Enable domain-wide delegation in the [Google Workspace console](https://admin.google.com/ac/owl/domainwidedelegation). * Add a new API client, using the service account's unique numeric ID as the Client ID. * Enable these OAuth scopes for the API client: ``` https://www.googleapis.com/auth/admin.directory.user.readonly, https://www.googleapis.com/auth/admin.directory.group.readonly, https://www.googleapis.com/auth/admin.directory.device.mobile.readonly, https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly, https://www.googleapis.com/auth/cloud-identity.devices.readonly ``` * Or enter each OAuth scope individually: * `https://www.googleapis.com/auth/admin.directory.user.readonly` * `https://www.googleapis.com/auth/admin.directory.group.readonly` * `https://www.googleapis.com/auth/admin.directory.device.mobile.readonly` * `https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly` * `https://www.googleapis.com/auth/cloud-identity.devices.readonly` ## How to set up the Google Workspace integration Work through these steps in order: * [Create a Google Workspace credential](#step-1-create-a-google-workspace-credential) in runZero. * Choose whether to run the integration as [a scan probe or connector task](#step-2-choose-how-to-configure-the-google-workspace-integration). * [Activate the connection](#step-3-activate-the-google-workspace-integration) for Google Workspace. * [View your results](#step-4-view-google-workspace-assets). ## Step 1: Create a Google Workspace credential 1. Go to the [Credentials page](https://console.runzero.com/credentials) and click **Add Credential**. 2. From the **Credentials type** dropdown, choose **Google Workspace Client Secret**. 3. Name the credential, for example `Google Workspace`. 4. In the _Admin account email_ field, enter the email address of an administrator account with access to the assets, users, or groups you want to import. 5. Optionally, enter a _Customer ID_ to import from an organization other than the one your administrator account belongs to. By default, runZero uses the Customer ID associated with the service account. 6. Click **Choose file** and upload the service account key file you downloaded from Google Workspace. 7. If other organizations should be able to use this credential, select the **Make this a global credential** option. Otherwise, you can grant access per organization. 8. Save the credential. ## Step 2: Choose how to configure the Google Workspace integration You can run the Google Workspace integration as either a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during a scan task, and is useful when you run a self-hosted runZero Platform and your console cannot reach Google Workspace. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. In most situations, a scheduled connection is the easier way to sync your data from Google Workspace. ## Step 3: Activate the Google Workspace integration With your Google Workspace credential saved, set up a connector task or scan probe to sync your data. ### Step 3a: Configure the Google Workspace integration as a connector task A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero organizes the data. 1. [Activate a connection to Google Workspace](https://console.runzero.com/ingest/googleworkspace/). All third-party connections are also available from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 2. Choose the credential you added earlier. If it is missing from the list, confirm that the credential has access to the organization you are working in. 3. Name the task, for example `Google Workspace sync`. 4. Schedule the sync to run once or on a recurring schedule. The schedule starts on the date and time you set. 5. Choose the site to add your assets to, either an existing site or a new one created when the sync runs. Sites group related assets. 6. To leave out assets that runZero has not scanned, switch the **Exclude unknown assets** toggle to _Yes_. By default, the integration includes assets that runZero has not scanned. 7. Activate the connection. The sync runs on the schedule you set, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next sync will occur. ### Step 3b: Configure the Google Workspace integration as a scan probe 1. Create a new scan task, or select a future or recurring scan task from your [Tasks page](https://console.runzero.com/tasks). 2. Add or update the scan parameters as needed. 3. On the Probes and SNMP tab, choose any additional probes to include, set the GoogleWorkspace toggle to _Yes_, and adjust the default options if needed. 4. On the Credentials tab, set the GoogleWorkspace toggle to _Yes_ for the credential you want to use. 5. Click **Initialize scan** to save the scan task. It runs immediately or at the scheduled time. ## Step 4: View Google Workspace assets After a successful sync, [open your inventory](https://console.runzero.com/inventory) to see your Google Workspace assets. They show a Google Workspace icon in the **Source** column. To filter for Google Workspace assets, run these queries: * [View all Google Workspace assets](https://console.runzero.com/inventory?search=source%3Agoogleworkspace): ``` source:googleworkspace ``` * [View runZero assets not connected to Google Workspace](https://console.runzero.com/inventory?search=source%3Arunzero%20and%20not%20source%3Agoogleworkspace): ``` source:runzero AND NOT source:googleworkspace ``` Click into any asset to see its attributes, including those returned by Google Workspace.
Besides enriching asset inventory data, the Google Workspace integration imports details about users and groups. Go to Inventory > Users or Inventory > Groups to view them, and use the query source:googleworkspace to filter your results.
To search and filter those users, see the [Users inventory keywords](search-query-users.md). ## Troubleshooting {#google-workspace-troubleshooting} If you are having trouble with this integration, the questions and answers below may help. ### Why is the Google Workspace integration unable to connect? 1. Check whether the Google Workspace integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the Google Workspace integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue --- docs/microsoft-365-defender.md --- title: Microsoft 365 Defender --- runZero imports ((Microsoft 365 Defender)) data to sync and enrich your asset, software, and vulnerability inventory. With ((Microsoft 365)) ((Defender)) data in runZero, assets missing EDR protection are easier to find. ## Getting started {#microsoft-365-defender-getting-started} To set up the Microsoft 365 Defender integration: 1. Configure Microsoft 365 Defender to allow API access for runZero. 2. Add the Microsoft 365 Defender credential in runZero. 3. Choose whether to run the integration as [a scan probe or connector task](integrations-inbound.md#integration-probe-connector). 4. Activate the Microsoft 365 Defender integration to sync your data with runZero. ## Requirements {#microsoft-365-defender-requirements} Before you set up the Microsoft 365 Defender integration: * Make sure you have access to the Microsoft Azure portal. ## Step 1: Register an Azure application for Microsoft 365 Defender API access {#microsoft-365-defender-api-access} runZero can authenticate to the Microsoft 365 Defender API with a client secret. To set that up, register an application with Microsoft 365 Defender API access. 1. Sign in to the Microsoft Azure portal. 2. Go to _App registrations_ and click _+ New registration_. * Provide a name. * Select the supported account types. * Optionally add a redirect URI. 3. Click _Register_. 4. After the application is created, you should see the Overview dashboard. Record these values: * Application (client) ID * Directory (tenant) ID 5. On the application's details page, go to _Manage > API permissions_ and choose _+ Add a permission_. 6. Select the second tab, _APIs my organization uses_, to view the available APIs. 7. Select `WindowsDefenderATP` from the list of Microsoft APIs. 8. Select the `Application permissions` permission type to configure a _client secret_. 9. Search for and select these required permissions: * Windows Defender ATP API permissions: * `Machine.Read.All` * `Software.Read.All` * `Vulnerability.Read.All` 10. Click _Add permissions_ to save them to the application. 11. Click _Grant admin consent_ to approve the permissions for the application. 12. Generate the client secret from the app management pages: * Go to _App registrations_ and select the application you created. * Go to _Certificates & secrets_ and click _+ New client secret_. * Enter a description. * Select the expiration. * Click _Add_ to create the client secret, and save the client secret value. ## Step 2: Add an Azure Client Secret credential to runZero {#microsoft-365-defender-credential} This credential type can sync all resources in a single directory, across multiple subscriptions. 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero and click _Add Credential_. 2. Name the credential, for example `Azure Client Secret`. 3. Choose _Azure Client Secret_ from the list of credential types. 4. Fill in the credential fields: * **Azure application (client) ID** is the unique ID of the registered application. Find it in the Azure portal under _App registrations_ after selecting the application. * **Azure client secret** is generated under _App registrations_: select your application, go to _Manage > Certificates & secrets_, and click _New client secret_. * **Azure directory (tenant) ID** is the unique ID of the tenant. It is also in the Azure portal under _App registrations_ after selecting the application. 5. If other organizations should be able to use this credential, select the _Make this a global credential_ option. Otherwise, you can grant access per organization. 6. Save the credential. ## Step 3: Choose how to configure the Microsoft 365 Defender integration You can run the Microsoft 365 Defender integration as either a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during a scan task. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. ## Step 4: Set up and activate the Microsoft 365 Defender integration to sync data With your Microsoft 365 Defender credential saved, set up a connector task or scan probe to sync your data. ### Step 4a: Configure the Microsoft 365 Defender integration as a connector task A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new Microsoft 365 Defender-only assets. 1. Activate a [connection to Microsoft 365 Defender](https://console.runzero.com/ingest/ms365defender). All third-party connections are also available from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 2. Choose the credential you added earlier. If it is missing from the list, confirm that it has access to the organization you are working in. 3. Name the task, for example `Microsoft 365 Defender sync`. 4. Schedule the sync to run once or on a recurring schedule. The schedule starts on the date and time you set. 5. Under **Task configuration**, choose the site to add your assets to. 6. To leave out assets that runZero has not scanned, switch the **Exclude unknown assets** toggle to _Yes_. By default, the integration includes assets that runZero has not scanned. 7. To include assets that have stopped reporting to the Microsoft 365 Defender service, switch the **Include inactive assets** toggle to _Yes_. By default, the integration leaves out assets marked as inactive. 8. Activate the connection. The sync runs on the schedule you set, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next sync will occur. ### Step 4b: Configure the Microsoft 365 Defender integration as a scan probe 1. Create a new scan task, or select a future or recurring scan task from your [Tasks page](https://console.runzero.com/tasks). 2. Add or update the scan parameters as needed. 3. On the Probes and SNMP tab, choose any additional probes to include, set the Defender365 toggle to `Yes`, and adjust the default options if needed. 4. On the Credentials tab, set the MS365Defender toggle to `Yes` for the credential you want to use. 5. Click _Initialize scan_ to save the scan task. It runs immediately or at the scheduled time. ## Step 5: View Microsoft 365 Defender assets After a successful sync, [open your inventory](https://console.runzero.com/inventory) to see your Microsoft 365 Defender assets. They show an Active Directory icon in the **Source** column. To filter for Microsoft 365 Defender assets, run these queries: * [View all Microsoft 365 Defender assets](https://console.runzero.com/inventory?search=source%3Ams365defender): ``` source:ms365defender ``` * [View runZero assets not connected to Microsoft 365 Defender](https://console.runzero.com/inventory?search=source%3Arunzero%20and%20not%20source%3Ams365defender): ``` source:runzero AND NOT source:ms365defender ``` Click into any asset to see its attributes, including those returned by Microsoft 365 Defender. To search and filter the vulnerabilities this integration imports, see the [vulnerability instance inventory keywords](search-query-vulnerabilities.md). ## Filtering Microsoft 365 Defender assets {#microsoft-365-defender-filtering} You can apply an optional filter to Microsoft 365 Defender integration tasks. runZero uses the Microsoft Graph $filter query parameter to filter assets. A filter follows the syntax ` [operator] `, and you can combine expressions with `and` or `or` for more complex filtering. ### Properties {#microsoft-365-defender-filtering-properties} You can filter on any property that runZero imports from Microsoft 365 Defender. Some examples: | Defender Property | runZero Attribute | Description | Example | | ------------------- | ----------------------------------- | --------------------------------------------------------------------- | ------------------- | | `computerDNSName` | @ms365defender.dev.computerDNSname | The hostname of the device | EXPLORER-01 | | `osPlatform` | @ms365defender.dev.osPlatform | The operating system of the device | Windows11, Android | | `heatlhStatus` | @ms365defender.dev.heatlhStatus | The health status of the Defender agent that is installed | Active, Inactive | | `isAADJoined` | @ms365defender.dev.isAADJoined | Boolean value specifying whether the device is registered in Azure AD | true, false | | `managedBy` | @ms365defender.dev.managedBy | Description of how the device is managed | Intune ### Operators {#microsoft-365-defender-filtering-operators} Common operators in a Microsoft 365 Defender filter: - Equal to (`eq`) - Not equal to (`ne`) - Has (`has`) - Less than (`lt`) - Greater than (`gt`) - Less than or equal to (`le`) - Greater than or equal to (`ge`) Common functions in a Microsoft 365 Defender filter follow the syntax `function(, )`: - Starts with (`startswith`) - Ends with (`endswith`) - Contains (`contains`) ### Example filters {#microsoft-365-defender-filtering-examples} | Search Filter | Description | | ------------------------------------------------------------| -----------------------------------------------------------------------| | `not(osPlatform eq 'Android')` | Import all assets except those with an Android operating system | | `not(osPlatform eq 'Android') and not(osPlatform eq 'iOS')` | Import all assets except those with an Android or iOS operating system | | `startswith(computerDNSname, 'PROD')` | Import all devices with a hostname that starts with PROD | | `not(startswith(computerDNSname, 'DEV'))` | Import all devices except those with a hostname that starts with DEV | ## Troubleshooting {#m365defender-troubleshooting} If you are having trouble with this integration, the questions and answers below may help. ### Why is the Microsoft 365 Defender integration unable to connect? 1. Check whether the Microsoft 365 Defender integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the Microsoft 365 Defender integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue --- docs/microsoft-active-directory.md --- title: Microsoft Active Directory aliases: ["/docs/ldap/"] --- runZero integrates with Microsoft Active Directory (AD) over ((LDAP)) to sync and enrich your asset inventory and to show you domain users and groups. With your AD data in runZero, assets that aren't part of your domain are easier to find. ## Getting started {#ldap-getting-started} To set up the Active Directory integration: 1. Add the AD credential in runZero. 2. Choose whether to run the integration as [a scan probe or connector task](integrations-inbound.md#integration-probe-connector). 3. Activate the Active Directory integration to sync your data with runZero. ## Requirements {#ldap-requirements} You need credentials for an LDAP account. ## Step 1: Add the LDAP credential to runZero 1. Go to the [Add credential page](https://console.runzero.com/credentials/new) in runZero and name the credential, like `LDAP`. 2. Choose **LDAP Username & Password** from the list of credential types. 3. Provide the following information: * **LDAP username**: The username the integration uses to sign in. The account doesn't need any special permissions. runZero accepts these username formats: * Distinguished Name (DN): `CN=[username],CN=Users,DC=[domain],DC=[tld]` * User Principal Name (UPN): `[username]@[domain].[tld]` * Domain\Username: `[domain]\[username]` * **LDAP password**: The password for that username. * **LDAP base DN**: The base distinguished name for LDAP searches, in distinguished name format: `DC=[domain],DC=[tld]`. runZero imports only entities underneath this base DN. * **LDAP URL**: The URL for your LDAP server, as `IP[:port]` or `hostname.domain.tld[:port]`. It must begin with `ldap://` (for insecure LDAP connections) or `ldaps://` (for secure LDAP connections). For example: `ldaps://ad.example.com:636` * **LDAP insecure**: Set this to _Yes_ to attempt authentication without a verified thumbprint. By default, runZero tries LDAPS first, then falls back to LDAP+StartTLS, then LDAP. LDAP without StartTLS only works when this toggle is _Yes_. * **LDAP thumbprints** (optional): A set of `IP[:port]=SHA256:B64HASH` or `hostname.domain.tld=SHA256:B64HASH` pairs to trust for authentication. * To get the TLS thumbprint, scan your LDAP server with runZero. The [TLS fingerprints service attribute report](https://console.runzero.com/reports/analysis/sattr?f=tls.fp.sha256&sf=protocol&sfv=http%09tls&t=Service%20Attribute%20Report%20[tls.fp.sha256]) lists every fingerprint seen so far. Thumbprints for self-signed certificates only work with LDAPS. To use LDAP+StartTLS with a self-signed certificate, set the **Insecure** option to `Yes`. * If _LDAP insecure_ is _No_ and you provide no thumbprints: * With a self-signed certificate, the connection fails because the certificate chain can't be verified. * With a valid certificate from a public CA, the connection works without thumbprints. 4. To let all other organizations use this credential, select the **Make this a global credential** option. Otherwise, you can configure access per organization. 5. Save the credential. ## Step 2: Choose how to configure the Active Directory integration You can run the Active Directory integration as either a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during a scan task. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. ## Step 3: Set up and activate the Active Directory integration to sync data With your Active Directory credential saved, set up a connector task or a scan probe to sync your data. ### Step 3a: Configure the Active Directory integration as a connector task A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new LDAP-only assets. 1. Activate a [connection to Active Directory](https://console.runzero.com/ingest/ldap). You can reach every third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 2. Choose the credential you added earlier. If it isn't listed, make sure it has access to the organization you're currently in. 3. Enter a name for the task, like `LDAP sync`. 4. Schedule the sync to run once or on a recurring schedule. The schedule starts on the date and time you set. 5. Under **Task configuration**, choose the site to add your assets to. 6. To leave out assets that runZero has not scanned, switch the **Exclude unknown assets** toggle to _Yes_. By default, the integration includes them. 7. Activate the connection. The sync runs on the schedule you defined, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next sync will occur. ### Step 3b: Configure the Active Directory integration as a scan probe 1. Create a new scan task or select a future or recurring scan task from your [Tasks page](https://console.runzero.com/tasks). 2. Add or update the scan parameters to fit any additional requirements. 3. On the Probes and SNMP tab, choose any additional probes to include, set the LDAP toggle to _Yes_, and change any default options as needed. 4. On the Credentials tab, set the LDAP toggle to _Yes_ for the credential you want to use. 5. Click **Initialize scan** to save the scan task. It runs immediately or at the scheduled time. ## Step 4: View Active Directory assets After a successful sync, [go to your inventory](https://console.runzero.com/inventory) to view your LDAP assets. They show an Active Directory icon in the **Source** column. To filter for LDAP assets, try these queries: * [View all LDAP assets](https://console.runzero.com/inventory?search=source%3Aldap): ``` source:ldap ``` * [View runZero assets not connected to LDAP](https://console.runzero.com/inventory?search=source%3Arunzero%20and%20not%20source%3Aldap): ``` source:runzero AND NOT source:ldap ``` Click into an asset to see the attributes LDAP returned. To write your own queries, start with the [search query syntax](search-query-syntax.md).
The LDAP integration also imports details about users and groups. Go to Inventory > Users or Inventory > Groups to see them.
## Troubleshooting {#microsoft-ad-troubleshooting} If the integration isn't working, start with these checks. ### Why is the Microsoft Active Directory integration unable to connect? 1. Check whether the Microsoft Active Directory integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the Microsoft Active Directory integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue 4. Verify that the integration task runs from an Explorer with access to the Microsoft Active Directory host. --- docs/azure.md --- title: Microsoft Azure aliases: ["/docs/set-up-azure/"] --- runZero integrates with ((Microsoft Azure)) to give you visibility into your cloud assets. The integration imports data through each applicable API to enrich your asset inventory: * [Virtual Machines API](https://docs.microsoft.com/en-us/rest/api/compute/virtual-machines) * [Virtual Machine Scale Sets API](https://docs.microsoft.com/en-us/rest/api/compute/virtual-machine-scale-sets) * [Load Balancers API](https://docs.microsoft.com/en-us/rest/api/load-balancer/load-balancers) * [AzureSQL API](https://docs.microsoft.com/en-us/rest/api/sql/) * [Web Apps API](https://docs.microsoft.com/en-us/rest/api/appservice/web-apps) A sync shows you each asset's OS profile, storage profile, and more. The integration imports assets that are in a running state. ## Getting started {#azure-getting-started} runZero supports these Azure resource types: * Virtual Machines * Virtual Machine Scale Sets * Azure SQL * Azure Cosmos DB * Load Balancers * Function Apps To set up the Azure integration: 1. Configure Azure to allow API access through runZero. 2. Add an Azure credential to runZero. 3. Choose whether to run the integration as [a scan probe or connector task](integrations-inbound.md#integration-probe-connector). 4. Activate the Azure integration to sync your data with runZero. ## Requirements {#azure-requirements} You need access to the Microsoft Azure portal. ## Step 1: Configure Azure to allow API access through runZero 1. Sign in to the Microsoft Azure portal. 2. Go to **Azure Active Directory > App registrations** and click **New registration**. * Provide a name. * Select the supported account types. * Optionally add a redirect URI. 3. Click **Register**. 4. Once the application is created, you should see the **Overview** dashboard. Save the following information: * Application (client) ID * Directory (tenant) ID 5. Give the client access to the subscriptions you want to sync. From the subscription details page, go to **Access Control (IAM)** and select **Add > Add role assignment**. Enter the following: * Role: Reader * Assign access to: User, group, or service principal * Under **Select**, search for the name of the application you created. Click your application to add it to the **Selected members** list below. 6. Click **Save**. 7. Go to **Azure Active Directory > App registrations** and select the application you created. 8. Go to **Certificates & secrets** and click **New client secret**. * Enter a description. * Select the expiration. 9. Click **Add** to create the client secret. Save the following information: * Client secret value ## Step 2: Add the Azure credential to runZero The Azure integration accepts either a client secret or a username and password as its credential. ### Step 2a: Add an Azure Client Secret credential to runZero You can use this credential type to sync all resources in a single directory (across multiple subscriptions). 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero and click **Add Credential**. 2. Provide a name for the credential, like `Azure Client Secret`. 3. Choose **Azure Client Secret** from the list of credential types. 4. Provide the following information: * **Azure application (client) ID**: The unique ID for the registered application. To find it in the Azure portal, go to **Azure Active Directory > App registrations** and select the application. * **Azure client secret**: To generate a client secret, go to **Azure Active Directory > App registrations**, select your application, go to **Certificates & secrets**, and click **New client secret**. * **Azure directory (tenant) ID**: The unique ID for the tenant. To find it in the Azure portal, go to **Azure Active Directory > App registrations** and select the application. * Enable the **All subscriptions** option to sync all resources in your directory. With it enabled, you can list subscription IDs in the **Exclude subscription IDs** text area to leave specific ones out. With it disabled, you can list specific subscription IDs in the **Include subscription IDs** text area. To find a subscription ID in the Azure portal, go to **Subscriptions** and select the subscription. Enter one subscription ID per line in either text area. 5. To let other organizations use this credential, select the _Make this a global credential_ option. Otherwise, you can configure access per organization. 6. Save the credential. ### Step 2b: Add an Azure Username & Password credential to runZero You can use this credential type to sync all resources across directories. Alternatively, add one **Azure Client Secret** credential for each Azure directory you want to sync. 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero and click **Add Credential**. 2. Provide a name for the credential, like `Azure User/Pass`. 3. Choose **Azure Username & Password** from the list of credential types. 4. Provide the following information: * **Azure application (client) ID**: The unique ID for the registered application. To find it in the Azure portal, go to **Azure Active Directory > App registrations** and select the application. * **Azure directory (tenant) ID**: The unique ID for the tenant. To find it in the Azure portal, go to **Azure Active Directory > App registrations** and select the application. * **Azure username**: The username for your Azure cloud account. It can't be a federated user account. * **Azure password**: The password for your Azure cloud account. 5. To let other organizations use this credential, select the _Make this a global credential_ option. Otherwise, you can configure access per organization. 6. Save the credential. ## Step 3: Choose how to configure the Azure integration You can run the Azure integration as either a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during a scan task. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. ## Step 4: Set up and activate the Azure integration to sync data With your Azure credential saved, set up a connector task or a scan probe to sync your data. ### Step 4a: Configure the Azure integration as a connector task A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new Azure-only assets. 1. Activate a [connection to Azure](https://console.runzero.com/ingest/azure). You can reach every third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 2. Choose the credential you added earlier. If it isn't listed, make sure it has access to the organization you're currently in. 3. Enter a name for the task, like `Azure sync`. 4. Schedule the sync to run once or on a recurring schedule. The schedule starts on the date and time you set. 5. Under **Task configuration**, choose the site to add your assets to. runZero stores all newly discovered assets in this site. 6. Under **Service options**, select the services to sync data from. You must choose at least one. 7. To leave out assets that runZero has not scanned, switch the **Exclude unknown assets** toggle to _Yes_. By default, the integration includes them. 8. Activate the connection. The sync runs on the schedule you defined, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next sync will occur. ### Step 4b: Configure the Azure integration as a scan probe 1. Create a new scan task or select a future or recurring scan task from your [Tasks page](https://console.runzero.com/tasks). 2. Add or update the scan parameters to fit any additional requirements. 3. On the Probes and SNMP tab, choose any additional probes to include, set the Azure toggle to _Yes_, and change any default options as needed. 4. On the Credentials tab, set the Azure toggle to _Yes_ for the credential you want to use. 5. Click **Initialize scan** to save the scan task. It runs immediately or at the scheduled time. ## Step 5: View Azure assets After a successful sync, [go to your inventory](https://console.runzero.com/inventory) to view your Azure assets. They show an Azure icon in the **Source** column. To filter Azure assets, try these queries: * [View all Azure assets](https://console.runzero.com/inventory?search=source%3Aazure): ``` source:azure ``` * [View all Azure VMs](https://console.runzero.com/inventory?search=has%3A%22%40azure.vm.vmID%22): ``` has:"@azure.vm.vmID" ``` * [View all Azure virtual machine scale set VMs](https://console.runzero.com/inventory?search=has%3A%22%40azure.vmss.vmID%22): ``` has:"@azure.vmss.vmID" ``` * [View all Azure load balancers](https://console.runzero.com/inventory?search=has%3A%22%40azure.lb.id%22): ``` has:"@azure.lb.id" ``` * [View all AzureSQL instances](https://console.runzero.com/inventory?search=has%3A%22%40azure.azsql.id%22): ``` has:"@azure.azsql.id" ``` * [View all Azure Cosmos DB instances](https://console.runzero.com/inventory?search=has%3A%22%40azure.cosmos.id%22): ``` has:"@azure.cosmos.id"" ``` * [View all Azure Function Apps](https://console.runzero.com/inventory?search=%40azure.functionapp.kind%3A%22functionapp%22): ``` @azure.functionapp.kind:"functionapp" ``` Click into an asset to see the attributes the Azure APIs returned. To write your own queries, start with the [search query syntax](search-query-syntax.md). ## Troubleshooting {#azure-troubleshooting} If the integration isn't working, start with these checks. ### Why is the Microsoft Azure integration unable to connect? 1. Check whether the Microsoft Azure integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the Microsoft Azure integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue --- docs/mecm.md --- title: Microsoft Endpoint Configuration Manager (MECM) --- runZero integrates with ((Microsoft Endpoint Configuration Manager)) (MECM), formerly System Center Configuration Manager (SCCM), by importing data from the MECM MSSQL database. Syncing your MECM device data makes unmanaged devices on your network easier to find. ## Getting started with MECM {#mecm-getting-started} To set up an integration with MECM: 1. Identify or create a database user with read access to the MECM database. 1. Configure the MECM credential in runZero. 1. Choose whether to run the integration as [a scan probe or connector task](integrations-inbound.md#integration-probe-connector). 1. Activate the integration to pull your data into runZero. ## Step 1: Identify or create a database user for access to MECM {#mecm-step1} 1. Identify an existing database user with read access to the database. 1. Alternatively, create a dedicated read-only database user for this integration. Microsoft's documentation covers the details: [Create a database user](https://learn.microsoft.com/en-us/sql/relational-databases/security/authentication-access/create-a-database-user?view=sql-server-ver16). ## Step 2: Add the MECM database connection string to runZero {#mecm-step2} 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero. 1. Choose **MECM Database Connection String** from the list of credential types. 1. Provide a name for the credential, like `MECM`. 1. Provide the database connection string in one of these formats: * `Server=host,port;Database=database-name;User Id=user-id;Password=password;` With this format, the values should not contain a semicolon (;). You can use single or double quotes to escape special characters. * `sqlserver://username:password@host/instance?database=value¶m=value` 1. To let other organizations use this credential, select the _Make this a global credential_ option. Otherwise, you can configure access per organization. 1. Save the credential. ## Step 3: Choose how to configure the MECM integration {#mecm-step3} You can run the MECM integration as either a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during a scan task. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. ## Step 4: Set up and activate the integration to sync data {#mecm-step4} With your MECM credential saved, set up the sync from MECM. ### Step 4a: Configure the MECM integration as a connector task {#mecm-step4a} A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new assets. 1. Activate a connection to [MECM](https://console.runzero.com/ingest/mecm). You can reach every third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 1. Choose the credential you added earlier. If it isn't listed, make sure it has access to the organization you're currently in. 1. Enter a name for the task, like `MECM Sync` (optional). 1. Choose the Explorer that runs this connector task (optional). 1. Choose the site to add your assets to. runZero stores all newly discovered assets in this site. 1. Enter a description for the task (optional). 1. To leave out assets that runZero has not scanned, switch the **Exclude unknown assets** toggle to _Yes_. By default, the integration includes them. 1. Schedule the sync to run once or on a recurring schedule. The schedule starts on the date and time you set. 1. Activate the connection. The sync runs on the schedule you defined, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next sync will occur. ### Step 4b: Configure the MECM integration as a scan probe {#mecm-step4b} When you run the MECM integration as a scan probe, the runZero Explorer pulls your MECM devices into the runZero Console. In a new or existing scan configuration: * Set the _MECM_ option to _Yes_ in the _Probes and SNMP_ tab and change any default options as needed. * Set the correct _MECM_ credential to _Yes_ in the _Credentials_ tab. ### Step 5: View MECM assets {#mecm-step5} After a successful sync, [go to your inventory](https://console.runzero.com/inventory) to view your MECM assets. They show a Microsoft icon in the **Source** column. To filter for MECM assets, try this query: * [View all MECM assets](https://console.runzero.com/inventory?search=source%3Amecm): ``` source:mecm ``` Click into an asset to see the attributes runZero gathered from MECM. To write your own queries, start with the [search query syntax](search-query-syntax.md). --- docs/microsoft-entra-id.md --- title: Microsoft Entra ID aliases: ["/docs/azure-ad/"] --- runZero integrates with Microsoft ((Entra ID)) (formerly ((Azure AD))) to sync and enrich your asset inventory and to show you Entra ID users and groups. With your Entra ID data in runZero, assets that aren't part of your domain are easier to find. The runZero product still refers to Entra ID as Azure AD. ## Getting started {#azure-ad-getting-started} To set up the Entra ID integration: 1. Configure Entra ID to allow API access through runZero. 2. Add the Entra ID credential in runZero. 3. Choose whether to run the integration as [a scan probe or connector task](integrations-inbound.md#integration-probe-connector). 4. Activate the Entra ID integration to sync your data with runZero. ## Requirements {#azure-ad-requirements} You need access to the Microsoft Azure portal. ## Step 1: Register an Azure application for Entra ID API access {#azure-ad-api-access} runZero can authenticate to the Entra ID API with either a username and password or a client secret. Either way, start by registering an application for Entra ID API access. 1. Sign in to the Microsoft Azure portal. 2. Go to _App registrations_ and click _+ New registration_. * Provide a name. * Select the supported account types. * Optionally add a redirect URI. 3. Click _Register_. 4. Once the application is created, go back to the main Azure portal page and select _App registrations_. You should find the application you just registered (selecting the _Owned applications_ tab may help). Click the app's name. 5. On the app registration overview, note the following information: * Application (client) ID * Directory (tenant) ID 6. Click the application's display name to open its management pages. 7. Select _Manage > Authentication_ on the left. Set **Allow public client flows** to _Yes_ and save the configuration. 8. Go to _API permissions_ and click _+ Add a permission_. 9. Select _Microsoft Graph_ from the list of Microsoft APIs. 10. Select the permissions type for the credential you plan to use: * **Username & password**: select _Delegated permissions_ * **Client secret**: select _Application permissions_ 11. Search for and select these required permissions: * _Device.Read.All_ * _Group.Read.All_ * _User.Read.All_ 12. Click _Add permissions_ to save the permissions to the application. 13. Click _Grant admin consent_ to grant the application consent for those permissions. 14. If you're using a client secret, also do the following: * Go to _Azure Active Directory > App registrations_ and select the application you created. * Go to _Certificates & secrets_ and click _New client secret_. * Enter a description. * Select the expiration. * Click _Add_ to create the client secret, then save the client secret value. ## Step 2: Add the Entra ID credential to runZero {#azure-ad-credential} ### Step 2a: Add an Azure Username & Password credential to runZero {#azure-ad-credential-userpass} 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero and click _Add Credential_. 2. Provide a name for the credential, like `Azure Username & Password`. 3. Choose _Azure Username & Password_ from the list of credential types. 4. Provide the following information: * **Azure application (client) ID**: The unique ID for the registered application. To find it in the Azure portal, go to _App registrations_ and select the application. * **Azure directory (tenant) ID**: The unique ID for the tenant. To find it in the Azure portal, go to _App registrations_ and select the application. * **Azure username**: The username for your Azure cloud account. It can't be a federated user account. * **Azure password**: The password for your Azure cloud account. 5. To let other organizations use this credential, select the _Make this a global credential_ option. Otherwise, you can configure access per organization. 6. Save the credential. ### Step 2b: Add an Azure Client Secret credential to runZero {#azure-ad-credential-clientsecret} You can use this credential type to sync all resources in a single directory (across multiple subscriptions). 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero and click _Add Credential_. 2. Provide a name for the credential, like `Azure Client Secret`. 3. Choose _Azure Client Secret_ from the list of credential types. 4. Provide the following information: * **Azure application (client) ID**: The unique ID for the registered application. To find it in the Azure portal, go to _App registrations_ and select the application. * **Azure client secret**: To generate a client secret, go to _App registrations_, select your application, go to _Certificates & secrets_, and click _+ New client secret_. * **Azure directory (tenant) ID**: The unique ID for the tenant. To find it in the Azure portal, go to _App registrations_ and select the application. * Select the **Access all subscriptions in this directory (tenant)** option to sync all resources in your directory. Otherwise, specify the Azure subscription ID, the unique ID for the subscription you want to sync. To find it in the Azure portal, go to _Subscriptions_ and select the subscription. 5. To let other organizations use this credential, select the _Make this a global credential_ option. Otherwise, you can configure access per organization. 6. Save the credential. ## Step 3: Choose how to configure the Entra ID integration You can run the Entra ID integration as either a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during a scan task. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. ## Step 4: Set up and activate the Entra ID integration to sync data With your Entra ID credential saved, set up a connector task or a scan probe to sync your data. ### Step 4a: Configure the Entra ID integration as a connector task A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new Entra ID-only assets. 1. Activate a [connection to Entra ID](https://console.runzero.com/ingest/azuread). You can reach every third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 2. Choose the credential you added earlier. If it isn't listed, make sure it has access to the organization you're currently in. 3. Optionally provide a filter in the [Microsoft Graph API filter syntax](https://learn.microsoft.com/en-us/graph/filter-query-parameter?tabs=http). runZero imports only the devices that match it. 4. Enter a name for the task, like `Entra ID sync`. 5. Schedule the sync to run once or on a recurring schedule. The schedule starts on the date and time you set. 6. Under **Task configuration**, choose the site to add your assets to. 7. To leave out assets that runZero has not scanned, switch the **Exclude unknown assets** toggle to _Yes_. By default, the integration includes them. 8. To import assets that the Entra ID account has marked as inactive, switch the **Include inactive assets** toggle to _Yes_. By default, the integration leaves out assets marked as inactive. 9. Activate the connection. The sync runs on the schedule you defined, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next sync will occur. ### Step 4b: Configure the Entra ID integration as a scan probe 1. Create a new scan task or select a future or recurring scan task from your [Tasks page](https://console.runzero.com/tasks). 2. Add or update the scan parameters to fit any additional requirements. 3. On the Probes and SNMP tab, choose any additional probes to include, set the **Azure AD** toggle to _Yes_, and change any default options as needed. 4. On the Credentials tab, set the **Azure AD** toggle to _Yes_ for the credential you want to use. 5. Click _Initialize scan_ to save the scan task. It runs immediately or at the scheduled time. ## Step 5: View Entra ID assets After a successful sync, [go to your inventory](https://console.runzero.com/inventory) to view your Entra ID assets. They show an Active Directory icon in the _Source_ column. To filter for Entra ID assets, try these queries: * [View all Entra ID assets](https://console.runzero.com/inventory?search=source%3Aazuread): ``` source:azuread ``` * [View runZero assets not connected to Entra ID](https://console.runzero.com/inventory?search=source%3Arunzero%20and%20not%20source%3Aazuread): ``` source:runzero AND NOT source:azuread ``` Click into an asset to see the attributes Entra ID returned. To write your own queries, start with the [search query syntax](search-query-syntax.md).
The Entra ID integration also imports details about users and groups. Go to Inventory > Users or Inventory > Groups to see them.
## Filtering Entra ID assets {#azure-ad-filtering} You can apply an optional filter to Entra ID integration tasks. runZero filters assets with the Microsoft Graph `$filter` query parameter. Each expression follows the syntax ` [operator] `, and you can combine expressions with `and` or `or` for more complex filtering. ### Properties {#azure-ad-filtering-properties} You can filter on any property that runZero imports from Entra ID. Some examples: | Entra ID Property | runZero Attribute | Description | Example | | ------------------------ | ----------------------------------- | -------------------------------------------------- | ------------------- | | `displayName` | @azuread.dev.displayName | The hostname of the device | EXPLORER-01 | | `operatingSystem` | @azuread.dev.operatingSystem | The operating system of the device | Windows | | `operatingSystemVersion` | @azuread.dev.operatingSystemVersion | The version of the operating system | 10.0.x | | `manufacturer` | @azuread.dev.manufacturer | The manufacturer of the device | Dell Inc. | | `model` | @azuread.dev.model | The model of the device | Precision 3560 | | `isManaged` | @azuread.dev.isManaged | Boolean value specifying whether device is managed | true, false | | `managementType` | @azuread.dev.managementType | Description of how the device is managed | MDM, MicrosoftSense | | `deviceOwnership` | @azuread.dev.deviceOwnership | Description of who owns the device | Company, Personal | ### Operators {#azure-ad-filtering-operators} Common operators for an Entra ID filter: - Equal to (`eq`) - Not equal to (`ne`) - Has (`has`) - Less than (`lt`) - Greater than (`gt`) - Less than or equal to (`le`) - Greater than or equal to (`ge`) Common functions, which follow the syntax `function(, )`: - Starts with (`startswith`) - Ends with (`endswith`) ### Example filters {#azure-ad-filtering-examples} | Search Filter | Description | | ---------------------------------------------------------------------- | ---------------------------------------------------------------------------------------| | `not(startsWith(operatingSystem, 'Android'))` | Import all assets except those with an Android operating system | | `not(operatingSystem eq 'iOS') and not(operatingSystem eq 'iPad')` | Import all assets except those with an iOS or iPad operating system | | `startswith(displayName, 'PROD')` | Import all devices with a hostname that starts with PROD | | `not(startswith(displayName, 'DEV'))` | Import all devices except those with a hostname that starts with DEV | | `deviceOwnership eq 'Company' or isManaged eq true` | Import all devices that are owned by company or that are configured as managed devices | For more on the filter syntax and additional examples, see [Microsoft's Graph API documentation](https://learn.microsoft.com/en-us/graph/filter-query-parameter). ## Troubleshooting {#azure-ad-troubleshooting} If the integration isn't working, start with these checks. ### Why is the Azure Active Directory integration unable to connect? 1. Check whether the Entra ID integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the Entra ID integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue ### How do I solve the following Entra ID errors? * `(invalid_client) AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'` 1. Enable **Allow Public Client Flows** in Entra ID. On the application details page, go to _Authentication > Advanced Settings_ and toggle the **Allow Public Client Flows** setting to _Yes_. 2. Also confirm that you granted application permissions correctly when registering the Azure application for Entra ID API access. On the API permissions settings page, check that each API/Permission has its _type_ set to _application_ and that the permission granted is _Grant Admin Consent for Default Directory_. * `failed to get Entra ID groups: invalid response: 403 (403 Forbidden)` Check that you entered every credential value correctly and followed every step on this page. A credential problem is the likely cause. --- docs/microsoft-intune.md --- title: Microsoft Intune --- runZero integrates with ((Microsoft Intune)) to sync and enrich your asset inventory. With your Microsoft Intune data in runZero, unmanaged assets on your network are easier to find. The import includes the [discovered apps](https://learn.microsoft.com/en-us/mem/intune/apps/app-discovered-apps#details-of-discovered-apps) from Intune. runZero does not currently report managed apps (those Intune pushes to devices). ## Getting started {#intune-getting-started} To set up the Microsoft Intune integration: 1. Configure Microsoft Intune to allow API access from runZero. 2. Add the Microsoft Intune credential in runZero. 3. Choose whether to run the integration as [a scan probe or connector task](integrations-inbound.md#integration-probe-connector). 4. Activate the Microsoft Intune integration to sync your data with runZero. ## Requirements {#intune-requirements} Before you set up the Microsoft Intune integration: * Make sure you have access to the Microsoft Azure portal. ## Step 1: Register an Azure application for Microsoft Intune API access {#intune-api-access} runZero can authenticate to the Microsoft Intune API with either a username and password or a client secret. Either way, start by registering an application for Microsoft Intune API access. 1. Sign in to the Microsoft Azure portal. 2. Go to _App registrations_ and click _+ New registration_. * Provide a name. * Select the supported account types. * Optionally add a redirect URI. 3. Click _Register_. 4. Once the application is created, go back to the main Azure portal page and select _App registrations_. You should find the application you just registered (selecting the _Owned applications_ tab may help). Click the app's name. 5. On the app registration overview, note the following information: * Application (client) ID * Directory (tenant) ID 6. From the application's details page, go to _Manage > API permissions_ and choose _+ Add a permission_. 7. Select _Microsoft Graph_ from the list of Microsoft APIs. 8. Select the permissions type for the credential you plan to use: * **Username & password**: select _Delegated permissions_ * **Client secret**: select _Application permissions_ 9. Search for and select these required permissions: * `DeviceManagementManagedDevices.Read.All` * `User.Read.All` * `DeviceLocalCredential.ReadBasic.All` (only required if you enable the Include LAPS Information option within the integration) 10. Click _Add permissions_ to save the permissions to the application. 11. Click _Grant admin consent_ to grant the application consent for those permissions. 12. If you're using a client secret, also do the following from the app management pages: * Go to _App registrations_ and select the application you created. * Go to _Certificates & secrets_ and click _+ New client secret_. * Enter a description. * Select the expiration. * Click _Add_ to create the client secret, then save the client secret value. ## Step 2: Add the Microsoft Intune credential to runZero {#intune-credential} The Microsoft Intune credential is either an Azure username and password or an Azure Client Secret. ### Step 2a: Add an Azure Username & Password credential to runZero {#intune-credential-userpass} 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero and click _Add Credential_. 2. Provide a name for the credential, like `Azure User/Pass`. 3. Choose _Azure Username & Password_ from the list of credential types. 4. Provide the following information: * **Azure application (client) ID**: The unique ID for the registered application. To find it in the Azure portal, go to _App registrations_ and select the application. * **Azure directory (tenant) ID**: The unique ID for the tenant. To find it in the Azure portal, go to _App registrations_ and select the application. * **Azure username**: The username for your Azure cloud account. It can't be a federated user account. * **Azure password**: The password for your Azure cloud account. 5. To let other organizations use this credential, select the _Make this a global credential_ option. Otherwise, you can configure access per organization. 6. Save the credential. ### Step 2b: Add an Azure Client Secret credential to runZero {#intune-credential-clientsecret} You can use this credential type to sync all resources in a single directory (across multiple subscriptions). 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero and click _Add Credential_. 2. Provide a name for the credential, like `Azure Client Secret`. 3. Choose _Azure Client Secret_ from the list of credential types. 4. Provide the following information: * **Azure application (client) ID**: The unique ID for the registered application. To find it in the Azure portal, go to _App registrations_ and select the application. * **Azure client secret**: To generate a client secret, go to _App registrations_, select your application, go to _Manage > Certificates & secrets_, and click _New client secret_. * **Azure directory (tenant) ID**: The unique ID for the tenant. To find it in the Azure portal, go to _App registrations_ and select the application. 5. To let other organizations use this credential, select the _Make this a global credential_ option. Otherwise, you can configure access per organization. 6. Save the credential. ## Step 3: Choose how to configure the Microsoft Intune integration You can run the Microsoft Intune integration as either a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during a scan task. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. ## Step 4: Set up and activate the Microsoft Intune integration to sync data With your Microsoft Intune credential saved, set up a connector task or a scan probe to sync your data. ### Step 4a: Configure the Microsoft Intune integration as a connector task A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new Microsoft Intune-only assets. 1. Activate a [connection to Microsoft Intune](https://console.runzero.com/ingest/intune). You can reach every third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 2. Choose the credential you added earlier. If it isn't listed, make sure it has access to the organization you're currently in. 3. Optionally provide a filter to import only the devices that match it. See [Filtering Intune assets](#intune-filtering) below for details. 4. To retrieve LAPS information from Intune, enable the Include LAPS Information option. This option has additional permission requirements; see [Intune API Access](#intune-api-access) above. **With this option enabled, runZero does not collect passwords from LAPS.** 5. Enter a name for the task, like `Microsoft Intune sync`. 6. Schedule the sync to run once or on a recurring schedule. The schedule starts on the date and time you set. 7. Under **Task configuration**, choose the site to add your assets to. 8. To leave out assets that runZero has not scanned, switch the **Exclude unknown assets** toggle to _Yes_. By default, the integration includes them. 9. Activate the connection. The sync runs on the schedule you defined, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next sync will occur. ### Step 4b: Configure the Microsoft Intune integration as a scan probe 1. Create a new scan task or select a future or recurring scan task from your [Tasks page](https://console.runzero.com/tasks). 2. Add or update the scan parameters to fit any additional requirements. 3. On the Probes and SNMP tab, choose any additional probes to include, set the Intune toggle to `Yes`, and change any default options as needed. 4. On the Credentials tab, set the Intune toggle to `Yes` for the credential you want to use. 5. Click _Initialize scan_ to save the scan task. It runs immediately or at the scheduled time. ## Step 5: View Microsoft Intune assets After a successful sync, [go to your inventory](https://console.runzero.com/inventory) to view your Microsoft Intune assets. They show an Active Directory icon in the _Source_ column. To filter for Microsoft Intune assets, try these queries: * [View all Microsoft Intune assets](https://console.runzero.com/inventory?search=source%3Aintune): ``` source:intune ``` * [View runZero assets not connected to Microsoft Intune](https://console.runzero.com/inventory?search=source%3Arunzero%20and%20not%20source%3Aintune): ``` source:runzero AND NOT source:intune ``` Click into an asset to see the attributes Microsoft Intune returned. To write your own queries, start with the [search query syntax](search-query-syntax.md). ## Filtering Intune assets {#intune-filtering} You can apply an optional filter to Intune integration tasks. runZero retrieves assets from the `DevicesWithInventory` report through the Intune reports API, which accepts a filter field to narrow the results. ### Properties {#intune-filtering-properties} The `DevicesWithInventory` report supports filtering on these properties: - CreatedDate - LastContact - CategoryName - CompliantState - ManagementAgents - OwnerType - ManagementState - DeviceType - JailBroken - EnrollmentType - PartnerFeaturesBitmask For the current list of properties, see Microsoft's documentation on the [DevicesWithInventory](https://learn.microsoft.com/en-us/mem/intune/fundamentals/reports-export-graph-available-reports#deviceswithinventory) report. Not every property in that table is filterable; a separate list just below the table shows the properties you can use in filters. ### Operators {#intune-filtering-operators} The Intune reports API has no official documentation of its filter syntax or supported operators. Based on our testing, the following operators may be supported. In practice, some of them, such as `not` and `in`, can produce errors, so your results may vary. - Equal to (`eq`) - Not equal to (`ne`) - Logical negation (`not`) - In (`in`) - Has (`has`) - Less than (`lt`) - Greater than (`gt`) - Less than or equal to (`le`) - Greater than or equal to (`ge`) The syntax appears similar to the `$filter` query parameter used elsewhere in Microsoft Graph, and [Use the $filter query parameter](https://learn.microsoft.com/en-us/graph/filter-query-parameter?tabs=http) has examples. Test filters carefully, and start with basic operators like `eq` and `ne` for best results. ### Example filters {#intune-filtering-examples} | Search Filter | Description | | --------------------------------------------------------------------- | ---------------------------------------------------------------------| | `DeviceType eq 'android'` | Import all Android devices | | `LastContact ge '2023-02-23 23:50:01.0000000'` | Import devices that checked in after a specific date and time | ## Troubleshooting {#intune-troubleshooting} If the integration isn't working, start with these checks. ### Why is the Microsoft Intune integration unable to connect? 1. Check whether the Microsoft Intune integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the Microsoft Intune integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue ### How do I solve the following Microsoft Intune error? * `(invalid_client) AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'` This error means you need to enable `Public Client Flows` in Azure: 1. Go to the App Registration page in the Azure portal. 2. Choose _Authentication_ from the left navigation. 3. Select _Advanced Settings_. 4. Toggle the _Allow Public Client Flows_ switch at the bottom of the page to _Yes_. --- docs/miradore.md --- title: Miradore MDM aliases: ["/docs/set-up-miradore/"] --- runZero integrates with ((Miradore)) mobile device management (MDM) to give you visibility into your mobile assets. The integration imports data from the [Miradore API](https://www.miradore.com/knowledge/integrations/miradore-api/) to enrich your asset inventory, so you can see each device's hardware, OS version, associated user, and more. It imports all enrolled devices. ## Getting started {#miradore-getting-started} To set up the Miradore integration: 1. Sign in to your Miradore web portal and create a new API key. 2. Add the Miradore credential to runZero, which includes the endpoint hostname and API key. 3. Choose whether to run the integration as [a scan probe or connector task](integrations-inbound.md#integration-probe-connector). 4. Activate the Miradore integration to sync your data with runZero. ## Requirements {#miradore-requirements} Before you set up the Miradore integration: * Make sure you have administrator access to the Miradore MDM portal. ## Step 1: Create a Miradore API key 1. Sign in to your Miradore portal as an administrator. 2. Click **System > Infrastructure diagram** in the left-side navigation. 3. Scroll down to the **API** node in the diagram. Click it and choose **Create API key**. 3. Name the new key and copy the secret value. ## Step 2: Add the Miradore credential to runZero 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero and click **Add Credential**. 2. Provide a name for the credential, like `Miradore MDM`. 3. Choose **Miradore MDM API Key** from the list of credential types. 4. Provide the following information: * **Name**: A unique name for this credential (for example, Miradore) * **Miradore endpoint hostname**: The URL for your Miradore portal. * **Miradore API key**: The API key you created in step 1. 5. Save the credential. ## Step 3: Choose how to configure the Miradore integration You can run the Miradore integration as either a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during a scan task. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. ## Step 4: Set up and activate the Miradore MDM integration to sync data With your Miradore credential saved, set up a connector task or a scan probe to sync your data. ### Step 4a: Configure the Miradore integration as a connector task A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new Miradore-only assets. 1. Activate a [connection to Miradore](https://console.runzero.com/ingest/miradore). You can reach every third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 2. Choose the credential you added earlier. If it isn't listed, make sure it has access to the organization you're currently in. 3. Enter a name for the task, like `Miradore sync`. 4. Schedule the sync to run once or on a recurring schedule. The schedule starts on the date and time you set. 5. Under **Task configuration**, choose the site to add your assets to. runZero stores all newly discovered assets in this site. 6. To leave out assets that runZero has not scanned, switch the **Exclude unknown assets** toggle to _Yes_. By default, the integration includes them. 7. Activate the connection. The sync runs on the schedule you defined, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next sync will occur. ### Step 4b: Configure the Miradore integration as a scan probe 1. Create a new scan task or select a future or recurring scan task from your [Tasks page](https://console.runzero.com/tasks). 2. Add or update the scan parameters to fit any additional requirements. 3. On the Probes and SNMP tab, choose any additional probes to include, set the Miradore toggle to _Yes_, and change any default options as needed. 4. On the Credentials tab, set the Miradore toggle to _Yes_ for the credential you want to use. 5. Click **Initialize scan** to save the scan task. It runs immediately or at the scheduled time. ## Step 5: View Miradore assets After a successful sync, [go to your inventory](https://console.runzero.com/inventory) to view your Miradore assets. They show a Miradore icon in the **Source** column. To filter for Miradore assets, try this query: * [View all Miradore assets](https://console.runzero.com/inventory?search=source%3Amiradore): ``` source:miradore ``` Click into an asset to see the attributes the Miradore API returned. To write your own queries, start with the [search query syntax](search-query-syntax.md). ## Troubleshooting {#miradore-troubleshooting} If the integration isn't working, start with these checks. ### Why is the Miradore integration unable to connect? 1. Check whether the Miradore integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the Miradore integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue 4. If Miradore is on-premises, verify that the integration task runs from an Explorer with access to the Miradore host. --- docs/netbox.md --- title: NetBox CMDB --- runZero imports records from your ((NetBox)) configuration management database (CMDB) through the [NetBox REST API](https://demo.netbox.dev/api/schema/swagger-ui/) to enrich your asset inventory. ## NetBox limitations {#netbox-limitations} runZero supports NetBox version 4. Older versions (3.x) may be compatible, but runZero does not test or support them. NetBox data entry is free-form, so the integration may not be a good fit for your organization. We strongly recommend testing it in a Project before you configure it for a production Organization. The integration imports Devices and Virtual Machines, along with their associated resources, but creates entities only for those two types. Device and Virtual Machine records become runZero assets with these fields: * Device or Virtual Machine * ID in the form of `device.` or `vm.` * Name * FirstSeenTS and LastSeenTS * Serial * AssetTag (Device only) * Interfaces * IP addresses for PrimaryIP / PrimaryIP4 / Primary IP6 / OOB IP * Additional IP addresses using the `ip.field` syntax * NAT Inside and NAT Outside addresses * MAC Addresses (if entered in NetBox) * CreatedTS and UpdatedTS * ID, DNSName, Name, Comments, and Description * Module Name, MTU, Speed (Device only) * Tagged and Untagged VLANs * Custom Fields * Prefixes * VLAN and CIDR * ID, Comments, and Description * Role Name * Custom Fields * Location * ID and Name * Latitude and Longitude * Chained Location Path * Custom Fields * Rack * ID and Name * Position and Rack Face * Status * Manufacturer * ID, Name, and Model * Comments, Description, and Part Number * Custom Fields * Device Role * ID, Name, Description * Custom Fields * Platform * ID & Name * Custom Fields * Site * ID, Name, Description, Comments * Facility, Physical Address, Shipping Address * Region, Group * Custom Fields * Virtual Chassis * ID, Name, Comments, and Description * Master ID and Master Name * VC Position and Priority * Interface Count * Inventory Item Count * Custom Fields These top-level attributes roll up values across all sub-fields: * Addrs * Names * MACs * VLANs ## NetBox asset matching {#netbox-asset-matching} runZero matches NetBox Devices and Virtual Machines to runZero assets by Name, IP Address, and MAC Addresses. Without a direct match, runZero creates a new asset record, unless you enable the "Exclude assets that cannot be merged into an existing asset" option. NetBox data is typically static while network assets tend to change over time, so there is a good chance that many assets will not match. MAC Addresses are the most reliable way to correlate them, but many organizations leave the MAC Address fields in NetBox empty. ## NetBox asset fingerprinting {#netbox-asset-fingerprinting} For Devices, runZero uses `mfg.name` as the hardware vendor and `mfg.model` as the hardware model. For Virtual Machines, runZero reports the vendor by matching the Cluster Type field against a list of common hypervisors (Xen, VMware, Proxmox, etc.). To find an operating system match, runZero tries the `platform.name` field both with and without `mfg.name` as a prefix. runZero treats the NetBox operating system data in `platform.name` as low-confidence relative to agent-based sources like EDRs and CMDB. NetBox hardware values get the same treatment, with live agent-based sources taking priority. ## NetBox-to-runZero custom field mapping {#netbox-custom-fields} You can map custom fields in NetBox to attributes in runZero. These mappings override the `mfg.name`, `mfg.model`, and `platform.name` attributes described above. In the field mapping widget of the NetBox task configuration, the "NetBox field" inputs must be the **name** properties of the custom fields in NetBox. You can map custom fields to these runZero attributes: * `hostnames`: The hostnames to apply to the asset in runZero. Separate multiple hostnames in the NetBox custom field with commas, and no hostname may contain tab characters. This custom field must be a `Text` type. * `manufacturer`: The manufacturer to apply to the asset in runZero. This custom field must be a `Text` type. * `model`: The model to apply to the asset in runZero. This custom field must be a `Text` type. * `device_type`: The type of device to apply to the asset in runZero. This custom field must be a `Text` type. * `first_seen_ts`: The "first seen time" to apply to the asset in runZero. This custom field must be either a `Date & time` or `Date` type. * `os`: The type of operating system to apply to the asset in runZero. This custom field must be a `Text` type. * `os_version`: The version of the operating system to apply to the asset in runZero. This custom field must be a `Text` type. ### Usage within the runZero CLI scanner {#netbox-custom-fields-cli} To map custom fields with the runZero CLI scanner, pass a JSON array like this one as an argument. In each array item, the "key" is the NetBox custom field name and the "value" is the runZero attribute: ```shell --netbox-field-mappings '[{"key":"netboxHostnames","value":"hostnames"},{"key":"netboxManufacturer","value":"manufacturer"}]' ``` This example maps the NetBox custom field `netboxHostnames` to the runZero `hostnames` attribute and the NetBox custom field `netboxManufacturer` to the runZero `manufacturer` attribute. ## Searchable time attributes The integration creates a searchable attribute in runZero from every `Date & time` or `Date` NetBox attribute. For example, a NetBox attribute called "lastChecked" with a value of `2024-07-26T15:30:00Z` produces a new attribute called `lastCheckedTS` with a Unix epoch timestamp value of `1722017400`. ## Getting started {#netbox-started} To set up the NetBox integration, you need: 1. A NetBox instance in the cloud or reachable from one of your runZero Explorers. 2. An administrative account in the NetBox instance. 3. A v1 NetBox API key. runZero does not currently support v2 API keys, which carry the prefix `nbt_`. ## Step 1: Create a NetBox API key 1. Sign in to your NetBox portal. 2. Click your name in the upper right and select **API Tokens** from the drop-down. 3. Click **Add a Token** and define a new token with no expiration and without Write permissions. 4. Give this new key a name and copy the secret value. ## Step 2: Add the NetBox credential to runZero 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero and click **Add Credential**. 2. Provide a name for the credential, like `NetBox CMDB`. 3. Choose **NetBox API Key** from the list of credential types. 4. Fill in these fields: * **Name** - A unique name for this credential (for example, NetBox) * **NetBox URL** - The URL for your NetBox portal. * **NetBox API key** - The API key from step 1. * **Insecure** - Set this to `Yes` to attempt authentication without a verified thumbprint. * **NetBox thumbprints** (optional) - A set of `IP=SHA256:B64HASH` or `domain.tld=SHA256:B64HASH` pairs to trust for authentication. * To get the TLS thumbprint, you may scan your NetBox instance with runZero. The [TLS fingerprints service attribute report](https://console.runzero.com/reports/analysis/sattr?f=tls.fp.sha256&sf=protocol&sfv=http%09tls&t=Service%20Attribute%20Report%20[tls.fp.sha256]) lists all previously seen fingerprints. * If _insecure_ is set to _No_ and you provide no thumbprints: * With a self-signed certificate, the connection fails because the certificate chain cannot be verified. * With a valid certificate from a public CA, the connection can work without thumbprints. 5. Save the credential. ### Step 3: Configure the NetBox integration as a connector task A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new NetBox-only assets. 1. Create a new Project. We strongly recommend testing NetBox in a new Project before applying it to your production Organization. 2. Activate a [connection to NetBox](https://console.runzero.com/ingest/netbox). You can reach every available third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 3. Choose the credential you added earlier. If it is not listed, check that the credential has access to the organization or project you are in. 4. Enter a name for the task, like `NetBox sync`. 5. Leave the default settings to create a one-off sync task. 6. Under **Task configuration**, choose the site to add your assets to. NetBox assets that match no existing asset land in this site by default. 7. To leave out assets that runZero has not scanned, tick the **Exclude assets that cannot be merged into an existing asset** checkbox. 8. Activate the connection when you are done. The task runs, and the [Tasks](https://console.runzero.com/tasks) page tracks its status. ## Step 4: View NetBox assets After a successful sync, [go to your inventory](https://console.runzero.com/inventory) to view your NetBox assets. They show a NetBox icon in the **Source** column. To filter to NetBox assets, run this query: * [View all NetBox assets](https://console.runzero.com/inventory?search=source%3Anetbox): ``` source:netbox ``` Click an asset to see its attributes. runZero shows the attributes returned by the NetBox API. Review the new NetBox assets and confirm that the NetBox-sourced asset count roughly lines up with your overall inventory and the total in NetBox itself. If runZero holds far fewer NetBox-sourced assets, you may want to skip the final step until NetBox is updated with better correlation data. ## Step 5: Enable unknown assets in recurring sync Configure a new recurring NetBox task with **Exclude assets that cannot be merged into an existing asset** disabled. runZero then creates new assets for anything in NetBox it can't correlate to your asset inventory. If this creates significant duplicates, delete all assets matching the filter `source_count:1 AND source:netbox`, and re-enable the _Exclude unknown assets_ option in your recurring task until the NetBox records have better correlation data (MAC addresses, hostnames, etc.). ## Troubleshooting {#netbox-troubleshooting} If you are having trouble with this integration, the questions and answers below may help. ### Why is the NetBox integration unable to connect? 1. Check whether the NetBox integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the NetBox integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the URL * 404: hitting an unknown URL on the server * 401: not authorized, likely a credential issue * 403: access denied, likely a credential issue 4. If NetBox is on-premises, verify that the integration task runs from an Explorer with access to the NetBox host. ### Why aren't my custom field mappings working properly? {#why-arent-my-custom-field-mappings-arent-working-properly} 1. Use the `name` of the custom field, not the `label`. 2. Apply the custom fields to the correct types. The NetBox integration supports only the "Device" and "Virtual Machine" types in NetBox. 3. If hostnames arrive malformed in runZero, check that multiple hostnames in the custom field are comma-separated and that the field contains no tab characters. 4. Every custom field except `first_seen_ts` must be the `Text` type in NetBox. `first_seen_ts` must be either a `Date & time` or `Date` type. --- docs/qualys.md --- title: Qualys VMDR --- runZero imports asset and vulnerability data from ((Qualys VMDR)) through the Qualys KnowledgeBase [API](https://www.qualys.com/docs/qualys-api-vmpc-user-guide.pdf). ## Asset inventory {#qualys-asset-inventory} The asset inventory page has a column with the count of vulnerabilities Qualys detected for each asset. Select a single asset and the vulnerabilities table lists every result for it. The type of vulnerability scan and the import settings you select can both affect the vulnerability count. ## Vulnerabilities table {#qualys-vulnerabilities-table} The **Vulnerabilities** tab of the inventory lists every vulnerability result imported from Qualys. Selecting a result takes you to the page for the affected asset. ## Severity and risk scores {#qualys-scoring} Qualys assigns every vulnerability a severity rating (Minimal, Medium, Serious, Critical, Urgent). runZero normalizes these severities so the vulnerability inventory is consistent across the runZero Console. | runZero Severity | Qualys Severity | | ---------------- | --------------- | | Info | 1 / Minimal | | Low | 2 / Medium | | Medium | 3 / Serious | | High | 4 / Critical | | Critical | 5 / Urgent | runZero also normalizes the risk scores Qualys assigns. A risk score of 0.0 appears as `none` in the runZero Console, and every other risk score matches the assigned severity level. ## Getting started with Qualys {#qualys-getting-started} To set up the Qualys VMDR integration, you'll need to: 1. Create or obtain user credentials with access to the Qualys API. 2. Configure [CVSS scoring in Qualys](https://qualysguard.qualys.com/qwebhelp/fo_portal/setup/cvss_scoring.htm). 3. Add the Qualys API username, password, and account API URL in runZero. 4. Choose whether to run the integration as [a scan probe or connector task](integrations-inbound.md#integration-probe-connector). 5. Activate the Qualys integration to pull your data into runZero. ## Requirements {#qualys-requirements} Before you set up the Qualys VMDR integration: * Make sure you have access to the Qualys Cloud Platform portal. ### Step 1: Add the Qualys credentials to runZero 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero. Provide a name for the credentials, like `Qualys`. 2. Choose **Qualys Username & Password** from the list of credential types. 3. Fill in these fields: * **Qualys username** - the username you use to connect to the Qualys API. * **Qualys password** - the password for your Qualys API username. * **Qualys account API URL** - the URL of the Qualys API for the relevant account, in the form `https://ip:port` or `https://domain.tld:port`. This URL is unique for [each Qualys user](https://www.qualys.com/platform-identification/). 4. To let other organizations use this credential, select the _Make this a global credential_ option. Otherwise, you can grant access per organization. 5. Save the credential.
The role of the Qualys API user determines which VM scanned hosts the integration can see. Managers may view all VM scanned hosts in the subscription. Auditors have no permission to view VM scanned hosts. Unit Managers may view VM scanned hosts in the user's assigned business unit. Scanners and Readers may view VM scanned hosts in the user's account, but must be assigned to the assets through asset groups in VM/VMDR.
## Step 2: Choose how to configure the Qualys integration You can run the Qualys integration as either a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during scan tasks. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. ## Step 3: Set up and activate the Qualys integration to sync data After you add your Qualys credential, sync your data with a scan probe or a connector.
The Qualys Cloud Platform limits the API calls subscription users can make. Both API controls are limited per subscription based on your service level, so the tasks this integration generates may run slowly or fail when they hit those limits. The Qualys API documentation covers these limits.
### Step 3a: Configure the Qualys scan probe Run the Qualys VMDR integration as a scan probe to have the runZero Explorer pull your vulnerability data into the runZero Console. In a new or existing scan configuration: * Set the _QUALYS_ option to _Yes_ in the _Probes and SNMP_ tab and change any default options as needed. * Set the correct Qualys credential to _Yes_ in the _Credentials_ tab. * Set the [severity and risk levels](#qualys-scoring) for ingested vulnerability scan results (optional). ### Step 3b: Configure the Qualys connector A connector needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new Qualys-only assets. 1. Activate a [connection to Qualys](https://console.runzero.com/ingest/qualys). You can reach every available third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 1. Choose the credentials you added earlier. If they are not listed, check that the credentials have access to the organization you are in. 1. Set the [severity and risk levels](#qualys-scoring) you want to import (optional). 1. Set the **Fingerprint only** toggle to _Yes_ to ingest vulnerability records for fingerprint analysis without storing them in your runZero vulnerability inventory (optional). 1. Specify the tags to include in the import as a comma-separated list. Only assets that match any of the provided tags are imported (optional). 1. Specify the network IDs to include in the import as a comma-separated list. Only assets that match any of the provided network IDs are imported (optional). 1. Enter a name for the task, like `Qualys sync` (optional). 1. Choose the Explorer to run this connector task from (optional). 1. Choose the site to add your assets to. runZero stores all newly discovered assets in this site. 1. Enter a description for the task (optional). 1. To leave out assets that runZero has not scanned, switch the **Exclude unknown assets** toggle to _Yes_. By default, the integration includes them. 1. To include assets that have not been assessed for vulnerabilities, switch the **Include unscanned assets** toggle to _Yes_. 1. Enter a number of hours in the `Last update filter` to exclude assets that have not been scanned within that time (optional). A blank value uses the default of 30 days. 1. Schedule the sync to run once or on a recurring schedule. The schedule starts on the date and time you set. 1. Activate the connection when you are done. The sync runs on the defined schedule, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next sync will occur. ## Step 4: View Qualys assets and vulnerabilities After a successful sync, [go to your inventory](https://console.runzero.com/inventory) to view your Qualys assets. They show a Qualys icon in the **Source** column. The integration also gathers the vulnerabilities Qualys detected. Go to Inventory > [Vulnerabilities](https://console.runzero.com/inventory/vulnerabilities) to view the vulnerability data from Qualys VMDR. To search and filter those results, use the [vulnerability instance inventory keywords](search-query-vulnerabilities.md). To filter to Qualys assets, run this query: * [View all Qualys assets](https://console.runzero.com/inventory?search=source%3AQualys): ``` source:Qualys ``` Click an asset to see its attributes. runZero shows the attributes gathered from the Qualys VMDR scan data. ## Troubleshooting {#qualys-troubleshooting} If you are having trouble with this integration, the questions and answers below may help. ### Why is the Qualys integration unable to connect? 1. Check whether the Qualys integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the Qualys integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue 4. If Qualys is on-premises, verify that the integration task runs from an Explorer with access to the Qualys host. --- docs/palo-alto.md --- title: Palo Alto Networks Firewall --- runZero pulls data from your Palo Alto Networks Firewalls through the [PAN-OS XML API](https://docs.paloaltonetworks.com/ngfw/api/api-authentication-and-security/pan-os-api-authentication) to add network visibility and context, and to improve [reporting](https://help.runzero.com/docs/switch-topology-report/). ## Getting started {#panos-getting-started} To set up the Palo Alto Networks Firewall integration, you'll need to: * Create or obtain API Keys to use with the Palo Alto Networks Firewall XML API. * Add the Palo Alto Networks Firewall API key in runZero. * Synchronize your Palo Alto Networks Firewall data. ## Requirements {#panos-requirements} * Before you set up the Palo Alto Networks Firewall integration, make sure you have an API Key for the PAN-OS XML API. * To use trusted authentication, scan your Palo Alto Networks Firewall with a runZero Explorer before you add the credential (optional). ## Step 1: Add the Palo Alto Networks Firewall credential to runZero {#step-1-add-the-panos-credential-to-runzero} 1. Go to the [Add credential](https://console.runzero.com/credentials/new) page in runZero. Provide a name for the credentials, like **PAN-OS Firewall**. 2. Choose **Palo Alto Networks Firewall API Key** from the list of credential types. 3. Fill in these fields: * **Palo Alto Networks API key** - The API key to use with the Palo Alto Networks Firewall integration. First enable the XML API by following this guide: [https://docs.paloaltonetworks.com/ngfw/api/api-authentication-and-security/pan-os-api-authentication](https://docs.paloaltonetworks.com/ngfw/api/api-authentication-and-security/pan-os-api-authentication). Then generate the API key by following this guide: [https://docs.paloaltonetworks.com/ngfw/api/api-authentication-and-security/generate-api-key](https://docs.paloaltonetworks.com/ngfw/api/api-authentication-and-security/generate-api-key) * **Palo Alto Networks insecure** - Set this to `Yes` to attempt authentication without a verified thumbprint. * **Palo Alto Networks thumbprints** (optional) - A set of `IP[:port]=SHA256:B64HASH` or `hostname.domain.tld=SHA256:B64HASH` pairs to trust for authentication. * To get the TLS thumbprint, scan your Palo Alto Networks firewalls with runZero. The [PAN API thumbprints service attribute report](https://console.runzero.com/reports/analysis/sattr?f=pan.api.thumbprint&sf=protocol&sfv=http%09tls&t=Service%20Attribute%20Report%20%5Bpan.api.thumbprint%5D) lists all previously seen thumbprints. * **CIDR allow list** - The IP addresses allowed to receive this API Key. 4. To let all other organizations use this credential, select the Make this a global credential option. Otherwise, you can grant access per organization. 5. Save the credential. ## Step 2: Synchronize Palo Alto Networks Firewall data {#step-2-performing-panos-synchronization} Enable Palo Alto Networks Firewall synchronization as part of a scan task. Any task that scans your Palo Alto Networks Firewalls can synchronize PAN-OS data. On the Credentials tab of the scan setup, use the toggle switch to enable the Palo Alto Networks credentials you want. When the scan runs, the Explorer uses the credentials to authenticate with any Palo Alto Networks Firewall it finds that the credentials are configured to trust. runZero imports the data it discovers about the firewalls automatically and merges it with the other information it finds by scanning. ## Step 3: View Palo Alto Networks Firewall assets {#step-3-view-panos-assets} To filter to Palo Alto Networks Firewall assets, run this query: [View all Palo Alto Networks Firewall assets:](https://console.runzero.com/inventory?search=attribute%3Apan.api.thumbprint) ``` attribute:pan.api.thumbprint ``` Click an asset to see its attributes. runZero shows the attributes returned by Palo Alto Networks. --- docs/prisma.md --- title: Palo Alto Prisma Cloud --- runZero imports cloud asset and vulnerability data from Palo Alto ((Prisma Cloud)) through the [Prisma API](https://pan.dev/prisma-cloud/api/) for better visibility of your cloud assets and security posture. The supported Prisma cloud sources are AWS, Azure, and GCP. ## Getting started with Prisma {#prisma-getting-started} To set up an integration with Prisma, you'll need to: 1. Create a Palo Alto Prisma Cloud credential in runZero. 2. Choose whether to run the integration as [a scan probe or connector task](integrations-inbound.md#integration-probe-connector). 3. Activate the integration to pull your data into runZero. ## Step 1: Obtain your Prisma API credentials {#Prisma-step1} 1. Follow the [Prisma documentation](https://pan.dev/prisma-cloud/api/cspm/#cloud-security-user-roles) to create a Prisma cloud user role with sufficient permissions. See the [user role descriptions](https://docs.prismacloud.io/en/enterprise-edition/content-collections/administration/prisma-cloud-administrator-roles) for more information. 2. Obtain your Prisma Cloud API access key and secret key, which authenticate against the Prisma Cloud API. Follow the [Prisma documentation](https://pan.dev/prisma-cloud/api/cspm/#cloud-security-api-authorization) to configure them properly. 3. Identify your API URL. Palo Alto sends it in your fulfillment email. See [possible URL values](https://pan.dev/prisma-cloud/api/cspm/api-urls/). ## Step 2: Add the Prisma credential to runZero {#Prisma-step2} 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero. Provide a name for the credentials, like `Palo Alto Networks Prisma Cloud`. 2. Choose **Prisma Client Secret** from the list of credential types. 3. Create your Prisma service account from the settings page in the Prisma portal, then fill in these fields: * **Prisma Cloud Access Key** - The access key you obtained in the steps above. * **Prisma Cloud Secret Key** - The secret key you obtained in the steps above. * **Prisma API URL** - The API Endpoint URL for reaching the Prisma API. 4. To let other organizations use this credential, select the _Make this a global credential_ option. Otherwise, you can grant access per organization. 5. Save the credential. ## Step 3: Choose how to configure the Prisma integration {#Prisma-step3} You can run the Prisma integration as either a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during scan tasks. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. ## Step 4: Set up and activate the integration to sync data {#Prisma-step4} After you add your Prisma credential, sync your data from Prisma with a connector task or a scan probe. ### Step 4a: Configure the Prisma integration as a connector task {#Prisma-step4a} A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new Prisma-only assets. 1. Activate a connection to [Prisma](https://console.runzero.com/ingest/Prisma). You can reach every available third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 2. Choose the credentials you added earlier. If they are not listed, check that the credentials have access to the organization you are in. 3. Set the **Exclude importing vulnerabilities** toggle to control whether vulnerability records are saved. 4. Set the **Exclude importing software** toggle to control whether software records are saved. 5. Set the **Exclude assets that can not be merged into an existing asset** toggle to enrich existing assets only, with no new asset records created. 6. Set the severity and risk levels you want to import. 7. Enter a name for the task, like `Prisma Sync` (optional). 8. In the Run task with section, choose the Explorer or Explorer Group to run this connector task from (optional). 9. Choose the site to add your assets to. runZero stores all newly discovered assets in this site. 10. Enter a description for the task (optional). 11. Schedule the sync to run once or on a recurring schedule. The schedule starts on the date and time you set. 12. Activate the connection when you are done. The sync runs on the defined schedule, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next sync will occur. ### Step 4b: Configure the Prisma integration as a scan probe {#Prisma-step4b} Run the Prisma integration as a scan probe to have the runZero Explorer pull your Prisma assets into the runZero Console. In a new or existing scan configuration: * Set the _Prisma_ option to _Yes_ in the _Probes and SNMP_ tab and change any default options as needed. * Set the severity and risk levels for ingested vulnerability results (optional). * Set the correct _Prisma_ credential to _Yes_ in the _Credentials_ tab. ### Step 5: View Prisma assets and vulnerabilities {#Prisma-step5} After a successful sync, [go to your inventory](https://console.runzero.com/inventory) to view your Prisma assets. They show a Prisma icon in the **Source** column. The integration also gathers the vulnerabilities Prisma detected. Go to **Inventory** > [**Vulnerabilities**](https://console.runzero.com/inventory/vulnerabilities) to view the vulnerability data from Prisma. To search and filter those results, use the [vulnerability instance inventory keywords](search-query-vulnerabilities.md). To filter to Prisma assets, run this query: * [View all Prisma assets](https://console.runzero.com/inventory?search=source%3APrisma): ``` source:Prisma ``` Click an asset to see its attributes. runZero shows the attributes gathered from Prisma Cloud. ## Troubleshooting {#Prisma-troubleshooting} If you see authentication or access errors when the integration runs, the API URL on your credential is likely incorrect. Check the fulfillment email you received from Palo Alto. It contains the correct API URL. --- docs/rapid7.md --- title: Rapid7 --- runZero integrates with Rapid7's [((InsightVM))](rapid7-insightvm.md) and [((Nexpose))](rapid7-nexpose.md) to enrich your asset inventory and show you the vulnerabilities detected in your environment. ## Asset inventory {#rapid7-asset-inventory} The asset inventory page has a column with the count of vulnerabilities Rapid7 detected for each asset. Select a single asset and the vulnerabilities table lists every result for it. The type of vulnerability scan and the import settings you select can both affect the vulnerability count. ## Vulnerabilities table {#rapid7-vulnerabilities-table} The **Vulnerabilities** tab of the inventory lists every vulnerability result imported from Rapid7. Selecting a result takes you to the page for the affected asset. ## Severity and risk scores {#rapid7-scoring} Rapid7 assigns every vulnerability a severity rating (Moderate, Severe, or Critical) based on its CVSSv2 score. runZero normalizes these severities so the vulnerability inventory is consistent across the runZero Console. | runZero Severity | Rapid7 Severity | CVSS Range | | --------------- | --------------- | -----------| | Info | Moderate | 0.0 | | Medium | Moderate | 0.1 - 3.4 | | High | Severe | 3.5 - 7.4 | | Critical | Critical | 7.5 - 10.0 | runZero also normalizes the risk scores Rapid7 assigns. A risk score of 0.0 appears as `none` in the runZero Console, and every other risk score matches the assigned severity level. --- docs/rapid7-insightvm.md --- title: Rapid7 InsightVM --- runZero imports asset and vulnerability data from ((Rapid7 InsightVM)) through the [InsightVM API](https://help.rapid7.com/insightvm/en-us/api/index.html). runZero supports both Rapid7 ((InsightVM Cloud)) and on-premises ((InsightVM)). ## On-premises InsightVM For an on-premises installation, run the InsightVM connector [as a scan probe](#step-2-choose-how-to-configure-the-rapid7-integration) from a runZero Explorer with network access to the InsightVM deployment. To set up the InsightVM integration, you'll need to: 1. Create or obtain user credentials to use with the InsightVM API. 2. Add the InsightVM API username, password, and API URL in runZero. 3. Choose whether to run the integration as [a scan probe or connector task](integrations-inbound.md#integration-probe-connector). 4. Activate the InsightVM integration to pull your data into runZero. ## Requirements {#insightvm-requirements} Before you set up the InsightVM integration: * Obtain credentials for an InsightVM user with administrator access to the InsightVM portal. * To use trusted authentication, scan your InsightVM with a runZero Explorer (optional). ### Step 1: Add the InsightVM credentials to runZero 1. [Create a new credential](https://console.runzero.com/credentials/new) from the runZero [Credentials page](https://console.runzero.com/credentials). 2. Provide a name for the credentials, like `InsightVM`. 3. Choose **InsightVM Username & Password** from the list of credential types. 4. Fill in these fields: * **InsightVM username** - The username you use to connect to the InsightVM API. This account needs the [`User` role](https://docs.rapid7.com/insightvm/managing-users-and-authentication/#user) or greater permissions in InsightVM. * **InsightVM password** - The password for your InsightVM username. * **InsightVM API URL** - The URL of your InsightVM API instance, in the form `https://ip:3780` or `https://domain.tld:3780`. By default, the InsightVM API uses port 3780. runZero appends `api/3/sites?size=500` to this URL automatically. * **InsightVM insecure** - Set this to `Yes` to attempt authentication without a verified thumbprint. * **InsightVM thumbprints** (optional) - A set of `IP=SHA256:B64HASH` or `domain.tld=SHA256:B64HASH` pairs to trust for authentication. * To get the TLS thumbprint, scan your InsightVM instance with runZero. The [TLS fingerprints service attribute report](https://console.runzero.com/reports/analysis/sattr?f=tls.fp.sha256&sf=protocol&sfv=http%09tls&t=Service%20Attribute%20Report%20[tls.fp.sha256]) lists all previously seen fingerprints. * If _InsightVM insecure_ is set to _No_ and you provide no thumbprints: * With a self-signed certificate, the connection fails because the certificate chain cannot be verified. * With a valid certificate from a public CA, the connection can work without thumbprints. 5. To let all other organizations use this credential, select the _Make this a global credential_ option. Otherwise, you can grant access per organization. 6. Save the credential. ### Step 2: Choose how to configure the Rapid7 integration You can run the Rapid7 InsightVM integration as either a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during scan tasks. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. A scan probe is the right option for most users. A connector works only if you self-host runZero or your InsightVM instance is publicly accessible. ### Step 3: Sync your InsightVM data After you add your InsightVM credential, activate the integration to sync your data. ### Step 3a: Configure the InsightVM scan probe Run the InsightVM integration as a scan probe to have the runZero Explorer pull your vulnerability data into the runZero Console. In a new or existing scan configuration: * Set the _INSIGHTVM_ option to _Yes_ in the _Probes and SNMP_ tab and change any default options as needed. * Set the correct InsightVM credential to _Yes_ in the _Credentials_ tab. * Set the [severity and risk levels](docs/rapid7.md/#rapid7-scoring) for ingested vulnerability scan results (optional). * Enter a Site Name Filter to filter results by InsightVM site using regular expressions (optional). ### Step 3b: Configure the InsightVM connector A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new InsightVM-only assets. 1. Activate a [connection to InsightVM](https://console.runzero.com/ingest/insightvm). You can reach every available third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 2. Choose the credentials you added earlier. If they are not listed, check that the credentials have access to the organization you are in. 3. Set the [severity and risk levels](docs/rapid7.md/#rapid7-scoring) you want to import (optional). 4. Enter a Site Name Filter to limit your results to specific sites (optional). The filter is a regular expression and supports the [re2 syntax](https://github.com/google/re2/wiki/Syntax). 5. Set the **Fingerprint only** toggle to _Yes_ to ingest vulnerability records for fingerprint analysis without storing them in your runZero vulnerability inventory (optional). 6. Enter a name for the task, like `InsightVM sync` (optional). 7. Choose the Explorer to run this connector task from (optional). 8. Choose the site to add your assets to. runZero stores all newly discovered assets in this site. 9. Enter a description for the task (optional). 10. To leave out assets that runZero has not scanned, switch the **Exclude unknown assets** toggle to _Yes_. By default, the integration includes them. 11. Schedule the sync to run once or on a recurring schedule. The schedule starts on the date and time you set. 12. Activate the connection when you are done. The sync runs on the defined schedule, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next sync will occur. ### Step 4: View InsightVM assets and vulnerabilities After a successful sync, [go to your inventory](https://console.runzero.com/inventory) to view your InsightVM assets. They show a Rapid7 icon in the **Source** column. The integration also gathers the vulnerabilities InsightVM detected. Go to Inventory > [Vulnerabilities](https://console.runzero.com/inventory/vulnerabilities) to view the vulnerability data from InsightVM. To search and filter those results, use the [vulnerability instance inventory keywords](search-query-vulnerabilities.md). To filter to Rapid7 assets, run this query: * [View all Rapid7 assets](https://console.runzero.com/inventory?search=source%3ARapid7): ``` source:Rapid7 ``` Click an asset to see its attributes. runZero shows the attributes gathered from the Rapid7 scan data. ## Troubleshooting {#insightvm-troubleshooting} If you are having trouble with this integration, the questions and answers below may help. ### Why is the Rapid7 InsightVM integration unable to connect? 1. Check whether the Rapid7 InsightVM integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the Rapid7 InsightVM integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue ### How can I get a TLS thumbprint for the InsightVM credential? These example commands calculate your TLS thumbprint, where \ is the IP address of your InsightVM instance: ```bash $ (echo|openssl s_client -connect :3780 -showcerts 2>/dev/null) | openssl x509 -inform PEM -outform DER | openssl dgst -sha256 -binary | base64 ``` The commands return a value like this: `X1NWttnkIQprK6zSre/VweKpbRlj7Dt4M6hNfUacytE=` Use the following entry for the corresponding TLS thumbprint: 192.168.0.3:3780=SHA256:X1NWttnkIQprK6zSre/VweKpbRlj7Dt4M6hNfUacytE= ## InsightVM Cloud The Rapid7 InsightVM Cloud integration enriches your runZero inventory with data from the Rapid7 InsightVM Cloud service. To set up the Rapid7 InsightVM Cloud integration, you'll need to: 1. Create or obtain a Rapid7 Platform API Key to use with the [Insight API](https://docs.rapid7.com/insight/managing-platform-api-keys/). 2. Create a credential in runZero with the Rapid7 Platform API Key. 3. Choose whether to run the integration as [a scan probe or connector task](integrations-inbound.md#integration-probe-connector). 4. Activate the integration to pull your data into runZero. ### Step 1: Add the Rapid7 Platform API credentials to runZero 1. [Create a new credential](https://console.runzero.com/credentials/new) from the runZero [Credentials page](https://console.runzero.com/credentials). 2. Provide a name for the credential, like `Rapid7 InsightVM Cloud`. 3. Choose **InsightVM Cloud API Key** from the list of credential types. 4. Fill in these fields: * **InsightVM API Key** - The API key for your InsightVM account. * **InsightVM Host** - The host of your InsightVM API instance. Use the hostname only, for example, "us2.api.insight.rapid7.com". 5. To let all other organizations use this credential, select the _Make this a global credential_ option. Otherwise, you can grant access per organization. 6. Save the credential. ### Step 2: Choose how to configure the Rapid7 integration You can run the Rapid7 InsightVM integration as either a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during scan tasks. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. Most use cases work fine as a connector task. ### Step 3: Sync your InsightVM data After you add your InsightVM credential, activate the integration to sync your data. ### Step 3a: Configure the InsightVM Cloud scan probe Run the InsightVM integration as a scan probe to have the runZero Explorer pull your vulnerability data into the runZero Console. In a new or existing scan configuration: * Set the _INSIGHTVMCLOUD_ option to _Yes_ in the _Probes and SNMP_ tab and change any default options as needed. * Set the correct InsightCloud credential to _Yes_ in the _Credentials_ tab. * Set the [severity and risk levels](docs/rapid7.md/#rapid7-scoring) for ingested vulnerability scan results (optional). ### Step 3b: Configure the InsightVM connector A connector needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new InsightVM-only assets. 1. Activate a [connection to InsightVM Cloud](https://console.runzero.com/ingest/insightvmcloud). You can reach every available third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 2. Choose the credential you added earlier. If it is not listed, check that the credential has access to the organization you are in. 3. Set the [severity and risk levels](docs/rapid7.md/#rapid7-scoring) you want to import (optional). 4. Enter a name for the task, like `InsightVM Cloud sync` (optional). 5. Choose the Explorer to run this connector task from (optional). 6. Choose the site to add your assets to. runZero stores all newly discovered assets in this site. 7. Enter a description for the task (optional). 8. To leave out assets that runZero has not scanned, switch the **Exclude unknown assets** toggle to _Yes_. By default, the integration includes them. 9. Schedule the sync to run once or on a recurring schedule. The schedule starts on the date and time you set. 10. Activate the connection when you are done. The sync runs on the defined schedule, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next sync will occur. --- docs/rapid7-nexpose.md --- title: Nexpose --- runZero integrates with ((Rapid7 Nexpose)) by importing report files exported from your ((Nexpose)) instance. ## Getting started with Rapid7 Nexpose {#nexpose-getting-started} To use the Rapid7 Nexpose integration, you'll need to: 1. Download an XML Export or XML Export 2.0 report from Nexpose. 2. Import the Nexpose files through the inventory pages. ## Requirements {#nexpose-requirements} Before you set up the Nexpose integration: * Make sure you have access to the Nexpose portal. ### Step 1: Export Nexpose vulnerability scan report 1. Sign in to Nexpose with the account you use for the runZero integration. 2. Go to the Reports page and select _Create a report_. 3. From the Export tab, select either XML Report or XML Report 2.0. 4. Set the scan, asset, asset group, or site scope. 5. Click _Save & Run the Report_. 6. When the report completes, save it to a local file. ### Step 2: Import the Nexpose files into runZero 1. Go to the [Inventory page](https://console.runzero.com/inventory) in runZero. 2. Choose **Import** > **Nexpose XML Export (.xml)** from the list of import types. 3. On the import data page: * Choose the site to add your assets to. * Set tags to apply to the imported assets (optional). * Set the [severity and risk levels](docs/rapid7.md/#rapid7-scoring) to ingest (optional). * Set the **Fingerprint only** toggle to _Yes_ to ingest vulnerability records for fingerprint analysis without storing them in your runZero vulnerability inventory (optional). ### Step 3: View Nexpose assets and vulnerabilities After a successful import, [go to your inventory](https://console.runzero.com/inventory) to view your Nexpose assets. They show a Rapid7 icon in the **Source** column. The integration also gathers the vulnerabilities Nexpose detected. Go to Inventory > [Vulnerabilities](https://console.runzero.com/inventory/vulnerabilities) to view the vulnerability data from Nexpose. To search and filter those results, use the [vulnerability instance inventory keywords](docs/search-query-vulnerabilities.md). To filter to Rapid7 assets, run this query: * [View all Rapid7 assets](https://console.runzero.com/inventory?search=source%3Atenable): ``` source:Rapid7 ``` Click an asset to see its attributes. runZero shows the attributes gathered from the Nexpose scan file. ## Troubleshooting {#nexpose-troubleshooting} If you are having trouble with this integration, the questions and answers below may help. ### Why is the Rapid7 Nexpose integration unable to connect? 1. Check whether the Rapid7 Nexpose integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the Rapid7 Nexpose integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue 4. Verify that the integration task runs from an Explorer with access to the Nexpose host. --- docs/sentinelone.md --- title: SentinelOne --- runZero imports ((SentinelOne)) data through the [SentinelOne API](https://www.sentinelone.com/faq/) to sync and enrich your asset inventory, import the software installed on assets, and import the vulnerabilities affecting that software. With SentinelOne data in runZero, vulnerable endpoints and endpoints missing required software are easier to find.
runZero treats any IP address reported by SentinelOne as a secondary address rather than a primary address, because these IPs can be stale and may not belong to a specific network or site.
## Getting started {#sentinelone-getting-started} To set up the SentinelOne integration, you'll need to: 1. Configure SentinelOne to allow API access to runZero. 2. Add the SentinelOne API key and SentinelOne base API URL in runZero. 3. Choose whether to run the integration as [a scan probe or connector task](integrations-inbound.md#integration-probe-connector). 4. Activate the SentinelOne integration to sync your data with runZero. ## Requirements {#sentinelone-requirements} Before you set up the SentinelOne integration: * Make sure you have access to the SentinelOne admin portal. ## Step 1: Configure SentinelOne to allow API access to runZero 1. Sign in to SentinelOne with the account you use for the runZero integration. 2. Go to **User > My User**. 3. **Generate** the API token, then download or copy it. This API key expires every six months and must be regenerated. ## Step 2: Add the SentinelOne credential to runZero 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero. Provide a name for the credentials, like `SentinelOne`. 2. Choose **SentinelOne API key** from the list of credential types. 3. Fill in these fields: * **SentinelOne API URL** - Your organization-specific base URL, which depends on your account type and looks like `organization.sentinelone.net`. * **SentinelOne API key** - The API key from **User > My User** in your SentinelOne portal, where you can generate, regenerate, or revoke a key. 4. To let other organizations use this credential, select the _Make this a global credential_ option. Otherwise, you can grant access per organization. 5. Save the credential. ## Step 3: Choose how to configure the SentinelOne integration You can run the SentinelOne integration as either a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during scan tasks. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. ## Step 4: Set up and activate the SentinelOne integration to sync data After you add your SentinelOne credential, set up a connector task or scan probe to sync your data. ### Step 4a: Configure the SentinelOne integration as a connector task A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new SentinelOne-only assets. 1. Activate a [connection to SentinelOne](https://console.runzero.com/ingest/sentinelone). You can reach every available third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 2. Choose the credentials you added earlier. If they are not listed, check that the credentials have access to the organization you are in. 3. Enter a name for the task, like `SentinelOne sync`. 4. Schedule the sync to run once or on a recurring schedule. The schedule starts on the date and time you set. 5. Under **Task configuration**, choose the site to add your assets to. 6. To skip importing software, switch the **Import Software** toggle to _No_. 7. To skip importing vulnerabilities, switch the **Import Vulnerabilities** toggle to _No_. 8. With the **Import Vulnerabilities** toggle set to _Yes_, use the **Severities** checkboxes to choose which vulnerability severities to import. 9. To leave out assets that runZero has not scanned, switch the **Exclude unknown assets** toggle to _Yes_. By default, the integration includes them. 10. Activate the connection when you are done. The sync runs on the defined schedule, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next sync will occur. ### Step 4b: Configure the SentinelOne integration as a scan probe 1. Create a new scan task or select a future or recurring scan task from your [Tasks page](https://console.runzero.com/tasks). 2. Add or update the scan parameters to match any additional requirements. 3. On the Probes and SNMP tab, choose which additional probes to include, set the SentinelOne toggle to _Yes_, and change any default options as needed. 4. On the Credentials tab, set the toggle to _Yes_ for the SentinelOne credential you want to use. 5. Click **Initialize scan** to save the scan task. It runs immediately or at the scheduled time. ## Step 5: View SentinelOne assets and software After a successful sync, [go to your inventory](https://console.runzero.com/inventory) to view your SentinelOne assets. They show a SentinelOne icon in the **Source** column. The integration also gathers details about installed software. Go to Inventory > [Software](https://console.runzero.com/inventory/software) to view the software data from SentinelOne. To search and filter that software, use the [software instance inventory keywords](search-query-software.md). To filter to SentinelOne assets, run one of these queries: * [View all SentinelOne assets](https://console.runzero.com/inventory?search=source%3Asentinelone): ``` source:SentinelOne ``` * [Find assets that have a SentinelOne agent installed](https://console.runzero.com/inventory?search=edr.name%3Asentinelone): ``` edr.name:SentinelOne ``` * [Find Windows assets, excluding servers, that are missing a SentinelOne agent](https://console.runzero.com/inventory?search=os%3Awindows%20and%20not%20type%3Aserver%20and%20not%20edr.name%3Asentinelone): ``` os:windows and not type:server and not edr.name:SentinelOne ``` Click an asset to see its attributes. runZero shows the attributes returned by the SentinelOne API, except policies. ## Troubleshooting {#sentinelone-troubleshooting} If you are having trouble with this integration, the questions and answers below may help. ### Why is the SentinelOne integration unable to connect? 1. Check whether the SentinelOne integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the SentinelOne integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue 4. If SentinelOne is on-premises, verify that the integration task runs from an Explorer with access to the SentinelOne host. --- docs/shodan.md --- title: Shodan --- runZero pulls your externally facing assets and services from ((Shodan)) through the [Shodan API](https://developer.shodan.io/api) for better visibility of your internet footprint and cyber hygiene. ## Getting started {#shodan-getting-started} To set up the Shodan integration: 1. Add your Shodan API key to runZero. 2. Choose whether to run the integration as [a scan probe or a connector task](integrations-inbound.md#integration-probe-connector). 3. Activate the integration to sync your data into runZero. ## Requirements {#shodan-requirements} * A Shodan account with a license that fits your needs. ## Step 1: Add the Shodan credential to runZero 1. Go to the [new credential page](https://console.runzero.com/credentials/new) in runZero and name the credential, for example `Shodan`. 2. Choose **Shodan Search API key** from the list of credential types. 3. Enter your **Shodan Search API key**. The key is on the Account page of the Shodan portal, where you can also reset it. 4. To share this credential with other organizations, select _Make this a global credential_. Otherwise, you can grant access per organization. 5. Save the credential. ## Step 2: Choose how to configure the Shodan integration You can run the Shodan integration as a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers Shodan data during a scan task. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. ## Step 3: Set up and activate the Shodan integration to sync data With the credential saved, set up a connection or a scan probe to sync your data from Shodan. ### Step 3a: Configure the Shodan integration as a connector task A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new Shodan-only assets. 1. Activate a [connection to Shodan](https://console.runzero.com/ingest/shodan). You can also reach every third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 2. Choose the credential you added earlier. If it isn't listed, check that it has access to your current organization. 3. Either enter a Shodan search in Shodan's search syntax, or let runZero generate a search for the public IP addresses of all live assets. 4. Optionally, use the "Ignore Shodan tags" input to enter a comma-separated list of tags to exclude from Shodan assets. 5. Enter a name for the task, like `Shodan sync`. 6. Schedule the sync to run once or on a recurring schedule, starting at the date and time you set. 7. Under **Task configuration**, choose the site for your assets. 8. To leave out assets runZero hasn't scanned, switch the **Exclude unknown assets** toggle to _Yes_. The import includes them by default. 9. Activate the connection. The sync runs on your schedule, and the [tasks](https://console.runzero.com/tasks) page shows when the next sync will run. ### Step 3b: Configure the Shodan integration as a scan probe 1. Create a new scan task, or pick a future or recurring one from your [Tasks page](https://console.runzero.com/tasks). 2. Add or update the scan parameters as needed. 3. On the Probes and SNMP tab, choose any other probes to include, set the Shodan toggle to _Yes_, and adjust the default options if needed. As with a connector task, you can enter a Shodan search string directly or choose _assets_ mode to have runZero generate a search for the public IP addresses of all live assets. 4. On the Credentials tab, set the Shodan toggle to _Yes_ for the credential you want to use. 5. Click **Initialize scan** to save the task. It runs immediately or at its scheduled time. ## Step 4: View Shodan assets and services After a successful sync, your Shodan assets appear in [your inventory](https://console.runzero.com/inventory) with a Shodan icon in the **Source** column. The integration also gathers service details. Go to Inventory > [Services](https://console.runzero.com/inventory/services) to view the service data from Shodan. To filter by Shodan assets or services, run these queries: * [View all Shodan assets](https://console.runzero.com/inventory?search=source%3Ashodan): ``` source:shodan ``` * [View all Shodan services](https://console.runzero.com/inventory/services?search=source%3Ashodan): ``` source:shodan ``` Open an asset or service to see the attributes runZero pulled from the Shodan Search API. ## Troubleshooting {#shodan-troubleshooting} If you're having trouble with the integration, start with these questions and answers. ### Why is the Shodan integration unable to connect? 1. Check whether the Shodan integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the Shodan integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue --- docs/tailscale.md --- title: Tailscale --- runZero imports the devices in your ((Tailscale)) tailnet, including their addresses, operating system, hostnames, tags, and the Tailscale account that owns each node. Tailscale is the first integration runZero ships as a platform-packaged Starlark integration. It runs on the same engine as [custom integration scripts](custom-integration-scripts.md), with the script embedded in the product, so you configure it like any other connector and never edit a script. ## Getting started {#tailscale-getting-started} To set up the Tailscale integration: 1. Create a Tailscale API access token, or an OAuth client, in the Tailscale admin console. 2. Add the Tailscale credential to runZero. 3. Set up and activate the connector task that syncs your data into runZero. ## Requirements {#tailscale-requirements} * Access to the [Tailscale admin console](https://login.tailscale.com/admin) with permission to create API access tokens or OAuth clients. * The runZero custom integrations entitlement. * An Explorer running version 5.0.260723.0 or newer, if the task runs on an Explorer. The Tailscale API is reachable from the cloud, so the task can also run without one. ## Step 1: Create a Tailscale API token or OAuth client The integration accepts either kind of credential: * For an **API access token**, go to **Settings > Keys** in the Tailscale admin console and generate one (it starts with `tskey-api-`). Tokens expire, so prefer an OAuth client for a scheduled sync. * For an **OAuth client**, go to **Settings > OAuth clients** in the Tailscale admin console and create a client with at least the `devices:core:read` scope. Copy the client ID and client secret. ## Step 2: Add the Tailscale credential to runZero 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero and click **Add Credential**. 2. Choose **Tailscale Settings & Secrets** from the list of credential types. 3. Fill in the fields: * Leave **Tailscale API URL** at the default `https://api.tailscale.com` unless you proxy the API. * Set **Tailnet** to the tailnet ID or name, for example `T1234CNTRL` or `example.com`. * Enter your client ID in **OAuth client ID**, or leave it blank to use a plain API key. * Set **API key / OAuth client secret** to the API access token, or to the OAuth client secret when a client ID is set. 4. Save the credential. ## Step 3: Set up and activate the Tailscale integration 1. Activate a [connection to Tailscale](https://console.runzero.com/ingest/tailscale). You can also reach it from the Tailscale card on the [integrations page](https://console.runzero.com/integrations). 2. Choose the credential you added earlier. If it isn't listed, check that it has access to your current organization. 3. Enter a name for the task, like `Tailscale sync`. 4. Schedule the sync and choose the site for newly discovered assets. 5. To stop the sync from creating assets runZero hasn't seen any other way, enable **Exclude assets that cannot be merged into an existing asset**. 6. Select an Explorer, or leave the selection empty to run the sync from the runZero cloud. 7. Activate the connection. The sync runs on the schedule you set. ## Step 4: View Tailscale assets After a successful sync, your Tailscale devices appear in [your inventory](https://console.runzero.com/inventory) with the Tailscale icon in the **Source** column. Their attributes live under `tailscale.device.*`, and runZero resolves the Tailscale account that owns each node into asset ownership. [Managing ownership](managing-ownership.md) explains the owner types and how to assign an owner to an asset. To filter by Tailscale assets: ``` source:tailscale ``` --- docs/tanium.md --- title: Tanium API Gateway --- runZero imports data from the [Tanium Gateway API](https://developer.tanium.com/apis/tanium_gateway_schema/queries/endpoints) to sync your endpoints, applications, and vulnerabilities from ((Tanium)) for better visibility over your network. ## Getting started with Tanium {#tanium-getting-started} To set up the Tanium integration: 1. Generate an API token with the permissions the integration needs. 1. Add the Tanium credential to runZero. 1. Choose whether to run the integration as [a scan probe or a connector task](integrations-inbound.md#integration-probe-connector). 1. Activate the integration to pull your data into runZero. ## Step 1: Generate an API key in Tanium Dashboard {#tanium-step1} 1. Sign in to Tanium and go to **Administration > Roles**. 1. Create a role with the permissions the integration needs: 1. Search for the **Gateway User** role. 1. Select it and click the **Clone** button that appears. 1. On the **Clone Role** screen, enable **Platform Content Permissions > Sensor > Read** and add these Content Sets with the **n+** button beside the green check: * Base * Comply * Comply Reporting * Core AD Query Content * Core Content * Reserved * Tanium Data Service 1. Save the role. 1. Go to **Administration > Personas** and click **New Persona** to create a persona with the role you just created: 1. Name the persona. 1. Under **Manage Roles**, search for and apply your new role. 1. Under **Computer Groups**, add the groups you need, or check **Unrestricted Management Rights** to allow access to all Computer Groups. 1. Assign a user or service account that has the permissions granted to the persona. 1. Save the persona. 1. Go to **Administration > API Tokens** and click **New API Token**. 1. Enter a name and select a TTL. 1. Select the persona you just created from the dropdown (you may need to refresh the page for it to appear). 1. Enter the IP addresses to allow requests from: * If you run the integration from an Explorer or the CLI, enter the IP addresses or ranges of your hosts. * Otherwise, enter `0.0.0.0/0`. 1. Save the API token. ## Step 2: Add the Tanium API token to runZero {#tanium-step2} 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero. 1. Choose **Tanium API Token** from the list of credential types. 1. Name the credential, for example `Tanium`. 1. Fill in the fields: * Enter your Tanium API Gateway URL in **Tanium API URL**. The full URL looks like `https://-api.cloud.tanium.com/plugin/products/gateway/graphql`. If you leave off the path (`/plugin/products/gateway/graphql`), runZero adds it when it calls the API. * In **Tanium API token**, enter the token (including the `token-` prefix) you created in step 1. * Enable **Insecure** to allow authentication with untrusted endpoints. It turns off certificate validation, so use it with caution. 1. To share this credential with other organizations, select _Make this a global credential_. Otherwise, you can grant access per organization. 1. Verify and save the credential. ## Step 3: Choose how to configure the Tanium integration {#tanium-step3} You can run the Tanium integration as a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during a scan task. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. ## Step 4: Set up and activate the integration to sync data {#tanium-step4} ### Step 4a: Configure the Tanium integration as a connector task {#tanium-step4a} A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new Tanium-only assets. 1. Activate a connection to [Tanium](https://console.runzero.com/ingest/tanium). You can also reach every third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 1. Choose the credentials you added earlier. If they aren't listed, check that they have access to your current organization. 1. Optionally, enter a comma-separated list of computer groups to include. runZero then imports data only for those groups. 1. Enter a name for the task, like `Tanium Sync` (optional). 1. Choose the Explorer that runs this connector task (optional). 1. Choose the site for your assets. runZero stores all newly discovered assets there. 1. Enter a description for the task (optional). 1. To leave out assets runZero hasn't scanned, switch the **Exclude unknown assets** toggle to _Yes_. The import includes them by default. 1. Schedule the sync to run once or on a recurring schedule, starting on the date and time you set. 1. Activate the connection. The sync runs on your schedule, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next one will run. ### Step 4b: Configure the Tanium integration as a scan probe {#tanium-step4b} Run the Tanium integration as a scan probe to have the runZero Explorer pull your Tanium assets into the runZero Console. In a new or existing scan configuration: * Set the _TANIUM_ option to _Yes_ in the _Probes and SNMP_ tab and change any default options you need. * Set the correct _TANIUM_ credential to _Yes_ in the _Credentials_ tab. ## Step 5: View Tanium assets {#tanium-step5} After a successful sync, your Tanium assets appear in [your inventory](https://console.runzero.com/inventory) with a Tanium icon in the **Source** column. To filter by Tanium assets, run this query: * [View all Tanium assets](https://console.runzero.com/inventory?search=source%3Atanium): ``` source:Tanium ``` Open an asset to see the attributes runZero gathered from Tanium. --- docs/tenable.md --- title: Tenable --- runZero integrates with ((Tenable Vulnerability Management)) (previously ((Tenable.io))), ((Tenable Nessus)), and ((Tenable Security Center)) to enrich your asset inventory and show you the vulnerabilities detected in your environment. The [Tenable Vulnerability Management](docs/tenable-vm.md), [Nessus Professional](docs/tenable-nessuspro.md), and [Tenable Security Center](docs/tenable-sc.md) integrations pull data from the Tenable API. All versions of [Tenable Nessus](docs/tenable-nessus.md) and Tenable Security Center (previously ((Tenable.sc))) also work through Nessus v2 file imports (`.nessus`). The API integration currently supports only the main [Tenable Vulnerability Management](https://www.tenable.com/products/tenable-io/) cloud endpoint at `https://cloud.tenable.com`. ## Asset inventory {#tenable-asset-inventory} The asset inventory page has a column with the count of vulnerabilities Tenable detected on each asset. Select an asset, and its vulnerabilities table lists every result for that asset. The type of vulnerability scan and your import settings can both affect the count. ## Vulnerabilities table {#tenable-vulnerabilities-table} The **Vulnerabilities** tab of the inventory lists every vulnerability result imported from Tenable. Selecting a result opens the page for the affected asset. ## Severity and risk scores {#tenable-scoring} Tenable describes vulnerability severity with the third-party Common Vulnerability Scoring System (CVSS) values from the National Vulnerability Database (NVD). Every vulnerability gets a severity rating (Info, Low, Medium, High, or Critical) based on its static CVSSv2 or CVSSv3 score. Tenable uses CVSSv2 by default, though you can opt for CVSSv3 instead. runZero displays the CVSSv2-based severity in the Inventory and Asset views. Tenable also calculates a dynamic Vulnerability Priority Rating (VPR) for most vulnerabilities to supplement the severity rating. Where the CVSS score is static, Tenable updates the VPR to reflect current threats. VPR values range from 0.1-10.0, and a higher value means a higher likelihood of exploit. runZero displays the VPR-based risk in the Inventory and Asset views. Tenable's [documentation](https://docs.tenable.com/tenablesc/Content/RiskMetrics.htm) has more on how it handles severity and risk. --- docs/tenable-vm.md --- title: Tenable Vulnerability Management aliases: ["/docs/tenable-io/"] --- runZero imports data from Tenable Vulnerability Management (previously ((Tenable.io))) through the Tenable [API](https://developer.tenable.com/docs/welcome/). ## Getting started with Tenable Vulnerability Management {#tenablevm-getting-started} To set up the Tenable Vulnerability Management integration: 1. Create an Administrator API key in an access group with `Can View` [permission](https://developer.tenable.com/docs/permissions) to `Manage Assets`. To retrieve agent health data, the key also needs the Scan Manager role. 2. Add the Tenable Vulnerability Management credential to runZero. 3. Choose whether to run the integration as [a scan probe or a connector task](integrations-inbound.md#integration-probe-connector). 4. Activate the integration to pull your data into runZero. ## Requirements {#tenablevm-requirements} * Administrator access to the Tenable portal. ## Step 1: Create an Administrator API key {#tenablevm-step1} 1. Sign in to Tenable Vulnerability Management with the Administrator account you're using for the runZero integration. 2. Go to **My Profile** > **My Account** > **API Keys**. 3. Click **Generate**, then download or copy the API token. ## Step 2: Add the Tenable credential to runZero {#tenablevm-step2} 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero and name the credential, for example `Tenable Vulnerability Management`. 2. Choose **Tenable.io Access & Secret** from the list of credential types. 3. Generate your Tenable access and secret keys from your account page in the Tenable portal, then fill in the fields: * Enter your 64-character Tenable access key in **Access key**. * Enter your 64-character Tenable secret key in **Secret key**. 4. To share this credential with other organizations, select _Make this a global credential_. Otherwise, you can grant access per organization. 5. Save the credential. ## Step 3: Choose how to configure the Tenable integration {#tenablevm-step3} You can run the Tenable Vulnerability Management integration as a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during a scan task. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. A connector task works if you're self-hosting runZero or integrating with Tenable Vulnerability Management. ## Step 4: Set up and activate the integration to sync data {#tenablevm-step4} ### Step 4a: Configure the Tenable integration as a connector task {#tenablevm-step4a} A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new Tenable-only assets. 1. Activate a connection to [Tenable Vulnerability Management](https://console.runzero.com/ingest/tenable). You can also reach every third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 1. Choose the credentials you added earlier. If they aren't listed, check that they have access to your current organization. 1. To leave out assets runZero hasn't scanned, check **Exclude assets that cannot be merged into an existing asset**. The import includes them by default. 1. To include assets that haven't been assessed for vulnerabilities, check **Include assets that have not been assessed for vulnerabilities**. 1. To skip asset agent health data, check **Disable importing asset agent data**. 1. Check **Disable importing software from the Tenable inventory** to use software records for fingerprint analysis without storing them in your runZero software inventory (optional). 1. Check **Disable importing vulnerabilities from the Tenable inventory** to use vulnerability records for fingerprint analysis without storing them in your runZero vulnerability inventory (optional). 1. Set the [severity and risk levels](docs/tenable.md/#tenable-scoring) to import (optional). Much of the host information from Tenable comes from Info-level plugins, so if you import only higher severities, assets runZero hasn't scanned may show little information. 1. Optionally, enter a comma-separated list of tags to include, in the format `category:value`. runZero imports assets that match at least one of the tags. 1. To filter by asset source, set **Filter by asset source** to _All supported sources_ or to a combination of sources from the checklist. 1. Enter a name for the task, like `Tenable Vulnerability Management sync` (optional). 1. Choose the Explorer that runs this connector task (optional). 1. Choose the site for your assets. runZero stores all newly discovered assets there. 1. Enter a description for the task (optional). 1. Schedule the sync to run once or on a recurring schedule, starting on the date and time you set. 1. Activate the connection. The sync runs on your schedule, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next one will run. ### Step 4b: Configure the Tenable integration as a scan probe {#tenablevm-step4b} Run the Tenable Vulnerability Management integration as a scan probe to have the runZero Explorer pull your vulnerability data into the runZero Console. In a new or existing scan configuration: * Set the _TENABLE_ option to _Yes_ in the _Probes and SNMP_ tab and change any default options you need. * Optionally, set the [severity and risk levels](docs/tenable.md/#tenable-scoring) for ingested vulnerability scan results. * Set the correct `Tenable` credential to _Yes_ in the _Credentials_ tab. ### Step 5: View Tenable assets and vulnerabilities {#tenablevm-step5} After a successful sync, your Tenable assets appear in [your inventory](https://console.runzero.com/inventory) with a Tenable icon in the **Source** column. The integration also gathers the vulnerabilities Tenable detected. Go to **Inventory** > [**Vulnerabilities**](https://console.runzero.com/inventory/vulnerabilities) to view the vulnerability data from Tenable Vulnerability Management. To filter by Tenable assets, run this query: * [View all Tenable assets](https://console.runzero.com/inventory?search=source%3Atenable): ``` source:Tenable ``` Open an asset to see the attributes runZero gathered from the Tenable scan data. ## Troubleshooting {#tenablevm-troubleshooting} If you're having trouble with the integration, start with these questions and answers. ### Why is the Tenable Vulnerability Management integration unable to connect? {#tenablevm-connection-error} 1. Check whether the Tenable Vulnerability Management integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the Tenable Vulnerability Management integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue 4. If Tenable Vulnerability Management is on-premises, verify that the integration task runs from an Explorer with access to the Tenable host. ### How do I solve the following error in Tenable Vulnerability Management: {#tenablevm-import-error} ``` "error-message":"no tenable assets match import criteria", "level":"error","msg":"could not load scan result data to writer" ``` Enabling the _Include Unscanned Assets_ toggle in the Tenable task configuration usually resolves this error, which Tenable returns intermittently. The toggle disables the filters runZero applies for live assets scanned in the last 30 days. --- docs/tenable-nessuspro.md --- title: Nessus Professional --- runZero imports data from ((Nessus Professional|Tenable Nessus Professional)) through the Tenable [API](https://developer.tenable.com/docs/welcome/). ## Getting started with Nessus Professional {#nessuspro-getting-started} To set up the ((Nessus Professional)) integration: 1. Create an Administrator API key in an access group with _Can View_ [permission](https://developer.tenable.com/docs/permissions) to _Manage Assets_. 2. Add the Nessus Professional credential to runZero. 3. Choose whether to run the integration as [a scan probe or a connector task](integrations-inbound.md#integration-probe-connector). 4. Activate the integration to pull your data into runZero. ## Requirements {#nessuspro-requirements} * Administrator access to the Nessus Professional portal. ## Step 1: Create an Administrator API key 1. Sign in to Nessus Professional with the Administrator account you're using for the runZero integration. 2. Go to **My Profile** > **My Account** > **API Keys**. 3. Click **Generate**, then download or copy the API token. * When you create the runZero credential, either configure it to skip TLS verification or provide the TLS thumbprint. ## Step 2: Add the Nessus Professional credential to runZero 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero and name the credential, for example `Nessus Professional`. 2. Choose **Nessus Professional Access & Secret** from the list of credential types. 3. Generate your Tenable access and secret keys from your account page in the Tenable portal, then fill in the fields: * Enter your 64-character Tenable access key in **Access key**. * Enter your 64-character Tenable secret key in **Secret key**. * Enter the API URL of your Nessus Professional instance in **Nessus API URL**, in the form `https://ip:port` or `https://domain.tld:port`. The default Nessus Professional port is `8834`. * Set **Nessus insecure** to _Yes_ to attempt authentication without a verified thumbprint. * Optionally, enter a set of IP=SHA256:B64HASH pairs to trust for authentication in **Nessus thumbprints**. * To get the TLS thumbprint, scan your Nessus instance with runZero. The [TLS fingerprints service attribute report](https://console.runzero.com/reports/analysis/sattr?f=tls.fp.sha256&sf=protocol&sfv=http%09tls&t=Service%20Attribute%20Report%20[tls.fp.sha256]) lists every fingerprint runZero has seen. * If _Nessus insecure_ is _No_ and you provide no thumbprints: * With a self-signed certificate, the connection fails because the certificate chain can't be verified. * With a valid certificate from a public CA, the connection can work without thumbprints. 4. To share this credential with other organizations, select _Make this a global credential_. Otherwise, you can grant access per organization. 5. Save the credential. ## Step 3: Choose how to configure the Nessus Professional integration You can run the Nessus Professional integration as a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during a scan task. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. A connector task works if you're self-hosting runZero or your Nessus Professional instance is publicly accessible. ## Step 4: Set up and activate the integration to sync data ### Step 4a: Configure the Nessus Professional integration as a connector task A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new Tenable-only assets. 1. Activate a connection to [Nessus Professional](https://console.runzero.com/ingest/nessus). You can also reach every third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 2. Choose the credentials you added earlier. If they aren't listed, check that they have access to your current organization. 3. Set the [severity and risk levels](docs/tenable.md/#tenable-scoring) to import (optional). Much of the host information from Tenable comes from Info-level plugins, so if you import only higher severities, assets runZero hasn't scanned may show little information. 4. Set the **Fingerprint only** toggle to _Yes_ to use vulnerability records for fingerprint analysis without storing them in your runZero vulnerability inventory (optional). 5. Enter a name for the task, like `Nessus Professional sync` (optional). 6. Choose the Explorer that runs this connector task (optional). 7. Choose the site for your assets. runZero stores all newly discovered assets there. 8. Enter a description for the task (optional). 9. To leave out assets runZero hasn't scanned, switch the **Exclude unknown assets** toggle to _Yes_. The import includes them by default. 10. To include assets that haven't been assessed for vulnerabilities, switch the **Include unscanned assets** toggle to _Yes_. 11. Schedule the sync to run once or on a recurring schedule, starting on the date and time you set. 12. Activate the connection. The sync runs on your schedule, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next one will run. ### Step 4b: Configure the Nessus Professional integration as a scan probe Run the Nessus Professional integration as a scan probe to have the runZero Explorer pull your vulnerability data into the runZero Console. In a new or existing scan configuration: * Set the _NESSUS_ option to _Yes_ in the _Probes and SNMP_ tab and change any default options you need. * Set the correct _Nessus_ credential to _Yes_ in the _Credentials_ tab. * Optionally, set the [severity and risk levels](docs/tenable.md/#tenable-scoring) for ingested vulnerability scan results. ### Step 5: View Tenable assets and vulnerabilities After a successful sync, your Tenable assets appear in [your inventory](https://console.runzero.com/inventory) with a Tenable icon in the **Source** column. The integration also gathers the vulnerabilities Nessus Professional detected. Go to Inventory > [Vulnerabilities](https://console.runzero.com/inventory/vulnerabilities) to view the vulnerability data from Nessus Professional. To filter by Tenable assets, run this query: * [View all Tenable assets](https://console.runzero.com/inventory?search=source%3Atenable): ``` source:Tenable ``` Open an asset to see the attributes runZero gathered from the Tenable scan data. ## Troubleshooting {#nessuspro-troubleshooting} If you're having trouble with the integration, start with these questions and answers. ### Why is the Nessus Professional integration unable to connect? {#nessuspro-connection-error} 1. Check whether the Nessus Professional integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the Nessus Professional integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue 4. If Nessus Professional is on-premises, verify that the integration task runs from an Explorer with access to the Tenable host. ### How do I solve the following error in Nessus Professional: * `"error-message":"no tenable assets match import criteria","level":"error","msg":"could not load scan result data to writer"` {#nessuspro-import-error} Enabling the _Include Unscanned Assets_ toggle in the Tenable task configuration usually resolves this error, which Tenable returns intermittently. The toggle disables the filters runZero applies for live assets scanned in the last 30 days. --- docs/tenable-nessus.md --- title: Tenable Nessus --- runZero integrates with ((Tenable Nessus)) in two ways. For every version of ((Nessus)), runZero can import Nessus files (`.nessus`) exported from your Nessus instance, and exports from Tenable Security Center work too. For Nessus Professional, the integration can also pull scan data from the [Nessus Professional API](docs/tenable-nessuspro.md). ## Getting started with Tenable Nessus {#nessus-getting-started} To use the Tenable Nessus integration: 1. Export vulnerability scan results as Nessus files. 2. Import the Nessus files through the inventory pages. ## Requirements {#nessus-requirements} * Access to the Nessus portal. ### Step 1: Export vulnerability scan results 1. Sign in to Nessus with the account you're using for the runZero integration. 2. Open the scan results you want to import into runZero. 3. Choose **Export** > **Nessus** to download the scan results. ### Step 2: Import the Nessus files into runZero 1. Go to the [Inventory page](https://console.runzero.com/inventory) in runZero. 2. Choose **Import** > **Nessus scan (.nessus)** from the list of import types. 3. On the import data page: * Choose the site for your assets. * Set the [severity levels and minimum risk level](docs/tenable.md/#tenable-scoring) to ingest. Much of the host information from Tenable comes from Info-level plugins, so if you import only higher severities, assets runZero hasn't scanned may show little information. ### Step 3: View Nessus assets and vulnerabilities After a successful import, your Nessus assets appear in [your inventory](https://console.runzero.com/inventory) with a Tenable icon in the **Source** column. The integration also gathers the vulnerabilities Nessus detected. Go to Inventory > [Vulnerabilities](https://console.runzero.com/inventory/vulnerabilities) to view the vulnerability data from Nessus. To filter by Nessus assets, run this query: * [View all Nessus assets](https://console.runzero.com/inventory?search=source%3Atenable): ``` source:Tenable ``` Open an asset to see the attributes runZero gathered from the Nessus scan file. ## Troubleshooting {#nessus-troubleshooting} If you're having trouble with the integration, start with these questions and answers. ### Why is the Tenable Nessus integration unable to connect? 1. Check whether the Tenable Nessus integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. --- docs/tenable-sc.md --- title: Tenable Security Center aliases: ["/docs/tenable-sc/"] --- runZero imports data from Tenable Security Center (previously ((Tenable.sc))) through the Tenable Security Center [API](https://docs.tenable.com/security-center/api/). ## Getting started with Tenable Security Center {#tenablesc-getting-started} To set up the Tenable Security Center integration: 1. Create an API key for a user who can view and query vulnerabilities in Tenable Security Center. 1. Add the Tenable Security Center credential to runZero. 1. Choose whether to run the integration as [a scan probe or a connector task](integrations-inbound.md#integration-probe-connector). 1. Activate the integration to pull your data into runZero. ## Requirements {#tenablesc-requirements} * Administrator access to the Tenable Security Center portal. ## Step 1: Create an API key {#tenablesc-step1} 1. Sign in to Tenable Security Center with an Administrator account. 1. Make sure [API key authentication is enabled](https://docs.tenable.com/security-center/Content/EnableAPIKeys.htm). 1. Go to **Users** > **Users**. 1. Check the box for the user you want to create an API key for. The key gets the same access as that user, so pick one who can view and query vulnerabilities in the organization you want. 1. At the top of the table, click **API Keys** > **Generate API Key**. 1. Click **Generate**, then download or copy the API token. ## Step 2: Add the Tenable Security Center credential to runZero {#tenablesc-step2} 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero and name the credential, for example `Tenable Security Center`. 1. Choose **Tenable Security Center Access & Secret** from the list of credential types. 1. Generate your Tenable Security Center API key as described in [Step 1](#tenablesc-step1), then fill in the fields: * Enter your 64-character Tenable Security Center access key in **Access key**. * Enter your 64-character Tenable Security Center secret key in **Secret key**. 1. To share this credential with other organizations, select _Make this a global credential_. Otherwise, you can grant access per organization. 1. Save the credential. ## Step 3: Choose how to configure the Tenable Security Center integration {#tenablesc-step3} You can run the Tenable Security Center integration as a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during a scan task. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. For an internal Tenable Security Center instance, we recommend a connector that runs from one of your Explorers. For an external-facing instance, the connector can run from the cloud. If you self-host runZero, run the connector from an Explorer or from your runZero host, whichever can reach your Tenable Security Center install. ## Step 4: Set up and activate the integration to sync data {#tenablesc-step4} ### Step 4a: Configure the Tenable Security Center integration as a connector task {#tenablesc-step4a} A connection needs a schedule, which sets when the sync runs. 1. Activate a connection to [Tenable Security Center](https://console.runzero.com/ingest/tenablesecuritycenter). You can also reach every third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 1. Choose the credentials you added earlier. If they aren't listed, check that they have access to your current organization. 1. Set the _Tenable Security Center query mode_ (optional): * Select _Define filters_ to filter by [vulnerability severity and risk level](docs/tenable.md/#tenable-scoring). Much of the host information from Tenable comes from Info-level plugins, so if you import only higher severities, assets may show little information. * Select _Use existing query ID_ to specify the Tenable Security Center query to use. The query must be the _Vulnerability_ type and use the _Vulnerability Detail List_ tool. 1. Set the **Fingerprint only** toggle to _Yes_ to use vulnerability records for fingerprint analysis without storing them in your runZero vulnerability inventory (optional). 1. Enter a name for the task, like `Tenable Security Center sync` (optional). 1. Choose the Explorer that runs this connector task (optional). 1. Choose the site for the connector. 1. Enter a description for the task (optional). 1. Schedule the sync to run once or on a recurring schedule, starting on the date and time you set. 1. Activate the connection. The sync runs on your schedule, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next one will run. ### Step 4b: Configure the Tenable Security Center integration as a scan probe {#tenablesc-step4b} Run the Tenable Security Center integration as a scan probe to have the runZero Explorer pull your vulnerability data into the runZero Console. In a new or existing scan configuration: * Set the _TENABLESECURITYCENTER_ option to _Yes_ in the _Probes and SNMP_ tab and change any default options you need. * Optionally, set the [severity and risk levels](tenable.md/#tenable-scoring) for ingested vulnerability scan results or provide a query ID. * Set the correct `TenableSecurityCenter` credential to _Yes_ in the _Credentials_ tab. ### Step 5: View Tenable Security Center assets and vulnerabilities {#tenablesc-step5} After a successful sync, your Tenable Security Center assets appear in [your inventory](https://console.runzero.com/inventory) with a Tenable icon in the **Source** column. The integration also gathers the vulnerabilities Tenable Security Center detected. Go to **Inventory** > [**Vulnerabilities**](https://console.runzero.com/inventory/vulnerabilities) to view the vulnerability data from Tenable Security Center. To filter by Tenable Security Center assets or vulnerabilities, run these queries: * [View all Tenable Security Center assets](https://console.runzero.com/inventory?search=source%3Atenablesecuritycenter): ``` source:tenablesecuritycenter ``` * [View all Tenable Security Center vulnerabilities](https://console.runzero.com/inventory/vulnerability?search=source%3Atenablesecuritycenter): ``` source:tenablesecuritycenter ``` Open an asset or vulnerability to see the attributes runZero gathered from the Tenable Security Center API. --- docs/vmware.md --- title: VMware --- runZero Platform syncs your ((VMware)) ((vCenter)) and ((ESXi)) ((virtual machine)) inventories. ## Setting up VMware credentials Unlike other API integrations, VMware synchronization runs as part of your regular runZero Explorer scans. Start by creating a set of VMware credentials. On the [Scanning with credentials](https://console.runzero.com/credentials) page, click _Add Credential_, choose the _VMware vCenter/ESXi Username and Password_ credential type, and enter the username and password. In most cases the username takes the form `user@domain.com`. The VMware account needs at least **read-only** access. The CIDR allow list field limits which addresses receive the credentials, so the runZero Explorer doesn't hand them to unexpected VMware systems it encounters on the network. If runZero has already found VMware API endpoints, the optional _VMware thumbprints_ field lists their IP addresses and TLS fingerprints. Remove any system you don't want to trust with your VMware credentials. If you'd rather not limit authentication to a fixed list of IP addresses and TLS certificates, set _VMware insecure_ to _Yes_ to allow authentication with untrusted endpoints. Set organization access for the credentials as you would for any other stored credential; see [Scanning with credentials](scanning-credentials.md). ## Performing VMware synchronization With the credentials defined, enable VMware synchronization in a scan task. Any task that scans the VMware host systems can synchronize VMware VM data. The Probes tab of the scan setup has a section for enabling and disabling the VMware probe. Synchronization needs the probe enabled, which it is by default. On the Credentials tab, use the toggle to enable the right set of VMware vCenter/ESXi credentials. When the scan runs, the Explorer authenticates with every VMware ESXi or vCenter host it finds that the credentials are configured to trust. runZero imports data about the VMware VMs automatically and merges it with what scanning found. ## Troubleshooting {#vmware-troubleshooting} If you're having trouble with the integration, start with these questions and answers. ### Why is the VMware integration unable to connect? 1. Check whether the VMware integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. 3. If the VMware integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue 4. If VMware is on-premises, verify that the integration task runs from an Explorer with access to the VMware host. --- docs/wiz.md --- title: Wiz --- runZero imports data from the [Wiz API](https://docs.wiz.io/wiz-docs/docs/wiz-api-introduction) to sync your cloud assets, software, and vulnerabilities from ((Wiz)), for better visibility of your cloud assets and security posture. ## Getting started with Wiz {#wiz-getting-started} To set up the Wiz integration: 1. Create a Service Account in Wiz with permissions to read graph resources, read reports, and create reports. 2. Add the Wiz credential to runZero. 3. Choose whether to run the integration as [a scan probe or a connector task](integrations-inbound.md#integration-probe-connector). 4. Activate the integration to pull your data into runZero. ## Requirements {#wiz-requirements} * Administrator access to the Wiz portal. ## Step 1: Create a Service Account in Wiz {#wiz-step1} 1. Sign in to Wiz with an Administrator account. 2. Go to **Settings** > **Access Management** > **Service Accounts** > **Add Service Account**. 3. Enter a descriptive name in the **Name** field. 4. For **Type**, select _Custom Integration (GraphQL API)_. 5. Under **Projects**, select the projects the Service Account can access, or leave it blank to allow all projects. 6. For **API Scopes**, enable `read:resources`, `read:reports`, and `create:reports`. 7. Click **Add Service Account** and copy the **Client ID** and **Client Secret**. 8. Go to **User Settings** > **Tenant** and copy the **API Endpoint URL**, which has the format `https://api.{{region}}.app.wiz.io/`. ## Step 2: Add the Wiz credential to runZero {#wiz-step2} 1. Go to the [Credentials page](https://console.runzero.com/credentials/new) in runZero and name the credential, for example `Wiz`. 2. Choose **Wiz Client Secret** from the list of credential types. 3. Using the service account you created on the settings page in the Wiz portal, fill in the fields: * In **Wiz Client ID**, enter the client ID of your Wiz service account. * In **Wiz Client Secret**, enter the client secret of your Wiz service account. * In **Wiz Auth URL**, enter the URL used to authenticate the Wiz service account. * In **Wiz API URL**, enter the API Endpoint URL for the Wiz API. 4. To share this credential with other organizations, select _Make this a global credential_. Otherwise, you can grant access per organization. 5. Save the credential. ## Step 3: Choose how to configure the Wiz integration {#wiz-step3} You can run the Wiz integration as a [scan probe or a connector task](integrations-inbound.md#integration-probe-connector). A scan probe gathers integration data during a scan task. A connector task runs on its own, from the cloud or from one of your Explorers, and performs only the integration sync. ## Step 4: Set up and activate the integration to sync data {#wiz-step4} ### Step 4a: Configure the Wiz integration as a connector task {#wiz-step4a} A connection needs a schedule and a site. The schedule sets when the sync runs, and the site is where runZero creates any new Wiz-only assets. 1. Activate a connection to [Wiz](https://console.runzero.com/ingest/wiz). You can also reach every third-party connection from the [integrations page](https://console.runzero.com/integrations), your [inventory](https://console.runzero.com/inventory), or the [tasks page](https://console.runzero.com/tasks). 2. Choose the credentials you added earlier. If they aren't listed, check that they have access to your current organization. 3. Set the severity and risk levels to import (optional). 4. Set the **Fingerprint only** toggle to _Yes_ to use vulnerability records for fingerprint analysis without storing them in your runZero vulnerability inventory (optional). 5. Enter a name for the task, like `Wiz Sync` (optional). 6. Choose the Explorer that runs this connector task (optional). 7. Choose the site for your assets. runZero stores all newly discovered assets there. 8. Enter a description for the task (optional). 9. To leave out assets runZero hasn't scanned, switch the **Exclude unknown assets** toggle to _Yes_. The import includes them by default. 10. To leave out assets that haven't been assessed for vulnerabilities, switch the **Include unscanned assets** toggle to _No_. 11. Schedule the sync to run once or on a recurring schedule, starting on the date and time you set. 12. Activate the connection. The sync runs on your schedule, and the [Scheduled tasks](https://console.runzero.com/tasks) page shows when the next one will run. ### Step 4b: Configure the Wiz integration as a scan probe {#wiz-step4b} Run the Wiz integration as a scan probe to have the runZero Explorer pull your Wiz assets into the runZero Console. In a new or existing scan configuration: * Set the _WIZ_ option to _Yes_ in the _Probes and SNMP_ tab and change any default options you need. * Optionally, set the severity and risk levels for ingested vulnerability results. * Set the correct _Wiz_ credential to _Yes_ in the _Credentials_ tab. ### Step 5: View Wiz assets, software, and vulnerabilities {#wiz-step5} After a successful sync, your Wiz assets appear in [your inventory](https://console.runzero.com/inventory) with a Wiz icon in the **Source** column. The integration also gathers the software and vulnerabilities Wiz detected. Go to **Inventory** > [**Software**](https://console.runzero.com/inventory/software) or **Inventory** > [**Vulnerabilities**](https://console.runzero.com/inventory/vulnerabilities) to view them. To filter by Wiz assets, run this query: * [View all Wiz assets](https://console.runzero.com/inventory?search=source%3Awiz): ``` source:Wiz ``` Open an asset to see the attributes runZero gathered from Wiz. ## Troubleshooting {#wiz-troubleshooting} If you're having trouble with the integration, start with these questions and answers. ### Why is the Wiz integration unable to connect? {#wiz-connection-error} 1. Check whether the Wiz integration is returning any data. * Query the inventory rather than the task details to review all the data available from this integration. * In some cases, an integration's configuration limits how much data reaches the runZero console. 2. Some integrations require specific actions that are easy to overlook. If you miss a step during setup, the integration may not work correctly. Review this page and follow the steps exactly. * Double-check the API Scopes on the Wiz service account. A valid account that lacks the required permissions fails the import. 3. If the Wiz integration can't connect, check the task log for errors. Common errors include: * 500: server error, unable to connect to the endpoint * 404: hitting an unknown endpoint on the server * 403: not authorized, likely a credential issue --- docs/integrations-outbound.md --- title: "Outbound integrations" --- ## Using runZero data to enrich other tools Beyond pulling in data from your [other IT and security tools](docs/integrations-inbound.md), the runZero platform has [egress integrations with several platforms](https://console.runzero.com/integrations/). Through product APIs and export/import, runZero can add asset context to those tools. If your tool isn't listed, a [custom integration script](custom-integration-scripts.md) can export runZero data to another system. These integrations send runZero data to other platforms: ### IT service management * [Atlassian Insight & Jira Service Management](atlassian-jira-service-management.md) * [Jira (issue tracking)](jira.md) * [ServiceNow CMDB](servicenow-connector.md) ### Detection and investigation * [Panther](panther.md) * [Splunk Search](splunk.md) * [Sumo Logic](sumo-logic-siem.md) * [Tines](tines.md) * [Thinkst Canary](thinkst-canary.md) ### Vulnerabilities and risk {#integrations-outbound-vm} * [SecurityGate.io](securitygate.md) --- docs/atlassian-jira-service-management.md --- title: Atlassian Insight & Jira Service Management --- > This page covers the asset-enrichment integration that imports runZero asset data into Jira Service Management's CMDB. To push runZero [issues](docs/issues.md) to Jira as tickets and sync changes back, use the [Jira integration](docs/jira.md) instead. All runZero editions integrate with ((Jira Service Management)) through an import in ((Atlassian Insight)), which loads runZero asset data into the CMDB. ## Step 1: Export runZero asset data Export data with the **Export** button in the runZero inventory, or with the Export API. These sample Export API commands include the common export fields and omit the tags field. Replace the token `ETxxx...` with your account's export token from the [Inventory export API page](https://console.runzero.com/inventory/export_api). For a CSV export, use this command (one line): ``` curl -o "assets.csv" -H "Authorization: Bearer ETxxxxxxxxxxxxxxxxxxxxxxxxxxxx" "https://console.runzero.com:443/api/v1.0/export/org/assets.csv" ``` For a JSON export, use this command (one line): ``` curl -o "assets.json" -H "Authorization: Bearer ETxxxxxxxxxxxxxxxxxxxxxxxxxxxx" "https://console.runzero.com:443/api/v1.0/export/org/assets.csv" ```
Atlassian Insight rejects any attribute longer than 255 characters and reports errors when an imported file contains longer fields. If you see those errors, you may need to trim or omit the fields.
## Step 2: Import data into Atlassian Insight These steps need Jira Service Management Premium or Enterprise with Atlassian Insight installed. 1. In Jira Service Management, go to the Insight menu and click the **+** sign to create an object schema. 2. Name the object schema. This example calls it `Assets`. 3. Click **...** next to the object schema and choose **Configuration**. 4. Go to the **Import** tab. 5. Click **Create Configuration**. ![Jira Service Management - Create import configuration](img/atlassian-1-2x.png) 6. Choose CSV or JSON to match your export, and click **Next**. 7. Enter a name for the import. 8. In the **Concatenator** field, enter `\s`. ![Jira Service Management - Create import configuration 2](img/atlassian-2-2x.png) 9. Scroll down and click **Next**. 10. Choose the file you exported from runZero. ![Jira Service Management - Create import configuration 2](img/atlassian-3-2x.png) 11. Click **Save Import Configuration**. 12. Click **Create predefined Insight structure** and wait for the task to finish. 13. Click **Create predefined configuration** and wait for the task to finish. ![Jira Service Management - Create import configuration 3](img/atlassian-4-2x.png) 14. Close the window. The page now lists your configured import. Click the settings cog and select **Execute Import**. ![Jira Service Management - Execute import](img/atlassian-5-2x.png) 15. Click **Import**. ![Jira Service Management - Confirm importing](img/atlassian-6-2x.png) 16. When the import finishes successfully, close the window. ![Jira Service Management - Finished process in action](img/atlassian-7-2x.png) If you see the following error, one of your fields is longer than 255 characters. Trim the field to 255 characters or delete it so the import can succeed. ![Jira Service Management - Import error](img/atlassian-error-2x.png) ## Step 3: View your imported assets 1. In Jira Service Management, click Insights. 2. Click your object schema. 3. Click an asset to view its details. ![Jira Service Management - Imported assets](img/atlassian-8-2x.png) --- docs/jira.md --- title: "Jira" --- The ((Jira)) integration connects runZero to a Jira Cloud project for issue-tracking and service-desk operations. Once it is configured, you can push a runZero [issue](docs/issues.md) to Jira as a ticket and keep the runZero issue timeline in sync with changes made in Jira. > To import runZero asset data into Jira Service Management's CMDB, see [Atlassian Insight & Jira Service Management](docs/atlassian-jira-service-management.md) instead. That asset-enrichment integration is independent of the issue-tracking sync described here. ## How the integration works - runZero authenticates to Jira Cloud as a regular Atlassian user with HTTP basic auth (email + API token). - When you create a Jira ticket from a runZero issue, runZero calls the Jira REST API (v3) to create the issue in the project configured on the credential, copies the relevant fields across, and stores the resulting Jira key and link on the runZero issue. - A configurable Jira webhook posts changelog events back to runZero, and each change becomes a timeline entry on the matching runZero issue. If you configure [state mapping](#state-mapping-and-bidirectional-sync), status and due-date changes also update the runZero issue directly. - When you change a runZero issue state and a state mapping is configured, runZero calls the Jira Transitions API to move the linked ticket to the corresponding Jira status. - When a linked runZero issue has an owner that runZero can match to an external Jira user, runZero syncs that owner with the Jira assignee. Changes to the Jira assignee sync back to the runZero issue. - runZero initiates all traffic to Jira, and all traffic from Jira is signed and verified with HMAC-SHA256. runZero reads and writes no other Jira data in your environment. ## Prerequisites {#jira-prerequisites} Before you start, you need: - An Atlassian Cloud account that can create issues in the target Jira project. - A Jira project to write tickets to, and that project's **Project key** (for example `SCRUM`, `SEC`, or `OPS`). - A Jira API token. Create one at [https://id.atlassian.com/manage-profile/security/api-tokens](https://id.atlassian.com/manage-profile/security/api-tokens) and copy it somewhere safe. You cannot view it again after you close the dialog. - A randomly generated **webhook secret** if you plan to enable two-way sync. Any reasonably long random string will do; runZero uses it to verify inbound webhook requests. - The Jira integration entitlement on your runZero account. ## Creating the Jira credential The Jira integration uses a runZero [credential](docs/scanning-credentials.md) of type **Jira API Token**. You can create one ahead of time from the Credentials page, or directly from the **Create Jira ticket** dialog the first time you push an issue. To create the credential ahead of time: 1. Go to [Credentials](https://console.runzero.com/credentials/) in the runZero Console. 2. Click **New credential** and choose **Jira API Token**. 3. Fill in the form: - **URL**: the base URL of your Jira Cloud site, for example `https://yourcompany.atlassian.net`. Do not include a trailing path. - **Email**: the email address of the Atlassian user the API token belongs to. This account must be able to create and transition issues in the target project. - **API token**: the API token you created on the Atlassian side. - **Webhook secret**: a random string that authenticates inbound Jira webhooks. Save the value somewhere you can paste it into Jira later. - **Jira Project Key**: the key of the Jira project where runZero creates tickets (for example `SEC` or `OPS`). This field is required; ticket creation fails if you leave it empty. - **Map Issue States to Jira Values**: optional. A table mapping each runZero issue state to the corresponding Jira status name. See [State mapping and bidirectional sync](#state-mapping-and-bidirectional-sync) for details. 4. Save the credential. runZero validates the URL, email, and token with an authenticated call to Jira and rejects the credential if the call fails. The validation result appears next to the credential. After you save the credential, open it for editing and copy the read-only **Jira webhook URL** field. You need that URL when [configuring the Jira webhook](#configuring-the-jira-webhook). You can reuse one credential for as many Jira tickets as you like. If you change the API token in Atlassian, update the credential in runZero or future calls will fail. ## Creating a Jira ticket from an issue 1. Open an issue from the [Issues page](https://console.runzero.com/issues/). 2. In the sidebar: - **Credential**: select the Jira credential to use. - **Attach snapshot to ticket**: optional. When enabled, runZero uploads a CSV of the issue's instance snapshot as an attachment on the new Jira ticket. - Click **Create ticket**. runZero then: - Creates the Jira issue with the project key from the credential, the summary, the description, and the runZero issue's due date if one is set. - Uploads the snapshot CSV as a Jira attachment, if you enabled it. A failed CSV upload does not abort ticket creation; the ticket is still linked. - Saves the Jira issue key (for example `SEC-42`), a browse link (`{your-jira-url}/browse/SEC-42`), the credential, and the Jira base URL on the runZero issue. - Appends a `Created Jira ticket SEC-42 for issue "..."` entry to the runZero issue timeline. Once linked, the issue sidebar shows the Jira key and a button that opens the ticket in Jira. A runZero issue links to at most one Jira ticket at a time. To relink, [unlink](#unlinking-a-ticket) the existing ticket first. ### Unlinking a ticket From a runZero issue with a linked ticket, use the unlink action in the sidebar to clear the link. Unlinking changes only the runZero side: the Jira ticket is neither deleted nor modified. After unlinking, you can create a new ticket from the same issue. ## State mapping and bidirectional sync {#state-mapping-and-bidirectional-sync} The **Map Issue States to Jira Values** table on the Jira credential turns on two-way sync of state and due date between runZero issues and Jira tickets. To configure state mapping, open the credential and add one row per runZero state you want to sync: - **Issue State** (key): one of the four runZero issue states, `open`, `in progress`, `closed`, or `resolved`. - **Jira Value** (value): the exact name of the corresponding Jira status in your project workflow, for example `To Do`, `In Progress`, or `Done`. Matching is case-insensitive for inbound webhook events. You can map all four states or only some of them. runZero ignores unmapped states in both directions. ### Outbound sync (runZero → Jira) When you change a runZero issue state, or when runZero automatically transitions an issue to `resolved`, runZero looks up the new state in the credential's state mapping. If that state maps to a Jira status name, runZero calls the [Jira Transitions API](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-transitions-post) to move the linked ticket to the target status. If the Jira workflow has no available transition from the ticket's current status to the target status, the transition silently fails. runZero applies the state change on its side whether or not the Jira transition succeeds. ### Inbound sync (Jira → runZero) When Jira sends a webhook with a status change, runZero reverses the state mapping to find the matching runZero state and updates the issue. Due date changes on the Jira ticket also flow back to the runZero issue. ### Issue owner synchronization runZero syncs issue owners with Jira assignees for linked tickets. When you push an issue to Jira, runZero looks for an external Jira user that matches the runZero owner. For the runZero issue owner, you can enter either the email address or the username of the Jira user. If runZero finds a matching Jira user, it assigns that user to the Jira ticket. When the Jira assignee changes, the Jira webhook updates the owner of the linked runZero issue. For Jira sync, runZero accepts an owner only if it matches an external Jira user. Issue ownership uses the built-in `Issue owner` type and supports one owner per issue. runZero does not sync custom ownership types. See [Managing Issue ownership](docs/managing-ownership.md#issue-ownership) and [Issue ownership](docs/issues.md#issue-ownership). #### Note: The casing of the Jira status needs to match the casing set in the Jira workflow Example mapping: | runZero state | Jira status | |---|---| | `Open` | `To Do` | | `In progress` | `In Progress` | | `Closed` | `Closed` | | `Resolved` | `Done` | ## Configuring the Jira webhook To turn on inbound sync from Jira to runZero, configure a Jira webhook for the project (or the whole site): 1. In Jira, go to **System** → **WebHooks** and click **Create a WebHook** (administrator access required). 2. **Name**: anything descriptive, for example `runZero issue sync`. 3. **URL**: open your runZero Jira credential and copy the read-only **Jira webhook URL** field. It follows the pattern `https:///api/webhooks/jira/${issue.key}`. The literal text `${issue.key}` is a Jira URL variable; Jira substitutes the actual issue key for each event. 4. **Secret**: paste the same webhook secret you saved on the runZero credential. Jira signs each request with HMAC-SHA256 and sends the signature in the `X-Hub-Signature` header. 5. **Events**: enable at least the **issue updated** event. You can add more events; runZero records every changelog item it receives. 6. (Optional) **JQL filter**: restrict the webhook to the project used with this credential, for example `project = SEC`. This keeps out unneeded events from other projects. 7. Save the webhook. When an event fires, runZero: 1. Looks up the matching runZero issue by Jira issue key + Jira base URL (so multiple Jira sites do not collide). 2. Validates the HMAC-SHA256 signature against the credential's webhook secret using a constant-time comparison. 3. If [state mapping](#state-mapping-and-bidirectional-sync) is configured, applies any status or due-date changes to the runZero issue. 4. Appends one timeline line per changelog item, in this form: ``` Jira update (SEC-42): status changed from "In Progress" to "Done"; assignee set to "alice@example.com" ``` If a webhook arrives without a valid signature, for an unknown Jira key, or for a deleted runZero issue, runZero silently returns `200 OK` without writing anything, so the endpoint does not leak which keys are linked. ## What gets sent to Jira When runZero creates a ticket, it sends: - The runZero issue **name** as the Jira **summary**. - The runZero issue **description** as the Jira **description**. - The runZero **due date**, if one is set, as the Jira **due date**. - The **project key** from the credential, which routes the ticket to the right project. - Optionally, a CSV file with one row per (vulnerability, asset) instance from the issue snapshot, uploaded as a Jira attachment. After ticket creation, ongoing sync depends on your [state mapping](#state-mapping-and-bidirectional-sync) configuration: - **runZero → Jira**: when a runZero issue state changes and a mapping is configured, runZero pushes the transition to Jira through the Transitions API. - **Jira → runZero**: status and due date changes arrive through the Jira webhook and update the runZero issue (status changes require state mapping). After the initial ticket creation, runZero does not push comments, description edits, or other field changes to Jira. ## Troubleshooting - **Credential verification fails when saving.** Check that the URL has no trailing path, the email matches the Atlassian account that owns the API token, and the token has not been revoked. The credential page shows the specific HTTP status returned by Jira. - **Create Jira ticket returns an error.** The runZero issue must have a non-empty name and description. The selected credential must have a **Jira Project Key** configured; if the field is empty, the request fails with a *project_key is required* error. The project key must exist in Jira, and the API user must be allowed to create issues in it. The error message echoes the HTTP status returned by Jira. - **Snapshot CSV is missing from the Jira ticket.** Check that the API user has permission to add attachments to the project. Snapshot upload is best-effort; the ticket is still created if the upload fails. - **Jira changes do not appear in the runZero timeline.** - Confirm the webhook URL contains the literal `${issue.key}` variable. - Confirm the webhook secret in Jira matches the value stored on the runZero credential. - Confirm Jira is sending the `X-Hub-Signature` header (some proxies strip it). - Confirm the runZero issue's stored Jira base URL matches the Jira site sending the webhook. If you migrate Jira sites, unlink and recreate the ticket. - **State changes are not being pushed to Jira.** Confirm the credential has a state mapping entry for the runZero state that changed, and that the Jira status name matches the exact name in your Jira workflow. The API user must also have permission to transition issues in the project. If no available Jira workflow transition leads from the ticket's current status to the target status, the push silently fails. - **Jira status changes are not updating the runZero issue state.** Confirm the Jira status name in the webhook event matches the value in the credential's state mapping (matching is case-insensitive). Confirm the webhook secret is correct and that the `X-Hub-Signature` header is reaching runZero. --- docs/panther.md --- title: Panther --- You can import runZero data into your [Panther](https://panther.com/) instance and use it in Panther logging and alerting. ## Requirements {#panther-requirements} * A ((Panther)) account with the required permissions * An AWS S3 bucket * Exported .jsonl files from runZero, uploaded to your AWS S3 bucket ### Step 1: Adding a custom schema {#panther-custom-schema} 1. Go to **Configure > Schemas** and select **Create New**. 2. Add a name. 3. Upload a sample log, and Panther parses the runZero output schema from it. ### Step 2: Adding a custom log source {#panther-custom-log-source} 1. Go to **Configure > Log Sources** and select **Create New**. 2. Complete the **Basic Information** section. 3. Choose to configure S3 prefixes and schemas now, and select the custom schema you created. 4. Configure the IAM role: * Choose **Using the AWS Console UI**. * Click **Launch Console UI**. * Review the stack in AWS, check the box to approve it, and deploy the stack. * When the deployment completes, open the **Resources** tab and select the new **LogProcessingRole**. * Copy the ARN from that role into the field on the Panther console. 5. Optionally, configure an alarm that fires if logs are not processed. From then on, Panther automatically ingests and processes any .jsonl files added to that AWS S3 bucket. --- docs/securitygate.md --- title: SecurityGate.io aliases: ["/docs/set-up-securitygate/"] --- All runZero editions integrate with ((SecurityGate.io)) to bring runZero asset visibility into your risk assessment program. Setup takes a few steps in your SecurityGate.io console. ## Requirements {#securitygate-requirements} * A [runZero API key](docs/managing-your-team.md#account-api-keys) to configure the SecurityGate.io integration.
The SecurityGate.io integration pulls runZero asset data from all of your organizations.
## Integrate runZero with SecurityGate.io 1. Sign in to your SecurityGate.io console. 2. Go to **My Account** under the **Hello** dropdown menu. 3. Click **Integration Manager**. 4. Select **Add New Integration**. 5. Choose _Rumble_ from the **Integration Partner** dropdown menu. 6. Provide the **Account API Key**, **Server URL**, and **API Version**. 7. Click **Test Connection**. If the test succeeds, click **OK** to save the configuration. ## Viewing runZero data in SecurityGate.io After you enable the integration in SecurityGate.io, runZero data is available on the Asset Inventory page. --- docs/servicenow-connector.md +++ title = "ServiceNow Service Graph" aliases = ["servicenow"] +++ The ((Service Graph connector)) for runZero brings runZero assets into your ((ServiceNow)) ((CMDB)) as CIs and, if you choose, periodically updates those CIs with fresh information from runZero scans. The Service Graph Connector fetches and transforms data with ServiceNow ((IntegrationHub ETL)) and passes it through the Identification and Reconciliation Engine (((IRE))), so you can fine-tune specific fields and CI class mappings from the ServiceNow console. You can also set a runZero search query that decides which assets the connector brings in. ## Important notes - runZero does not charge for the connector. However, the CI resources the connector creates in CMDB increase your ServiceNow Subscription Unit consumption. CIs created by Service Graph Connectors should be charged at a lower rate than CIs created other ways; consult ServiceNow to confirm this and to get current pricing. - If you self-host runZero, you need a ((MID Server)) so ServiceNow can connect to your runZero console. If your console uses a self-signed TLS certificate, or one signed by your own internal CA, configure the MID server to trust that CA or certificate. For details, see [ServiceNow Knowledge Base article KB0863673](https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0863673). - The Service Graph Connector is packaged and available from the ServiceNow Application Store, but fitting a connector into your existing ServiceNow configuration is unlikely to be a one-click operation. We strongly advise having a ServiceNow Consulting and Implementation partner available to help. - For detailed installation instructions with screenshots, see the Scoped Application Installation and Configuration Guide on the [Service Graph Connector for runZero](https://store.servicenow.com/sn_appstore_store.do#!/store/application/4e389aa0874711100b3831583cbb3572/1.0.4) page under Supporting Links and Docs. ## Prerequisites {#servicenow-prereqs} To use the Service Graph connector for runZero, you need: * A Platform license for runZero. * A ServiceNow ((ITOM)) license including ITOM Discovery and ITOM Visibility. * Integration Commons for CMDB installed. Connector installation checks the ServiceNow dependencies for you. ## Installation {#servicenow-installation} Start by finding the Service Graph connector for runZero in the ServiceNow Application Store and installing it into your ServiceNow instance through the usual process. The connector adds a **Service Graph connector for runZero** entry to the ServiceNow main menu, with entries for **Setup**, **Data Sources**, **Scheduled Imports**, **Support**, and **System Import Sets**. You need the **admin** role in ServiceNow to configure the connector. ## Setup {#servicenow-setup} The **Setup** menu has a **Guided Setup** process that walks you through the connector in three stages: 1. Configure the connection 2. Configure the mappings (optional) 3. Configure the scheduled import (optional) ### Step 1: Configure the connection {#servicenow-step1} Configuring the connection has two parts: entering a runZero API key as credentials, and setting the connection options. #### Entering the API key The connector accepts a runZero **Organization API** or **Export API** key. To get either one, open the [**Organizations**](https://console.runzero.com/organizations/) page in runZero and click the organization whose assets you want in ServiceNow CMDB. Organization tokens begin with `OT`, and export tokens begin with `ET`. In the **API Key Credentials** form, paste the runZero token into the **API Key** field and click **Update**. #### Configuring connection options If you use runZero cloud, the default **HTTP connection** options should be correct. You can add a **Search** string to the connection's **Attributes** at the bottom of the form. The connector passes this search to runZero to pick the set of assets to bring into CMDB. Write it in runZero [search query format](docs/search-query-syntax.md). We strongly encourage testing it in your [runZero asset inventory](https://console.runzero.com/inventory/) first. Leave the **Connection** alias and **Base path** fields as they are. (The connection alias groups the connection settings and the API key credentials for the connector to use.) If you self-host runZero, the **connection options** form is where you pick the MID server and give the URL of your runZero console. Put your console's fully qualified hostname in the **Host** field. The hostname should match the hostname in the console's TLS certificate so the MID server trusts it, even when the MID server already trusts the certificate. Check the **Use MID server** box and select the MID server to use. ### Step 2: Configure the mappings (optional) {#servicenow-step2} In the second step, you can customize how runZero data maps to CI classes with the IntegrationHub ETL Transform Map Assistant. Skip this stage if you have no special data mapping requirements. ### Step 3: Configure the scheduled import (optional) {#servicenow-step3} The third step sets a schedule for data import. Test the connector setup with a one-off import first. Once everything is configured correctly, you can create recurring imports. Scheduled imports are regular ServiceNow tasks. Skip this step if you don't want a scheduled import yet. ## Notes on data mapping {#servicenow-notes} The ServiceNow CMDB and runZero object data models differ. Some runZero data fits no standard CMDB attribute, and in other cases runZero lacks data that CMDB expects. This list shows how the connector maps runZero attributes to ServiceNow CMDB attributes: * **IP addresses**: ServiceNow CIs have an attribute that takes a single IP address. The connector places the first IP address in the CI attribute IP Address and creates the remaining addresses as `IP Address` CIs owned by the device CI. Each `IP Address` CI gets a `Description` that says whether runZero has scanned it. By default, ServiceNow does not show IP addresses owned by a device CI. It only shows IP addresses owned by a network adapter CI that the device CI owns. This is a known limitation of ServiceNow's default CMDB forms. runZero doesn't associate IP addresses with network adapters because it generally doesn't know the necessary information. In that situation, the CMDB connector development guide says to associate the IP addresses with the device CI. * **Names**: ServiceNow CIs have a single `Name` attribute, while runZero assets can have any number of names, with runZero's best guesses at the front of the list. The connector places the first name in the CI `Name` attribute. The first name that looks like a fully qualified domain name goes in the `Fully qualified domain name` attribute, and the connector uses it to compute a DNS Domain for CIs descended from Network Gear. The full list of names goes in the `Description` attribute for reference. * **Serial numbers**: ServiceNow CIs have an attribute that takes a single serial number. The connector puts the first serial number in the `Serial Number` attribute, then runs a Serial Number Lookup operation to add the complete list of serial numbers with their types. * **Tags**: runZero assets can have any number of tags, either single tags such as `tag_name` or tags with values in the format `tag=value`. The connector places them in the `Key Value` class and associates that class with the `Hardware` class. * **MAC addresses/Network Adapters**: As with IP addresses, ServiceNow has both a single-value `MAC Address` attribute and an option to look up named MAC addresses to create Network Adapter objects. A runZero asset can have any number of MAC addresses, but because runZero runs no agent software on the scanned systems, it cannot know the interface name that goes with a given MAC address. The connector imports the first MAC address as the `MAC Address` attribute and the entire set, through lookup, as `Network Adapter` objects. It names each one from the MAC address and IP address (e.g. `00:00:00:00:00:00-127.0.0.1`), or from the MAC address and hostname when no IP address is available (e.g. `00:00:00:00:00:00-hostname`). If neither an IP address nor a hostname is available, the MAC address alone is the network adapter name. In some cases, runZero may not know an asset's MAC address(es); the connector then adds a zero MAC address (`00:00:00:00:00:00`) to satisfy ServiceNow requirements for some CI classes. * **Sites**: runZero sites represent distinct networks, which may or may not correspond to physical sites. The connector imports them as CMDB `Network Site` objects. * **Organizations**: Network hardware CIs have no obvious attribute for the runZero organization, so the connector adds the organization name to the `Description` of CIs. * **SNMP data**: The runZero `snmp.sysDesc` attribute, if present, also goes in the `Description`. --- docs/splunk.md --- title: Splunk Search --- runZero integrates with ((Splunk)) through a dedicated [Splunk Addon](https://splunkbase.splunk.com/app/6549/) that is compatible with Splunk 7, Splunk 8, and Splunk Cloud. The add-on pulls new or updated hosts into a ((Splunk)) index, where you can analyze, visualize, and monitor them. The add-on uses the [Splunk API](https://app.swaggerhub.com/apis/runZero/runZero/#/Splunk) from the runZero Network Discovery platform. It syncs assets into Splunk with multiple inputs, global API key management, and an optional search filter for each input. For example, you can track new assets as one input and SMBv1-enabled assets as another. To set up the add-on, you need an Export API or Organization API key, which you can generate from your Organization page in the runZero Console. For an overview of the runZero APIs, see the [API documentation](docs/leveraging-the-api.md). ## Get the runZero add-on for Splunk 1. Sign in to Splunk. 2. Go to **Find More Apps**. 3. Search for `runZero Network Discovery`. 4. Install the add-on for runZero. 5. Splunk prompts you to sign in again. After you log back in, the add-on is installed and you can open the runZero Asset Sync app. Splunk might also prompt you to restart your server. ## Asset sync modes The add-on has two asset sync modes: New Assets Only and All Updated Assets. You can export the assets newly discovered or updated since the last poll, in a sync-friendly format for Splunk. When you pull data into Splunk, you can use the same Asset Sync API capabilities, such as search filters, fields, and time-based checkpoints. With data flowing into Splunk, you can create Splunk inputs with filters that sync only the assets with a certain protocol, discovery date, or open service. --- docs/sumo-logic-siem.md --- title: Sumo Logic --- All runZero editions integrate with ((Sumo Logic)) so you can see and visualize your asset data in Sumo Logic. Setup takes a few steps in your Sumo Logic console, and you can configure the integration for either of two purposes: * [Complete asset visibility](sumo-logic-assets.md) * [Targeted alerting and visualization](sumo-logic-alerts.md) ## Requirements {#sumo-logic-requirements} * A Sumo Logic account * A runZero account and [API key](leveraging-the-api.md). --- docs/sumo-logic-assets.md --- title: Sumo Logic asset export --- runZero integrates with ((Sumo Logic)) so you can export your asset inventory into Sumo Logic and use it in the SIEM. ## Integrating runZero with Sumo Logic You can connect Sumo Logic and runZero in one of three ways, each with its own configuration steps. **Option A: [Local script](#sumo-logic-local)** 1. [Create a Sumo Logic HTTP source](#sumo-logic-local-source). 2. [Configure your host to run the provided script](#sumo-logic-local-script). **Option B: [AWS Lambda function](#sumo-logic-lambda)** 1. [Create a Sumo Logic HTTP source](#sumo-logic-lambda-source). 2. [Configure the AWS Lambda function to run the provided script](#sumo-logic-lambda-script). **Option C: [Sumo Logic script source](#sumo-logic-script)** 1. [Install a Sumo Logic collector](#sumo-logic-script-collector). 2. [Create a Sumo Logic script source](#sumo-logic-script-create). Once data is flowing, you can [start using](#sumo-logic-searches) it in Sumo Logic. ## Option A: Local script {#sumo-logic-local} ### Step 1: Create a Sumo Logic HTTP source {#sumo-logic-local-source} 1. Sign in to Sumo Logic and go to **Manage Data** > **Collection**. 2. Click **Add Collector**, then select **Hosted Collector**. * Provide a name, such as `runZero Collector`, and click **Save**. 3. If prompted to add a data source, click **OK**. Otherwise, find your Collector in the list and click **Add Source**. 4. Select the [**HTTP Logs and Metrics**](https://help.sumologic.com/docs/send-data/hosted-collectors/http-source/logs-metrics/) source. * Provide a name, such as `runZero Assets`, then click **Save**. 5. Copy the URL Sumo Logic provides; you need it in [step 2](#sumo-logic-local-script). ### Step 2: Configure your host to run the provided script {#sumo-logic-local-script} 1. Pick the host that will run the script. 2. Check that the host has Python3 and Pipenv installed. 3. Save the script below on that host. ```python #!/usr/bin/env python3 import json import requests import os # RUNZERO CONF RUNZERO_EXPORT_TOKEN = os.environ["RUNZERO_EXPORT_TOKEN"] HEADERS = {"Authorization": f"Bearer {RUNZERO_EXPORT_TOKEN}"} BASE_URL = "https://console.runZero.com/api/v1.0" # SUMO LOGIC CONF HTTP_ENDPOINT = os.environ["SUMO_HTTP_ENDPOINT"] def main(): url = BASE_URL + "/export/org/assets.json" assets = requests.get(url, headers=HEADERS) batchsize = 500 if len(assets.json()) > 0 and assets.status_code == 200: for i in range(0, len(assets.json()), batchsize): batch = assets.json()[i:i+batchsize] f = open("upload.txt", "w") f.truncate(0) for a in batch: json.dump(a, f) f.write("\n") f.close() r = open("upload.txt") requests.post(HTTP_ENDPOINT, data=r.read()) r.close() else: print(f"No assets found - status code from runZero API: {assets.status_code}") if __name__ == "__main__": main() ``` 4. Set your environment variables with these commands: * `export RUNZERO_EXPORT_TOKEN=XXX`: your runZero export API token, from an [organization detail page](https://console.runzero.com/organizations) in your runZero console. Select the organization you want to export data from, then click **Edit organization** to view the export API token. * `export SUMO_HTTP_ENDPOINT=XXX`: the Sumo Logic HTTP source URL you copied in [step 1](#sumo-logic-local-source). 5. Create a virtual environment for the script by running `pipenv --python /path/to/python3`. 6. Install the `requests` library in the virtual environment for the API calls: * `pipenv shell` * `pip install requests` 7. Test the script by running it from the virtual environment. * Start with the location from the `pipenv` output. * Append `/bin/python3` to use Python in the virtual environment. * Use the full path to the script. ```shell my-server:~/ $ /home/user/.local/share/virtualenvs/runZero-scripts-mVQtFLDO/bin/python3 \ /home/user/scripts/script.py ``` 8. Configure a crontab task to run at the cadence you want. * On the hour: `0 * * * * RUNZERO_EXPORT_TOKEN=XXX SUMO_HTTP_ENDPOINT=XXX /path/to/virtual/env/python3 /path/to/script.py` * Daily at midnight: `0 0 * * * RUNZERO_EXPORT_TOKEN=XXX SUMO_HTTP_ENDPOINT=XXX /path/to/virtual/env/python3 /path/to/script.py` * Weekly at midnight on Monday: `0 0 * * 1 RUNZERO_EXPORT_TOKEN=XXX SUMO_HTTP_ENDPOINT=XXX /path/to/virtual/env/python3 /path/to/script.py` ## Option B: AWS Lambda function {#sumo-logic-lambda} ### Step 1: Create a Sumo Logic HTTP source {#sumo-logic-lambda-source} 1. Sign in to Sumo Logic and go to **Manage Data** > **Collection**. 2. Click **Add Collector**, then select **Hosted Collector**. * Provide a name, such as `runZero Collector`, and click **Save**. 3. If prompted to add a data source, click **OK**. Otherwise, find your Collector in the list and click **Add Source**. 4. Select the [**HTTP Logs and Metrics**](https://help.sumologic.com/docs/send-data/hosted-collectors/http-source/logs-metrics/) source. * Provide a name, such as `runZero Assets`, then click **Save**. 5. Copy the URL Sumo Logic provides; you need it in [step 2](#sumo-logic-lambda-script). ### Step 2: Configure the AWS Lambda function to run the provided script {#sumo-logic-lambda-script} 1. In your AWS Console, open the [Lambda page](https://us-east-1.console.aws.amazon.com/lambda/home). 2. Click [**Create a function**](https://us-east-1.console.aws.amazon.com/lambda/home?region=us-east-1#/create/function?firstrun=true). 3. Give your function a **name**. 4. Select _Python 3.9_ as the **runtime**. 5. Leave everything else at its default. Click **Create function** to move to the next page. 6. Click **Add Trigger** to set up a cron job. 7. Select _EventBridge_ to set up a schedule. 8. Use an existing rule or select **Create new rule**. * Give it a name and set **Rule type** to `Schedule expression`. * Use one of these expressions, or write your own for the cadence you want: * Daily: `rate(1 day)` * Every 12 hours: `rate(12 hours)` * Every 3 hours: `rate(3 hours)` * Click **Add** to return to the main Lambda configuration page. 9. Under **Configuration**, select _Environment variables_. 10. Enter these two environment variables: * `RUNZERO_EXPORT_TOKEN`: your export API token, from an [organization detail page](https://console.runzero.com/organizations) in your runZero console. Select the organization you want to export data from, then click **Edit organization** to view the export API token. * `SUMO_HTTP_ENDPOINT`: the URL you copied in [step 1](#sumo-logic-lambda-source). 11. Click _Save_ to return to the main Lambda configuration page. 12. Click the _Code_ tab and replace the default code with this script. ```python import json import urllib3 import os # RUNZERO CONF RUNZERO_EXPORT_TOKEN = os.environ["RUNZERO_EXPORT_TOKEN"] HEADERS = {"Authorization": f"Bearer {RUNZERO_EXPORT_TOKEN}"} BASE_URL = "https://console.runZero.com/api/v1.0" # SUMO LOGIC CONF HTTP_ENDPOINT = os.environ["SUMO_HTTP_ENDPOINT"] def lambda_handler(event, context): http = urllib3.PoolManager() url = BASE_URL + "/export/org/assets.json" response = http.request("GET", url, headers=HEADERS) data = response.data assets = json.loads(data) batchsize = 500 if len(assets.json()) > 0 and assets.status_code == 200: for i in range(0, len(assets.json()), batchsize): batch = assets.json()[i : i + batchsize] f = open("upload.txt", "w") f.truncate(0) for a in batch: json.dump(a, f) f.write("\n") f.close() r = open("upload.txt") http.request("POST", HTTP_ENDPOINT, data=r.read()) r.close() else: print(f"No assets found - status code from runZero API: {assets.status_code}") ``` 13. Click **Deploy** to update the code. 14. Click **Test** to verify the code works. The function now posts your asset data export to Sumo Logic at the cadence you configured. ## Option C: Sumo Logic script source {#sumo-logic-script} ### Step 1: Install a Sumo Logic collector {#sumo-logic-script-collector} Follow the [Sumo Logic documentation](https://help.sumologic.com/docs/send-data/installed-collectors/) to install a collector. ### Step 2: Create a Sumo Logic script source {#sumo-logic-script-create} Sumo Logic also documents [script sources](https://help.sumologic.com/docs/send-data/installed-collectors/sources/script-source/). Once your collector is installed, set up the script source: 1. Go to the [Collection](https://service.us2.sumologic.com/ui/#/collection/collection) page in Sumo Logic. 2. Find your collector and click **Add** > **Add Source**. 3. Select `Script` as the **source type**. 4. Enter a `Name` and `Source Category`. 5. Select a `Frequency`. 6. Select **Command** type `/usr/bin/python`. 7. Paste this script into the **Script** field. ```python #!/usr/bin/python import json import requests import os # RUNZERO CONF RUNZERO_EXPORT_TOKEN = os.environ['RUNZERO_EXPORT_TOKEN'] HEADERS = {'Authorization': 'Bearer ' + RUNZERO_EXPORT_TOKEN} BASE_URL = 'https://console.runZero.com/api/v1.0' def main(): url = BASE_URL + '/export/org/assets.json' assets = requests.get(url, headers=HEADERS) if assets.status_code == 200: for a in assets.json(): print(json.dumps(a)) else: print(f"No assets found - status code from runZero API: {assets.status_code}") if __name__ == '__main__': main() ``` 8. Click **Save** to start the source. ## Working with the asset data in Sumo Logic {#sumo-logic-searches} Once your asset data is in Sumo Logic, you can use it like any other log source. These sample searches are a starting point for scheduled searches and dashboards. ### Search distinct assets ```shell _sourceCategory="runzero" | json field=_raw "id" | count_distinct(id) as distinct_assets ``` ### Search assets with more than 3 services running ```shell _sourceCategory="runzero" | json field=_raw "addresses_extra" | json field=_raw "addresses" | json field=_raw "id" | concat("https://console.runzero.com/inventory/", id) as runzero_link | json field=_raw "service_count" | where service_count > 3 | count addresses, addresses_extra, service_count, runzero_link ``` ### Determine counts of different operating systems ```shell _sourceCategory="runzero" | json field=_raw "os" | where !isEmpty(os) | json field=_raw "id" | count os, id | count os ``` --- docs/sumo-logic-alerts.md --- title: Sumo Logic alerting aliases: [ "/docs/sumo-logic/" ] --- runZero integrates with ((Sumo Logic)) so you can visualize your asset data and track your progress on reducing risk in your asset inventory over time. Connecting Sumo Logic and runZero requires: 1. [Creating a Sumo Logic HTTP source](#sumo-logic-http-source) 2. [Creating a runZero alert template](#sumo-logic-alert-template) 3. [Creating a rule in runZero](#sumo-logic-rule) 4. [Handling runZero data in Sumo Logic](#sumo-logic-handling) 5. [Creating a Sumo Logic dashboard (optional)](#sumo-logic-dashboard) ## Step 1: Create a Sumo Logic HTTP source {#sumo-logic-http-source} 1. Sign in to Sumo Logic and go to **Manage Data** > **Collection**. 2. Click **Add Collector**, select **Hosted Collector**, provide a name such as `runZero Collector`, and click **save**. 3. If prompted to add a data source, click **OK**. Otherwise, find your Collector in the list and click **Add Source**. 4. Select the [**HTTP Logs and Metrics**](https://help.sumologic.com/docs/send-data/hosted-collectors/http-source/logs-metrics/) source, provide a name such as `runZero Alerts`, and click **save**. 5. Copy the URL Sumo Logic provides; you need it in [step 2](#sumo-logic-alert-template). ## Step 2: Create a runZero alert template {#sumo-logic-alert-template} 1. Create an [alert template](https://console.runzero.com/alerts/template/create/) in runZero with these details: * **Name**: a name for the template * **Template type**: JSON * **Subject line for message**: leave empty * **Body of message**: this JSON example includes the rule name and the search URL in the alert message body ```plaintext {"rule_name":"{{rule.name}}","search_url":"{{search.url}}","found": "{{search.found}}", "assets_new": "{{scan.assets_new}}"} ``` 2. Create an [alert channel](https://console.runzero.com/alerts/channel/create/) in runZero with these details: * **Name**: a name for the alert channel * **Channel type**: Webhook * **Webhook URL**: the webhook URL you copied from Sumo Logic ## Step 3: Create a rule in runZero {#sumo-logic-rule} With the alert template and channel created, pick the triggers to alert on. Common examples: * Asset query results: a query in runZero matches after a scan completes * New assets found: a scan completes with new assets * Agent offline: your runZero Explorer stops checking in to the console * Task failed: a task fails for any reason The rest of the steps use **asset query results** as the example. Review [example queries](docs/search-query-examples.md) for ideas, and see [Using the rules engine](docs/rules-engine.md) for more on rules and alerts. 1. Create a [new alert rule](https://console.runzero.com/alerts/rules/create/). 2. Select `asset-query-results` and click **Configure rule**. 3. Enter values for the rule: * **Name**: the name of the rule. * **Conditions**: optional parameters; the alert triggers when all conditions match. * **Query**: the query the assets must match. * **Number of matches**: the numeric comparison to apply to the **value**. * **Value**: the match threshold that triggers the rule. * **Limit to organization**: limits the alert to a specific organization. * **Limit to site**: limits the alert to a specific site. * **Action**: `Notify` * **Notification channel**: the alert channel you created in step 2. * **Notification template**: the alert template you created in step 2. ## Step 4: Handle runZero data in Sumo Logic {#sumo-logic-handling} ### Display the raw runZero data {#this-search-will-display-the-raw-runzero-data} ```code _source="runZero Alerts" and _collector="runZero" ``` ### Show alerts matching the runZero rule name {#this-search-will-show-alerts-matching-the-runzero-rule-name} ```code _source="runZero Alerts" and _collector="runZero" | json field=_raw "found" nodrop | json field=_raw "rule_name" nodrop | where rule_name = "" ``` ### Graph the data matching the runZero rule name {#this-search-will-create-a-graph-of-the-data-matching-the-runzero-rule-name} ```code _source="runZero Alerts" and _collector="runZero" | json field=_raw "assets_new" nodrop | toLong(assets_new) | json field=_raw "found" nodrop | json field=_raw "search_url" nodrop | json field=_raw "rule_name" nodrop | where rule_name = "" | timeslice 1m | sum(found) by _timeslice | order by _timeslice ``` ## Step 5: Create a dashboard in Sumo Logic (optional) {#sumo-logic-dashboard} Now that you can search the data and graph it in Sumo Logic, build a dashboard. First create four rules in runZero, then import the [sample Sumo Logic dashboard](#sumo-logic-dash) below. ## Create the runZero rules Create each of these rules the same way as in step 3 using the form inputs listed here. ### Assets running a TLS service * **Rule type**: asset-query-results * **Name**: `Assets running a TLS service - Sumo` * **Query**: `alive:t protocol:tls` * **Number of matches**: is greater than 0 * **Notification channel**: alert channel created in [Step 2](#sumo-logic-alert-template) * **Notification template**: alert template created in [Step 2](#sumo-logic-alert-template) ### Multihomed assets - Sumo * **Rule type**: asset-query-results * **Name**: `Multihomed assets - Sumo` * **Query**: `alive:t AND multi_home:t` * **Number of matches**: is greater than 0 * **Notification channel**: alert channel created in [Step 2](#sumo-logic-alert-template) * **Notification template**: alert template created in [Step 2](#sumo-logic-alert-template) ### Assets with OpenSSL - Sumo * **Rule type**: asset-query-results * **Name**: `Assets with OpenSSL - Sumo` * **Query**: `alive:t product:openssl` * **Number of matches**: is greater than 0 * **Notification channel**: alert channel created in [Step 2](#sumo-logic-alert-template) * **Notification template**: alert template created in [Step 2](#sumo-logic-alert-template) ### New assets to Sumo Logic * **Rule type**: new-assets-found * **Name**: `New assets to Sumo Logic` * **Number of matches**: is greater than 0 * **Notification channel**: alert channel created in [Step 2](#sumo-logic-alert-template) * **Notification template**: alert template created in [Step 2](#sumo-logic-alert-template) ## Sample Sumo Logic dashboard {#sumo-logic-dash} 1. Go to the library in Sumo Logic. 2. Click the **options** button on the folder you want to import into, then click `Import`. * **Name**: runZero Alert Metrics * **JSON**: copy the sample below 3. Click `Import`. The dashboard appears under that folder. ```json { "type": "DashboardV2SyncDefinition", "name": "runZero Asset Metrics", "description": "", "title": "runZero Asset Metrics", "theme": "Dark", "topologyLabelMap": { "data": {} }, "refreshInterval": 0, "timeRange": { "type": "BeginBoundedTimeRange", "from": { "type": "RelativeTimeRangeBoundary", "relativeTime": "-3d" }, "to": null }, "layout": { "layoutType": "Grid", "layoutStructures": [ { "key": "panelPANE-AC8FB3DCBD32DA48", "structure": "{\"height\":6,\"width\":12,\"x\":0,\"y\":0}" }, { "key": "panel3D084A3284252A4E", "structure": "{\"height\":6,\"width\":12,\"x\":12,\"y\":0}" }, { "key": "panelPANE-4389DBF794B13B44", "structure": "{\"height\":6,\"width\":12,\"x\":0,\"y\":6}" }, { "key": "panelPANE-FBE08549B2123A4A", "structure": "{\"height\":6,\"width\":12,\"x\":12,\"y\":6}" } ] }, "panels": [ { "id": null, "key": "panelPANE-AC8FB3DCBD32DA48", "title": "New assets found", "visualSettings": "{\"general\":{\"mode\":\"timeSeries\",\"type\":\"line\",\"displayType\":\"default\",\"markerSize\":5,\"lineDashType\":\"solid\",\"markerType\":\"none\",\"lineThickness\":1},\"title\":{\"fontSize\":14},\"axes\":{\"axisX\":{\"titleFontSize\":12,\"labelFontSize\":12},\"axisY\":{\"titleFontSize\":12,\"labelFontSize\":12,\"logarithmic\":false}},\"legend\":{\"enabled\":true,\"verticalAlign\":\"bottom\",\"fontSize\":12,\"maxHeight\":50,\"showAsTable\":false,\"wrap\":true},\"color\":{\"family\":\"Categorical Default\"},\"series\":{},\"overrides\":[]}", "keepVisualSettingsConsistentWithParent": true, "panelType": "SumoSearchPanel", "queries": [ { "transient": false, "queryString": "_source=\"runZero Alerts\" and _collector=\"runZero\"\n| json field=_raw \"assets_new\" nodrop\n| json field=_raw \"found\" nodrop\n| json field=_raw \"search_url\" nodrop\n| json field=_raw \"rule_name\" nodrop\n| where rule_name = \"New Assets to Sumo Logic\"\n| timeslice 1m\n| sum(assets_new) by _timeslice\n| order by _timeslice", "queryType": "Logs", "queryKey": "A", "metricsQueryMode": null, "metricsQueryData": null, "tracesQueryData": null, "spansQueryData": null, "parseMode": "Auto", "timeSource": "Message", "outputCardinalityLimit": 1000 } ], "description": "", "timeRange": null, "coloringRules": null, "linkedDashboards": [] }, { "id": null, "key": "panel3D084A3284252A4E", "title": "Multihomed assets found", "visualSettings": "{\"general\":{\"mode\":\"timeSeries\",\"type\":\"line\",\"displayType\":\"default\",\"markerSize\":5,\"lineDashType\":\"solid\",\"markerType\":\"none\",\"lineThickness\":1},\"title\":{\"fontSize\":14},\"axes\":{\"axisX\":{\"titleFontSize\":12,\"labelFontSize\":12},\"axisY\":{\"titleFontSize\":12,\"labelFontSize\":12,\"logarithmic\":false}},\"legend\":{\"enabled\":true,\"verticalAlign\":\"bottom\",\"fontSize\":12,\"maxHeight\":50,\"showAsTable\":false,\"wrap\":true},\"color\":{\"family\":\"Categorical Default\"},\"series\":{},\"overrides\":[]}", "keepVisualSettingsConsistentWithParent": true, "panelType": "SumoSearchPanel", "queries": [ { "transient": false, "queryString": "_source=\"runZero Alerts\" and _collector=\"runZero\"\n| json field=_raw \"assets_new\" nodrop\n| toLong(assets_new)\n| json field=_raw \"found\" nodrop\n| json field=_raw \"search_url\" nodrop\n| json field=_raw \"rule_name\" nodrop\n| where rule_name = \"Multihomed Assets\" or rule_name = \"Multihomed Assets - Sumo\"\n| timeslice 1m\n| sum(found) by _timeslice\n| order by _timeslice", "queryType": "Logs", "queryKey": "A", "metricsQueryMode": null, "metricsQueryData": null, "tracesQueryData": null, "spansQueryData": null, "parseMode": "Auto", "timeSource": "Message", "outputCardinalityLimit": 1000 } ], "description": "", "timeRange": null, "coloringRules": null, "linkedDashboards": [] }, { "id": null, "key": "panelPANE-4389DBF794B13B44", "title": "Assets with a TLS service", "visualSettings": "{\"general\":{\"mode\":\"timeSeries\",\"type\":\"line\",\"displayType\":\"default\",\"markerSize\":5,\"lineDashType\":\"solid\",\"markerType\":\"none\",\"lineThickness\":1},\"title\":{\"fontSize\":14},\"axes\":{\"axisX\":{\"titleFontSize\":12,\"labelFontSize\":12},\"axisY\":{\"titleFontSize\":12,\"labelFontSize\":12,\"logarithmic\":false}},\"legend\":{\"enabled\":true,\"verticalAlign\":\"bottom\",\"fontSize\":12,\"maxHeight\":50,\"showAsTable\":false,\"wrap\":true},\"color\":{\"family\":\"Categorical Default\"},\"series\":{},\"overrides\":[]}", "keepVisualSettingsConsistentWithParent": true, "panelType": "SumoSearchPanel", "queries": [ { "transient": false, "queryString": "_source=\"runZero Alerts\" and _collector=\"runZero\"\n| json field=_raw \"assets_new\" nodrop\n| toLong(assets_new)\n| json field=_raw \"found\" nodrop\n| json field=_raw \"search_url\" nodrop\n| json field=_raw \"rule_name\" nodrop\n| where rule_name = \"Assets running a TLS service\" or rule_name = \"Assets running a TLS service - Sumo\"\n| timeslice 1m\n| sum(found) by _timeslice\n| order by _timeslice", "queryType": "Logs", "queryKey": "A", "metricsQueryMode": null, "metricsQueryData": null, "tracesQueryData": null, "spansQueryData": null, "parseMode": "Auto", "timeSource": "Message", "outputCardinalityLimit": 1000 } ], "description": "", "timeRange": null, "coloringRules": null, "linkedDashboards": [] }, { "id": null, "key": "panelPANE-FBE08549B2123A4A", "title": "Assets running OpenSSL", "visualSettings": "{\"general\":{\"mode\":\"timeSeries\",\"type\":\"line\",\"displayType\":\"default\",\"markerSize\":5,\"lineDashType\":\"solid\",\"markerType\":\"none\",\"lineThickness\":1},\"title\":{\"fontSize\":14},\"axes\":{\"axisX\":{\"titleFontSize\":12,\"labelFontSize\":12},\"axisY\":{\"titleFontSize\":12,\"labelFontSize\":12,\"logarithmic\":false}},\"legend\":{\"enabled\":true,\"verticalAlign\":\"bottom\",\"fontSize\":12,\"maxHeight\":50,\"showAsTable\":false,\"wrap\":true},\"color\":{\"family\":\"Categorical Default\"},\"series\":{},\"overrides\":[]}", "keepVisualSettingsConsistentWithParent": true, "panelType": "SumoSearchPanel", "queries": [ { "transient": false, "queryString": "_source=\"runZero Alerts\" and _collector=\"runZero\"\n| json field=_raw \"assets_new\" nodrop\n| toLong(assets_new)\n| json field=_raw \"found\" nodrop\n| json field=_raw \"search_url\" nodrop\n| json field=_raw \"rule_name\" nodrop\n| where rule_name = \"Assets with OpenSSL\" or rule_name = \"Assets with OpenSSL - Sumo\"\n| timeslice 1m\n| sum(found) by _timeslice\n| order by _timeslice", "queryType": "Logs", "queryKey": "A", "metricsQueryMode": null, "metricsQueryData": null, "tracesQueryData": null, "spansQueryData": null, "parseMode": "Auto", "timeSource": "Message", "outputCardinalityLimit": 1000 } ], "description": "", "timeRange": null, "coloringRules": null, "linkedDashboards": [] } ], "variables": [], "coloringRules": [] } ``` --- docs/tines.md --- title: Tines --- runZero integrates with ((Tines)) so you can automate workflows around your asset data. A [video demo](https://loom.com/share/ff57a5828b584442936b20ed622d51fe) shows the end result of these instructions. ## Requirements {#tines-requirements} * A Tines account * runZero Export API and Organization API tokens You can integrate runZero and Tines in two ways: * Build a [custom story in Tines](#tines-custom-story) step by step, or * Import the **[runZero sample story](#runzero-sample-story)** and start from its outline. ## Tines custom story A Tines story is a collection of actions that work together toward a goal, like a playbook. The Tines Story Library has ready-made automated playbooks; when none matches your needs, these steps show you how to build a custom story. ### Step 1: Creating a Tines story and adding runZero API credentials 1. Sign in to Tines and create a new story. 2. Use the `+` in the **credentials** section to add a [**text** credential](https://www.tines.com/docs/credentials/text). * **Name**: a name for the credential, for example `runzero_export_token` * **Value**: your [runZero export API token](leveraging-the-api.md), copied from the [runZero organization](https://console.runzero.com/organizations) page for the organization you want. Export API tokens start with `ET`. 3. Use the `+` in the **credentials** section to add another [**text** credential](https://www.tines.com/docs/credentials/text). * **Name**: a name for the credential, for example `runzero_org_token` * **Value**: your [runZero organization API token](leveraging-the-api.md), copied from the [runZero organization](https://console.runzero.com/organizations) page for the organization you want. Organization API tokens start with `OT`. ### Step 2: Creating a Tines webhook action 1. Add a **[Webhook](https://www.tines.com/docs/actions/types/webhook)** action to your story. 2. Click the **Webhook** action and copy the webhook URL, which looks like `https://.tines.com/webhook/`. ### Step 3: Creating a runZero alert template 1. Create an [alert template](https://console.runzero.com/alerts/template/create/) in runZero: * **Name**: a name for the template * **Template type**: JSON * **Subject line for message**: leave empty * **Body of message**: this JSON example includes the rule name and the search URL in the alert message body: `{"rule_name":"{{rule.name}}","search_url":"{{search.url}}"}` 2. Create an [alert channel](https://console.runzero.com/alerts/channel/create/) in runZero: * **Name**: a name for the alert channel * **Channel type**: webhook * **Webhook URL**: the webhook URL you copied from Tines ### Step 4: Creating a rule in runZero With the template ready, pick the triggers to alert on. Common examples: * **Asset query results**: a query in runZero matches after a scan completes * **New assets found**: a scan completes with new assets * **Agent offline**: your runZero Explorer stops checking in to the console * **Task failed**: a task fails for any reason The rest of the steps use **asset query results**, with any asset that has an open Telnet port (`port:23`) as the example. You can [see more example queries](search-query-examples.md); for more on rules and alerts, see [Using the rules engine](rules-engine.md). 1. Create an [alert rule](https://console.runzero.com/alerts/rules/create/). 2. Select `asset-query-results` and click _Configure rule_. 3. Enter values for the rule: * **Name**: the name of the rule. * **Conditions**: optional parameters; the alert triggers when all conditions match. * **Query**: the query the assets must match, `port:23` in this example. * **Number of matches**: the numeric comparison to apply to the **value**. * **Value**: the match threshold that triggers the rule. * **Limit to organization**: limits the alert to a specific organization in runZero. * **Limit to site**: limits the alert to a specific site in runZero. * **Action**: notify * **Notification channel**: the alert channel you created in step 3. * **Notification template**: the alert template you created in step 3. ### Step 5: Handling the data in Tines 1. The [**Webhook** action](https://www.tines.com/docs/actions/types/webhook) you created in [Step 2](#step-2-creating-a-tines-webhook-action) is the entry point for the runZero alert in Tines. 2. Add an [**Event Transform**](https://www.tines.com/docs/actions/types/event-transformation/extract) to parse the search out of the URL in the runZero alert. If you connect the **Webhook** action to this one, some parameters populate automatically. * Mode: extract * Matchers: * Path: `path_to_alert_search`, for example `receive_alerts_from_runzero.body.search_url` if your **Webhook** action is named "RECEIVE alerts from runZero" * Regex: `\?.*` * Extract to: `search` 3. Add an [Event Transform](https://www.tines.com/docs/actions/types/event-transformation/explode) that takes the output of the previous step. If you connect the previous **Event Transform** action to this one, some parameters populate automatically. * Mode: explode * Matchers: * Path: `path_to_extraction_transform`, for example `get_search_from_url.search` if your previous **Event Transform** action is named "GET search from URL" * To: `individual_item` 4. Add an [HTTP Request](https://www.tines.com/docs/actions/types/http-request) that calls the runZero Export API. * URL: the `path_to_explosion_transform` appended to the runZero API endpoint URL, for example `https://console.runZero.com/api/v1.0/export/org/assets.json<>` if your previous **Event Transform** action is named "GET search from regex" * Content Type: JSON * Method: get * Use the **+ Option** button to add **Headers**: * Change `header` to `Authorization` * Change `value` to `Bearer CREDENTIAL.runzero_export_token` 5. Add an [Event Transform](https://www.tines.com/docs/actions/types/event-transformation/explode) that takes the runZero Export API output and loops through each value. * Mode: explode * Path: `path_to_HTTP_request`, for example `get_assets_from_runzero.body` if your **HTTP Request** action is named "GET assets from runZero" * To: `individual_item` ### Step 6: Personalized automation in Tines With the alert received, the search parsed, and the assets fetched from the runZero Export API, it's time to add your own flair. The sample story includes these two actions as examples, though you will likely want something more tailored. 1. [Send an email](https://www.tines.com/docs/actions/types/email) to the destination of your choice for each asset. The sample JSON shows how to put the context you want in the Subject and Body of the email. 2. The [HTTP Request](https://www.tines.com/docs/actions/types/http-request) action shows how to reach back into runZero and tag the assets after you gather other data. ## runZero sample story You can import the [sample story below](#runzero-sample-story-json) into Tines to get all of the actions from the steps above. Save its contents as a JSON file and upload it with the **Import** button in Tines. After importing, complete these steps. ### Step 1: Update credentials in Tines 1. Replace the `runzero_export_token` credential: * **Name**: a name for the credential, such as `runzero_export_token` * **Type**: text * **Value**: your [runZero export API token](leveraging-the-api.md), copied from the [runZero organization](https://console.runzero.com/organizations) page for the organization you want. Export API tokens start with `ET`. 2. Replace the `runzero_org_token` credential: * **Name**: a name for the credential, such as `runzero_org_token` * **Type**: text * **Value**: your [runZero organization API token](leveraging-the-api.md), copied from the [runZero organization](https://console.runzero.com/organizations) page for the organization you want. Organization API tokens start with `OT`. ### Step 2: Create runZero alert template 1. Create an [alert template](https://console.runzero.com/alerts/template/create/) in runZero: * **Name**: a name for the template * **Template type**: JSON * **Subject line for message**: leave empty * **Body of message**: this JSON example includes the rule name and the search URL in the alert message body: `{"rule_name":"{{rule.name}}","search_url":"{{search.url}}"}` 2. Create an [alert channel](https://console.runzero.com/alerts/channel/create/) in runZero: * **Name**: a name for the alert channel * **Channel type**: webhook * **Webhook URL**: the webhook URL you copied from Tines ### Step 3: Create the rule in runZero With the template ready, pick the triggers to alert on. Common examples: * Asset query results: a query in runZero matches after a scan completes. * New assets found: a scan completes with new assets. * Agent offline: your runZero Explorer stops checking in to the console. * Task failed: a task fails for any reason. The rest of the steps use **asset query results**, with any asset that has an open Telnet port (`port:23`) as the example. You can [see more example queries](search-query-examples.md). 1. Create a [new alert rule](https://console.runzero.com/alerts/rules/create/). 2. Select `asset-query-results` and click `Configure rule`. 3. Enter values for the rule: * **Name**: the name of the rule. * **Conditions**: optional parameters; the alert triggers when all conditions match. * **Query**: the query the assets must match, `port:23` in this example. * **Number of matches**: the numeric comparison to apply to the **value**. * **Value**: the match threshold that triggers the rule. * **Limit to organization**: limits the alert to a specific organization in runZero. * **Limit to site**: limits the alert to a specific site in runZero. * **Action**: notify * **Notification channel**: the alert channel you created in step 2. * **Notification template**: the alert template you created in step 2. ### runZero sample story JSON ```json { "schema_version": 4, "standard_lib_version": 6, "name": "runZero Sample Story", "description": null, "guid": "7706b502e51b4c68f0dbe9721c88d665", "slug": "runzero_sample_story", "exported_at": "2022-10-27T22:22:37Z", "agents": [ { "type": "Agents::WebhookAgent", "name": "RECEIVE alerts from runZero", "disabled": false, "guid": "ab1f5bf7be49c943d893ab993ade9421", "options": { "path": "da6e90c0b276bdda97e6bfa31ad50787", "secret": "5e290305e0a483bf843f1213f0f21dda", "verbs": "get,post" }, "reporting": { "time_saved_value": 0, "time_saved_unit": "minutes" }, "monitoring": { "monitor_all_events": false, "monitor_failures": false, "monitor_no_events_emitted": null }, "width": null }, { "type": "Agents::HTTPRequestAgent", "name": "GET assets from runZero", "disabled": false, "guid": "d54d8f3f5b0ea857308f45f61a224547", "options": { "url": "https://console.runZero.com/api/v1.0/export/org/assets.json<>", "content_type": "application_json", "method": "get", "headers": { "Authorization": "Bearer <>" } }, "reporting": { "time_saved_value": 0, "time_saved_unit": "minutes" }, "monitoring": { "monitor_all_events": false, "monitor_failures": false, "monitor_no_events_emitted": null }, "width": null, "schedule": [] }, { "type": "Agents::EventTransformationAgent", "name": "GET search from URL", "disabled": false, "guid": "d62ddd189bb9080d778d900f2292504d", "options": { "mode": "extract", "matchers": [ { "path": "=receive_alerts_from_runzero.body.search_url", "regexp": "\\?.*", "to": "search" } ] }, "reporting": { "time_saved_value": 0, "time_saved_unit": "minutes" }, "monitoring": { "monitor_all_events": false, "monitor_failures": false, "monitor_no_events_emitted": null }, "width": null, "schedule": null }, { "type": "Agents::EventTransformationAgent", "name": "GET search from regex", "disabled": false, "guid": "41afc5c4d4c0fdb694d14e1eb380688a", "options": { "mode": "explode", "path": "=get_search_from_url.search", "to": "individual_item" }, "reporting": { "time_saved_value": 0, "time_saved_unit": "minutes" }, "monitoring": { "monitor_all_events": false, "monitor_failures": false, "monitor_no_events_emitted": null }, "width": null, "schedule": null }, { "type": "Agents::EventTransformationAgent", "name": "LOOP through assets for follow up actions", "disabled": false, "guid": "b9ada61162bdf006f09d264845ebd304", "options": { "mode": "explode", "path": "=get_assets_from_runzero.body", "to": "individual_item" }, "reporting": { "time_saved_value": 0, "time_saved_unit": "minutes" }, "monitoring": { "monitor_all_events": false, "monitor_failures": false, "monitor_no_events_emitted": null }, "width": null, "schedule": null }, { "type": "Agents::EmailAgent", "name": "SEND Email Action", "disabled": false, "guid": "0e9647b114f315d480f1f85c58e481d3", "options": { "recipients": "youremail@email.com", "reply_to": "youremail@email.com", "sender_name": "Your Name", "subject": "<>", "body": "Alert: <>\n\\
\n\\
\nLink to asset: https://console.runzero.com/inventory/<>\n\\
\n\\
\nAddresses: <>\n\\
\n\\
\nServices:\n<>" }, "reporting": { "time_saved_value": 0, "time_saved_unit": "minutes" }, "monitoring": { "monitor_all_events": false, "monitor_failures": false, "monitor_no_events_emitted": null }, "width": null, "schedule": null }, { "type": "Agents::HTTPRequestAgent", "name": "TAG assets in runZero", "disabled": false, "guid": "c3171fed91ec40d39572260295a63ae0", "options": { "url": "https://console.runZero.com/api/v1.0/org/assets/<>/tags", "content_type": "application_json", "method": "patch", "headers": { "Authorization": "Bearer <>" }, "payload": { "tags": "hello=from_tines" } }, "reporting": { "time_saved_value": 0, "time_saved_unit": "minutes" }, "monitoring": { "monitor_all_events": false, "monitor_failures": false, "monitor_no_events_emitted": null }, "width": null, "schedule": [] } ], "diagram_notes": [ { "content": "Hello! Thanks for importing the runZero Sample Story. \n\nThis story is a basic example of what you can do with runZero and Tines. \n\nPrerequisites:\n1. Create a text [credential](https://www.tines.com/docs/credentials/text) called `runzero_export_token`. Set the value as your [runZero export token](docs/leveraging-the-api.md), which can be obtained from the desired [runZero organization](https://console.runzero.com/organizations) page. Export tokens start with `ET`.\n2. Create a text [credential](https://www.tines.com/docs/credentials/text) called `runzero_org_token`. Set the value as your as your [organization API token](docs/leveraging-the-api.md), which can be obtained from the desired [runZero organization](https://console.runzero.com/organizations). Organization API tokens start with `OT`. \n\nThe steps are as follows:\n\n1. **RECEIVE alerts** provides the webhook destination for your runZero alerts \n\n2. **GET search from URL** parses out the search string from the URL provided in the runZero alert \n\n3. **GET search from regex** takes the list provided in step 2 and allows you to use the individual value \n\n4. **GET assets from runZero** uses the runZero Export API to get the list of assets related to the alert \n\n5. **LOOP through assets for follow up actions** takes the list of assets and sends each to the next steps individually \n\n6. **NOTE**: this is the step that you could implement more custom logic in most cases. All of the initial runZero and Tines data transfer is done, but it's your chance to customize this story to fit your use case. \n\n7. **SEND email action** simply sends an email to the destination of your choice \n\n8. **TAG assets in runZero** adds a tag in runZero to each asset showing an example of how you might reach back into runZero after doing other automated activities ", "position": [ 165.0, 180.0 ], "guid": "0e4b9b331dc65316849f7b089bf7bde2", "width": 375 } ], "links": [ { "source": 0, "receiver": 2 }, { "source": 1, "receiver": 4 }, { "source": 2, "receiver": 3 }, { "source": 3, "receiver": 1 }, { "source": 4, "receiver": 6 }, { "source": 4, "receiver": 5 } ], "diagram_layout": "{\"ab1f5bf7be49c943d893ab993ade9421\":[555,180],\"d54d8f3f5b0ea857308f45f61a224547\":[555,450],\"d62ddd189bb9080d778d900f2292504d\":[555,270],\"41afc5c4d4c0fdb694d14e1eb380688a\":[555,360],\"b9ada61162bdf006f09d264845ebd304\":[555,555],\"0e9647b114f315d480f1f85c58e481d3\":[555,690],\"c3171fed91ec40d39572260295a63ae0\":[780,690]}", "send_to_story_enabled": false, "entry_agent_guid": null, "exit_agent_guids": [], "exit_agent_guid": null, "keep_events_for": 604800, "reporting_status": true, "send_to_story_access": null, "send_to_stories": [], "form": null, "forms": [] } ``` --- docs/thinkst-canary.md --- title: Thinkst Canary aliases: ["/docs/set-up-thinkst/"] --- All runZero editions integrate with ((Thinkst Canary)) for quick access from the Canary console to your asset data in the runZero Console. Setup is one Canary settings change. ## Integrate runZero with Thinkst Canary 1. Sign in to your runZero console. 2. Sign in to your Canary console. 3. Go to **Global Settings** under the gear icon. 4. Click **Integrations**. 5. Toggle the runZero switch. ## Accessing runZero data from Canary After you enable the integration in Canary, runZero data is available from any incident. When viewing an incident, click the magnifying glass icon under `source IP` or `reverse IP lookup` to open a search in your runZero console. To refine that search, see [Search query syntax](docs/search-query-syntax.md). --- docs/exposure-management.md --- title: "Exposure management" --- runZero gives you visibility across your whole internal and external attack surface: IT, OT, IoT, mobile, and cloud. It finds unknown and unmanageable assets, reveals hard-to-find exposures, and targets the risks other approaches miss, with no agents, no authentication, and no appliances. ## Unified asset inventory {#comprehensive-asset-inventory} runZero builds one asset inventory from [active scanning](discovering-assets.md), [passive traffic sampling](traffic-sampling.md), and [integrations](integrations-inbound.md), backed by deep fingerprinting and correlation. Assets are normalized, deduplicated, and tracked as they move across your environment. ## Total attack surface management runZero manages the attack surface of external, internal, cloud, IoT, and OT environments. ### External & cloud runZero hosts scan engines for external monitoring. A scan scope takes CIDRs, hostnames, and IPs, plus keywords that find targets for you: - `domain:runzero.com`: finds every host associated with runZero.com, then scans both the IPv4 and IPv6 addresses of the results. - `asn4:1233`: resolves every CIDR associated with ASN 1233 and scans them. - `country4:us`: can scan an entire country, but more often goes in the Excludes field to limit external discovery to a particular region. - `defaults`: expands to every CIDR and hostname registered in the associated site. You can combine these keywords and use them in both Scope and Exclusions. When you take the `Initialize` action on the scan page, runZero previews the expanded targets and estimates the scan time from the address count and full scope. Integrations also identify and monitor the external attack surface. Assets imported from cloud providers like AWS, Azure, and GCP arrive with their external IPs and hostnames. ### Internal runZero enumerates your internal attack surface with active scans, passive discovery, and integrations. The runZero scanner's subnet sampling discovers massive internal ranges fast. It trickles packets into the most commonly used octets of each /24 and scans only the subnets where at least one reply came back. It also parses ICMP error messages to identify the network ranges used by the network equipment itself. Use the `RFC1918` report to find blind spots and launch scans to close the gaps. Beyond scans, runZero imports PCAP files directly through the web interface and turns any deployed Explorer into a passive network sensor. Passive discovery uses up to one CPU core to parse all traffic passing through the interface, including broadcast, SPAN port data, and encapsulated traffic (VLAN, VXLAN, GRE, etc.). Integrations show which internal endpoints are missing a particular security control. If you use CrowdStrike as your EDR, runZero can flag every Windows system missing the agent. The same approach finds gaps in vulnerability management scopes. ### IoT & OT runZero was built for fast, unauthenticated, safe scanning of every device in every environment. That gives you coverage of internet of things (IoT) devices and reliable fingerprinting of operational technology (OT) equipment. runZero worked with the [US Department of Energy](https://www.runzero.com/blog/active-asset-discovery-ot-networks/) to make sure active discovery is safe and accurate for OT environments. If you can't deploy active scanning, you can still use passive discovery, PCAP imports, and integrations with OT and IoT management tools. ### Inside-out [Inside Out Attack Surface Management](https://www.runzero.com/blog/inside-out-attack-surface-management/) (IOASM) compares the unique fingerprints of your internal assets with a global database of public endpoints. It's enabled by default on the runZero-hosted platform and available to self-hosted customers through additional configuration. IOASM can quickly tell you if an internal device is publicly exposed through an unexpected IP, including port forwards, VPNs, IPv6 tunnels, and more. This [presentation](https://www.youtube.com/watch?v=QyK_-elLjL8) goes deeper. IOASM reports four distinct vulnerabilities based on heuristics and detection type: - (TLS|SSH) Private Key is Public - (TLS|SSH) Private Key is Widely Shared - Potential External Access to Internal Asset (SSH, TLS) - Potential External Access to Internal Asset (MAC Address) The reported risk also varies with the heuristics. A public service attached to a Remote Desktop or Secure Shell system counts as higher risk than a public TLS key reused by a web application. IOASM also uses the [BadKeys](https://www.badkeys.info) compromised key database. ## Vulnerability detection {#em-vuln-detection} runZero identifies, imports, and manages vulnerabilities across your total attack surface through [query-based](em-queries.md) detection logic, [active scans](discovering-assets.md), and API-based [integrations](integrations-inbound.md) with endpoint management and vulnerability management platforms. Findings give you one view of every detected security issue, misconfiguration, and other exposure across your assets. See [Findings](em-findings.md) for more. The [Rapid Response](em-rapid-response.md) program detects zero-hour exposures and notifies you in real time. The [Query Library](em-queries.md) lists every runZero-provided query. You can also create custom queries that report vulnerabilities on matching assets and services. Scans find vulnerabilities with an embedded version of [Nuclei](https://github.com/projectdiscovery/nuclei), an open source vulnerability scanner, paired with [curated templates](em-templates.md) and runZero's network discovery and fingerprinting engine. You pick vulnerability categories in the scan configuration, and runZero chooses specific templates dynamically by precisely matching assets and services. Out-of-band testing relies on runZero-hosted [Interactsh](https://github.com/projectdiscovery/interactsh) services at `reflect-us.rumble.network` and `reflect-eu.rumble.network`. runZero recalculates vulnerabilities, findings, and asset risk as part of task processing and shows the results in their respective product sections. ## Risk prioritization runZero assigns every asset a normalized risk score. Threat intelligence, vulnerability information, and exposure measurement all influence the score. You can set asset criticality through automated rules or by hand in the product interface, and assign assets to specific owners for remediation. Tags come in from API integrations and can be managed in the interface, including rule-based tagging. Exported assets carry the risk, criticality, and tag information set in the product interface. ## Continuous monitoring runZero continuously monitors your organization for changes to exposure at the asset and service level. Recurring active scans, background passive traffic sampling, and regular sync with your existing infrastructure catch and report new risks quickly. Alerts can be managed in-product, sent by email, or delivered by webhook to the platform of your choice. All asset data can be synced to external platforms, including popular SIEMs and data lakes. --- docs/em-rapid-response.md --- title: "Rapid responses" --- The runZero Rapid Response program detects emerging threats and notifies you immediately. Older entries move to standalone [queries](em-queries.md) or [templates](em-templates.md). Each Rapid Response includes a query that finds matching assets, a trigger that analyzes all inventories for exposure, and a blog post with the details of the issue, so you can mitigate exposures before compromise.
As mitigations become available, runZero replaces a Rapid Response entry with more specific coverage.
--- docs/em-queries.md --- title: "Query library" --- runZero ships a library of pre-built queries, categorized by use case and risk level. Use them to detect vulnerabilities, trigger alerts, and apply changes to assets such as tags and ownership. You can also configure custom queries to report vulnerabilities on matching assets and services. To write your own, start with the [search query syntax](docs/search-query-syntax.md). --- docs/em-templates.md --- title: "Templates" lastmodexempt: true --- This table lists the [Nuclei](https://github.com/projectdiscovery/nuclei) vulnerability templates available for scans. The full set of tuned templates lives in our [nuclei-templates](https://github.com/runZeroInc/nuclei-templates) repository. Alongside [query-based](em-queries.md) vulnerability reporting, runZero detects exposures natively with an embedded version of the open-source [Nuclei](https://github.com/projectdiscovery/nuclei) vulnerability scanner and its YAML-based vulnerability check templates. To keep scans fast and network disruption low, runZero selects templates dynamically based on the scan's configured categories and precise asset and service fingerprinting. --- docs/em-findings.md --- title: Findings --- Findings are groups of significant exposures with the same root cause. You can promote one or more vulnerabilities from a finding into a runZero [issue](docs/issues.md) for tracking and remediation, and optionally push the issue to Jira as an external ticket. Findings come from three sources: 1. Query-based findings come from specific queries defined within the system (see list above). 2. Nuclei-generated findings come from scans with default credentials and vulnerability checks enabled, using Nuclei templates (see [templates](em-templates.md)). 3. KEV (Known Exploited Vulnerabilities) findings trigger when a discovered vulnerability appears in the CISA Known Exploited Vulnerabilities (KEV) catalog or VulnCheck KEV. For more on findings, see [Understanding findings](docs/understanding-findings.md). --- docs/issues.md --- title: "Issues" --- ((Issues)) group one or more vulnerabilities for tracking, prioritization, and remediation. An issue captures a point-in-time **snapshot** of every (vulnerability, asset) pair it contains, so the original context survives even if the asset or vulnerability later changes. Use issues to: - Roll several related vulnerability instances up into a single unit of work. - Assign a risk level, state, and due date, and track progress over time. - Record decisions and discussion in a per-issue timeline. - Push the issue to Jira as an external ticket and keep the runZero timeline in sync through a [Jira webhook](docs/jira.md). ## What is an issue Each issue has these fields: - **Name** is a short label that identifies the issue. - **Description** holds longer free-form context about the issue. - **Remediation** holds guidance for the people doing the work. - **Risk** is one of `none`, `low`, `medium`, `high`, or `critical`. The default is the highest risk found across the issue's vulnerabilities at creation time. - **State** is one of `open`, `in progress`, `closed`, or `resolved`. Unless the state is `closed`, runZero sets it to `resolved` automatically once every instance is remediated (see [Automatic remediation tracking](#automatic-remediation-tracking) below). A [Jira webhook state mapping](docs/jira.md#state-mapping-and-bidirectional-sync) can also set the state. - **Due date** is an optional target date for resolving the issue. - **Owner** is the single user responsible for the issue. Issues use the built-in `Issue owner` ownership type and cannot take custom ownership types. See [Issue ownership](docs/managing-ownership.md#asset-issue-ownership) for details. - **Instances** are the (vulnerability, asset) pairs captured in the snapshot. ## Creating an issue You can create issues from anywhere in the runZero Console that shows vulnerabilities or groups of vulnerabilities: - The [vulnerability groups inventory](docs/search-query-vulnerability-groups.md) - The [findings inventory](docs/understanding-findings.md) - The [vulnerabilities by asset inventory](docs/search-query-vulnerabilities.md) table - The vulnerabilities card on an [asset](docs/understanding-assets.md) details page - The vulnerabilities table on a [findings](docs/em-findings.md) details page - The vulnerabilities table on a [certificate](docs/certificates-inventory.md) details page - A [vulnerability](docs/understanding-findings.md) details page Select one or more vulnerabilities and click **Create issue**. runZero opens a draft issue where you can edit the name, description, solution, risk, and due date before saving. Saved issues appear on the [Issues page](https://console.runzero.com/issues/) for the current organization. At creation time, runZero stores a snapshot of each selected vulnerability and its asset on the issue, so the issue keeps showing the original instance details even if the underlying asset is later modified, deleted, or rescanned. ## Working with an issue The issue details page has these sections: - **Header** shows the name plus quick-edit risk, state, and due date. - **Summary** shows the description and remediation guidance. - **Instances** is the table of vulnerabilities captured in the snapshot, with a slideout for vulnerability and snapshotted asset details. Instances whose vulnerability has since been remediated are flagged. - **Comments** and **History** tabs hold the issue timeline (see below). - **Sidebar** shows risk, state, due date, and the linked Jira ticket, if one exists. ### Comments and history The issue timeline records three kinds of entries: - **User events** cover changes to the issue fields and comments a runZero user writes on the **Comments** tab. - **System events** are entries runZero generates automatically (state changes, ticket creation, and similar actions). - **Jira events** arrive through the [Jira webhook](docs/jira.md#configuring-the-jira-webhook), one timeline line per changelog item on the linked ticket. The **Comments** tab shows comments only; the **History** tab shows everything in the timeline. ### Issue ownership An issue can have one owner. Issue ownership is separate from the ownership types used for assets and vulnerability records: every issue uses the built-in `Issue owner` type, and custom ownership types cannot be added to an issue. When an issue is linked to Jira, runZero can sync its owner with the Jira assignee if it finds a matching external user. See [Issue owner synchronization](docs/jira.md#issue-owner-synchronization). ## Automatic remediation tracking Whenever a scan, import, or integration import finishes for an organization, runZero recomputes the **remediated instances** counter for every issue in that organization except closed ones. An instance counts as remediated when the original vulnerability is no longer present on the original asset. If the state is `closed`, runZero does not recompute the remediated instances and makes no automated changes to the state. When every instance on an issue is remediated, runZero moves the issue to the `resolved` state. If a `resolved` issue has one or more of its vulnerabilities detected on the original asset again, runZero moves it back to `in progress` to alert you to the regression. ## Linking a Jira ticket To push an issue to Jira as an external ticket, first create a [Jira credential](docs/jira.md#creating-the-jira-credential). The Issues page sidebar shows a **Create Jira ticket** action where you pick the Jira credential and, optionally, upload a CSV of the issue's instance snapshot as a Jira attachment. After the ticket is created, the runZero issue stores the Jira issue key, a deep link to the ticket, and the credential and Jira base URL used. The [Jira integration](docs/jira.md) page has the full details. ## Permissions {#issue-permissions} - Viewing issues requires read access to the organization the issue belongs to. - Creating, editing, and deleting issues requires write access to that organization. - Issues don't appear in the **All organizations** view; switch into a specific organization to use the Issues page. --- docs/reviewing-results.md --- title: "Reviewing results" --- ## Task details After each discovery task completes, the ((task details)) page summarizes how many assets were updated. runZero correlates assets across IPs and data sources, so the numbers can differ from what IP-based matching alone would give. The change summary on the task details page includes these statistics: * Asset changes: * **((Newly discovered assets))** are devices found during the task whose fingerprints match no device seen before. * **((Assets marked offline))** are assets runZero had seen before on the scanned network that didn't respond on any of their IP addresses during this scan. The offline status is a flag on the asset and doesn't count as a change to it. A device may be marked offline because it was powered down or disconnected, or because of network problems. * **((Assets back online))** are assets that were marked offline at some point but responded to the runZero Explorer during this scan. The online status is a flag on the asset and doesn't count as a change to it. * **((Assets changed))** is the number of assets where some property other than online status changed, such as the device's IP addresses or hostname, or responses from new ports or protocols. * **((Assets unchanged))** is the number of assets seen exactly where runZero found them in the last scan, with no change to their responses. * **((Assets ignored))** is the number of times the Explorer got a response from probing an IP address that turned out to be bogus in some way. This typically happens when a web proxy, stateful firewall, or SIP gateway answers as if it were the asset at every address on a subnet. * **((Total assets seen by task))** is **Assets changed** plus **Assets unchanged**: the number of asset records that are now up to date. * User changes: * **((Newly discovered users))** are users seen for the first time during the integration sync. * **((Users changed))** are users whose attributes changed during the integration sync. * **((Users unchanged))** are users that did not change during the integration sync. * **((Users updated by task))** is **Users changed** plus **Users unchanged**: how many user records are now up to date. * Group changes: * **((Newly discovered groups))** are groups seen for the first time during the integration sync. * **((Groups changed))** are groups whose attributes changed during the integration sync. * **((Groups unchanged))** are groups that did not change during the integration sync. * **((Groups updated by task))** is **Groups changed** plus **Groups unchanged**: how many group records are now up to date. ## ((Dashboard)) & ((inventory views)) The dashboard fills with results after the first scan completes. It shows trend data and insights that help you see how your inventory changes over time. Pick a time period and site for the trend data with the selectors at the top right of the dashboard page. The main asset trends graph shows the number of assets in each of the four main states: live, offline, scanned, and unscanned. Beneath the graph, further breakdowns show the top 10 in each asset category: asset type, operating system, hardware, and tags. The service trends graph shows how many services in total were found in your asset inventory, with breakdowns for ARP, ICMP, TCP, and UDP. Below it are the top 10 TCP ports, UDP ports, protocols, and products detected. Click the menu button at the top right of a table and select "View more" for a more detailed inventory of that category. ## ((Insights)) from queries Queries and reports help you draw insights from your inventory. Start with the pre-built queries in the [Query Library](https://console.runzero.com/queries/). Some of them come from runZero's [Rapid Response](https://www.runzero.com/categories/rapid-response/) to emerging threats and are described on our [blog](https://www.runzero.com/blog/). The runZero query language searches and filters your asset inventory by asset field and value pairs. The [search query syntax](docs/search-query-syntax.md) page documents the language. Once you know it, you can write your own queries. To run a query automatically, open it and set "Automatically track query results on the dashboard". The query then runs when scans complete, and the dashboard page notifies you of any resulting insights. ### ((Sample Queries)) #### Asset inventory - Equipment that is likely 8+ years old: `alive:t mac_age:>8years` - Assets with end-of-life OS: `os_eol: Analysis reports are the more advanced reports. They may run as tasks rather than being generated on the fly. The first analysis report is [Compare Sites](site-comparison-report.md), which generates searchable reports of the differences between two sites. The Outlier Overview Report analyzes assets across the organization and summarizes the most unusual values for attributes such as hardware type and SNMP enterprise ID. The Specific Outlier Report breaks down the outlying values of an attribute you select. The Organization Overview Report builds a high-level summary of the entire organization and can optionally include lists of the assets found. ## ((Alerts)) Beyond the reports and queries you run yourself, runZero can send [automatic alerts](managing-alerts.md) to designated channels for post-scan inventory queries, asset changes, Explorer and scan issues, security operations, or API events. Channels are internal notifications in the runZero web console, email, or webhooks that connect to services such as Slack or Mattermost. Alerts use the same query language as the sample queries above, so they're a good way to automate notification for critical events. --- docs/dashboard.md --- title: "Using dashboards" --- ((Dashboards)) are customizable visual views into your asset inventory. You can [create](#creating-dashboards) them for different use cases such as compliance, vulnerability remediation, or asset visibility. Visualization [widgets](#widget-types) show operational information, trends, insights, goals, sources, and most and least seen graphs. You can also build your own [custom widget](#custom-widgets) from queries to show exactly the data you want, as a trend line or a latest count. Filter the dashboard data by site and time bucket with the dropdown buttons at the top of the dashboard. In Edit Mode you can [customize](#customizing-dashboards) the arrangement and size of each widget, and the [widget library](#widget-library) lets you add or remove widgets. ## Dashboard selection The dashboard selector button at the top of the dashboard shows the current dashboard's name. Click it to open a menu of runZero-managed dashboards, any shared dashboards, and your personal customized dashboards, then click the name of the dashboard you want to view. ## Creating dashboards To create a personal dashboard, click the dashboard selector, then "Create new dashboard". runZero creates the dashboard and takes you straight into Edit Mode, where you can add, resize, and arrange widgets. ## Customizing dashboards To customize a personal dashboard, click "Edit" in the dashboard header. The dashboard enters "Edit Mode", where you can resize, rearrange, add, and remove widgets. In Edit Mode, resize a widget by dragging its bottom right corner. Rearrange widgets by dragging the widget heading area, where the mouse cursor turns into a "cross-hair" icon. When the layout looks right, click "Save". The dashboard keeps that layout, so the information you want is there every time you visit. To revert instead, click "Cancel" to discard your changes. The visibility, arrangement, and size of every widget return to how they were before you started editing. ## Sharing dashboards Share a dashboard with any number of organizations by clicking "Share". In the dialog, select the organizations to share with and click "Done". When another user shares a dashboard with your organization, it appears under "Shared with me" in the dashboard selector. Dashboards you share still appear under "My dashboards". Only you can modify them, but other organization users may duplicate them. To share a read-only snapshot of a dashboard with someone outside runZero, use [external reporting](docs/external-reporting.md) instead. On shareable dashboards, the Share button creates an email-gated public link, optionally on a recurring schedule. ## Duplicating dashboards A runZero-managed dashboard, or one shared with your organization, can't be modified directly, but you can click "Duplicate" to make a copy you can customize. You can also duplicate any dashboard from the menu button at the top of the dashboard by selecting "Duplicate dashboard". A dialog opens where you can name the new dashboard to tell it apart from the original. Sharing settings from the original dashboard are not copied to the new one. ## Default dashboards Set any dashboard as your preferred dashboard by clicking the dashboard menu button and selecting "Set as my preferred dashboard". An organization admin can set the default dashboard for every user of the selected organization with the "Set dashboard as organization default" option. In the dialog, the "Override user-preferred dashboard" checkbox makes the organization default win over each user's preferred dashboard. With that override in place, users see their own preferred dashboard only if the organization has no default dashboard set to override it. ## Deleting dashboards To delete a custom dashboard, click the menu button at the top of the dashboard, select "Delete dashboard", and confirm in the dialog. Deletion cannot be undone. ## Widget library Use the dashboard ((widget library)) to add and remove widgets. Open it with the "Widgets" button at the top right of the dashboard. The library lists every available widget. You can also create your own [custom widget](#custom-widgets) from queries. Widgets already on the dashboard carry a checkmark icon. Click one to deselect it, and it leaves the dashboard when you click "Save". Click a widget that isn't on the dashboard to select it, then save to add it. ## Widget types ### Operational information - Live assets: number of assets currently alive based on the latest scans - Active scans: number of scans currently in progress - Explorers online: number of Explorers reporting as healthy - Accounts: number of users with access to your console ### Trends - Asset trends: timeline of asset counts broken out by live, recent, and a couple of other states - Service trends: timeline of network services seen in your environment ### Insights - Latest ((insights)): automated queries that ran after your latest scan, with result counts ### Most and least seen graphs Asset views by different asset properties. You can toggle each graph between most and least seen by count. - Asset types - Operating systems - Hardware - RRT latency - MAC vendors - Newest MAC age - TCP ports - UDP ports - Products - Protocols - Address count - Extra address count - Risk - Criticality - Tags ### Goals - Goals overview: summary of every goal pinned to the dashboard ### Asset count and trend tables The latest count and historical timeline for your assets by ownership coverage, source type, and custom integration. - Asset ownership: view of all ownership types, including assets missing owners - Asset sources: view of all sources of asset data from supported integrations - Custom integrations: view of all custom sources of asset data from API integrations ### Bookmarks A customizable list of frequently visited pages, favorite reports, or external links. After adding the widget to your dashboard, manage the list from the menu button at the top of the widget. To edit a bookmark, select "Edit bookmarks", pick the bookmark from the list in the dialog, update the name or URL below it, and save. To remove one, click the trash can icon in the list. To add a bookmark, select "Add bookmark", enter a name and URL, and save. Bookmarks to external sites open in a new window; internal console URLs open in the current window. When viewing a report or browsing the list of reports, click the bookmark ribbon icon to add that report to your bookmarks. Click the ribbon again to open the editing dialog and remove it. ### Custom widgets Click "Create widget" in the widget library to build a custom widget of one of these types: - **Single match count** shows the most recent match count for a given query. - **Single match trend** charts the history of a given query. - **Multi-query match count** shows the most recent match count for 2 or more queries, displayed like the _Organization overview_ widget. - **Multi-query trend line** charts the history of 2 or more queries. - **Custom text widget** shows custom Markdown-formatted text, for extra context or information on the dashboard. - **Goal progress overview** shows a summary and current progress toward completion for a single goal. For a single-query widget, you choose a name, a query, and a color for the results. For a multi-query widget, you choose a name for the widget itself and a name and color for each query. Any custom widget that displays as a trend chart can be exported to JPG, PNG, or SVG from the menu button at the top right of the widget on your dashboard. After creation, manage custom widget templates in the widget library with the icons at the bottom of each widget's preview image. When you update a custom widget, runZero asks whether to update the widget on the dashboard too. When you delete one, it asks whether to remove it from the dashboard too. ## Drill down Except in timeline-based charts, you can view any widget's distinct data points in detail by clicking the relevant table row links or buttons, or individual segments of donut, bar, or column charts. ## Printing and exporting Chart-based widgets export to SVG, PNG, and JPEG, and table-based widgets export to CSV. Use the menu button at the top of the widget and pick the format. Print the entire dashboard and all of its widgets with the printer icon at the top of the dashboard. For best results, use a Chromium-based browser or Firefox with the 'Print backgrounds' option enabled. ## Recalculate metrics Dashboard widgets, query results, and saved-query counts come from metrics that runZero recomputes after every scan, integration sync, and scheduled metrics task. If you just imported data, edited tags (including `geo*` location tags or manual `category` overrides), or changed asset criticality and want the dashboard, [World Map](world-map.md), and saved-query counts to reflect it right away, click the dashboard menu button and select **Recalculate metrics**. runZero queues a one-shot metrics task and refreshes the dashboard when it completes. ## Themes The runZero console ships with three themes: **Classic**, **Light**, and **Dark**. Choose yours on the **Account > Preferences** page. Theme selection is per-user and applies to every dashboard, report, inventory view, and the Network and World Maps. ## Display mode Theater (or kiosk) mode hides the navigation menus and shows only the dashboard content. To enter it, click the menu button at the top of the dashboard and select "Enter theater mode". In theater mode, the _Fullscreen_ button at the top of the page fills the screen with the dashboard. Press `Escape` or click _Exit fullscreen_ to return to theater mode. To leave theater mode, click the X icon. --- docs/ai-threads.md --- title: "AI Threads" --- The AI section of the console lets you ask questions about your inventory, build reports, export data, draw charts and diagrams, and [write custom integration scripts](custom-integration-scripts.md#ai-generator) in a conversation. It lives at [AI threads](https://console.runzero.com/ai/threads) in the console navigation and has three tabs: **Threads** (your conversations), **Artifacts** (the saved output), and **Reporting** (guided report templates). An **AI thread** is a private conversation between one user and the AI: no other user can see your threads, ever. What you choose to share is the [artifact](ai-threads.md#ai-artifacts) (the report, table, script, or other output a thread produces), never the conversation itself. ## Requirements {#ai-requirements} * The account must have the AI entitlement, and AI must be enabled in the account (or organization) AI configuration. When AI is turned off, the composer is locked and the page says so, and superusers get a link to the [AI configuration](https://console.runzero.com/account/ai). * An organization must be selected in the organization picker. A thread records the organization scope that was active when it was created, and the AI's searches never reach beyond that scope. The My Organizations option works with AI threads, but anyone you share an artifact with must have access to the same organizations. * Runs are also subject to the account's AI token budget. When a daily budget or token cap is exhausted, new runs are refused until it resets. ## Threads ### Starting a thread A thread starts from any of these places: * the **New thread** composer on the threads page; * the **New AI thread** button in the top bar; * the command palette (**Cmd/Ctrl+K**), which can start a thread carrying the context of the page you are on; * **Ask AI** handoffs from inventory pages (asset details, vulnerability and software groups, and similar views), which start the thread scoped to that object. A **Context** chip on the composer shows the scope; remove it before the first question to ask about the whole organization; * the **Reporting** tab, where picking a guided report and answering its scoping questions starts a thread that generates the report; * [generating a custom integration script](custom-integration-scripts.md#ai-generator), where each authoring run appears as a live turn on its own thread. In the composer, **Enter** sends and **Shift+Enter** inserts a newline. A new thread is titled from your prompt, and after the first answer the AI replaces that with a short generated title. Renaming a thread yourself stops the automatic titling. ### The thread list Threads are grouped by recency (Today, Yesterday, Earlier this week, Earlier this month, Older) and sorted by last activity. Each row shows a running indicator when a turn is in flight, an icon for the thread's newest artifact, the relative time of the last activity, when the thread [expires](ai-threads.md#ai-retention), and the organizations it spans. The search box matches thread titles, prompts, and responses; press `/` to focus it. The list shows the threads whose organization scope overlaps your current organization selection. When you have threads outside that scope, a footer note says so and offers to switch to **My Organizations**. ### Reading a thread Every turn shows your prompt, a **work log** of the steps the AI took (searches it ran, data it read), and a summary line with the elapsed time, token usage, tool calls, and the artifacts it produced. The **Normal** view folds the work log away; **Verbose** expands every step. The answer itself is saved as an artifact and shown as a linked card, and the newest one opens automatically in the artifact panel beside the conversation. ### Background execution A run is independent of your browser: closing the tab, navigating away, or losing the network does not stop it. Reopening the thread re-attaches to the run and replays everything that streamed while you were away, and the command palette lists running AI jobs so you can jump back to them. Only **Stop** ends a run early, and it returns your prompt to the composer. Otherwise a chat turn runs up to 5 minutes and a report turn up to 10. ### Renaming and deleting Rename a thread with the pencil beside its title (titles are capped at 120 characters). Deleting a thread permanently removes the conversation and every **unshared** artifact it produced, along with their attached files; shared artifacts are kept. A thread with a running turn cannot be deleted until the run finishes or is stopped. You cannot share a thread; share its artifacts instead. ### Organization scope Only a thread's owner can continue it, and only with an organization selection that still contains every organization the thread was created against. Switching to a different organization, or losing access to one of the thread's organizations, blocks new turns until the selection (or access) is restored; the existing conversation stays readable. ## Tools {#ai-tools} Every turn works through a set of read-only tools scoped to the thread's organizations, and the work log records which ones were called. The same tools are exposed over [MCP](mcp.md#available-tools), so an external MCP client and an in-product AI thread can ask the same questions of the same data. **Inventory search.** `query_assets` and `query_asset_counts` for assets, `query_services`, `query_certificates`, and `query_tasks` for their own inventories, and `query_inventory` for everything else: software, software groups, vulnerabilities, vulnerability groups, wireless, findings, events, directory users and groups, tasks, issues, goals, credentials, saved queries, and sites. `get_attributes` pulls selected host attributes for a batch of assets, and `list_organizations` lists what the thread can reach. **Writing queries.** Answers use real [search syntax](search-query-syntax.md). `get_field_definitions` returns the searchable fields for an entity or integration source with descriptions and example values; `get_query_syntax` returns the operator reference, [worked examples](search-query-examples.md), and that entity's fields; and `translate_query` turns a plain-language phrase into runZero syntax. Asking for "cisco devices with ssh exposed" yields `(os:cisco or hw:cisco) and protocol:ssh`. The AI tries to cite data using live queries into the inventory search. **Detection coverage.** `search_vuln_coverage` and `search_scan_checks` search the vulnerability match rules and active scan checks runZero ships, so "can runZero detect this?" is answered from platform coverage rather than from your findings. `list_rapid_response` lists the [Rapid Response](em-rapid-response.md) feed with the query that finds affected assets. **Organization analytics.** A set of snapshot tools covering the whole organization at once: overview distributions, subnets, outliers, exposed assets, datastores, security-control signals, critical systems, unmanaged assets, end-of-life assets, Explorers, recent tasks, metrics, and goals. A turn spends at most 8 tool calls on an ordinary question. Asking for a report, a deep investigation, a comparison, a chart, or a trend raises the budget to 20. Guided reports are not capped this way; the 10-minute turn limit bounds them instead. ## Artifacts {#ai-artifacts} Everything a thread produces is saved as an **artifact**: the answer document itself, plus any tables, charts, diagrams, or scripts it generated along the way. Artifacts are the durable, shareable output of the AI. They start private and expire with their parent thread unless shared. Once shared, they stay active indefinitely and can be deleted manually as needed. The **Artifacts** tab lists your private artifacts and any artifacts team members have shared to their organizations. Search them by title, kind, and author, or filter with **Created by me** and **Created by other people**. Selecting one shows the content and its provenance: who created it, when, from which organizations, with which model, its size, and when it expires. Threads and artifacts can both span multiple organizations, and every viewer of an artifact needs overlapping access to every organization whose data it includes. ### Artifact kinds | Kind | Notes | | ---- | ----- | | Markdown response | The primary answer document of a chat turn. | | Report | The output of a guided report, named for the report. | | CSV / TSV / JSON | Data exports, rendered as read-only source and downloadable as files. | | SVG graphic | Rendered graphics, embedded inline where the answer references them. | | Mermaid diagram | [Diagram source](ai-threads.md#ai-charts), rendered in place and downloadable as a `.mmd` file. | | HTML / HTML application | Self-contained documents, rendered in a hardened sandbox: no scripts from the network, no outbound requests. | | Graphviz diagram | DOT source, shown read-only and downloadable as a `.dot` file. | | Shell script / PowerShell / Starlark script | Code, rendered read-only with syntax highlighting. | Large inline tables and code blocks inside a report are carved into **attached files** (downloadable resources listed with the artifact), so a big export does not bloat the document. A single turn can produce up to 100 artifacts, each up to 512 KiB. ### Charts and diagrams {#ai-charts} When an answer needs a chart (a distribution, a trend, a flow, a path, a timeline, or a comparison), the AI draws it with [Mermaid](https://mermaid.js.org/). Mermaid charts are plain text and cover bar and line charts, pie, flowchart, sequence, state, class, entity-relationship, timeline, journey, gantt, quadrant, sankey, mindmap, kanban, radar, treemap, venn, block, packet, architecture, C4 context, requirement, git graph, and fishbone. Standalone SVGs are reserved for the rare graphic no Mermaid form fits. A diagram that stands on its own (one you asked for, or one worth sharing separately) is saved as its own **Mermaid diagram** artifact. It still renders in place in the answer, and you can download it separately as a `.mmd` file. Diagrams also render in the Markdown artifact's HTML and PDF exports. Inside the body of an HTML report, the diagram is a link to the artifact rather than a picture, because the report sandbox runs no scripts; graphics that must appear inside an HTML report body are drawn as SVG instead. ### Viewing and exporting Every artifact has a **Full screen** view that fills the window; press **Esc** to return. HTML reports carry their own toolbar with **Print / PDF**, an **HTML** download, and **Open** (full screen in a new tab). Prose artifacts export to Markdown, HTML, and PDF; file artifacts (data and scripts) download as their original file. The creator can rename any artifact (up to 160 characters). ### Sharing and privacy Every artifact starts **private** to its creator. Sharing one makes it visible to every user who can read **all** of the organizations it was created from; **Copy link** (available once shared) produces a link that opens it in the Artifacts tab. Unsharing returns it to private. The creator can always delete their own artifact. A superuser, or an administrator of every organization in its scope, can also delete a shared artifact. Deletion is permanent, removes attached files, and removes the artifact for everyone. ### Use in custom integration A Starlark script artifact, typically the product of the [AI script generator](custom-integration-scripts.md#ai-generator), has a **Use in custom integration** action that loads the script back into the integration it was written for, or into a new one. This requires the custom integration entitlements in addition to AI. ## Reporting The **Reporting** tab is a gallery of guided report templates, such as End-of-Life OS Analysis, Rogue & Unmanaged Assets, Critical Systems & Blast Radius, and Internet Exposure, each with optional scoping questions. **Start report thread** opens a new thread that generates the report, so the result arrives as an artifact you can review before opening or sharing it. ## Limits {#ai-limits} * At most 4 AI runs per user and 12 per account may run at once, and one per thread. * A single request (a prompt and its context) is capped at 64 KiB. * A chat turn runs up to 5 minutes; a guided report turn up to 10 minutes. * A chat turn makes at most 8 tool calls, or 20 when the question asks for a report, deep investigation, comparison, chart, or trend. * One turn can produce at most 100 artifacts, 512 KiB each and 2 MiB in total. ## Retention {#ai-retention} AI data has fixed retention windows, separate from the [organization-level data retention settings](data-retention.md): * **Threads are removed 180 days after their last use.** Every update pushes the clock back 180 days, so an active thread never expires and an abandoned one is removed half a year after it was abandoned. Renaming a thread does not reset the clock. Thread rows show the countdown: `expires in N days` within 30 days, a date beyond that. * **Unshared artifacts expire with their thread.** When a thread expires or is deleted, the unshared artifacts it produced are removed with it, attached files included. * **Shared artifacts are kept indefinitely** while shared. Unsharing one restores the thread-derived expiry; deleting it removes it immediately. * **Run records are temporary.** The job record and streamed event log behind a run are kept about 15 minutes while running and 24 hours after the run ends; the durable results are the thread and its artifacts. Cleanup runs daily, and expired items disappear from the console at their expiry time. These windows are not configurable; you can delete individual threads and artifacts at any time. --- docs/using-the-inventory.md --- title: "Using the inventory" --- The [inventory](https://console.runzero.com/inventory) page is the heart of runZero Network Discovery and the key to understanding what is on your network. The ((inventory)) shows all ((assets)) in the Organization, and you can sort, filter, and export it to get specific views of your environment. ## Understanding assets In runZero, an [asset](docs/understanding-assets.md) is a unique network entity. An asset may have multiple ((IP addresses)) and ((MAC addresses)), and those addresses may change as the environment changes. runZero tracks assets with several heuristics, including MAC address, IP address, ((hostnames)), and ((fingerprint results)) for the ((operating system)) and running ((services)). In most cases, runZero can follow assets accurately over time in environments using ((DHCP)), even across remote ((subnets)). For external networks, a scan started with fully qualified hostnames consolidates assets by hostname, so cloud-based external systems with dynamic IP addresses stay tracked consistently. Within an organization, assets are isolated by ((site)), and each site can have address space that overlaps with other sites. When they overlap, sorting the Inventory view by the site column can help, as can filtering the Inventory by a specific site name. The ((search)) field filters the inventory by the criteria you enter. The [search query syntax](docs/search-query-syntax.md) documentation covers the details. Beyond viewing assets, you can [export data](docs/exporting-asset-data.md) from the Inventory page, select assets, and set the comments field. The _Rescan_ action rescans specific systems from the inventory, and _Remove Assets_ and _Purge Assets_ permanently remove data from the inventory view. You can also share an inventory query as a read-only snapshot with people outside runZero through [external reporting](docs/external-reporting.md). The _Reports_ button is a shortcut to the main reports on the runZero [reports page](docs/reviewing-results.md#reports). ### Supported asset types #### IT - ADSL Modem - ADSL Router - ATM - ATM DSL Unit - BMC - Broadband Router - Cable Modem - Desktop - Docking Station - DOCSIS Cable Modem - DSL Modem - DSLAM - DSU/CSU - Ethernet Adapter - Fax Server - Firewall - Frame Relay - Hypervisor - IDS - IPS - JTAG Adapter - KVM - Laptop - Lights Out Management - Load Balancer - Mainframe - Management Console - Management Processor - Media Gateway - Media Server - Multiplexer - NAC - NAS - Network Appliance - Network Management - Network Scanner - Onboard Administrator - Optical Line Terminal - PABX - Paging Terminal - PBX - Power Device - Powerline - Print Server - Printer - Remote Terminal - Router - SD-WAN Appliance - Security Appliance - Security Gateway - SIP Gateway - SSL-VPN - Storage - Storage Appliance - Tablet - Tape Library - Terminal Server - Thin Client - USB Server - VoIP Gateway - VoIP Router - VoIP Server - VoIP Switch - VPN - WAF - WAN Accelerator - WAP - Web Proxy - Wireless Controller - Wireless Dock - Wireless Ethernet Bridge - Wireless LAN Controller - WLAN Repeater #### OT - AC Drive Device - BACnet Router - Building Automation - Data Logger - DCS - Device Server - Engineering Workstation - Ethernet IO Module - Frequency Converter - General Purpose Analog I/O - General Purpose Discrete I/O - High-Speed Counter - Historian - HMI - HMI Controller - IED - Industrial Control - Industrial Robot - Motion Control - Motion Controller - Motor Drive - PLC - Position Controller - Power Relay - Process Controller - Protocol Gateway - PXI Switch Module - Redundancy Module - Relay Controller - Remote Access Server - RTU - Safety Controller - Safety PLC - SCADA - Servo Controller - Servo Drive - SIS - Soft Starter - Specialty I/O - Traffic Control - Variable Frequency Drive - VFD #### IoT - 3D Printer - Access Control - Access Controller - Air Quality Monitor - Alarm Panel - Amazon Device - Audio Encoder - Audio/Video Switch - Automobile - AV Appliance - AV Controller - AV Receiver - Barcode Scanner - Check Scanner - Clock - Copier - Dishwasher - Display Controller - DVR - Environment Control - Exercise Equipment - Game Console - Handheld Blood Analyzer - Handheld Scanner - Home Appliance - IoT - IP Camera - IP Phone - IPTV - IR Network Adapter - Irrigation Control - Lab Equipment - Laboratory Instrument - Light Bulb - Light Switch - Mattress - Media Player - Media Receiver - Multifunction Device - Musical Instrument - Network Audio - NVR - PDU - Point of Sale - Power Meter - Presenter - Projector - Radio - Room Controller - Scale - Security System - Sensor - Set-Top Box - SIP Device - Smart TV - Smart Watch - Thermal Imager - UPS - Vacuum Cleaner - Video Conferencing - Video Decoder - Video Encoder - Voice Appliance - Voice Assistant - VoIP Intercom - VR Headset - Water Meter - Whiteboard - Wireless Presenter ## Loading assets The **Scan** and **Import** buttons load data into the inventory. runZero analyzes and merges the results and updates asset information as needed. The **Scan** button has two options: Standard Scan and Full RFC 1918 Discovery. The second option sets up a fast scan of all private range IP addresses. Afterwards, the [coverage reports](docs/coverage-reports.md) show whether assets turned up in unexpected private address ranges. The **Import** button has two options. With imported runZero scan data, you can scan networks that have no connectivity to the internet and still view the results in the runZero console. Importing is also useful for reprocessing old scan data, so the [site compare](docs/site-comparison-report.md) feature can show how assets have changed over time. ### Bulk asset update With ((bulk asset update)), you modify assets by [exporting a CSV](docs/exporting-asset-data.md) with the **Export** button, editing the data in a spreadsheet program or text editor, and importing the result back into runZero with the **Import** button. The import updates existing assets in the organization that have a matching `id` value. Bulk asset update can change these fields: * Type * Operating system * OS version * Hardware * Comments * Tags * Owner * Names * Domains The `type`, `os`, `os_version`, and `hardware` fields accept only a single value. The `comments`, `tags`, `owner`, `names`, and `domains` fields each accept multiple values, written as a space-delimited list of `field=value` pairs. The `tags` field also accepts a plain space-delimited list of values without `tag=`. Only changes to the `tags`, `comments`, and `owners` fields survive later scans. The latest scan data overwrites changes to the other supported fields. ### Removing tags from assets To remove a tag from one or more assets, select the assets in the inventory with the **Select** button in the toolbar, then click **Modify** and choose **Set asset tags**. In the tag editor, prefix the tag you want to remove with a minus sign (`-`). runZero removes the matching tag and leaves the asset's other tags in place. ```text -tag_name -tag_name=value ``` For example, enter `-env` to remove the `env` tag, including tags such as `env=prod`. To remove only a specific tag value, enter `-env=prod`; other `env` tags remain in place. This pattern also works in bulk updates that modify multiple assets at once. If you edit the tags field in a bulk asset update CSV before using **Import**, the same `-tag` syntax removes tags from the selected assets. To remove all tags from a single asset, open the asset details page, click **Manage** in the top-right corner, and choose **Unmerge asset**. runZero deletes the current asset record and reprocesses it, which drops stale tags and keeps the valid tags from the most recent tasks. ## Connecting to other systems The **((Connect))** button connects runZero to other systems. Which [integrations](docs/integrations-inbound.md) you can connect depends on your license level, but they may include cloud and virtualization platforms, endpoint protection solutions, identity and access management tools, and vulnerability and risk platforms. You can also configure these inbound integrations as [scan probes](docs/integrations-inbound.md#integration-probe-connector) if required. ## Viewing ((services)) The _Services_ submenu on the Inventory page switches the table from an asset-focused view to a service-focused view, with one row for each service runZero detected on each asset. Like the main asset view, the services view has a full search interface. You can filter services by protocol, port, and [many other criteria](search-query-services.md), using the [runZero search language](search-query-syntax.md).
Note
runZero does not enumerate Windows services through the Service Control Manager because active scanning is unauthenticated. In some cases, you may still see limited Windows service details from unauthenticated DCE/RPC Endpoint Mapper (EPM) data, which runZero uses primarily to identify WiFi and WLAN service availability.
## Viewing ((screenshots)) If the runZero Explorer has access to Google Chrome, it attempts to take screenshots of the web pages it finds while scanning your network. You can disable this in the scan options when you set up the scan. The _Screenshots_ submenu shows the screenshots for all of your assets, and each one links through to the asset record for full details. ## Viewing ((software)) The _Software_ submenu on the inventory page flips the table from an asset-focused view to a software-focused view, with one row for each piece of software that runZero or a supported integration detected on each asset. Like the main asset view, the software view has a full search interface. You can filter software by vendor, product, and [many other criteria](search-query-software-groups.md), using the [runZero search language](search-query-syntax.md). ## Viewing ((vulnerabilities)) The _Vulnerabilities_ submenu on the inventory page flips the table from an asset-focused view to a vulnerability-focused view, with one row for each vulnerability that a supported integration detected on each asset. Like the main asset view, the vulnerability view has a full search interface. You can filter vulnerabilities by CVSS score, name, CVE, and [many other criteria](search-query-vulnerabilities.md), using the [runZero search language](search-query-syntax.md). ## Viewing ((certificates)) The _Certificates_ submenu opens the [certificates inventory](certificates-inventory.md): every encryption certificate the runZero Explorer encountered while scanning, in a view you can search and sort like the others. ## Viewing ((wireless networks)) If the machine running the runZero Explorer has a working ((WiFi)) adapter and the right system tools installed, the Explorer attempts to scan for nearby wireless networks. The _Wireless_ submenu shows the results. The required tools are: - Windows: `netsh.exe` (part of modern Windows releases) - macOS: Airport Utility - Linux: `iwlist`, often available via the `wireless-tools` package. ## Viewing ((users)) and ((groups)) The users and groups inventory pages hold data imported from ((directory services)) such as Active Directory. Third-party integrations listed under _Directory services_ in the _Integrate_ drop-down menu populate the ((user directory)) and ((group directory)). --- docs/understanding-assets.md --- title: "Understanding assets" --- runZero treats ((assets)) as unique network entities from the perspective of the system running the Explorer. An asset may have multiple ((IP addresses)), ((MAC addresses)), and ((hostnames)), and it may move around the network as those attributes change. runZero tries to follow each asset by correlating new scan data with the existing inventory across multiple attributes. An asset always belongs to a single ((site)). If multiple sites cover the same system, runZero treats it as a different asset in each site and correlates it only against assets within that site. With this separation, you can scan the same network from multiple perspectives and compare the results in a single view within the organization. After each scan, runZero updates all assets within the corresponding site. A system that doesn't match an existing asset becomes a new asset. If the scan does not find an asset in the site, runZero marks it ((offline)). When an asset fails to correlate because its fingerprint changed substantially (for example, a new network adapter was installed and the firewall was enabled), runZero marks the previous asset offline and creates a new asset to track the new configuration. This can leave some duplicates within a site, but they are usually marked as offline, and you can safely ignore them or remove them from the inventory by hand. ## Asset fields {#understanding-asset-fields} You can search and filter on the fields below with the [asset inventory](docs/search-query-assets.md) keywords. ### Primary addresses runZero reports at least one, and often several, primary IP addresses for an asset. These addresses can span multiple network interfaces, but an address only appears as a ((primary address)) if runZero has scanned it, which means it falls within the scan scope of one or more runZero scans. ### Secondary addresses runZero may report one or more ((secondary addresses)), based on network response probes. These are IP addresses detected on the asset that were outside the ((scan scope)). You need secondary address detection to identify systems bridging networks that should be isolated. ### Hostnames runZero may report one or more ((hostnames)). Names can come from the initial ((DNS)) lookup (when the scan scope includes hostnames), from DNS PTR lookups during the scan, and from names advertised in network probe responses. ### Operating system (OS) runZero attempts to fingerprint the ((operating system)) running on each asset and, failing that, to guess it. With limited information, this field may be empty. ### Type {#understanding-type} runZero attempts to determine the general ((device type)) by analyzing fingerprints and running services. ### Category {#understanding-category} runZero classifies every asset into a high-level ((asset category)) so you can separate traditional computing infrastructure from operational technology and connected devices at a glance. The category comes from the device type, vendor, and service protocols (for example, an asset speaking Modbus, CIP, or S7Comm is placed in `OT` automatically). ![Three asset detail cards from the runZero console: a Rockwell Automation 1769-L19ER PLC tagged Category OT / Function Process Control, a Mobotix IP camera tagged Category IoT / Function Monitoring, and an Oracle Solaris Proxmox VM tagged Category IT](img/asset-classification-4-9.jpg) | Value | Meaning | |-------|---------------------------------------------------------------------------------------------------------------| | `IT` | Traditional information-technology assets: servers, workstations, laptops, network gear, storage, hypervisors. | | `OT` | Operational-technology assets: PLCs, RTUs, IEDs, DCS, SCADA, HMIs, drives, protocol gateways, industrial robots. | | `IoT` | Connected devices that are neither IT nor OT: IP cameras, building-automation sensors, printers, smart-TVs, medical devices, point-of-sale, access control. | Query with `category:OT`, `category:IT`, or `category:IoT`. To override the category, set the `category` asset attribute to one of these three values. ### Functions {#understanding-functions} Beyond a category, OT and OT-adjacent assets carry one or more ((asset functions)) describing what the device does. Functions are multi-valued: a single device can carry several at once (for example, a substation IED is both `Process Control` and `Monitoring`). | Function | Typical assets | |---------------------|-------------------------------------------------------------------------------------------------| | `Process Control` | PLCs, RTUs, IEDs, DCS, SCADA controllers, supervisory-control software. | | `Safety` | Safety controllers, safety PLCs, Safety Instrumented Systems (SIS). | | `Human Interface` | HMIs, operator panels, touchscreens, control-room displays. | | `Engineering` | Engineering workstations and laptops used to program, configure, or maintain OT devices. | | `Monitoring` | Sensors, meters, condition-monitoring units, tank monitors, environmental sensors used for observation only. | | `Environmental` | Building-automation, HVAC, lighting, refrigeration, room and climate controllers. | | `Communications` | Field-bus gateways, protocol translators, serial-to-IP adapters, modems used inside OT segments. | | `Networking` | Switches, routers, firewalls, and data diodes that segment or interconnect OT zones. | | `Remote Access` | Jump servers, VPN concentrators, and remote-access servers used to reach OT environments. | | `Data Management` | Historians, data loggers, and other systems whose primary role is storing operational data. | | `Power Management` | UPS units, PDUs, power meters, transfer switches, generators. | | `Physical Security` | Access-control panels, door controllers, alarm panels, surveillance NVRs. | | `Cyber Security` | OT-resident IDS/IPS, security gateways, and other dedicated cyber-security appliances. | | `Management` | Management appliances and consoles used to administer OT devices and networks. | Query with `function:"Process Control"`, `function:Safety`, `has:functions`, and so on. To set function values by hand, edit the asset's `functions` attribute. ### Hardware runZero attempts to determine the physical (or virtual) ((hardware)) when enough information is present. ### MAC addresses runZero may be able to enumerate one or more MAC addresses from the asset. It pulls them from ((ARP)) when available, and also from several network services that can return MAC address information across routed segments. ### Services By default, runZero tries to detect approximately 100 ((TCP services)) plus several useful ((UDP services)), on top of ARP and ((ICMP)). The services field lists the most recently recorded services for the asset. ### Round trip time (((RTT))) runZero records how long certain probes take, which gives a rough sense of the latency between the Explorer and the asset. ### ((Detected by)) runZero records which probe identified an asset. For assets on remote subnets with firewalls in place, this field shows which service produced a response. ### ((Alive)) status runZero tracks whether an asset was found during the most recent scan that had its site in scope. An asset that was not found is marked as offline until a later scan detects it again. ### First seen runZero records the timestamp when it first identified an asset. ### Last seen runZero records the most recent timestamp when an asset responded to a probe during a scan. ### Explorer {#explorer-attribute} runZero tracks the most recent Explorer to detect an asset through active scanning or passive discovery. Third-party connections that run through an Explorer do not typically update this field, because the third party detected the asset, not the Explorer. ### Outlier score runZero computes an ((outlier score)) from 0 to 5 (inclusive) for every asset in your inventory. The score is a heuristic that aims to show how unusual the asset is compared to all of the others in the inventory. To compute it, runZero examines the main properties of the asset and its services, works out which values are unusual (infrequent) across the organization, and counts how many unusual properties each asset has. The more unusual properties an asset has, the higher its outlier score. --- docs/understanding-findings.md --- title: "Understanding findings" --- [((Findings))](https://console.runzero.com/findings) condense ((vulnerabilities)), misconfigurations, and best practices into one prioritized, curated, and aggregated list, so you can identify and remediate the most critical risk in your environment. runZero Findings are available from the _Findings_ menu and from the ((Risk Management)) dashboard. ## What are findings? Findings surface the risks attackers are most likely to target, so security teams can focus remediation on risks with real operational impact. Findings group similar vulnerabilities and misconfigurations to show the whole risk they represent. Each finding contains a description of the risk, remediation steps, risk rankings, and a list of every asset and entity the risk affects. ## Finding categories runZero places each finding into a category based on the type of risk it represents. Categories include: - ((Internet Exposure)): assets and services that may be unintentionally exposed to the internet - Certificates: expired or soon-to-expire certificates, and widely shared private keys - Vulnerability: actively exploited vulnerabilities, or critical vulnerabilities that runZero believes are critical to address - ((End-of-Life)): operating systems, hardware, and applications that have reached End-of-Life (EOL) or End-of-Service (EOS) and are no longer supported by the vendor - ((Open Access)): network services such as unauthenticated databases and sensitive applications that are accessible without authentication - ((Compliance)): assets and services that violate security best practices - Best Practice: general best practices covering insecure authentication, service misconfiguration, and obsolete protocols - ((Rapid Response)): emerging and novel threats covered in detail by runZero Rapid Response blog posts ## Findings list The findings list is in the main navigation menu, directly below the Inventory item. You can [search](search-query-findings.md), sort, and export findings like other views in the console. ## Finding details Click a finding's name to open its details: an overview of the risks discovered, any related external resources, and remediation information to help you address the risk. Below the finding summary is a list of every asset instance the finding applies to, so you can prioritize remediation quickly. ## How are findings different from vulnerabilities? A vulnerability is a specific security issue, usually tied closely to a specific CVE or security advisory. The runZero Explorer finds vulnerabilities, or you import them through one of the supported integrations. A single asset can have hundreds of thousands of vulnerabilities, and your whole environment even more. A finding is a curated, aggregated, and prioritized list of the risks attackers are most likely to target. A single finding may group several similar vulnerabilities. Findings are not always tied to a CVE, and they may include misconfigurations, best practices, and other security issues that may not make sense as a vulnerability. --- docs/asset-risk-and-criticality.md --- title: Asset risk and criticality --- runZero helps you assign and evaluate risk and criticality levels for the assets in your inventory. With those levels set, you can spot the assets in your organization with the highest risk or criticality at a glance and prioritize risk mitigation or vulnerability remediation around them. ## Defining risk and criticality runZero assigns the **((risk))** level automatically, inferring it from the risk of the vulnerabilities or risky configurations on the asset; it defaults to `none`. A vulnerability's risk level may come from the vulnerability management solution its records were ingested from, or from the risk level assigned to a query vulnerability. You can override the risk level, and the override stays until the asset or vulnerability is deleted. For vulnerabilities ingested from integrations, deletion may happen when the source no longer reports the vulnerability on that asset. You assign the **((criticality))** level manually; it defaults to `unset`. Criticality denotes how important an asset is to your organization. For example, you might give business-critical systems such as database and web servers a `critical` level and normal end-user systems a `medium` level. ## Assigning asset risk and criticality You can assign both asset risk and criticality from the asset inventory. Alert rules can also assign criticality. Superusers, administrators, and users can add or modify asset risk and criticality levels, reset a risk assignment, and remove a criticality assignment from assets. ### Risk and criticality in the asset inventory To set risk and criticality through the asset inventory: 1. Select the assets you want to update, applying a query filter if needed. 2. Click _Modify asset risk_ or _Modify asset criticality_ to open the popup. 3. Select the level of risk or criticality to apply to the selected assets. 4. Click _Override risk_ or _Set criticality_ to apply your changes. ### Applying criticality with rules To apply asset criticality automatically after each scan, [create an alert rule](https://console.runzero.com/alerts/rules/create/): go to **Alerts** > **Rules** and click _Create rule_. 1. Select the inventory query to use, such as the `asset-query-results` rule type, then click _Configure rule_. 2. Configure any settings you want. 3. Set the **Action** to _Modify asset_. 4. Select an option from the _Asset criticality_ menu. 5. Save the rule. When a scan completes, the rule adds the specified criticality level to every asset that matches it. ## Asset risk report The **((Asset risk report))** shows the risk and criticality levels across your asset inventory. To run it, go to **Reports** > **Asset risk report**, click the **Asset risk report** button, and configure these fields: 1. **Sites**: Select a site of assets to include in the report, or leave the default _All Sites_. 2. **Minimum risk**: Choose the lowest asset risk level to include. 3. **Minimum criticality**: Choose the lowest asset criticality to include. 4. **Top vulnerabilities per asset**: Set an integer between 0 and 20. With a value from 1 to 20, the report lists up to that many of the top vulnerabilities detected on each asset. runZero picks them by sorting each asset's vulnerabilities by risk rank, then risk score, then severity rank, then severity score. 5. Click **Create report** to generate the results. The report is grouped by asset criticality level and then sorted by risk level. You can export the results as JSON Lines (.jsonl), a JSON document (.json), or CSV (.csv). --- docs/certificates-inventory.md --- title: "Certificates" --- runZero collects TLS certificates automatically during active scans and passive network monitoring. It stores them in the Certificates Inventory, which you can open from the _Inventory_ menu, _Certificates_ sub-menu. Most ((TLS certificates)) come from web servers, but runZero also collects them from SMTP, RDP, and other TLS-aware services. Every certificate has a validity period. In the inventory view, the _Valid from_ and _Valid until_ values are color coded to show whether the certificate is not yet valid, has expired, or expires soon. A certificate has an _issuer_, the authority that signed it. When the issuer is the same as the subject, runZero marks the certificate as self-signed. Certificates rely on two kinds of algorithms: - The ((public key algorithm)), used for decryption and verification. - The ((signature algorithm)), used to produce a content hash that is signed using the public key algorithm. The security of a public key algorithm depends on its key size, shown in bits, and how large a secure key must be varies by algorithm. An RSA key should be 2048 bits or larger to count as secure, while every ed25519 key is 256 bits, and that is considered secure. Each certificate in the inventory view has a button to hide it from the inventory, which can be useful for embedded devices whose certificates you can't change and don't want to see. To see which certificates you've hidden, search for `hidden:true`. The [certificate inventory](docs/search-query-certificates.md) keywords cover the other ways to search and filter certificates. ## TLS certificates TLS certificates have three sets of names for their hosts: - The ((Subject)), an ((X.509)) ((distinguished name)) (((DN))) made up of one or more attributes, each with a value. - The ((Subject Alternative Name)) lists, which hold the values web browsers check when connecting to a server. A certificate stores SANs in separate fields by type (DNS, IP, email, or URI). - The ((Common Name)), which web browsers once used but now ignore. It is typically in X.509 format. The Names runZero shows for a TLS certificate combine the four kinds of SANs plus the Subject DN. Each TLS certificate has a subject key ID that identifies the certificate's subject and an authority key ID that identifies the signing authority. These IDs link certificates into a chain: the authority key ID of each certificate is the subject key ID of the next certificate in the chain. The issuer of a TLS certificate is included in the certificate as a DN. TLS certificates have a flag that says whether they are intended for use as a ((certificate authority)) or (((CA))). The flag doesn't mean the certificate _is_ a CA or that it is trusted, only that the flag is set. CA certificates are usually self-signed. The values runZero shows for TLS certificate algorithms mostly come from RFC 5280 and should correspond closely to the values OpenSSL uses. The ((self-signed)) value shows whether a certificate appears to be self-signed, based on its issuer, subject, and (if present) their IDs. A certificate flagged as apparently self-signed may still fail signature validation in some software, because different software applies stricter or looser checks. The certificate details page has a button to download the certificate in PEM format. You can also download the entire chain of certificates known to runZero as a single PEM file. --- docs/asset-geolocation.md --- title: "Geolocation" date: 2026-05-10 --- runZero resolves a geographic location for every asset it has enough information about, and those locations drive the [World Map](world-map.md), inventory search, and exports. This page covers the sources runZero uses for ((asset geolocation)), how it interprets your location tags, and the order in which it applies the sources. ## Where locations come from runZero builds asset locations from five independent sources during each analysis pass. It records every location with its provenance, so you can trace each pin on the World Map back to the attribute, integration, or tag that produced it.
SourceDescription
attribute-coordPaired numeric latitude/longitude attributes from integrations or imports.
attribute-ipEgress / public IP addresses resolved through MaxMind GeoLite2.
attribute-textDiscrete country / city attributes, plus free-form snmp.sysLocation-style strings.
cloud-regionAWS, Azure, GCP, OCI, IBM Cloud, and DigitalOcean region codes resolved to a region centroid.
geolite-ispGeoIP lookup of the asset's primary scanned IP through MaxMind GeoLite2.
manualUser-supplied geo* asset tags.
An asset can carry locations from more than one source at a time. For example, a cloud workload may have a `cloud-region` location from its AWS region, an `attribute-ip` location from its public NAT address, and a `manual` location set by a tag. All three appear as separate pins on the [World Map](world-map.md), each labelled with its source. When multiple sources agree on the same coordinate, runZero de-duplicates the entry. ## GeoIP lookups against MaxMind runZero ships with the MaxMind GeoLite2 City and ASN databases and uses them to resolve any public IP address it observes for an asset into a latitude, longitude, country, subdivision (state/province), city, postal code, timezone, continent, ASN number, and ASN organization name. GeoIP lookups reject private RFC1918 and RFC6598 addresses, so a private IP never produces a location. ### Primary and hinted external IPs When runZero scans an asset, it records the public IP it observed for that asset. It looks up the primary scanned address directly against GeoLite2, which produces a location with source `geolite-isp`. When passive sources or integrations report additional public addresses for the same asset (for example, a secondary NAT address or an alternate egress on a multi-homed device), runZero looks those up too. It records the resulting locations alongside the primary, so an asset visible at two different egress points appears in both places on the [World Map](world-map.md). ### Egress and public-IP attributes from integrations Many integrations report the public, external, or NAT IP address an asset was observed from. runZero ingests these and resolves each one through GeoLite2, which produces both a city-level location and an ASN annotation for the pin. The egress IP pipeline reads these attributes: | Attribute | Set by | |-------------------------|-------------------------------------------------| | `externalIP` | CrowdStrike, SentinelOne | | `publicIP` | Azure (VM/database/load balancer), Microsoft Defender for Endpoint, AWS | | `publicIPs` | AWS | | `natIP` | Google Cloud Platform | | `wanIPAddresses` | Google Workspace | | `discover.externalIP` | CrowdStrike | runZero also writes the full set of unique public IPs seen across these attributes back to the asset as an `egressIPs` attribute, so you can query the underlying values directly. ## Cloud region codes When an integration provides a cloud region code (for example, AWS `us-east-1`, Azure `eastus`, or GCP `europe-west4`), runZero maps the code to the published centroid of that region. This gives the asset a country, subdivision (where applicable), city, and continent without a GeoIP lookup. The cloud region pipeline reads from attributes including `region`, `cloud.region`, `aws.region`, `azure.region`, `azure.location`, `gcp.region`, `gcp.zone`, `oci.region`, `availabilityZone`, `availability_zone`, `zone`, `placement.region`, and `placement.availabilityZone`. runZero ignores unknown values (for example, a generic `region=Northeast` tag). ## Discrete country and city attributes Some integrations report location as separate `country` (or `countryCode`) and `city` fields. runZero pairs them and resolves the combination to the matching GeoNames city centroid. If only a city is present, runZero uses the highest-population match worldwide. The country fields runZero reads are: `country`, `countryCode`, `country_code`, `host.country`, `host.countryCode`, `host.location.country`, `host.location.countryCode`, `discover.country`, `discover.countryCode`, `custom.country`, and `site.country`. The city fields runZero reads are: `city`, `host.city`, `host.location.city`, `discover.city`, `custom.city`, and `site.city`. ## Free-form location strings runZero parses free-form location strings from SNMP and integrations on a best-effort basis. The parser strips address noise (house numbers, suite/floor markers, PO boxes, postal codes, and street suffixes like `St`, `Ave`, and `Blvd`) and matches the remaining trailing tokens against the bundled ((GeoNames)) tables. The free-form attributes runZero reads are: `location`, `host.location`, `site.location`, `custom.location`, `location.address`, `snmp.sysLocation`, and `shodan.snmp.location`. The best-effort approach is deliberate: SNMP `sysLocation` has no standardized format, and many devices report a campus or rack identifier rather than an address. When the parser cannot anchor the string to a known city, region, or country, it records no location. ## Manually setting an asset location To pin an asset to a specific geographic location, set one of the `geo*` tags below. Each tag has a fixed shape, and its value tells runZero where the asset is. The location appears on the [World Map](world-map.md), in exports, and in queries the next time runZero recalculates metrics for the asset.
Manual `geo*` tags do not take effect immediately. runZero picks them up the next time it recalculates metrics for the asset, which happens automatically during normal task processing (scans, integration syncs, and scheduled metrics tasks). To apply the change right away, go to **Dashboard** > **Recalculate metrics**.
> The short version: set one tag, and use `/` to separate fields. > > ``` > geoCity = Austin/TX/US > geoCity = Springfield/IL/US > geoLatLng = 30.2672/-97.7431 > ``` ### Available tags | Tag | Shape | Example | |----------------------|---------------------------------------------------------------------|--------------------------------------| | `geoLatLng` | `lat/lng` | `geoLatLng = 30.2672/-97.7431` | | `geoContinent` | continent name or two-letter alias (`EU`, `NA`, ...) | `geoContinent = Europe` | | `geoCountry` | country (see [Country values](#country-values)) | `geoCountry = US` | | `geoRegionCountry` | `region/country` | `geoRegionCountry = TX/US` | | `geoRegion` | `region/country` or a single token (state, country, or continent) | `geoRegion = Texas` | | `geoState` | alias of `geoRegion` | `geoState = TX/US` | | `geoProvince` | alias of `geoRegion` | `geoProvince = Ontario` | | `geoCity` | `city/country` or `city/region/country` | `geoCity = Austin/US` | You only need to set one tag per asset. If you set more than one, runZero uses whichever tags match their shape. runZero silently ignores tags whose values do not match their expected shape; it will not guess. ### When to use which tag * Use `geoLatLng` if you have exact coordinates from a CMDB, building floor plan, or GPS source. * Use `geoContinent` when you only know the continent. * Use `geoCountry` when you only know the country. * Use `geoRegionCountry` when you know the country and the state/province/region but not the city. * Use `geoRegion` (or its synonyms `geoState` / `geoProvince`) when you want runZero to accept any plausible region-ish value: a `region/country` pair, a unique state name (`Texas`, `Ontario`, `Bavaria`), a country code, or a continent. * Use `geoCity` in every other case. The two-field form is enough for major cities; use the three-field form to disambiguate names like `Springfield`, `Portland`, or `Cambridge`. ### Field separator The separator between fields is always a forward slash (`/`). The characters `-`, `.`, `,`, and `_` are not field separators, because they appear inside real city and region names: `Winston-Salem`, `St. Louis`, `Stratford-upon-Avon`, `St-Lawrence`. ``` geoCity = Austin/US ✓ city/country geoCity = Austin TX US ✗ no separators geoCity = Austin-TX-US ✗ hyphen is part of names, not a separator geoCity = Austin,TX,US ✗ comma is part of names, not a separator ``` If you set a tag through the UI or API and the value contains spaces, runZero stores those spaces as underscores. The parser treats `_` and a space the same inside a field, so `geoCity = San Francisco/CA/US` and `geoCity = San_Francisco/CA/US` parse identically. ### Country values Any of these forms work for the country field: | Form | Examples | |---------------------|---------------------------------------------------| | ISO 3166-1 alpha-2 | `US`, `DE`, `GB`, `JP` | | ISO 3166-1 alpha-3 | `USA`, `DEU`, `GBR`, `JPN` | | English name | `United States`, `Germany`, `Japan` | | Common alias | `UK` and `Britain` (both normalize to `GB`) | Country values are case-insensitive. When runZero recognizes an alias, it normalizes it to the ISO alpha-2 code shown on the map. ### Region values Region values are state, province, or admin region names. runZero recognizes both short codes and full names for the countries below; for other countries, runZero accepts the [GeoNames admin1 code](https://www.geonames.org/) directly (often a numeric value like `02` or `16`). | Country | Examples of accepted region values | |-----------------|---------------------------------------------------------------| | United States | `TX`, `Texas`, `CA`, `California` | | Canada | `ON`, `Ontario`, `BC`, `British Columbia`, `Québec` | | Australia | `NSW`, `New South Wales`, `VIC`, `Victoria` | | United Kingdom | `England`, `Scotland`, `Wales`, `Northern Ireland` | | Ireland | `Connacht`, `Leinster`, `Munster`, `Ulster` | | New Zealand | `Auckland`, `Canterbury`, `Wellington` | If runZero does not recognize the region, the asset still resolves at the country level. The region tag adds information but never blocks resolution. ### City matching and GeoNames runZero matches cities and regions against the bundled ((GeoNames)) data. The matcher is fuzzy: `St. Louis`, `St Louis`, `St-Louis`, `Saint Louis`, and `saint_louis` all resolve to the same record. The map and exports show the canonical GeoNames spelling, so your tag values do not need perfect formatting to look right. When a city name is ambiguous (`Springfield`, `Cambridge`, `Portland`), use the three-field form to disambiguate: ``` geoCity = Springfield/IL/US ✓ disambiguated geoCity = Springfield/MO/US ✓ different city geoCity = Springfield/US ⚠ resolves to whichever Springfield is largest ``` ### Examples {#geo-keyword-examples} Pinning a corporate office: ``` geoCity = Austin/TX/US ``` A device with exact coordinates: ``` geoLatLng = 30.2672/-97.7431 ``` A subnet known to be in Germany, city unknown: ``` geoCountry = DE ``` A device in a known region, city unknown: ``` geoRegionCountry = Bayern/DE ``` ### What happens if the value is wrong? Each tag has a fixed shape and a strict matcher. When the value does not fit the shape, or names a place that runZero's bundled GeoNames data does not recognize, the tag produces no manual location and no manual pin appears on the map for that asset. This is intentional. To debug: 1. Confirm the field separator is `/`, not `-`, `.`, or `,`. 2. Confirm the country value resolves (try the ISO alpha-2 code). 3. For `geoCity`, try the three-field form to disambiguate the city. 4. As a last resort, use `geoLatLng` with explicit coordinates. ## Searching by location in the asset inventory The asset inventory supports a `geo` keyword (with synonyms `geo_within` and `geo_radius`) that matches assets whose geolocation falls inside a circular area: ``` geo:,[,] ``` * `` and `` are decimal degrees (`30.2672,-97.7431`). * `` is optional and defaults to 50 km. Supply a number followed by `km`, `mi`, or `m` (for example `25km`, `15mi`, `5000m`). runZero treats plain numbers as kilometres. * runZero clamps the radius between 1 metre and 1,000 km. Examples: ``` geo:30.2672,-97.7431 # within 50 km of downtown Austin geo:30.2672,-97.7431,25km # within 25 km geo:52.5200,13.4050,100mi # within 100 miles of Berlin geo_within:51.5074,-0.1278,5km # synonym ``` The match is true if any location source on the asset falls inside the circle, so a workload with both a cloud region centroid and a public IP egress in the same metro area matches the same `geo:` query. The same `geo:` keyword is available on the [services inventory](search-query-services.md). ## When locations are refreshed runZero recalculates asset locations on every analysis pass. The new locations from each source replace the ones recorded before, so stale data (for example, a `cloud-region` attribute that an integration stopped reporting) disappears automatically on the next pass. If you change a `geo*` tag value, the new location appears on the next analysis pass and not before. --- docs/managing-ownership.md --- title: Managing ownership aliases: ["managing-asset-ownership"] --- runZero helps you track ((ownership)): you configure different types of owners and assign them to runZero assets and vulnerability records. You can also track ownership coverage as a [goal](docs/goal-tracking.md). ## Ownership types Superusers manage the available ownership types on the [**Account** > **Ownership types**](https://console.runzero.com/account/ownership-types) page and can configure custom types there. Common examples include **Security owner**, **IT owner**, and **Compliance owner**. Each ownership type has three fields: * **Name**: the name of the ownership type. * **Reference**: whether the ownership type should be correlated with the user inventory, group inventory, or neither. * **Visibility**: whether the ownership type is visible through the asset inventory and asset details pages. When the default `Asset Owner` ownership type is visible, runZero populates it automatically with ownership data gleaned from your configured integrations. A superuser can rename this type. Drag the ownership types into your preferred order to prioritize them. The inventory and asset details pages display the types in that order, and only types marked `visible` appear. ### Issue ownership {#asset-issue-ownership} Issues use a separate, built-in `Issue owner` ownership type. Each issue can have one owner, and you cannot assign custom ownership types to issues. [Issue ownership](docs/issues.md#issue-ownership) and [Jira synchronization](docs/jira.md#issue-owner-synchronization) cover assigning an issue owner and syncing it with Jira. ## Default asset owner Integrations populate the default asset ownership type. The table below is the prioritized mapping of which attribute from each integration sets that value. If an asset has more than one of these attributes, the first match in the table wins. | Integration Source | Device/Object Type | Attribute Name | Reference Type | | :--- | :--- | :--- | :--- | | **Google Workspace** | Mobile | `owner` | User | | **LDAP** | Computer | `managedBy` | User | | **LDAP** | Computer | `manager` | User | | **Google Workspace** | ChromeOS | `orgUnitPath` | Group | | **Defender 365** | Device | `rbacGroupName` | Group | | **SentinelOne** | Device | `groupName` | Group | | **Google Workspace** | ChromeOS | `recentUsers.names` | User | | **Google Workspace** | Mobile | `email.names` | User | | **Google Workspace** | Endpoint | `email.names` | User | | **Miradore** | Device | `user.name` | User | | **Intune** | Device | `userDisplayName` | User | | **CrowdStrike** | Falcon Device | `email` | User | | **Google Workspace** | ChromeOS | `annotatedUser` | User | | **Google Workspace** | ChromeOS | `recentUsers` | User | | **Google Workspace** | Mobile | `email` | User | | **Google Workspace** | Endpoint | `email` | User | | **Miradore** | Device | `user.email` | User | | **Intune** | Device | `emailAddress` | User | | **Intune** | Device | `userPrincipalName` | User | | **SentinelOne** | Device | `lastLoggedInUserName`| User | ## Assigning owners to assets and vulnerabilities Once you have created custom ownership types, you can assign owners through the inventory or with an alert rule. Superusers, administrators, and users can add, modify, and remove owners on assets and vulnerability records. Annotators can add owner values but cannot modify or remove them. ### Ownership in the inventory To assign owners through the asset or vulnerability inventory: 1. Select the assets or vulnerability records you want to update, applying a query filter if needed. 2. Click _Manage asset ownership_ or _Manage vulnerability ownership_ to open the ownership popup. Unowned vulnerability records on an asset inherit the ownership values applied to that asset. Vulnerability records that already have owners do not inherit the asset's ownership value. 3. Click _Add ownership type_ and choose the type or types of owner to apply to the selected assets or vulnerability records. 4. Add the owner value to the field. 5. Click _Save_ to apply your changes. ### Applying owners with rules To apply ownership values automatically after each scan, [create an alert rule](https://console.runzero.com/alerts/rules/create): go to **Alerts > Rules** and click _Create rule_. 1. Select the inventory query to use, such as the `asset-query-results` rule type, then click _Configure rule_. 2. Configure any settings you want. 3. Set the **Action** to _Modify asset_. 4. Enter a value in the _Set [ownership type]_ field for each ownership type you want to apply. Unowned vulnerability records on an asset inherit the ownership values applied to that asset. Vulnerability records that already have owners do not inherit the asset's ownership value. 5. Save the rule. When a scan completes, the rule adds the specified owner type and value to every asset that matches it. --- docs/managing-tasks.md --- title: "Managing tasks" --- The [((Tasks overview page))](https://console.runzero.com/tasks) is where you view and manage discovery ((scans)) and other background actions. The _Active_ and _Completed_ task sections show standard ((tasks)), such as scans and imports, with their current progress and summarized results. You can [search or filter](docs/search-query-tasks.md) tasks by different attributes. ## Task status values Tasks can have the following status values: * **New**: The task is created and waiting for a scanner or connector to pick it up. * **Active**: A scan task is in progress and the Explorer is scanning the network. * **Scanned**: The network scan part of a scan task has completed. * **Connecting**: A connector task is connecting to the remote system and downloading data. * **Connected**: A connector task has finished downloading and the data is waiting to be processed. * **Processing, queued**: runZero has collected the data from a scan or connector task and queued it for processing. * **Processing**: Task data is being processed. * **Processed**: runZero has processed the task data and updated its records. * **Stopping**: The task was asked to stop and has not yet stopped. * **Stopped**: The task stopped successfully. * **Canceled**: An error occurred and the task could not continue. * **Paused**: A repeating task is paused. ## Tabs The tabs on the Tasks overview page filter the task list, and each tab has a search bar, so you can [search your complete task history](search-query-tasks.md). * **Active** shows all tasks currently scanning or connecting * **Processing** shows all tasks currently processing * **Scheduled** shows all non-recurring tasks that are scheduled to run * **Failed** includes all tasks that could not finish because of an error or cancellation * **Completed** lists all completed tasks in chronological order by when they finished processing * **Recurring** shows all recurring tasks ## Task details {#managing-tasks-details} Click a task to open a details card at the top of the page. The concentric circles show the task's progress: the outer circle tracks the scan or connection and the inner circle tracks processing. The card also includes relevant timestamps and user creation data, plus the site, Explorer, and hosted zone settings. Completed tasks add a change summary, and recurring tasks add a list of past runs. ## Scheduled tasks Scheduled tasks are one-off actions that start at a future time, and recurring tasks repeat on a schedule. ((Recurring scan)) tasks generate a new standard task on each iteration of their schedule. Both scheduled and recurring scans launch only if their Explorer is online and no other scan tasks are running. From the Tasks page you can remove _Scheduled_ and _Recurring_ tasks and stop _Active_ tasks. Stopping an active _Scan_ task may take a few moments, because the status does not update until the Explorer confirms that the scan was terminated. ## System tasks runZero also runs system tasks that you may notice while searching your tasks. Some examples: * **Report-based**: a few reports create tasks when they start, including: * Organization overview report * Site and organization comparison * External assets report * **Outlier calculation**: generates the outlier score shown on the asset details page and appears with the name `Outlier calculation` * **Query**: every query pinned to the Dashboard as an Insight appears with the name Query ## Dismissing failed tasks A failed task is one that could not finish because of an error or cancellation. To remove it from the runZero Console, open the task details, click the "Dismiss" button, and confirm. Dismissing a failed task archives it, so it is no longer accessible. ## Reprocessing tasks The Reprocess Tasks tool on the tasks overview deletes the existing assets in the current organization and repopulates asset data from previous scan, import, and integration tasks using runZero's latest algorithms. This can fix duplicated or incorrectly merged assets. To reprocess tasks: 1. On the Tasks Overview page, open the hamburger menu at the top right of the table and select "Reprocess tasks". 1. Review the warnings in the modal that opens. 1. Enter the number of days to reprocess (the default is 7). 1. Enter the confirmation text. 1. Click "Continue". Deleting the organization's assets and queueing the tasks created within the specified number of days takes some time. When queueing finishes, runZero displays the number of tasks to be reprocessed, and you can monitor their progress in the console as normal. Reprocessing deletes all assets in the organization, and with them any tags, risk, criticality, comments, or other manually applied changes. During reprocessing, asset information may be incomplete and alert rules may be triggered. If your organization has a very large number of assets, the request may time out before asset deletion completes; if it does, you can retry the request. The entire process may take several hours. --- docs/goal-tracking.md --- title: Tracking goal progress --- With runZero goals, you create goals for your security initiatives and monitor progress toward achieving them. Every goal type is built on the runZero query language, and ((goal tracking)) supports [all types of inventory queries](search-query-syntax.md). runZero has two types of ((goals)): - A **Saved query** goal is based on the results of a user-defined or runZero system query against all inventory. - A **Baseline** goal is based on the results of a user-defined query against a subset of inventory, which another user-defined query specifies. ## Goal creation Users whose [default role](managing-your-team.md) is user or greater can create goals from the [Goals](https://console.runzero.com/goals/) page in the console. Users with viewer-level or greater access can view the goals page and see the goals that apply to organizations they have access to. To create a new goal, click the _[New goal](https://console.runzero.com/goals/new/)_ button on the _[Goals](https://console.runzero.com/goals/)_ page in the console. ## Creating saved query goals 1. On the _Goal type_ tab, select the **Saved query** type. 2. On the _Build goal_ tab, complete the fields you want: - **Name**: A name for your goal. - **Description**: A description of the goal. - **Notes**: Any notes about this goal. - **Organization access**: By default, the goal is created for the currently selected organization, but you may select additional organizations. Any user with User role access to every organization associated with the goal can edit it, and any user with Viewer role access to at least one of those organizations can read it. - **Query**: Select the query that tracks progress for this goal from the table. If needed, use the search field to find it. - **Threshold**: Choose whether progress is calculated as _Greater than or equal_ or _Less than or equal_, and as a percent or a fixed number, then set the threshold value. - **Target date**: An optional target date for achieving this goal. 3. To preview the goal's current state, click _Preview_. 4. Click _Save_ when you're ready, or keep making changes. ## Creating baseline goals 1. On the _Goal type_ tab, select the **Baseline** type. 2. On the _Build goal_ tab, complete the fields you want: - **Name**: A name for your goal. - **Description**: A description of the goal. - **Notes**: Any notes about this goal. - **Organization access**: By default, the goal is created for the currently selected organization, but you may select additional organizations. Any user with User role access to every organization associated with the goal can edit it, and any user with Viewer role access to at least one of those organizations can read it. - **Inventory dataset**: The inventory type that the target and baseline queries search. - **Target query**: The query that defines what the goal targets. Its count becomes the numerator of the fraction that represents the goal's state, which runZero compares to the threshold to determine progress. - **Target label**: A label for the target query in the goal breakdown. Without one, runZero uses a default. - **Baseline query**: The query that defines the goal's scope. Its count becomes the denominator of the fraction that represents the goal's state, which runZero compares to the threshold to determine progress. - **Baseline label**: A label for the baseline query in the goal breakdown. Without one, runZero uses a default. - **Threshold**: Choose whether progress is calculated as _Greater than or equal_ or _Less than or equal_, and as a percent or a fixed number, then set the threshold value. - **Target date**: An optional target date for achieving this goal. 3. To preview the goal's current state, click _Preview_. 4. Click _Save_ when you're ready, or keep making changes. ## Goal progress calculation After you create a goal, runZero calculates its progress once a day and whenever tasks complete. The historical line chart may therefore show a different number of metric calculations from day to day, depending on how many tasks completed on a given day. The _overall status_ in the _Goal details_ card on a goal details page reflects progress toward completion across all the configured organizations you have access to, so a user with more or less per-organization access may see a different status. When a goal applies to multiple organizations, runZero calculates progress per organization and extrapolates it across all applicable organizations. ## Goal events and notifications The events system includes these goal events: - `goal-created`: fires when a goal is created and saved. - `goal-updated`: fires when a goal is modified and saved. - `goal-completed`: fires when a goal's progress crosses the completion threshold. - `goal-lapsed`: fires when the progress of a previously completed goal falls below the completion threshold. - `goal-removed`: fires when a goal is deleted. Pair these events with [channels](managing-alerts.md) and [rules](rules-engine.md) to get notified when a goal's status changes. After you create a [notification channel](https://console.runzero.com/alerts/channels/), [create a rule](https://console.runzero.com/alerts/rules/) for the event you want and select the channel that should receive the notification. --- docs/understanding-suppression.md --- title: Understanding suppression aliases: ["/docs/understanding-suppression/"] --- You can hide findings, vulnerabilities, and vulnerability groups from the platform by ((suppressing)) them. Suppression can be useful for filtering out false positives or hiding vulnerabilities that don't apply to your environment. runZero keeps suppressed objects rather than deleting them, along with metadata about when, why, and by whom they were suppressed. ## How suppression works {#understanding-suppression} ((Suppression)) behaves differently for each type of object. A suppressed vulnerability instance disappears from the vulnerabilities by asset inventory. A suppressed finding disappears from the findings list, and runZero also suppresses every vulnerability associated with it. A suppressed vulnerability group disappears from the vulnerability groups inventory, and runZero also suppresses every vulnerability associated with the group. Once suppressed, a vulnerability, finding, or vulnerability group no longer counts toward an associated asset's risk score or toward dashboard metrics. When future scans find new vulnerability instances associated with a suppressed vulnerability group or finding, runZero suppresses those new vulnerabilities automatically. If you suppress every vulnerability instance associated with a finding or vulnerability group without suppressing the finding or group itself, it stays visible in the platform with a count of zero associated vulnerabilities until future scans detect new instances. ## Suppressing and unsuppressing objects {#suppressing-unsuppressing} You can suppress or unsuppress vulnerabilities, findings, and vulnerability groups from several places in the runZero platform. To suppress an individual finding or vulnerability, use the "Suppress" button in the header of its detail page. For bulk actions, use a data grid view such as the vulnerability inventory by asset, the vulnerability groups inventory, or the findings list. When you ((suppress)) an object, a modal asks for a reason and an optional comment. Select the reason that fits best from the dropdown menu, or select "Other" and give your own reason in the comment box. Click "Suppress" to confirm. On success, the modal closes and the object is marked as suppressed. A suppressed finding or vulnerability shows a banner at the top of its detail page. To unsuppress it, click "Remove suppression" and confirm. In a data grid view, select rows with their checkboxes, click "Modify", and choose "Suppress" or "Remove suppression" from the dropdown menu to act on many objects at once. Each row also has action buttons for suppressing or unsuppressing that row alone. ## Searching for suppressed objects {#suppression-search} In the vulnerability inventory by asset, the vulnerability groups inventory, or the findings list, the boolean search term `suppressed` filters for suppressed or unsuppressed items. For example, `suppressed:true` finds all suppressed items, and `suppressed:any` shows suppressed and unsuppressed items together. Each data grid view also has a "Suppression" quick filter button whose menu switches the view between all items regardless of suppression state, only suppressed items, and only unsuppressed items. ## Dashboard widget {#dashboard-widget} The "Suppression overview" dashboard widget shows a count of suppressed findings, vulnerabilities, and vulnerability groups at a glance. Add it to any custom dashboard from the [widget library](dashboard.md#widget-library) modal. ## Suppression events {#suppression-events} Suppression actions trigger runZero system events, which can drive rules in the [rules engine](rules-engine.md). The suppression events are: - `vulnerabilities-suppressed`: fires when a vulnerability is suppressed. - `vulnerabilities-unsuppressed`: fires when a vulnerability's suppression is removed. - `findings-suppressed`: fires when a finding is suppressed. - `findings-unsuppressed`: fires when a finding's suppression is removed. - `vulnerability-groups-suppressed`: fires when a vulnerability group is suppressed. - `vulnerability-groups-unsuppressed`: fires when a vulnerability group's suppression is removed. --- docs/understanding-network-segmentation.md --- title: "Understanding network segmentation" --- ## runZero multi-homed asset detection ((Network segmentation|network segmentation)) is a critical security control for many businesses, and verifying that ((segmentation)) works can be hard, especially across large and complex environments. Common checks, such as reviewing firewall rules and spot testing from individual systems, only go so far, and thorough testing, such as running full network scans from every segment to every segment, can be time intensive and is difficult to justify on a regular basis. For businesses subject to the ((PCI DSS)) requirements, validating cardholder data environment (((CDE))) segmentation is part of the security audit process. The [PCI guidance on scoping and segmentation](https://www.pcisecuritystandards.org/documents/Guidance-PCI-DSS-Scoping-and-Segmentation_v1.pdf) describes a common CDE administration model. runZero's network bridge detection is opportunistic and far from perfect, but it may point to places where segmentation is broken and cut down on surprises in your next security audit. ## Using the bridge report The ((bridge report)) shows external networks in red and internal networks in green. Instead of a typical network map, the view shows possible paths through the network by way of multi-homed assets. To keep the graph readable, it omits assets where runZero detected only a single IP address. Zoom in to see asset and subnet details. Click a bridged node once to highlight the networks it connects to, and a second time to open the asset page. Click a network once to highlight its connections to bridged nodes, and a second time to run a CIDR-based inventory search. Bridge detection helps you validate network segmentation and confirm that an attacker can't reach a sensitive network from an untrusted network or asset. Examples include laptops plugged into the internal corporate network while also connected to a guest wireless segment, and systems on an untrusted network, such as a coffee shop's wireless network, that also have an active VPN connection to the corporate network. runZero detects network bridges by looking for extra IP addresses in responses to common network probes (NetBIOS, SNMP, MDNS, UPnP, and others), and it reports bridges only when at least one asset has multiple IP addresses. Typical hardening steps, such as desktop firewalls and disabled network services, usually keep runZero from detecting multi-homed assets. ## Using the asset route pathing report Network misconfigurations and multi-homed machines can undermine network segmentation. On the runZero Platform, the ((asset route pathing)) report lets you visualize potential network paths between any two assets in an organization. The report graphs multiple potential paths by combining IPv4 and IPv6 traceroute data with subnet analysis of detected multi-homed assets. It needs no access to the hosts or network equipment. This method finds unexpected paths between assets that existing security controls or reviews may overlook. With a view of potential paths, you can verify whether a low-trust asset, such as a machine on a wireless guest network, can reach a high-value target, such as a database server within a cardholder data environment (CDE). The report exposes potential network segmentation violations and openings for an attacker to move laterally from one segment to another. For an interactive Layer-2 and Layer-3 topology of every asset in the current scope, open the [Network Map](docs/network-map.md). --- docs/protocol-gateways.md --- title: "Protocol gateways" date: 2026-05-10 --- A ((protocol gateway)) is a device that bridges an IP network to a separate, sometimes non-IP fieldbus, backplane, or serial bus. Examples include a Modbus/TCP-to-Modbus-RTU gateway, an EtherNet/IP CIP rack with backplane modules, a BACnet/IP router fronting an MS/TP segment, and a HART-IP multiplexer in front of a loop of HART field instruments. From the IP side, only the gateway is reachable. The PLCs, RTUs, IEDs, meters, sensors, and CNC modules behind it are invisible to a typical port scanner. runZero unmasks those downstream devices. When a scan identifies a supported gateway, the scanner sends protocol-native, read-only enumeration queries to the gateway and reports each downstream device as its own ((sub-asset)) in the inventory. Sub-assets link back to the gateway, so you can see, search, and report on the full field-level topology with no credentials, agents, or active control commands. ## How it works {#how-it-works} 1. The standard service probe identifies a supported industrial protocol on the gateway's IP address and port (for example, Modbus/TCP on TCP/502, CIP on TCP/44818, BACnet/IP on UDP/47808, HART-IP on TCP/5094). 2. The probe sends protocol-specific identification requests to each address space the gateway exposes: Modbus unit IDs, CIP backplane slots, BACnet device instances and routed networks, KNX individual addresses, HART sub-device indices, S7 racks/slots, and so on. All requests are read-only. 3. runZero reports each enumerated device as a sub-asset with a stable foreign ID of the form `//
`, plus whatever identity the protocol exposes: vendor, model, firmware, serial, name, location. 4. Each sub-asset carries `parent.id`, `parent.addresses`, and protocol-specific parent attributes that point back to the gateway asset. The console uses these to show downstream devices on the gateway's detail page and to draw edges from the gateway to each sub-asset on the [Network Map](network-map.md). 5. Because the gateway is the only path to its sub-assets, the [Network Map](network-map.md#choke-points) treats it as a protocol-gateway pivot and ranks it at the top of the choke-point panel. Sub-assets are full assets in the inventory: they appear in search, in queries, in exports, and in dashboards. runZero matches and merges them with assets discovered through other sources (for example, a PLC enumerated through CIP and also seen directly via SNMP), so the same physical device appears once. ## Supported protocols {#supported-protocols} The protocols below produce sub-assets when enumeration is enabled. The `gateway_kind` column gives the value to use with the `gateway_kind:` and `child_kind:` search keywords in both the asset inventory and the [Network Map](network-map.md). | Protocol | Default ports | `gateway_kind` | What runZero enumerates | |--------------------------------|----------------------|----------------|----------------------------------------------------------------------------------------------------------| | BACnet/IP | UDP 47808 (+ range) | `bacnet` | Device instances and routed networks reachable through the BACnet router, including BBMD / FDT entries. | | EtherNet/IP CIP | TCP/UDP 44818 | `cip` | Modules in the controller backplane (CPU, scanner, communications, I/O, drives) via List Identity. | | Modbus/TCP | TCP 502 | `modbus` | Connected unit IDs reachable through the gateway, with vendor / product / firmware where exposed. | | KNXnet/IP | UDP 3671 | `knxnet` | KNX devices behind the IP interface, keyed by KNX individual address. | | Siemens S7Comm | TCP 102 | `s7comm` | Backplane rack/slot modules (CPU, CP, IM, signal modules) for S7-300/400/1200/1500. | | DNP3 | TCP 20000 | `dnp3` | Outstation addresses behind a DNP3 master / data concentrator. | | PROFINET | UDP 34962-34964 | `profinet` | Slot/subslot module list reported by PROFINET I/O devices. | | EtherCAT | UDP 34980 | `ethercat` | Slaves discovered on the EtherCAT segment behind the master. | | Omron FINS | UDP 9600 | `omronfins` | CPU modules and connected units reachable through the FINS gateway. | | Mitsubishi MELSEC-Q | TCP 5006-5007 | `melsecq` | CPU modules on the MELSEC backplane, including CPU model and type code. | | HART-IP | TCP 5094 | `hartip` | HART field instruments behind the multiplexer (Cmd 84 walk of sub-device indices). | | IEC 60870-5-104 | TCP 2404 | `iec104` | Outstations addressed through the IEC-104 master gateway. | | IEC 61850 MMS | TCP 102 | `mms` | Logical devices and IEDs reported through the substation MMS gateway. | | Beckhoff ADS | TCP 48898 | `ads` | ADS sub-devices behind the Beckhoff TwinCAT runtime. | | IEEE C37.118 Synchrophasor | TCP 4712 | `c37118` | PMUs reported by the Phasor Data Concentrator. | When probed, other industrial protocols return downstream-device summaries as gateway attributes, but runZero currently does not promote those entries to standalone sub-assets. These include Emerson BSAP/IP, ANSI C12.22, Allen-Bradley CSPv4 / PCCC, Diagnostics over IP (DoIP), Fanuc FOCAS, SEMI HSMS / SECS-GEM, M-Bus over TCP, and OPC UA. See [Supported protocols](troubleshooting-protocols-supported.md) for the full list of probes and what each one returns. ## Enabling enumeration {#enabling-enumeration} Sub-asset enumeration runs as part of the standard scan when the relevant protocol is enabled and the matching probe is selected in the scan configuration. Most OT probes are off by default to keep scans of IT-only networks lean. See the [Scanning OT networks](https://help.runzero.com/docs/playbooks/scanning-ot-networks/) playbook for the recommended enable-list and probe options. When you enable a gateway protocol, the scanner runs both the standard fingerprint probe and the downstream enumeration step. There's no separate "enumerate sub-assets" toggle; enabling the protocol turns on both. ## Finding gateways and sub-assets {#finding-gateways-and-sub-assets} Use the asset inventory search to pivot between gateways and the devices behind them. The topology keywords below come straight from the `edges` table runZero builds during enumeration, so the same queries work in **Inventory > Assets**, in any report that has an asset search box, and in the [Network Map](network-map.md) search bar. | Goal | Query | |-------------------------------------------------------------------|--------------------------------------------------| | All protocol gateways | `is:gateway` | | Layer-2 switches | `is:switch` | | Modbus/TCP gateways | `gateway_kind:modbus` | | EtherNet/IP CIP gateways | `gateway_kind:cip` | | BACnet/IP routers | `gateway_kind:bacnet` | | Siemens S7Comm racks | `gateway_kind:s7comm` | | All sub-assets discovered behind any protocol gateway | `is:child` | | Sub-assets behind a specific gateway protocol | `child_kind:modbus` (or `bacnet`, `cip`, `s7comm`, `dnp3`, `profinet`, `ethercat`, `omronfins`, `melsecq`, `hartip`, `c37118`, `knxnet`) | | Gateways fronting more than 10 downstream devices | `is:gateway AND downlink_count:>10` | | Public-facing protocol gateways | `is:gateway AND has_public:t` | | OT assets within 2 hops of a public-facing asset | `category:OT AND hops_from_public:<=2` | | Devices in the **OT** category | `category:OT` | The topology keywords accept the OT protocol names from the `gateway_kind` column in the [Supported protocols](#supported-protocols) table. They aren't limited to OT: `is:switch` and the existing `has:uplink` / `has:downlink` / `has:switch` keywords cover layer-2 switch relationships. Each sub-asset's detail page shows the parent gateway under **Source data > Parent**, and the gateway's detail page lists every sub-asset enumerated through it. ## Where sub-assets show up {#where-sub-assets-show-up} * Sub-assets are regular assets in the inventory. They appear in **Inventory > Assets**, in saved queries, and in CSV exports. * A sub-asset's detail page links back to its parent gateway, and the gateway's page lists all sub-assets discovered through it. * On the [Network Map](network-map.md), gateways render as protocol-gateway nodes with edges out to each sub-asset on their backplane. The **Proto Gateways** category in the Asset Index counts BACnet, EtherNet/IP, Modbus, KNXnet/IP, C37.118, and the other supported gateway kinds. * The Network Map always promotes protocol gateways into its [Choke Points](network-map.md#choke-points) panel, with a +1000 Pivot Risk Score boost and a count of the assets they front. If the gateway is also EOL or carries known vulnerabilities, runZero applies an additional +200 boost. * runZero places sub-assets in the **OT** [Category](understanding-assets.md#understanding-category) and assigns them OT [Functions](understanding-assets.md#understanding-functions) (typically `Process Control`, with `Safety`, `Monitoring`, `Communications`, or `Human Interface` added when the protocol exposes enough detail). ## Safety {#safety} All gateway enumeration uses read-only protocol requests: identification reads, list-identity, who-is, sub-device indexing. The scanner never sends control or write commands, never issues operator overrides, and never attempts to authenticate. The standard scan rate and per-protocol pacing throttle the probes. The runZero scan engine has been independently tested against a range of OT and industrial environments, including the U.S. Department of Energy's National Renewable Energy Laboratory (NREL) CECA evaluation, which validated that active scanning is safe for operational technology. See the [Scanning OT networks](https://help.runzero.com/docs/playbooks/scanning-ot-networks/) playbook for additional safety guidance, recommended pacing, and per-protocol options. ## See also {#protocol-gateways-see-also} * [Network Map](network-map.md): visualize gateways, sub-assets, and the choke points they create. * [Scanning OT networks](https://help.runzero.com/docs/playbooks/scanning-ot-networks/): how to enable OT probes and tune them for production environments. * [Supported protocols](troubleshooting-protocols-supported.md): the full list of protocols runZero probes, including which ones return backplane / sub-device summaries. * [Understanding assets](understanding-assets.md): categories, functions, and how runZero classifies devices. --- docs/fingerprinting.md --- title: Understanding fingerprints aliases: ["/docs/fingerprints/"] --- runZero automatically builds **fingerprints** for every asset it discovers. A fingerprint describes how runZero identified a device, service, or operating system from the evidence it collected, and its attributes show *what was matched* and *where it came from*. runZero relies on fingerprints to normalize your inventory, so it can correlate and deduplicate assets accurately across discovery sources. ## How fingerprints work {#understanding-fingerprints} During discovery, runZero gathers clues such as TCP banners, mDNS names, SMB negotiation data, and TLS certificates, then classifies each clue into one or more fingerprint categories. Fingerprints are stored in the asset record under keys that follow this pattern: ``` fp.. ``` For example: * `fp.os.source` identifies which source provided the operating system fingerprint * `fp.os.match` shows the string or probe result matched to identify the OS * `fp.hw.vendor` lists the hardware vendor name These values are visible in exports, the API, and internal datasets. ## Refingerprinting and submitting improvements {#fingerprint-improvements} If a fingerprint looks incorrect or incomplete, you can: * **Refingerprint the asset** to re-run fingerprinting for that asset with the latest detection logic. This can update the OS, hardware, type, category, and function fields. * **Refingerprint in bulk** by selecting one or more assets in the **Asset Inventory** and choosing **Modify > Refingerprint assets**, which re-runs fingerprinting against every selected asset with the latest detection logic. * **Submit a fingerprint improvement** to give feedback that helps improve fingerprinting accuracy. When submitting an improvement, you can specify: * **Type** (e.g., *Server*, *Router*) * **Operating System** (e.g., *Windows 10*, *Ubuntu 22.04*) * **Hardware** (e.g., *VMware VM*, *Synology NAS*) * Optional **comments** for additional context. These improvements help refine fingerprinting logic in future releases and improve identification of similar devices. ## Fingerprint categories {#fingerprint-categories} Each fingerprint category covers one area of asset identification. Common categories include: | Category | Description | Example sources | |-----------|--------------------------------------------------|--------------------------------| | `os` | Vendor, operating system, and version detected | TCP banners, SMB, mDNS | | `hw` | Hardware and vendor identification | SNMP, MAC lookup, integrations | | `type` | Asset type classification | runZero service probe | ## Common fingerprint attributes {#fingerprint-attributes} This table lists the fingerprint attributes seen in exports and the API. | **Attribute** | **Meaning** | **Sample Values** | | -------------------- | --------------------------------------------- | -------------------------------------------------------- | | `fp.build` | Internal fingerprinting engine build version | `v4.0.251103.0-2fd02762da549a3e87ffb5b0649e1621011872dd` | | `fp.hw.certainty` | Confidence level of hardware fingerprint | `0.8`, `1.0` | | `fp.hw.cpe23` | CPE 2.3 identifier for the hardware | `cpe:2.3:h:dell:optiplex_7080:-:*:*:*:*:*:*:*` | | `fp.hw.device` | Detected hardware device type | `Laptop`, `Server`, `Switch` | | `fp.hw.match` | Raw hardware identification string | `Dell Inc. OptiPlex 7080`, `HP ProLiant DL360` | | `fp.hw.product` | Hardware product name | `OptiPlex 7080`, `ProLiant DL360`, `MacBookPro18,3` | | `fp.hw.serialNumber` | Serial number extracted from hardware probe | `ABC123XYZ`, `VMware-564d4a4a` | | `fp.hw.source` | Source that provided the hardware fingerprint | `SNMP`, `Intune`, `CrowdStrike`, `runZero` | | `fp.hw.vendor` | Vendor identified from hardware data | `Dell`, `HP`, `Apple`, `Lenovo` | | `fp.hw.version` | Hardware or firmware version string | `1.0.3`, `rev A00` | | `fp.os.build` | OS build number parsed from source data | `22621`, `19045`, `22D68` | | `fp.os.certainty` | Confidence level of OS fingerprint | `0.95`, `1.0` | | `fp.os.cpe23` | CPE 2.3 identifier for the operating system | `cpe:2.3:o:microsoft:windows_10:19045:*:*:*:*:*:*:*` | | `fp.os.device` | Detected OS device type | `Desktop`, `Server`, `Mobile` | | `fp.os.edition` | OS edition or variant | `Pro`, `Enterprise`, `Home` | | `fp.os.match` | String matched to infer the OS | `Windows 10.0`, `Ubuntu 22.04`, `macOS 14.1` | | `fp.os.product` | OS product name | `Windows 10`, `Ubuntu`, `macOS` | | `fp.os.source` | Source that provided OS identification | `runZero`, `MDNS`, `Intune`, `AzureAD` | | `fp.os.vendor` | Vendor identified from OS data | `Microsoft`, `Canonical`, `Apple` | | `fp.os.version` | OS version parsed from matched data | `10.0.19045`, `22.04`, `14.1` | | `fp.type.source` | Source that provided type classification | `runZero`, `Integration`, `Hostname`, `AzureAD` | ## Using fingerprints in queries {#fingerprint-queries} During asset processing, runZero normalizes these `fp.x.y` values into the `os`, `os_version`, `hw`, and `type` attributes. Some sample searches using the normalized attributes: * Windows `os` assets ``` os:windows ``` * Ubuntu assets running `os_version` less than 20.04 ``` os_version:<20.04 os:ubuntu ``` * Assets with Dell `hardware` ``` hw:dell ``` * Assets with the `type` server ``` type:server ``` ## Troubleshooting fingerprints {#fingerprint-troubleshooting} To track down why a fingerprint is wrong or incomplete: 1. Check which `fp.*.source` values contributed to the identification. Multiple integrations or probes may overlap. 2. Review recent discovery runs to confirm whether an updated probe result is available. 3. Consider enriching the asset with integration data sources (e.g., Intune, CrowdStrike) to improve fingerprint accuracy. If you run a self-hosted instance or the standalone scanner, you can also write your own [custom fingerprints](docs/using-custom-fingerprints.md). --- docs/managing-alerts.md --- title: "Managing alerts" --- runZero can trigger automatic ((alerts)) for specific events through a combination of ((Channels)) and ((Rules)). runZero supports Internal, ((Email)), ((Email runZero Users)), and ((Webhook)) channel types. Internal channels store events in the runZero Console's [Alerts](https://console.runzero.com/alerts) list. Internal alerts support explicit acknowledgement, and you can acknowledge and clear them in bulk from the Console. Email channels deliver mail to one or more recipients. Each message contains a summary of the alert and a link to the specifics in the runZero Console. runZero sends these messages from its own infrastructure through the ((Sendgrid)) service. Webhook channels tie runZero alerts into third-party platforms by posting to internet-reachable web services. The post request contains a standard text message for platforms like ((Slack)) and ((Mattermost)), plus additional fields with the full alert details. To trigger an alert on a channel, create a [Rule](https://console.runzero.com/alerts/rules/create/). Rules define which events lead to an alert on which channels. The rule's name appears in the alert content, so name it for the type of event it monitors. Some example event types you can build rules on: * Scan completed * New assets found * Assets back online * Assets now offline * Assets changed _Scan completion_ and _assets changed_ rules can be noisy, but they may be useful for keeping a running log of network changes. For typical monitoring, create a rule that triggers on _Assets now offline_, _Assets back online_, and _New assets found_, then alerts an email alias or a Slack channel. Combined with recurring scans, alert rules can be a simple way to track network changes over time. You create these rules in the [rules engine](docs/rules-engine.md), the automation framework for monitoring, alerts, and workflow management. --- docs/rules-engine.md --- title: Using the rules engine aliases: [ "/docs/event-based-rules/" ] --- The ((Rules)) Engine automates monitoring, alerts, and workflow management. Use it to customize ((alerts)) for the ((events)) that matter most to your organization and to automate repetitive tasks. A rule defines the action to take when a set of conditions is met. Rules can alert your team to changes in Explorers, assets, scans, organizations, and sites, and they can tag assets or modify asset fields based on the results of a query. Some ways to put the Rules Engine to work: - Alert your team when new policy violations are identified. - Modify asset fields when assets match specific criteria. - Bulk tag assets that match a specific query. - Get a Slack notification when a query returns new results. - Monitor when an Explorer goes offline in the runZero Console. - Know when organizations, sites, and users change. ## Key concepts Rules can help you stay on top of events as they happen and give you better visibility across your network, assets, and runZero deployment. A rule has four parts: an event, organization access, conditions, and an action. When the event happens and the conditions are met, runZero performs the configured action. ### Events Each rule begins with an event, which triggers it. An event can be based on a query or on a system-defined event. runZero has a library of system-defined events; the [runZero events](events.md) catalog lists them all. Choosing an event shows the conditions and actions available for it. ### Organization access A rule can serve any number of organizations. Any user with User role access to every organization associated with the rule can edit it, and any user with Viewer role access to at least one organization can read it. By default, a rule triggers for the currently selected organization. Organization access on templates and channels only controls who can view and edit them, not which rules can use them. You can set up a rule for an organization with a template or channel whose access does not include that organization, as long as you have at least Viewer role access to one or more organizations in the template or channel's organization access list. ### Conditions A condition narrows the scope of your rule: the action runs only when the condition is met. You see only the conditions that apply to the event you chose. Conditions usually specify sites, organizations, and asset attributes for the event. ### Actions An ((action)) is what the rule does when the event occurs and every condition is met: send a notification to a channel, or modify an asset. Notifications need a channel and a template. Asset modifications can edit fields such as the OS vendor, OS product, OS version, hardware vendor, hardware product, hardware version, asset tags, and asset type. ### Channels {#rules-channels} A ((channel)) is how runZero tells you that an event occurred. You can create as many channels as you need, depending on who you want to reach and how. For example, a Slack channel might serve one team and an email list another. Like rules, channels can serve any number of organizations. Any user with User role access to all associated organizations can manage a channel. Any user with Viewer role access to one or more organizations can view the channel details but can't edit or create channels. The message body uses default text from runZero and currently can't be customized. ## Create a rule To create a rule, choose an event, define the conditions, and choose the resulting action. ### Step 1: Open the Rules Engine - From the Alerts menu, select the Rules submenu. - Click **Create Rule** to open the editor. ### Step 2: Choose an event type and configure organization access - Give the rule a descriptive name that tells you at a glance what it does. - Choose the event you want as your trigger. - Browse the list of predefined events. Use the left-hand categories to narrow the list, or the search field to filter by keyword. - Choose 'asset-query-results' or 'service-query-results' to modify the fields of the resulting assets. - After you've chosen an event and configured organization access, click **Next**. ### Step 3: Define the conditions - The conditions you can configure depend on the event you selected. - If you selected an asset or service query event, [provide a query](search-query-syntax.md) for the rule. The query runs against the site after the scan completes. Assets with data from non-runZero sources must be recent (seen in the last 30 days) to fall within the search, and runZero-scanned assets must be live. - You can also scope the rule to a specific site or Explorer and, for some events, set minimum asset counts or a task type. ### Step 4: Choose an action, and optionally select a specific channel or template - An action sends a notification to the channel of your choice or modifies assets. For example, you can send an email when orphaned devices are found. ### Step 5: Turn on and save the rule - To activate the rule immediately, select the "Enable this rule" checkbox. Otherwise, save the rule and turn it on later. - Save the rule when you're done. ## Choosing event types {#keep-in-mind} Scan and asset event types can be noisy, but they are useful for tracking network changes over time. To focus on the events that matter most, track assets that go offline, assets that come back online, and newly discovered assets. ## Monitoring the status of rules The ((rules submenu)) of the Alerts page lists all rules. For each rule, you can see: - Whether the rule is enabled. - The event that triggers processing of the rule. - The organizations the rule applies to, if it is limited to specific organizations. - When the rule was last triggered. - Whether the rule resulted in a processed action. - When the rule was created and the username that created it. A status of "skipped" means the rule's preconditions weren't met the last time it was processed, so no action was taken. A status of "processed" means its preconditions were met and its action was processed. If processing a rule or sending a notification fails, the rule's action status is set to "error", and the error message appears as a tooltip on that status. To build one of these rules step by step, follow the [Alerting on asset and service changes](https://help.runzero.com/docs/playbooks/alerting-on-queries/) playbook. --- docs/creating-alert-templates.md --- title: Creating alert templates h2Styled: false description: "How to create templates for your alerts" --- With the [Rules Engine](rules-engine.md), you define ((rules)) that alert you on specific events, such as changes to scans, assets, and Explorers. Custom ((templates)) standardize and format the ((alert messages)) those rules send, and let you add more context and data to each alert. A template can output raw HTML, a runZero HTML template, JSON, or text for use in emails, internal notifications, or ((webhooks)). Like rules and channels, a template can serve any number of organizations, and any user with User role access to all of those organizations can manage it. A user with Viewer role access to one or more organizations can view template details only, and can't edit or create templates. ## Template building basics You write alert messages in the [Mustache](https://mustache.github.io/) templating language. With a little [Mustache syntax](http://mustache.github.io/mustache.5.html), you can build custom HTML and JSON templates that pull in runZero data. - For ((Slack)) notifications, build a rich JSON message with Slack's [((Block Kit))](https://api.slack.com/block-kit) and the interactive [Block Kit Builder](https://app.slack.com/block-kit-builder/), then use Mustache to insert the data. - For ((Microsoft Teams)), build rich messages in the [((Adaptive Cards))](https://adaptivecards.io/samples/) format and insert data the same way. A template has two fields, subject and body, and both accept ((Mustache)) syntax. ### Inserting data in a template {#inserting-a-data-in-a-template} runZero passes a standard set of objects to the template engine; you name the fields you want to insert. Use the Mustache syntax `{{variable}}` to include alert values when a rule matches. In HTML and JSON templates, values inserted with `{{ }}` are escaped according to the rules for that format. To insert a value unescaped, use triple curly braces: `{{{task.name}}}`. In JSON templates, the special self variable `{{.}}` at the top level outputs all available variables and their values as JSON. #### Special rules for JSON JSON templates render single values and multiple values differently: - A string or number renders as its raw value. Embedded quotes in a string are escaped, but the string isn't wrapped in quotes, so you can put several strings or numbers into one JSON string in your template. - An object or array renders as its full JSON representation, so you can dump arrays and objects to JSON without looping through values. But if you wrap an array value in quotes to put it inside a JSON string, the result is invalid JSON. Take this template running on an asset with multiple IP addresses: ``` { "addresses_1": {{addresses}}, "addresses_2": "{{#addresses}}{{.}} {{/addresses}}", "addresses_3": "{{addresses}}" } ``` The result: ``` { "addresses_1": ["10.0.1.4","10.1.7.5"], "addresses_2": "10.0.1.4 10.1.7.5 ", "addresses_3": "["10.0.1.4","10.1.7.5"]" } ``` The `addresses_1` substitution works as you'd expect: `{{addresses}}` is an array, so it becomes a proper JSON array of the addresses. The second substitution also works. The template loops through each address in the array and puts the values into a single string. The values aren't quoted, but any quotes inside them are escaped. The third substitution fails: the addresses become a JSON array of strings, and the surrounding quotes make the result invalid JSON. #### Using the runZero HTML template {#utilizing-the-runzero-html-template} The runZero HTML template option wraps your alert template body in an HTML template that runZero provides. It makes consistent rich-content notification emails easier to create, and includes a base set of CSS classes you can apply to your template's contents. | Class name | Description | | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `padding-sm` | Applies a small amount of padding in each direction. | | `padding-md` | Applies a medium amount of padding in each direction. | | `color-yellow` | Applies a yellow text color to the target text | | `preamble` | Creates a "preamble" block intended to go below the header. `p` tags within this block have a slightly larger font size and line height. | | `card` | Creates a block that has a thin border, slightly rounded corners, and a slightly lighter background color than the main background color. | | `section` | Similar to the card block, but with a darker background and a small amount of bottom margin. `section` is intended to be used within `card`. | | `preserve-newlines` | Preserves newline characters in the contained text. `preserve-newlines` is intended to be paired with `section`, but can be used anywhere. | | `button` | Creates a button with styling similar to the standard button seen in the runZero console, with a light blue background, white text color, and slightly rounded corners. When paired with `size-lg`, the button is given a slightly larger font size and a minimum width. | These elements also have specific styles: | Tag name | Description | | -------- | ------------------------------------------------------------------------------------------------------------------------------- | | `h1` | Bold font-weight, white text color, a moderate amount of bottom margin, considerably larger font size, and center-aligned text. | | `h2` | Bold font-weight, white text color, a moderate amount of bottom margin, and a moderately larger font size. | | `h3` | Normal font-weight, white text color, a small amount of bottom margin. | | `p` | 8 pixel bottom margin | | `hr` | Thin light blue top border, with a considerable amount of margin above and below. | | `a` | Light blue text color. | This example for the `site-created` event uses that template type and these classes: ```html

Site created

A new site was created in an organization

{{site.name}} attributes

Created at: {{event.created_at}}

ID: {{site.id}}

Organization: {{organization.name}}

Created by {{event.source_type}}: {{event.source_name}}

View site
``` We try to keep templates of this type backwards compatible, but the available classes and predefined styling may change without warning. #### Inserting a value To insert a value, put the variable name in double ((curly brackets)): `{{variablename}}`. This example inserts the console address: ``` The runZero Console is at {{console}}. ``` #### Inserting a value from an object To insert a value from a specific object, join the object name and field name with a dot: `{{object.fieldname}}`. This example inserts the organization name: ``` The organization name is {{organization.name}}. ``` #### Inserting multiple values from an object To insert several values from one object, use a section. Open it with `{{#objectname}}` and close it with a matching `{{/objectname}}`. This example inserts the results of a scan, including the total assets and the number of assets changed: ``` Here are the results: {{#scan}} Scan found {{assets_total}} assets and changed {{assets_changed}} of them. {{/scan}} ``` #### Fields with multiple values {#what-happens-if-a-field-contains-multiple-values} If a section refers to a field with multiple values, the template engine loops through them and renders the section once for each value. This example loops through every asset in `report.new` and outputs each one's `names` and `addresses` fields. If `report.new` is empty, the section between the tags isn't rendered. ``` {{#report.new}} {{names}} {{addresses}} {{/report.new}} ``` Inside a loop, you can still refer to values from the outer object. If a named value isn't found in the current loop object, the template engine checks the outer object. This can be useful for the `{{console}}` variable, which holds the root runZero console URL. #### Using boolean values Boolean values work with the `{{#field}}{{/field}}` tags. If the field is false, the section between the tags isn't rendered. For example: ``` {{#query.truncated}} (Additional results were found but not included in this report) {{/query.truncated}} ``` ## Objects and fields reference Build your template from these objects and fields to include runZero data and details in your alerts. ### globals | Field | Contents | Example | | --------- | ---------------------------------------- | --------------------------- | | `console` | The base URL of the runZero web console. | https://console.runzero.com | ### event The `event` object has these fields: | Field | Contents | Example | | ------------- | -------------------------------------------- | ------------------------------------ | | `action` | The action which triggered the event | task-completed | | `created_at` | When the event was created | 2021-04-02 12:50:26 -0500 | | `id` | The UUID of the event | b4b871db-bdf1-4a42-b82d-18ae99972228 | | `source_name` | Name of the thing which caused the event | Weekly security scan | | `source_type` | Type of thing which caused the event | task | | `success` | Whether the event succeeded | true | | `target_name` | Name of the object targeted by the event | Head Office | | `target_type` | The type of the object targeted by the event | site | ### task For events triggered by a task, the `task` object has these fields: | Field | Contents | Example | |---------------|--------------------------------------------|--------------------------------------| | `created_at` | When the task was created | 2021-04-02 12:50:26 -0500 | | `created_by` | The user who created the task | user@example.com | | `description` | The description of the task | Weekly scan of main network | | `error` | The text of any error message for the task | explorer unavailable after 4h | | `id` | The UUID of the task | b4b871db-bdf1-4a42-b82d-18ae99972228 | | `name` | The name of the task | Weekly Scan | | `start_time` | When the task started | 2021-04-02 12:50:26 -0500 | | `status` | The status of the task | processed | | `type` | The type of task | scan | | `updated_at` | When the task was last updated | 2021-04-02 12:50:26 -0500 | | `url` | A URL linking to the task details | | ### organization The `organization` object has these fields: | Field | Contents | Example | | ------ | ---------------------------- | ------------------------------------ | | `id` | The UUID of the organization | 86f12ee1-f0f1-419a-8799-63fff555777a | | `name` | The name of the organization | IT Dept. | ### site The `site` object has these fields: | Field | Contents | Example | | ------ | -------------------- | ------------------------------------ | | `id` | The UUID of the site | 49f9323a-fea1-4afc-b490-2414c3aaaeee | | `name` | The name of the site | Head Office | ### rule The `rule` object has these fields: | Field | Contents | Example | | ------------ | -------------------------------- | ------------------------------------ | | `action` | The action the rule said to take | notify | | `created_at` | When the rule was created | 2021-03-08 12:43:59 -0600 | | `created_by` | The user who created the rule | user@example.com | | `event` | The event triggering the rule | scan-completed | | `id` | The UUID of the rule | b2269a2c-69a1-4652-bcdf-899938886c17 | | `name` | The name of the Rule | Alert on scan | | `updated_at` | When the rule was last updated | 2021-04-01 17:09:40 -0500 | ### channel The `channel` object has these fields: | Field | Contents | Example | | ------ | ----------------------- | ------------------------------------ | | `id` | The UUID of the channel | 7c9f0d5a-0f8e-4b3b-8a2e-1d9b5f1c2c3d | | `name` | The name of the channel | Notify auditors | | `type` | The channel type | email | ### scan For events triggered by a scan task, a `scan` object adds these fields: | Field | Contents | Example | | ------------------ | ----------------------------------------------------------------------------------- | ------------------------------------ | | `explorer_id` | The UUID of the runZero Explorer which carried out the scan | 0fd44a62-d827-41c0-b26c-4837222d8888 | | `assets_changed` | The number of assets changed as a result of the scan | 9 | | `assets_ignored` | The number of assets ignored by the scan | 2 | | `assets_new` | The number of new assets detected by the scan | 2 | | `assets_offline` | The number of assets which were previously online but now offline | 1 | | `assets_online` | The number of assets previously offline but now online again | 2 | | `assets_total` | The total number of assets for the site scanned (including offline) | 11 | | `assets_unchanged` | The number of assets unchanged by the scan | 1 | | `assets_updated` | The total number of assets up-to-date as a result of the scan (changed + unchanged) | 15 | | `duration` | Duration of the scan in seconds | 26 | | `end_time` | When the scan ended | 2021-04-02 12:50:26 -0500 | | `excludes` | Any IP addresses excluded from the scan | 10.0.1.123 | | `id` | The UUID of the scan task | 894a112c-3fb9-4301-8da7-8ce7fffb4443 | | `name` | The name of the scan task | Weekly security scan | | `rate` | The scan rate | 1000 | | `recv_bytes` | How many bytes were received during the scan | 45176 | | `recv_error` | How many receive errors were detected | 1 | | `recv_packets` | How many data packets were received during the scan | 555 | | `scheduled_time` | When the scan was scheduled to run | 2021-04-02 12:48:00 -0500 | | `sent_bytes` | How many bytes were sent during the scan | 44740 | | `sent_error` | How many send errors were detected | 0 | | `sent_packets` | How many data packets were sent during the scan | 577 | | `start_time` | When the scan began running | 2021-04-02 12:49:55 -0500 | | `tags` | An array of tags associated with the scan task | | | `targets` | The CIDR address ranges scanned | 10.0.1.0/24 | | `type` | The type of operation | scan | ### explorer For events triggered by a scan task, an `explorer` object adds these fields (runZero 2.1.8+): | Field | Contents | Example | | ------------- | ------------------------------------------------------------------ | ------------------------------------ | | `id` | The UUID of the runZero Explorer which carried out the scan | 0fd44a62-d827-41c0-b26c-4837222d8888 | | `name` | The name of the Explorer which carried out the scan | MM34B-2 | | `internal_ip` | The internal IP address of the Explorer which carried out the scan | 10.0.1.200 | ### search For events triggered by a ((search query rule)), a `search` object adds these fields: | Field | Contents | Example | | ------------ | ---------------------------------------------------- | ------------------------------------------------- | | `url` | A link to perform the same search | https://console.runzero.com/inventory/?search=... | | `found` | The number of matches found | 3 | | `comparator` | The operation used to compare the number of matches | >= | | `value` | The value the number of matches was compared against | 1 | ### report For "((scan completed))" events, a `report` object holds these results from the scan: | Field | Contents | | ----------- | ----------------------------------------------------------------------- | | `truncated` | Whether the set of objects was truncated due to large numbers of assets | | `changed` | An array of changed assets (see below) | | `new` | An array of new assets (see below) | | `offline` | An array of assets now offline (see below) | | `online` | An array of assets now online (see below) | The template receives at most 25 objects for email notifications and 10 for Webhook notifications. #### asset (from a scan report) Each asset in a scan report has these fields: | Field | Contents | | |-----------------------|--------------------------------------------------------|--------------------------------------| | `addresses` | The IP address(es) of the asset | 10.0.1.123 | | `alive` | Whether the asset responded to probes | true | | `created_at` | The timestamp when the asset record was created | 2021-04-02 12:50:26 -0500 | | `criticality_rank` | The criticality rank (0-5) | 1 | | `detected_by` | The method by which the asset was detected | arp | | `domains` | Any domains the asset was found in | WORKGROUP | | `first_seen` | The timestamp when the asset was first seen | 2021-04-02 12:50:26 -0500 | | `hw` | A summary of the asset hardware | HP LaserJet Pro | | `id` | The UUID of the asset | b38295fb-bef1-fa42-b82d-18ae99972228 | | `last_seen` | The timestamp when the asset was most recently seen | 2021-04-02 12:50:26 -0500 | | `macs` | Any MAC addresses detected for the asset | 00:56:55:00:91:04 | | `modified_risk_rank` | The risk rank after applying user overrides | 2 | | `names` | Any names detected for the asset | LP538N | | `os` | A summary of the asset's operating system | Linux | | `outlier_score` | The normalized outlier score (0-5) | 2 | | `risk_rank` | The normalized risk rank (0-4) | 4 | | `service_count` | How many services the asset is running | 4 | | `software_count` | How many software entries were identified on the asset | 10 | | `type` | The type of asset | Router | | `updated_at` | The timestamp when the asset record was last updated | 2021-04-02 12:50:26 -0500 | | `vulnerability_count` | How many vulnerabilities were identified on the asset | 4 | ### query {#query-variables} For query events, the `query` variable provides this data: | Field | Contents | | ----------- | -------------------------------------------------------------------------------------- | | `count` | The number of rows matching the search query | | `assets` | If it was an asset search, the array of assets matching the query | | `services` | If it was a service search, the array of services matching the query | | `wlans` | If it was a wireless network search, the array of wireless networks matching the query | | `truncated` | Whether the set of assets was truncated due to the query returning a large number | A query passes at most 25 assets to the template for email notifications and 10 for Webhook notifications. #### asset (from a query) Assets returned from a query rule have these fields: | Field | Contents | | | --------------- | ---------------------------------------------------- | -------------------------------------- | | `addresses` | The IP address(es) of the asset | 10.0.1.123 | | `alive` | Whether the asset responded to probes | true | | `comments` | Any comments set in the asset record | | | `created_at` | The timestamp when the asset record was created | 2021-04-02 12:50:26 -0500 | | `detected_by` | The method by which the asset was detected | arp | | `domains` | Any domains the asset was found in | WORKGROUP | | `first_seen` | The timestamp when the asset was first seen | 2021-04-02 12:50:26 -0500 | | `hw` | A summary of the asset hardware | ThinkPad X1 | | `id` | The UUID of the asset | b38295fb-bef1-fa42-b82d-18ae99972228 | | `last_seen` | The timestamp when the asset was most recently seen | 2021-04-02 12:50:26 -0500 | | `macs` | The list of MAC addresses associated with the asset | [F4:F5:E8:89:92:31, 00:D0:2D:9F:47:77] | | `names` | Any names detected for the asset | laptop.local | | `organization` | The organization the asset belongs to | IT | | `os` | A summary of the asset's operating system | Windows 10 | | `service_count` | How many services the asset is running | 4 | | `site` | The site the asset was detected at | New York | | `tags` | An array of tags set on the asset | | | `type` | The type of asset | Thermostat | | `updated_at` | The timestamp when the asset record was last updated | 2021-04-02 12:50:26 -0500 | #### service (from a query) Services returned from a query rule have these fields, some taken from the associated asset: | Field | Contents | Example | | --------------- | --------------------------------------------------------------------------- | -------------------------------------- | | `id` | The UUID of the service (not the asset) | b38efadb-61f1-f332-b92d-18ae99972228 | | `created_at` | When the service record was created | 2021-04-02 12:50:26 -0500 | | `summary` | A summary of the service | ciscoSystems | | `port` | The TCP/UDP port the service is on | 53 | | `vhost` | The vhost of the service | ftp.example.com | | `address` | The TCP/IP address of the service | 192.168.33.44 | | `transport` | The transport | udp | | `protocol` | The name of the protocol, if known | ssh | | `organization` | The name of the organization the service's asset belongs to | HR | | `site` | The name of the site the service's asset belongs to | Lab | | `alive` | Whether the asset offering the service was alive | true | | `last_seen` | When the asset was last seen | 2021-04-02 12:50:26 -0500 | | `first_seen` | When the asset was first seen | 2021-02-11 09:38:17 -0500 | | `type` | The asset type offering the service | Laptop | | `os` | The OS offering the service | Linux | | `hw` | The hardware offering the service | APC UPS | | `addresses` | A list of other IP addresses associated with the asset offering the service | [192.168.0.2, 192.168.0.3] | | `macs` | The list of MAC addresses associated with the asset | [F4:F5:E8:89:92:31, 00:D0:2D:9F:47:77] | | `names` | Any names associated with the asset | [fw-3, fw-3a] | | `tags` | Tags set on the asset | | | `domains` | Any domain associated with the asset | LOCAL | | `service_count` | A count of how many services the asset offers | 4 | | `comments` | Any comments set on the asset | | #### certificates (from a query) Certificates returned from a query rule have these fields: | Field | Contents | Example | |-------------------------|--------------------------------------------------------------|-------------------------------------------| | `id` | The UUID of the certificate | ff6a8817-828a-43a3-b2cb-596dff5f0bd5 | | `type` | The type of certificate | x509 | | `self_signed` | Whether the certificate is self-signed | true | | `names` | All names associated with the certificate | ["example.com", "www.example.com"] | | `serial` | The serial number of the certificate | 0A014A1D4D0F861EC4C6EFD6E13A2F | | `validity_start` | When the certificate becomes valid | 2025-11-06 15:58:04 -0500 | | `validity_end` | When the certificate expires | 2025-11-08 15:58:04 -0500 | | `validity_period` | The total validity period in seconds | 172800 | | `public_key_algorithm` | The algorithm used for the public key | rsaEncryption | | `public_key_bits` | The size of the public key in bits | 2048 | | `signature_algorithm` | The algorithm used for the signature | sha256WithRSAEncryption | | `fp_bkhash` | The BKHash fingerprint of the certificate | d2c7e8f9a1b2c3d4e5f6 | | `fp_sha1` | The SHA1 fingerprint of the certificate | 3c482c71d874763e560c617129793dec76e91196 | | `fp_sha256` | The SHA256 fingerprint of the certificate | 19vJPgdyh3BdGgTiSSavQsKx133lzFkJhu51n6fzG+k= | | `cn` | The common name from the certificate subject | example.com | | `subject` | The subject distinguished name | CN=example.com,O=Example Corp,C=US | | `issuer` | The issuer distinguished name | CN=Example CA,O=Example Corp,C=US | | `is_ca` | Whether the certificate is a certificate authority | false | | `key_usage` | The key usage extension values | digitalSignature | | `ext_key_usage` | The extended key usage extension values | serverAuthentication | | `san_dns_names` | Subject Alternative Name DNS entries | ["example.com", "www.example.com"] | | `san_ip_addresses` | Subject Alternative Name IP entries | ["192.168.1.1"] | | `san_email_addresses` | Subject Alternative Name email entries | ["admin@example.com"] | | `san_uris` | Subject Alternative Name URI entries | ["spiffe://example.com/service"] | | `public_key_insecure` | Whether the public key is considered insecure | false | | `signature_insecure` | Whether the signature algorithm is considered insecure | false | | `public_key_parameters` | Parameters for the public key, if any | map[rsa_exponent:65537 rsa_modulus:244...]| | `name_constraints` | Name constraints extension, if present | map[] | | `comments` | Any comments set on the certificate | "Issued for legacy system" | | `tags` | Tags applied to the certificate | ["production", "web"] | | `risk_rank` | The calculated risk rank (-1..5) | 2 | | `modified_risk_rank` | The modified risk rank if set | 1 | | `risk` | Either modified risk rank if set or risk_rank if unset as a name | "info" | | `vulnerability_count` | Number of vulnerabilities associated | 3 | | `service_address` | The address of the associated service | 192.168.1.10 | | `service_port` | The port of the associated service | 443 | | `service_transport` | The transport protocol of the service | tcp | | `asset_site_id` | The UUID of the associated site | 49f9323a-fea1-4afc-b490-2414c3aaaeee | | `asset_site_name` | The name of the associated site | "Head Office" | | `asset_id` | The UUID(s) of associated assets | b38295fb-bef1-fa42-b82d-18ae99972228 | #### wlan (wireless LAN, from a query) Wireless LANs (wlans) returned from a query rule have these fields: | Field | Contents | Example | | ---------------- | ----------------------------------------------------------- | ------------------------------------ | | `id` | The UUID of the wireless LAN in runZero's database | f938934b-ae23-f112-b23d-18ae99972228 | | `last_seen` | When the wlan was last seen | 2021-04-02 12:50:26 -0500 | | `essid` | The ESSID of the network | Free WiFi | | `bssid` | The BSSID of the network | c4:41:1e:99:88:77 | | `type` | The type of wireless network | infrastructure | | `authentication` | The authentication used to access the network | WPA2-PSK | | `encryption` | The encryption used to protect data | AES | | `signal` | The signal strength as a percentage | 86 | | `channels` | The channel of the network | 11 | | `organization` | The name of the organization the service's asset belongs to | HR | | `site` | The name of the site the service's asset belongs to | Lab | ### findings_with_instances | Field | Contents | Example | |-------------------------------|-----------------------------------------------------------------|-------------------------------------------------| | `finding_category` | The category of the finding | Open Access | | `finding_code` | The code of the finding | rz-finding-open-access-default-credentials | | `finding_id` | The ID of the finding | b1f8a2e7-3c4d-4e6a-9c2f-1a5e7d8b9c0a | | `finding_name` | The name of the finding | Service Accessible With Default Credentials | | `finding_risk_rank` | The normalized risk rank of the finding (0-4) | 3 | | `finding_vulnerability_count` | How many vulnerabilities are associated with the finding; the same value as `new_vulnerability_count` | 8 | | `new_vulnerability_count` | How many vulnerabilities are associated with the finding after the task was run | 8 | | `old_vulnerability_count` | How many vulnerabilities were associated with the finding the last time the task was run | 5 | | `organization_id` | The ID of the organization | e2d3c4b5-6a7b-8c9d-0e1f-2a3b4c5d6e7f | | `site_id` | The ID of the site | f3e4d5c6-b7a8-9c0d-1e2f-3a4b5c6d7e8f | | `site_name` | The name of the site | Primary | | `task_id` | The ID of the task | a4b5c6d7-e8f9-0a1b-2c3d-4e5f6a7b8c9d | | `task_name` | The name of the task | Metrics | | `task_start_time` | The start time of the task | 2026-03-02 11:16:59 -0500 | | `task_type` | The type of the task | analysis | ### rapid_response_published For rapid-response-published events, the `rapid_response_published` object contains `new`, `removed` and `updated` lists. Objects in those lists have these fields: | Field | Contents | Example | | ------------------------ | ------------------------------------------------------------------------------------------------ | ---------------------------------------------------- | | `id` | The UUID of the new rapid response query | f938934b-ae23-f112-b23d-18ae99972228 | | `name` | The name of the query | Rapid Response: Assets with multiple RCE exploits | | `description` | Plaintext description of the query | Certain assets can be exploited | | `solution` | Plaintext description of how to resolve the issue exposed by this query | Update the Chipland Exploitable NVR to v3.2 or newer | | `query` | The query contents | `hw:="Chipland Exploitable NVR"` | | `effective_query` | Query contents that are used to match assets. Includes any system predicates, such as `alive:t`. | `alive:t AND (hw:="Chipland Exploitable NVR")` | | `finding_code` | The finding code for the query, if assigned | rz-finding-rapid-response-assets | | `exploitable` | Whether or not the rapid response is known exploitable | true | | `cve` | Newline-separated list of CVEs that may apply to this query | `CVE-2025-12345\nCVE-2025-12346` | | `console_inventory_path` | The path to the console inventory page for the query | `/inventory` | | `attributes` | Miscellaneous attributes, such as reference URLs and runZero blog links. | See example below table | Example attributes object: ```json { "links": { "rz_blog": [ { "title": "How to find Chipland Exploitable NVR on your network", "url": "https://www.runzero.com/blog/" } ], "urls": [ { "url": "https://example.local/1.html" }, { "url": "https://example.local/2.html" } ] } } ``` ### rapid_response_with_matches For rapid-response-with-matches events, these fields are available: | Field | Contents | Example | | ----------- | -------------------------------------------------------------------------------------------------- | ------------------------------------- | | `id` | The UUID of the rapid response query | f938934b-ae23-f112-b23d-18ae99972228 | | `query` | Attributes of the query. See `rapid_response_published` for the fields available. | See `rapid_response_published` fields | | `old_count` | How many resources matched last time this query was run. | 0 | | `new_count` | How many resources matched the most recent time this query was run. | 2 | ## Example: Alert when scan completes Say you want an alert whenever a scan completes. A rule can email you the details, such as the number of new, online, offline, and modified assets. The steps below build those details into a template. ### Step 1. Create a template Create a template from the [Alerts](https://console.runzero.com/alerts/template/create/) page. - Name the template something like `Email the team when a scan completes.` - For the template type, choose `HTML`, since this template is for emails. - For the subject line, enter something descriptive, like `runZero scan {{scan.name}} completed at {{scan.end_time}}`. The subject accepts Mustache syntax too. ### Step 2. Create the body message The email body reports how many new, online, offline, and modified assets there are, and lists details of the new assets discovered. The body looks like this: ```

{{site.name}}

Scan Results

{{#scan}}
  • {{assets_new}} new assets
  • {{assets_online}} online assets
  • {{assets_offline}} offline assets
  • {{assets_changed}} modified assets
{{/scan}}

New assets

    {{#report.new}}
  • {{names}} {{addresses}} {{os}}
  • {{/report.new}} {{^report.new}}
  • No new assets were discovered.
  • {{/report.new}}

View the scan results

``` The ((caret)) (^) marks an inverted section, which renders only when the list is empty or the value is empty or false. ### Step 3. Save the template and create a rule Once saved, the template is available to choose when you [create a rule](https://console.runzero.com/alerts/rules/create/). ## Sample JSON templates ### A JSON array of new assets found by a scan ```json [ {{#report.new}} { "addresses": "{{addresses}}", "alive": "{{alive}}", "detected_by": "{{detected_by}}", "domains": "{{domains}}", "first_seen": "{{first_seen}}", "hw": "{{hw}}", "names": "{{names}}", "os": "{{os}}", "type": "{{type}}" }, {{/report.new}} null ] ``` The trailing `null` keeps the array valid JSON, because JSON doesn't allow trailing commas. ### All available attributes Output all available variables and their attributes as a JSON object: ```json {{.}} ``` Or build your own JSON with all attributes: ```json { "event": { "action": "{{event.action}}", "created_at": "{{event.created_at}}", "id": "{{event.id}}", "source_name": "{{event.source_name}}", "source_type": "{{event.source_type}}", "success": "{{event.success}}", "target_name": "{{event.target_name}}", "target_type": "{{event.target_type}}" }, "organization": { "name": "{{organization.name}}", "id": "{{organization.id}}" }, "site": { "name": "{{site.name}}", "id": "{{site.id}}" }, "report": { "truncated": "{{report.truncated}}", "changed": "{{report.changed}}", "new": "{{report.new}}", "offline": "{{report.offline}}", "online": "{{report.online}}" }, "rule": { "action": "{{rule.action}}", "created_at": "{{rule.created_at}}", "created_by": "{{rule.created_by}}", "event": "{{rule.event}}", "id": "{{rule.id}}", "name": "{{rule.name}}", "updated_at": "{{rule.updated_at}}" }, "scan": { "explorer_id": "{{scan.explorer_id}}", "assets_changed": "{{scan.assets_changed}}", "assets_ignored": "{{scan.assets_ignored}}", "assets_new": "{{scan.assets_new}}", "assets_offline": "{{assets_offline}}", "assets_online": "{{scan.assets_online}}", "assets_total": "{{scan.assets_total}}", "assets_unchanged": "{{scan.assets_unchanged}}", "assets_updated": "{{scan.assets_updated}}", "duration": "{{scan.duration}}", "end_time": "{{scan.end_time}}", "excludes": "{{scan.excludes}}", "id": "{{scan.id}}", "name": "{{scan.name}}", "rate": "{{scan.rate}}", "recv_bytes": "{{scan.recv_bytes}}", "recv_error": "{{scan.recv_error}}", "recv_packets": "{{scan.recv_packets}}", "scheduled_time": "{{scan.scheduled_time}}", "sent_bytes": "{{scan.sent_bytes}}", "sent_error": "{{scan.sent_error}}", "sent_packets": "{{scan.sent_packets}}", "start_time": "{{scan.start_time}}", "tags": "{{scan.tags}}", "targets": "{{scan.targets}}", "type": "{{scan.type}}" }, "explorer": { "id": "{{explorer.id}}", "name": "{{explorer.name}}", "internal_ip": "{{explorer.internal_ip}}" }, "search": { "url": "{{search.url}}", "found": "{{search.found}}", "comparator": "{{search.comparator}}", "value": "{{search.value}}" }, "query": { "count": "{{query.count}}", "assets": "{{query.assets}}", "services": "{{query.services}}", "wlans": "{{query.wlans}}", "truncated": "{{query.truncated}}" } } ``` ### Event attributes only ```json { "event": {{event}} } ``` or ```json { "action": "{{event.action}}", "created_at": "{{event.created_at}}", "id": "{{event.id}}", "source_name": "{{sevent.ource_name}}", "source_type": "{{event.source_type}}", "success": "{{event.success}}", "target_name": "{{event.target_name}}", "target_type": "{{tevent.arget_type}}" } ``` ### Organization attributes only ```json { "organization": {{organization}} } ``` or ```json { "name": "{{organization.action}}", "id": "{{organization.id}}" } ``` ### Site attributes only ```json { "site": {{site}} } ``` or ```json { "name": "{{site.action}}", "id": "{{site.id}}" } ``` ### Report attributes only ```json { "report": {{report}} } ``` or ```json { "truncated": "{{report.truncated}}", "changed": "{{report.changed}}", "new": "{{report.new}}", "offline": "{{report.offline}}", "online": "{{report.online}}" } ``` ### Rule attributes only ```json { "rule": {{rule}} } ``` or ```json { "action": "{{rule.action}}", "created_at": "{{rule.created_at}}", "created_by": "{{rule.created_by}}", "event": "{{rule.event}}", "id": "{{rule.id}}", "name": "{{rule.name}}", "updated_at": "{{rule.updated_at}}" } ``` ### Scan attributes only ```json { "scan": {{scan}} } ``` or ```json { "explorer_id": "{{scan.explorer_id}}", "assets_changed": "{{scan.assets_changed}}", "assets_ignored": "{{scan.assets_ignored}}", "assets_new": "{{scan.assets_new}}", "assets_offline": "{{assets_offline}}", "assets_online": "{{scan.assets_online}}", "assets_total": "{{scan.assets_total}}", "assets_unchanged": "{{scan.assets_unchanged}}", "assets_updated": "{{scan.assets_updated}}", "duration": "{{scan.duration}}", "end_time": "{{scan.end_time}}", "excludes": "{{scan.excludes}}", "id": "{{scan.id}}", "name": "{{scan.name}}", "rate": "{{scan.rate}}", "recv_bytes": "{{scan.recv_bytes}}", "recv_error": "{{scan.recv_error}}", "recv_packets": "{{scan.recv_packets}}", "scheduled_time": "{{scan.scheduled_time}}", "sent_bytes": "{{scan.sent_bytes}}", "sent_error": "{{scan.sent_error}}", "sent_packets": "{{scan.sent_packets}}", "start_time": "{{scan.start_time}}", "tags": "{{scan.tags}}", "targets": "{{scan.targets}}", "type": "{{scan.type}}" } ``` ### Explorer attributes only ```json { "explorer": {{explorer}} } ``` or ```json { "id": "{{explorer.id}}", "name": "{{explorer.name}}", "internal_ip": "{{explorer.internal_ip}}" } ``` ### Search attributes only ```json { "search": {{search}} } ``` or ```json { "url": "{{search.url}}", "found": "{{search.found}}", "comparator": "{{search.comparator}}", "value": "{{search.value}}" } ``` ### Query attributes only ```json { "query": {{query}} } ``` or ```json { "count": "{{query.count}}", "assets": "{{query.assets}}", "services": "{{query.services}}", "wlans": "{{query.wlans}}", "truncated": "{{query.truncated}}" } ``` ### Asset, service, or wireless query alert to SIEM or SOAR ```json { "organization": { "name": "{{organization.name}}", "id": "{{organization.id}}" }, "site": { "name": "{{site.name}}", "id": "{{site.id}}" }, "rule": { "action": "{{rule.action}}", "created_at": "{{rule.created_at}}", "created_by": "{{rule.created_by}}", "event": "{{rule.event}}", "id": "{{rule.id}}", "name": "{{rule.name}}", "updated_at": "{{rule.updated_at}}" }, "search": { "url": "{{search.url}}", "found": "{{search.found}}", "comparator": "{{search.comparator}}", "value": "{{search.value}}" } } ``` ### Asset, service, or wireless query alert to Slack ```json { "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": ":red_circle: *runZero Alert* - {{rule.name}}" } }, { "type": "divider" }, { "type": "section", "text": { "type": "mrkdwn", "text": "*Rule information*\n\n_Name_: {{rule.name}}\n_Type_: {{rule.event}}\n_Link_: https://console.runzero.com/alerts/rules/{{rule.id}}" } }, { "type": "section", "text": { "type": "mrkdwn", "text": "*Match information*\n\n_Organization_: {{organization.name}}\n_Site_: {{site.name}}\n_Match count_: {{search.found}}\n_Search_: {{search.value}}\n_Link_: {{search.url}}" } } ] } ``` ### Asset, service, or wireless query alert to Microsoft Teams ```json { "type": "message", "attachments": [ { "contentType": "application/vnd.microsoft.card.adaptive", "contentUrl": null, "content": { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.5", "body": [ { "type": "TextBlock", "text": "runZero Alert - {{rule.name}}" }, { "type": "TextBlock", "text": "**Rule information**\n\n_Name_: {{rule.name}}\n\n_Type_: {{rule.event}}\n\n_Link_: [Rule](https://console.runzero.com/alerts/rules/{{rule.id}})", "wrap": true }, { "type": "TextBlock", "text": "**Match information**\n\n_Organization_: {{organization.name}}\n\n_Site_: {{site.name}}\n\n_Match count_: {{search.found}}\n\n_Search_: {{search.value}}\n\n_Link_: [Search]({{search.url}})", "wrap": true, "spacing": "Medium" } ] } } ] } ``` ## Data type accepted by each channel When you create a rule, the channel you select must accept the template's data type. For example, a ((Slack)) notification needs a plain text or JSON template. Each channel accepts these data types: | Channel | Data type | | --------------------- | ---------------------- | | Email | Plain text, HTML, JSON | | Webhook | Plain text, JSON | | Internal notification | Plain text | ## Managing templates Go to [Alerts > Templates](https://console.runzero.com/alerts/template/) to create, edit, and delete templates. Before deleting a template, make sure no rule is using it. If you delete a template that a rule still uses, the rule reverts to the default template. To put a template to work, follow the [Alerting on asset and service changes](https://help.runzero.com/docs/playbooks/alerting-on-queries/) playbook. --- docs/events.md --- title: "runZero events" lastmodexempt: true --- runZero records system events for administrative actions, alert rule processing, scans, Explorers, API activity, and more. Use an event action below as the trigger for an [alert rule](rules-engine.md), or search for it in the [audit log](managing-your-team.md#audit-log). --- docs/querying-your-data.md --- title: "Querying your data" --- runZero gives you many ways to query your data, and ((queries)) fall into two groups: - Filters or parameters you type into the search bars on pages across the console, or - System and custom queries, whose match metrics runZero calculates as tasks complete. Both use the same query language. ## Filtering and searching data The inventory pages are likely where you'll use these queries most, but many other pages have the same kind of search bar for filtering results. To build a query, start with these pages: - [Syntax for compound queries](docs/search-query-syntax.md) - [Query examples](docs/search-query-examples.md) - [Keywords for the inventory pages](docs/search-query-inventory.md) - [Keywords for other parts of the console](docs/search-query-components.md) ## System and custom queries The [Queries page](https://console.runzero.com/queries/) lists all your saved queries: system queries published by runZero and custom queries created by you or your team. ### Standard query attributes Every query has these standard attributes: - **Name**: A name for the saved query. - **Description**: A description of the saved query. - **Search query**: The query or parameters to match against. - **Search live assets only**: When toggled to _Yes_ (default), runZero adds `alive:t` to the search query so it includes only assets marked alive. - **Type**: The inventory the query searches. - **Category**: The category the query belongs to. - **Severity**: A severity level for the query. - **Automatically track query results on the dashboard**: When toggled to _Yes_, a dashboard component shows the query and its match count. ### Vulnerability record attributes System and custom queries can also create vulnerability records and attach them to matching assets. Some system queries have this enabled by default. To have a query create vulnerability records, switch **Apply a vulnerability record to matching assets** to _Yes_, then complete these fields: - **Vulnerability ID**: Choose a unique ID to track this vulnerability within runZero. - **CVEs**: A list of CVEs relevant to this vulnerability record (optional). - **Solution**: How this vulnerability could be remediated on assets (optional). - **Risk**: The risk level to associate with the vulnerability. This affects the [asset risk](docs/asset-risk-and-criticality.md). - **Exploitable**: Whether an exploit is available for the vulnerability. - **CVSS v3 base score**: The CVSS v3 base score (0.00 to 10.00). - **CVSS v3 temporal score**: The CVSS v3 temporal score (0.00 to 10.00). - **CVSS v2 base score**: The CVSS v2 base score (0.00 to 10.00). - **CVSS v2 temporal score**: The CVSS v2 temporal score (0.00 to 10.00). - **CPE 2.3 identifier**: A Common Platform Enumeration identifier in URI format (v2.3) to associate with the reported vulnerability (optional). ## Creating and editing queries Users with the default role of administrator or higher can create custom queries from the [Queries page](https://console.runzero.com/queries/) by clicking **New query**. You can edit and copy custom queries after creating them. System queries can't be edited directly, but you can copy one and change the copy. --- docs/search-query-syntax.md --- title: "Search query syntax" aliases: ["/docs/search-query-list/"] description: "Learn how to use runZero search query syntax. Master Boolean operators, wildcards, timestamp filters, and keywords to query your asset and service inventory." --- The runZero search syntax works across the Asset, Service, and Wireless Inventory, across organizations and sites, and through the Query Library. The runZero Export API uses the same inventory ((search syntax)) to ((filter)) results. For ready-to-run searches built with this syntax, see the [query examples](docs/search-query-examples.md). ## Query syntax ### Boolean operators Combine search terms with the `AND` and `OR` operators and group them with parentheses. #### AND The Asset Inventory query `os:"Windows 10" AND protocols:http AND protocols:smb2` shows only assets identified as Windows 10 where both SMB and a web server were discovered. Wrap search values that contain spaces in double quotes. #### OR By contrast, `os:"Windows 10" AND protocols:http OR protocols:smb2` matches Windows 10 assets running a web server `or` any asset with the SMB service exposed. Besides `AND` and `OR`, the `NOT` operator filters a query: `os:"Windows 10" AND NOT protocols:http` shows Windows 10 systems without a web server. When the negation is the first term, drop the `AND`. The query `NOT protocol:http AND os:"Windows 10"` is equivalent to the previous search, with the terms reversed. ### Wildcard and fuzzy searches Most keywords are a fuzzy match by default. To force an exact, prefix, or suffix match, add the `=` prefix to the search term and use the `%` character as a wildcard. To match an operating system name of just `Windows`, the Asset Inventory query is `os:="Windows"`; for a prefix match on `Ubuntu Linux`, use `os:="Ubuntu Linux%"`. ### Single-character wildcard The `%` wildcard matches any number of characters. To match exactly one character, use the `_` single-character wildcard. For example, `os:="Window%"` matches both `Windows` and `Windows 10`, while `os:="Window_"` matches `Windows` but not `Windows 10`. ### Time and date values Search time and date (timestamp) fields with the `<` (less than) and `>` (greater than) operators to compare against the current time. Add `-` to compare against a relative time in the past; for example, `<-3years` finds timestamps from before three years ago. Supported units: - hours - minutes - seconds - months - years The special value `now` also works. For example, the asset search `first_seen:<1year` finds assets first detected within the past year. Other examples: ```plaintext first_seen:<3days ``` ```plaintext first_seen:>2019-08-01 ``` ```plaintext first_seen:>8/1/2019 ``` ```plaintext last_seen:<1week ``` ```plaintext last_seen:<2months ``` ```plaintext last_seen:<1year ``` ```plaintext created_at:>2weeks ``` ```plaintext created_at:<30minutes ``` ```plaintext updated_at:>1year ``` ```plaintext updated_at:<12hours ``` ```plaintext os_eol:4weeks ``` ```plaintext os_eol:<-2years ``` ```plaintext os_eol_extended:>now ``` ```plaintext os_eol_extended:>90days ``` ### Empty values To search for an empty value, use the `=` prefix with nothing after it. For example, the query `os:=` finds assets with no identified operating system. This works only for single-valued attributes such as `os` and `type`, not for multi-value attributes such as `names` or `addresses`. ### Asset and service inventory searches Beyond the documented keywords, Asset and Service searches support two special search types: * Asset Inventory searches treat unknown keywords as filters against individual Asset **attributes**. * Service Inventory searches treat unknown keywords as filters against individual Service **data** values. When an Asset keyword conflicts with a Service data key, or an Asset attribute conflicts with a Service keyword, use the `_asset.` and `_service.` prefixes to disambiguate. The two searches also differ in reach. Service queries can filter against Asset attributes (`os:linux`) and Service attributes (`banner:Password`), but Asset queries are limited to summary information about services (`protocol:ssh`). --- docs/search-query-examples.md --- title: "Query examples" --- Terms and operators combine into queries in endless ways. Use the ((examples|example queries)) below as they are, or adjust them with the [search query syntax](docs/search-query-syntax.md). ## Network configurations and access * Multihomed assets with public and private IP addresses: ```plaintext alive:t AND has_public:t AND has_private:t ``` * Multihomed assets connected only to private networks: ```plaintext multi_home:t AND has_public:f ``` * Default SSH configuration using passwords for authentication: ```plaintext alive:t AND protocol:"ssh" AND ssh.authMethods:"=password" ``` * Microsoft FTP servers: ```plaintext alive:t AND protocol:"ftp" AND banner:"=%Microsoft FTP%" ``` * Remote access services/protocols: ```plaintext protocol:rdp OR protocol:vnc OR protocol:teamviewer ``` * Assets with public IPs running remote access services: ```plaintext has_public:t OR has_public:t AND alive:t AND (protocol:rdp OR protocol:vnc OR protocol:teamviewer) ``` * Open ports used by cleartext protocols: ```plaintext port:21 OR port:23 OR port:80 OR port:443 OR port:139 OR port:445 OR port:3306 OR port:1433 OR port:161 OR port:8080 OR port:3389 OR port:5900 ``` * Telnet on nondefault ports: ```plaintext protocol:telnet AND NOT port:23 ``` * Windows assets offering SMB services: ```plaintext os:windows AND protocol:smb1 OR protocol:smb2 ``` * Switch assets accepting username and password authentication: ```plaintext type:switch AND (_asset.protocol:http AND NOT _asset.protocol:tls) AND ( html.inputs:"password:" OR last.html.inputs:"password:" OR has:http.head.wwwAuthenticate OR has:last.http.head.wwwAuthenticate ) ``` * Assets more than 8 hops away: ```plaintext attribute:"ip.ttl.hops" AND ip.ttl.hops:>"8 ``` ## Asset lifecycle and hardware * Assets created from arbitrary responses: ```plaintext has_mac:f AND has_name:f AND os:= AND hardware:= AND detected_by:icmp AND service_count:<2 ``` * End-of-life assets: ```plaintext os_eol:now ``` * EOL Linux operating systems: ```plaintext os:linux AND os_eol:" AND NOT authentication:"wpa2-enterprise" ``` * Unknown BSSIDs broadcasting a known ESSID (exclude known BSSIDs in the query for gap analysis): ```plaintext essid:="" AND NOT bssid:"" ``` --- docs/search-query-inventory.md --- title: "Inventory keywords" --- Query and filter your runZero inventories with the [search syntax](docs/search-query-syntax.md) and each inventory's keywords. Keywords and example values are documented for these inventories: - [Assets](docs/search-query-assets.md) - [Services](docs/search-query-services.md) - [Software](docs/search-query-software-groups.md) - [Vulnerabilities](docs/search-query-vulnerabilities.md) - [Certificates](docs/search-query-certificates.md) - [Wireless networks](docs/search-query-wireless.md) - [Users](docs/search-query-users.md) - [Groups](docs/search-query-groups.md) --- docs/search-query-assets.md --- title: "Asset inventory" --- When viewing assets, use these keywords to ((search|search assets)) and filter. For ready-made queries that combine these keywords, see [Query examples](search-query-examples.md). ## User-specified fields ### Comments {#assets-comments} Use `comment:` to search comments on an asset. ```plaintext comment:"contractor laptop" ``` ```plaintext comment:"imaging server" ``` ### Tags {#assets-tags} Use `tag:` to search tags added to an asset. The term is the tag name, or the tag name followed by an equal sign and the tag value. Tag value matches must be exact. An empty tag value matches only tags without a value. ```plaintext tag:"group" ``` ```plaintext tag:"group=" ``` ```plaintext tag:"group=production" ``` ### Organization name or ID {#assets-organization} Use `organization:` to filter by organization name or ID. ```plaintext organization:runZero ``` ```plaintext organization:"Temporary Project" ``` ```plaintext organization:f1c3ef6d-cb41-4d55-8887-6ed3cfb3d42d ``` ### Site name or ID {#assets-site} Use `site:` to filter by site name or ID. ```plaintext site:Primary ``` ```plaintext site:"Branch Office" ``` ```plaintext site:ad67d649-041b-439d-af59-f200053a8899 ``` ### Explorer name or ID {#assets-explorer} Use `explorer:` to filter by Explorer name or ID. ```plaintext explorer:DESKTOP-AB451F ``` ```plaintext explorer:8b927a8e-d405-40e9-aa47-d6afc9bff237 ``` ### Hosted zone Use `hosted_zone:` to filter by the hosted runZero Explorer that found the asset. After a hosted scan, this filter can help you locate externally facing assets. ### Owner Use `owner:` to filter by owner name. ```plaintext owner:user@runzero.com owner:"Security Team" ``` ### Ownership status Use `owner_count:` to filter by owner count. This search term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext owner_count:>0 owner_count:0 ``` Use `has_owner:` to find assets with owners or assets missing owners. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext has_owner:t has_owner:f ``` Use `ownership_type:` to filter assets by ownership type name. This returns assets that have an owner assigned for that ownership type. ```plaintext ownership_type:"Asset Owner" ownership_type:"Security Owner" ``` ## Asset fields ### Asset ID {#assets-ID} Use `id:` to filter by the ID field, the asset's unique identifier written as a UUID. ```plaintext id:cdb084f9-4811-445c-8ea1-3ea9cf88d536 ``` ### Operating system {#assets-OS} Use `os:` to search the operating system field, a string describing the detected operating system software. Use `os_version:` to search the OS version, if available. ```plaintext os:"Windows" ``` ```plaintext os:"Ubuntu Linux" ``` ```plaintext os_version:8 ``` ### OS CPE {#assets-cpe} Use `os.cpe23:` to search the operating system Common Platform Enumeration (CPE) field, a string describing the detected operating system software in the CPE naming scheme. When runZero fingerprints the operating system but the NIST database has no official matching entry, runZero generates an unofficial CPE that includes `r0_unofficial` in the `other` field of the CPE. ```plaintext os.cpe23:"ubuntu" ``` ```plaintext os.cpe23:="cpe:/o:canonical:ubuntu_linux:22.04.1" ``` ```plaintext os.cpe23:="cpe:/o:alma:linux:-::~~~~~r0_unofficial" ``` ### Type {#assets-type} Use `type:` to search the type field, a string describing the detected system type, such as Desktop, Laptop, Server, BMC, or Mobile. ```plaintext type:Desktop ``` ```plaintext type:BMC ``` ```plaintext type:"Game Console" ``` ### Hardware {#assets-hardware} Use `hardware:` to search the hardware field, a string describing the detected physical hardware, such as `macMini` or `Nintendo Switch`. ```plaintext hardware:Switch ``` ```plaintext hardware:macMini ``` ### Hostnames {#assets-hostnames} Use `name:` to search the hostnames associated with an asset. runZero obtains these names from DNS and exposed services. ```plaintext name:"www" ``` ```plaintext name:"TV" ``` To find assets with a hostname that has a specific prefix or suffix, use the `:=` exact match operator with `%` as a wildcard: ```plaintext name:="FTP.%" ``` ```plaintext name:="%-09" ``` Use `name_count:` to search the hostname count. This search term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext name_count:>1 ``` Use `name_overlap:` to find assets sharing the same name. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext name_overlap:t ``` ### Domains {#assets-domains} Use `domain:` to search the domain names associated with an asset. runZero obtains these domains from DNS and exposed services. ```plaintext domain:"amazon.com" ``` ```plaintext domain:"corp.lan" ``` ```plaintext domain:"WORKGROUP" ``` Use `domain_count:` to search the domain count. This search term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext domain_count:>1 ``` ### Addresses {#assets-addresses} Use `address:` to search the primary and secondary addresses associated with an asset, `primary_address:` to search only the primary addresses, or `secondary_address:` to search only the secondary addresses. These keywords also match by CIDR mask and by wildcard using '%'. runZero treats a comma-separated list of addresses as an efficient multiple-match. ```plaintext address:192.168.0.1 ``` ```plaintext address:10.0.0 ``` ```plaintext address:10.1.2.0/24 ``` ```plaintext address:%.0.1 ``` ```plaintext address:10.%.254 ``` ```plaintext address:10.0.0.1,10.0.0.2,10.0.0.3 ``` Use `address_count:` and `address_extra_count:` to search the primary and secondary address counts. These terms support numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext address_extra_count:0 ``` Use `address_overlap:` to find assets sharing primary IP addresses. Add the `site` keyword to narrow the results to a single site. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext address_overlap:t ``` Use `address_extra_overlap:` to find assets sharing secondary IP addresses. Add the `site` keyword to narrow the results to a single site. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext address_extra_overlap:t ``` ### Networks {#assets-networks} Use `net:` to search the primary and secondary addresses associated with an asset by CIDR mask. ```plaintext net:192.168.0.0/24 ``` ### Default SNMP communities {#assets-snmp} Use `has:snmp.v2DefaultCommunities` to find assets with a default SNMP community (public, private, and other defaults). ```plaintext has:snmp.v2DefaultCommunities snmp.v2DefaultCommunities:public ``` ### Public address {#assets-publicIP} Use the keyword `has_public` and the syntax `has_public:` to locate any asset with a non-reserved IP address. These are often public-facing systems, though public IPs can also be used internally behind a firewall. This filter includes public IPv6 addresses; to search for only public IPv4 addresses, use `has_public_v4`. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext has_public:true ``` ### Private address {#assets-privateIP} Use the keyword `has_private` and the syntax `has_private:` to locate any asset with a private IP address. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext has_private:false ``` ### IPv6 address {#assets-IPv6} Use the keyword `has_ipv6` and the syntax `has_ipv6:` to locate any asset with an identified IPv6 address. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext has_ipv6:false ``` ### Link-local IPv6 address {#assets-linkLocal} Use the keyword `has_link_local` and the syntax `has_link_local:` to locate any asset with an identified IPv6 link local (`fe80::`) address. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext has_link_local:true ``` ### MAC address {#assets-MAC} Use `mac:` to search the MAC addresses associated with an asset. ```plaintext mac:00:5c:04 ``` ```plaintext mac:00:00:1c ``` Use `mac_count:` to search the MAC address count. This search term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext mac_count:>2 ``` With the exact match operator (`:=`), you can also search for full MAC addresses in Cisco format or dash-separated format: ```plaintext mac:=00-10-fa-c2-bf-d5 ``` ```plaintext mac:=0010.fac2.bfd5 ``` Use `mac_overlap:` to find assets sharing the same MAC address. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext mac_overlap:t ``` ### MAC address vendors {#assets-MACvendor} Use `mac_vendor:` to search the vendors associated with an asset's MAC addresses. ```plaintext mac_vendor:Apple ``` ```plaintext mac_vendor:"Intel Corporate" ``` Use `newest_mac_vendor:` to search only the vendor of the newest MAC address. ```plaintext newest_mac_vendor:Apple ``` Use `mac_vendor_count:` to search the MAC address vendor count. This search term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext mac_vendor_count:0 ``` ### MAC address age {#assets-MACage} Use `mac_age:` to search the allocation date of the newest MAC address associated with an asset. The term supports the standard runZero [time comparison syntax][time]. ```plaintext mac_age:>1year ``` ```plaintext mac_age:<6months ``` ```plaintext mac_age:2019-12-31 ``` ### Outlier score {#assets-outlier} Use `outlier_score:` to search the calculated outlier score of assets. The outlier score ranges from 0 to 5 inclusive. This search term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext outlier_score:>2 ``` ```plaintext outlier_score:0 ``` ### Upstream switch IP address {#assets-switch-ip} Use `switch.ip:
` to search the IP address of the upstream switch that assets connect to. ```plaintext switch.ip:192.168.1.1 ``` ```plaintext switch.ip:fe80::81f2:1c9d:5ac9:5420 ``` ### Upstream switch name {#assets-switch-name} Use `switch.name:` to search the hostname of the upstream switch that assets connect to. ```plaintext switch.name:"SWITCH-1" ``` ```plaintext switch.name:office ``` ### Upstream switch port {#assets-switch-port} Use `switch.port:
-` to search the port on the upstream switch that assets connect to. ```plaintext switch.port:192.168.1.1-25 ``` ```plaintext switch.port:10.1.2.3-0/1/2 ``` ### Upstream switch shared port {#assets-switch-shared} Use `attribute:switch.portShared` to find assets that connect to a switch port reporting multiple MAC addresses. ```plaintext attribute:switch.portShared ``` ### Attributes {#assets-attributes} Use `attribute:` to search the asset attribute fields, such as the port used to detect the TTL. ```plaintext attribute:"ip.ttl.port" ``` ```plaintext attribute:"cpe:/a:isc:bind:9.11.3" ``` ```plaintext attribute:"9.11.3" ``` Use the `has:` keyword to check whether an asset has an attribute defined. Invert the `has` keyword with `not has:` to find missing fields. ```plaintext has:"ip.ttl.port" ``` ```plaintext not has:"rdns.names" ``` Alongside the standard fields, these special attributes are available: * `has:screenshot` returns assets where at least one screenshot was obtained. * `has:icons` returns assets where at least one icon was obtained (HTTP, UPnP, or similar). * `has:uplink` returns assets seen in the CAM table of a network switch. * `has:switch` is an alias of `has:uplink`. * `has:downlink` returns assets where the CAM table was queried and at least one other asset was connected. * `has:unmapped` returns assets where the CAM table was queried and at least one other asset was connected but not identified by IP. See [Topology role](#assets-topology) below for the related `is:`, `gateway_kind:`, `child_kind:`, `downlink_count:`, and `hops_from_public:` keywords. You can also use the attribute name directly as a term. If the attribute name conflicts with an existing term, add the `_asset.` prefix to disambiguate the query. ```plaintext ip.ttl.port:80 ``` ```plaintext rdns.names:"router" ``` ```plaintext _asset.ip.ttl.hops:"1" ``` Use `@..:` to query foreign attributes from third-party inbound integrations. The table below lists the prefix for each integration. | Integration | Prefix | |----------------------------|------------------------------| | Miradore | `@miradore.dev.` | | AWS EC2 | `@aws.ec2.` | | AWS ELB & ELBv2 | `@aws.elb.` | | AWS RDS | `@aws.rds.` | | CrowdStrike | `@crowdstrike.dev.` | | Azure Load Balancer | `@azure.vm.` | | Azure VM | `@azure.vm.` | | Azure Scale Set VM | `@azure.vmss.` | | Censys | `@censys.host.` | | VMWare | `@vmware.vm.` | | GCP Load Balancer | `@gcp.lb.` | | GCP E2-Micro VM | `@gcp.vm.` | | GCP CloudSQL | `@gcp.cloudsql.` | | SentinelOne | `@sentinelone.dev.` | | Tenable.io & Nessus | `@tenable.dev.` | | Rapid7 Nexpose & InsightVM | `@rapid7.dev.` | | Qualys VMDR | `@qualys.dev.` | | Shodan | `@shodan.dev.` | | Azure AD | `azuread` | | Active Directory (LDAP) | `@ldap.computer.` | | Microsoft 365 Defender | `@ms365defender.dev.` | | Microsoft Intune | `@intune.dev.` | | Google Workspace ChromeOS | `@googleworkspace.chromeos.` | | Google Workspace Endpoint | `@googleworkspace.endpoint.` | | Google Workspace Mobile | `@googleworkspace.mobile.` | ```plaintext @aws.ec2.region:="us-east-2" ``` ```plaintext @crowdstrike.dev.agentVersion:="6.49.16201.0" ``` ```plaintext @googleworkspace.chromeos.model:="HP Chromebook" ``` Foreign attributes support semver-style comparison operators (`>`, `>=`, `<`, `<=`, `=`). Include at least the major and minor version number to use this comparison. Version comparison ignores any non-numerical text in the prefix or suffix. ```plaintext @jamf.custom.osVersion:>6.0 ``` ### Topology role {#assets-topology} runZero builds a topology graph from layer-2 switch CAM tables and from sub-asset enumeration through [protocol gateways](protocol-gateways.md). The keywords below filter assets based on that graph and work in **Inventory → Assets**, in any asset search box, and in the [Network Map](network-map.md). | Keyword | Matches | |-----------------------|--------------------------------------------------------------------------------------------------| | `is:switch` | Asset is a layer-2 switch with one or more observed CAM-table entries (downstream ports). | | `is:gateway` | Asset is a protocol gateway fronting one or more enumerated sub-assets. | | `is:child` | Asset is a sub-asset enumerated through a protocol gateway. | | `gateway_kind:`| Asset is a gateway for the given protocol — `bacnet`, `cip`, `modbus`, `s7comm`, `dnp3`, `profinet`, `ethercat`, `omronfins`, `melsecq`, `hartip`, `c37118`, `knxnet`. | | `child_kind:` | Asset is a sub-asset behind a gateway of the given protocol (same vocabulary as `gateway_kind`). | | `downlink_count:` | Number of downstream links (switch ports + OT gateway children). Supports comparisons: `>10`, `<=0`, `>=1`, ranges. | | `hops_from_public:`| Minimum topology hops to a public-facing asset (`0` = the asset itself is public-facing). Supports comparisons. | | `has:uplink` | Asset is connected to an upstream switch port (alias `has:switch`). | | `has:downlink` | Asset is a switch with at least one downstream port observed. | Examples: ```plaintext is:gateway ``` ```plaintext gateway_kind:modbus ``` ```plaintext is:child AND child_kind:cip ``` ```plaintext is:switch AND downlink_count:>10 ``` ```plaintext category:OT AND hops_from_public:<=2 ``` ## Asset services ### Service ports {#assets-ports} Use `port:` to search the TCP and UDP services associated with an asset by port number. ```plaintext port:80 ``` ```plaintext port:161 ``` ### Service TCP ports {#assets-tcpPorts} Use `tcp:` to search the TCP services associated with an asset by port number. ```plaintext tcp:443 ``` Use `service_ports_tcp:=` to find assets with a specific list of TCP ports open. List the values in ascending numerical order, separated by commas. ```plaintext service_ports_tcp:=80,443 ``` ### Service UDP ports {#assets-udpPorts} Use `udp:` to search the UDP services associated with an asset by port number. ```plaintext udp:53 ``` Use `service_ports_udp:=` to find assets with a specific list of UDP ports open. List the values in ascending numerical order, separated by commas. ```plaintext service_ports_udp:=53,123 ``` ### Service protocols {#assets-protocols} Use `service_protocols:` (or `protocol:` for short) to search the identified service protocols associated with an asset. ```plaintext protocol:http ``` ```plaintext service_protocol:telnet ``` Use `protocol_count:` to search the protocol count. This search term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext protocol_count:>1 ``` ### Service products {#assets-products} Use `service_products:` (or `product:` for short) to search the identified service products associated with an asset. ```plaintext product:openssh ``` ```plaintext service_products:nginx ``` Use `product_count:` to search the product count. This search term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext product_count:>3 ``` ### Service counts {#assets-counts} Use the following keywords to search the number of services associated with an asset: * `service_count_tcp:` * `service_count_udp:` * `service_count_icmp:` * `service_count_arp:` These keywords support numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). Examples: ```plaintext service_count_tcp:>=5 ``` ```plaintext service_count_arp:0 ``` ```plaintext service_count_udp:<=1 ``` ## Asset tracking fields ### Timestamps {#assets-timestamps} Use the following keywords to search the asset timestamp fields (`first_seen`, `last_seen`, `created_at`, `updated_at`, `os_eol`, `os_eol_extended`): * `first_seen:` * `last_seen:` * `created_at:` * `updated_at:` * `os_eol:` * `os_eol_extended:` The term supports the standard runZero [time comparison syntax][time]. ```plaintext first_seen:<3days ``` ```plaintext first_seen:>2019-08-01 ``` ```plaintext first_seen:>8/1/2019 ``` ```plaintext last_seen:<1week ``` ```plaintext last_seen:<2months ``` ```plaintext last_seen:<1year ``` ```plaintext created_at:>2weeks ``` ```plaintext created_at:<30minutes ``` ```plaintext updated_at:>1year ``` ```plaintext updated_at:<12hours ``` ```plaintext os_eol:4weeks ``` ```plaintext os_eol_extended:>now ``` ```plaintext os_eol_extended:>90days ``` ### Online status {#assets-online} Use `online:`, or its inverse `offline:`, to search the online status of an asset. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext online:t ``` ```plaintext online:1 ``` ```plaintext offline:0 ``` ### Operating system support status {#assets-os-eol} Use `os_eol_expired:` to find assets based on whether their operating systems are End of Life (EOL). This field evaluates both the `os_eol` and `os_eol_extended` values and returns only assets with expired coverage. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext os_eol_expired:t ``` ```plaintext os_eol_expired:1 ``` ```plaintext os_eol_expired:no ``` ### Detection method {#assets-detection} Use `det:` or `detected_by:` to search the detected-by attribute of an asset. The term is one of `arp`, `icmp`, `-tcp`, or `-udp`. With multiple detections, the priority is `arp`, then `icmp`, then the first detected service. ```plaintext det:arp ``` ```plaintext detected_by:80-tcp ``` ```plaintext det:53-udp ``` ### Time to live (TTL) comparisons {#assets-TTL} Use `ttl:` and `lowest_ttl:` to search the lowest TTL of an asset. TTL is the estimated number of hops between the scan source and the asset. This search term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext lowest_ttl:>3 ``` ### Round trip time (RTT) comparisons {#assets-RTT} Use `rtt:` and `lowest_rtt:` to search the lowest RTT of an asset. RTT is the round-trip response time of a probe, measured in nanoseconds (1,000,000 == 1ms). This search term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext lowest_rtt:>50000000 ``` ### Multiple MAC address status {#assets-multipleMAC} Use `multi_mac:` to find assets with multiple MAC addresses. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext multi_mac:t ``` ### Any MAC address status {#assets-anyMAC} Use `has_mac:` to find assets with any MAC address. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext has_mac:yes ``` ```plaintext has_mac:f ``` ### Multiple IP address status {#assets-multipleIP} Use `multi_home:` to find assets with multiple IP addresses. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext multi_home:t ``` ### Multiple hostname status {#assets-multipleHostname} Use `multi_name:` to find assets with multiple hostnames. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext multi_name:yes ``` ```plaintext multi_name:false ``` ### Software installations {#assets-software} Use `software:>` to find assets with associated software. The term has three forms: - `software:` finds assets with a software product that matches the term. - `software:/` finds assets with a software product and version that match the term exactly. - `software://` finds assets with a software vendor, product, and version that match the term exactly. All three forms accept `%` as a wildcard at the beginning, middle, or end of the term. Version terms accept comparators to search for versions less than or greater than a specific version. For example, `software:"Google/Google Chrome/>=135"` returns all assets with Google Chrome version 135 or greater. ```plaintext software:IIS ``` ```plaintext software:Microsoft/IIS/10.0 ``` ## Certificate fields {#asset-certificates} Use the following keywords to search certificate-related fields. ### Certificate ID {#asset-certificate-id} Use `certificate_id:` to filter by certificate ID. ```plaintext certificate_id:4e3a2b1c-5d6f-7a8b-9c0d-1e2f3a4b5c6d ``` ### Certificate type {#asset-certificate-type} Use `certificate_type:` to search by certificate type. ```plaintext certificate_type:"x509" ``` ### Certificate serial {#asset-certificate-serial} Use `certificate_serial:` to search by certificate serial number. ```plaintext certificate_serial:"01A23B45C" ``` ### Certificate public key {#asset-certificate-public-key} Use `certificate_public_key:` to search by certificate public key. ```plaintext certificate_public_key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A..." ``` ### Certificate public key algorithm {#asset-certificate-public-key-algorithm} Use `certificate_public_key_algorithm:` to search by certificate public key algorithm. ```plaintext certificate_public_key_algorithm:"ecPublicKey" ``` ### Certificate signature {#asset-certificate-signature} Use `certificate_signature:` to search by certificate signature. ```plaintext certificate_signature:"abcdef1234567890" ``` ### Certificate signature algorithm {#asset-certificate-signature-algorithm} Use `certificate_signature_algorithm:` to search by certificate signature algorithm. ```plaintext certificate_signature_algorithm:"rsaEncryption" ``` ### Certificate fingerprint (bkhash) {#asset-certificate-bkhash} Use `certificate_fp_bkhash:` to search by certificate fingerprint (bkhash). ```plaintext certificate_fp_bkhash:"d2c7e8f9..." ``` ### Certificate fingerprint (SHA1) {#asset-certificate-sha1} Use `certificate_fp_sha1:` to search by certificate SHA1 fingerprint. ```plaintext certificate_fp_sha1:"349eb7db55bbad9d7deabc5effdfd5521ed984a0" ``` ### Certificate fingerprint (SHA256) {#asset-certificate-sha256} Use `certificate_fp_sha256:` to search by certificate SHA256 fingerprint. ```plaintext certificate_fp_sha256:"SHA256:Sc0pLUCvlNaGtu4Xy2fOTe1A6cC+KyU3x7xuN8+aLtA=" ``` ### Certificate subject {#asset-certificate-subject} Use `certificate_subject:` to search by certificate subject. ```plaintext certificate_subject:"CN=example.com,O=ExampleCorp,C=US" ``` ### Certificate common name (CN) {#asset-certificate-cn} Use `certificate_cn:` to search by certificate common name. ```plaintext certificate_cn:"example.com" ``` ### Certificate issuer {#asset-certificate-issuer} Use `certificate_issuer:` to search by certificate issuing authority. ```plaintext certificate_issuer:"CN=Example CA,O=Example Corp,C=US" ``` ### Certificate subject key ID {#asset-certificate-subject-key-id} Use `certificate_subject_key_id:` to search by certificate subject key ID. ```plaintext certificate_subject_key_id:"1234567890abcdef" ``` ### Certificate authority key ID {#asset-certificate-authority-key-id} Use `certificate_authority_key_id:` to search by certificate issuing authority key ID. ```plaintext certificate_authority_key_id:"abcdef1234567890" ``` [time]: search-query-syntax.md#time-and-date-values --- docs/search-query-services.md --- title: "Service inventory" --- When viewing services, use these keywords to ((search|search services)) and filter. ## Ports {#services-ports} Use `port:` to search TCP and UDP services by port number. This search term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext port:<=25 ``` ## TCP ports {#services-TCP} Use `tcp:` to search TCP services by port number. ```plaintext tcp:53 ``` Use `service_ports_tcp:=` to find all services on assets with a specific list of TCP ports open. List the values in ascending numerical order, separated by commas. ```plaintext service_ports_tcp:=80,443 ``` ## UDP ports {#services-UDP} Use `udp:` to search UDP services by port number. ```plaintext udp:443 ``` Use `service_ports_udp:=` to find all services on assets with a specific list of UDP ports open. List the values in ascending numerical order, separated by commas. ```plaintext service_ports_udp:=53,123 ``` ## Transport {#services-transport} Use `transport:` to search the transport of a service by name. ```plaintext transport:tcp ``` ```plaintext transport:udp ``` ```plaintext transport:icmp ``` ## Protocol {#services-protocol} Use `service_protocols:` (or `protocol:` for short) to search the protocols associated with services. ```plaintext protocol:http ``` ```plaintext protocol:telnet ``` ## Assets with product {#services-product} Use `service_products:` (or `product:` for short) to search the identified service products associated with an asset and return all services for the matching assets. ```plaintext product:openssh ``` ```plaintext service_products:nginx ``` ## Virtual host (vHost) {#services-vhost} Use `vhost:` to search the virtual hosts associated with a service by name. ```plaintext vhost:"www" ``` ## Address {#services-address} Use the `service_address` keyword to match the service IP address. ```plaintext service_address:192.168.0.1 ``` ## Public address {#services-public} Use the keyword `service_has_public` and the syntax `service_has_public:` to locate any service with a non-reserved IP address. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext service_has_public:true ``` ## Private address {#services-private} Use the keyword `service_has_private` and the syntax `service_has_private:` to locate any service with a private IP address. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext service_has_private:false ``` ## IPv6 address {#services-IPv6} Use the keyword `service_has_ipv6` and the syntax `service_has_ipv6:` to locate any service with an identified IPv6 address. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext service_has_ipv6:false ``` ## Link-local IPv6 address {#services-linkLocal} Use the keyword `service_has_link_local` and the syntax `service_has_link_local:` to locate any service with an identified IPv6 link local (`fe80::`) address. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext service_has_link_local:true ``` ## Assets with outlier score {#services-outlier} Use `outlier_score:` to search the calculated outlier score of assets and return all services on those assets. The outlier score ranges from 0 to 5 inclusive. This search term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext outlier_score:>2 ``` ```plaintext outlier_score:0 ``` ## Assets with MAC address vendors {#services-MACvendor} Use `mac_vendor:` to search the vendors associated with an asset's MAC addresses and return all services on those assets. ```plaintext mac_vendor:Apple ``` ```plaintext mac_vendor:"Intel Corporate" ``` Use `newest_mac_vendor:` to search only the vendor of the newest MAC address. ```plaintext newest_mac_vendor:Apple ``` ## Assets with MAC address age {#services-MACage} Use `mac_age:` to search the age of the newest MAC address on each asset and return all services on those assets. The term supports the standard runZero [time comparison syntax][time]. ```plaintext mac_age:>1year ``` ```plaintext mac_age:<6months ``` ```plaintext mac_age:2019-12-31 ``` ## Attributes {#services-attributes} Use `:` to search any service attribute. This search term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). If the attribute name conflicts with an existing term, add the `_service.` prefix to disambiguate the query. Service attribute searches can be slow, so it is often better to put an `_asset.protocol:` filter in front of the service attribute query. For example, to search SSH banners, use `_asset.protocol:ssh AND banner:.` ```plaintext banner:password ``` ```plaintext service.product:"OpenSSH" ``` ```plaintext html.title:"Apache2 Ubuntu Default Page" ``` ```plaintext http.code:>=500 ``` ```plaintext screenshot.image.size:=>100000 ``` ```plaintext _service.arp.macVendor:Xerox ``` Use the `has` keyword to check whether a service has an attribute at all. Invert the `has` keyword with `not has:` to find missing fields. ```plaintext has:"http.head.server" ``` ```plaintext not has:"html.title" ``` ## Certificate fields {#services-certificates} Use the following keywords to search the certificates related to a service. ### Certificate ID {#service-certificate-id} Use `certificate_id:` to filter by certificate ID. ```plaintext certificate_id:4e3a2b1c-5d6f-7a8b-9c0d-1e2f3a4b5c6d ``` ### Certificate fingerprint (bkhash) {#service-certificate-fp-bkhash} Use `fp_bkhash:=` to find services with a certificate matching the given bkhash fingerprint anywhere in the certificate chain. ```plaintext fp_bkhash:=d2c7e8f9a1b2c3d4e5f6 ``` ### Certificate fingerprint (SHA256) {#service-certificate-fp-sha256} Use `fp_sha256:=` to find services with a certificate matching the given SHA256 fingerprint anywhere in the certificate chain. ```plaintext fp_sha256:=SHA256:19vJPgdyh3BdGgTiSSavQsKx133lzFkJhu51n6fzG+k= ``` ### Certificate fingerprint (SHA1) {#service-certificate-fp-sha1} Use `fp_sha1:=` to find services with a certificate matching the given SHA1 fingerprint anywhere in the certificate chain. ```plaintext fp_sha1:=a1b2c3d4e5f6g7h8i9j0 ``` ### Certificate validity fields {#services-certificate-validity} Use the following keywords to search the timestamps of the certificate found on the service. These fields support the standard runZero [time comparison syntax][time]. ```plaintext certificate_valid_from:>2025-01-01 certificate_valid_until:<2026-01-01 certificate_created_at:<1year certificate_updated_at:>2024-12-01 certificate_last_seen:<2months ``` ### Certificate authority key ID {#services-certificate-authority-key-id} Use `certificate_authority_key_id:` to search by certificate authority key ID. ```plaintext certificate_authority_key_id:"c03152cd5a50c3827c7471cecbe99cf97aeb82e2" ``` ### Certificate common name (CN) {#services-certificate-cn} Use `certificate_cn:` to search by certificate common name. ```plaintext certificate_cn:"example.com" ``` ### Certificate public key algorithm {#services-certificate-pk-algorithm} Use `certificate_public_key_algorithm:` to search by public key algorithm. ```plaintext certificate_public_key_algorithm:rsaEncryption ``` ### Certificate serial number {#services-certificate-serial} Use `certificate_serial:` to search by certificate serial number. ```plaintext certificate_serial:123456 ``` ### Certificate signature algorithm {#services-certificate-sig-algorithm} Use `certificate_signature_algorithm:` to search by signature algorithm. ```plaintext certificate_signature_algorithm:sha256WithRSAEncryption ``` ### Certificate subject key ID {#services-certificate-subject-key-id} Use `certificate_subject_key_id:` to search by subject key ID. ```plaintext certificate_subject_key_id:"c769916e10f850397928f62bd34ca6ec39d8e00a" ``` ### Certificate type {#services-certificate-type} Use `certificate_type:` to search by certificate type. ```plaintext certificate_type:x509 ``` ### Certificate key usage {#services-certificate-key-usage} Use `certificate_key_usage:` to search by key usage. ```plaintext certificate_key_usage:"digitalSignature" ``` ### Certificate extended key usage {#services-certificate-ext-key-usage} Use `certificate_ext_key_usage:` to search by extended key usage. ```plaintext certificate_ext_key_usage:"serverAuth" ``` ### Certificate OCSP server {#services-certificate-ocsp-server} Use `certificate_ocsp_server:` to search by OCSP server. ```plaintext certificate_ocsp_server:http://ocsp.example.com ``` ### Certificate CRL distribution points {#services-certificate-crl-distribution-points} Use `certificate_crl_distribution_points:` to search by CRL distribution point. ```plaintext certificate_crl_distribution_points:http://crl.example.com/ ``` ### Certificate issuing certificate URL {#services-certificate-issuing-certificate-url} Use `certificate_issuing_certificate_url:` to search by issuing certificate URL. ```plaintext certificate_issuing_certificate_url:http://issuer.example.com/ ``` ### Certificate signature {#services-certificate-signature} Use `certificate_signature:` to search by certificate signature. ```plaintext certificate_signature:Bden73ipj8B2xb1Ozy5nOvIytCktGrht5xL7ZfFlaLIBQxbGO5Iuf6Y1yICcEpYqsgSJS6JKCdw5dujmPmGRwBZfVhIbSRb0exFQ4BVp82WtDHfy3QBgcmtusRIxLyM5ToTT2O53NxaSGaw3IRLXZ0y343RGlKOyQxEXeoHbLsVrpmMrqAKkHJkhjTKn7E9WDc4RCsAvd13BIDP80dDWK7OMZJnCDXGQwz2MkAYZNyjRRXA5XeO2cvMq36/4phyJDhIz1oDgDLOFDnCGKkW5gc8MjE0uxFIYTHKNkx+2WIU/j4uQGNAJQbqqCnupV4qjI29PQFnFecnphkKw== ``` ### Certificate public key {#services-certificate-public-key} Use `certificate_public_key:` to search by certificate public key. ```plaintext certificate_public_key:MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDJ899KGnqHjVuBekYqosp2l8zWbiyu2I62CzaqaouLtqn1nXaQLMdruhlNN9ShCPfCM2JAROVjrd1PwhxLvJxAMbC+UJz2914SRn+lhFQl7yo03t+OoobwSXyj+ukbOHp1lYklYjMauScZScIDdPmLEjwDa8pfSr2TQoihjSDeawIDAQAB ``` ### Certificate comments {#services-certificate-comments} Use `certificate_comments:` to search comments on a certificate. ```plaintext certificate_comments:"our self signed wildcard" ``` ### Certificate self-signed {#services-certificate-self-signed} Use `certificate_self_signed:` to search for self-signed certificates. ```plaintext certificate_self_signed:true ``` ### Certificate hidden {#services-certificate-hidden} Use `certificate_hidden:` to search for certificates hidden from the inventory. ```plaintext certificate_hidden:true ``` ### Certificate signature algorithm insecure {#services-certificate-signature-algorithm-insecure} Use `certificate_signature_algorithm_insecure:` to search for certificates with insecure signature algorithms. ```plaintext certificate_signature_algorithm_insecure:true ``` ### Certificate public key insecure {#services-certificate-public-key-insecure} Use `certificate_public_key_insecure:` to search for certificates with insecure public key algorithm and key size combinations. ```plaintext certificate_public_key_insecure:true ``` ### Certificate is CA {#services-certificate-is-ca} Use `certificate_is_ca:` to search for certificates that are certificate authorities (CAs). ```plaintext certificate_is_ca:true ``` [time]: search-query-syntax.md#time-and-date-values --- docs/search-query-software-groups.md --- title: "Software inventory" --- When viewing ((software groups)), use these keywords to search and filter. For software instances on assets, see the [software instance inventory](docs/search-query-software.md) keywords. ## Vendor {#sgvendor} Use `vendor:` to search the software vendor by name. ```plaintext vendor:oracle ``` ## Product {#sgproduct} Use `product:` to search the software product by name. ```plaintext product:java ``` ## Version {#sgversion} Use `version:` to search the software version. ```plaintext version:1.2.3 ``` --- docs/search-query-software.md --- title: "Software instance inventory" --- When viewing software instances on assets, use these keywords to ((search|search software)) and filter. For software groups, see the [software inventory](docs/search-query-software-groups.md) keywords. ## Source Use `source:` to search or filter by the name of the source that reported the installed software. ```plaintext source:runzero ``` ## Vendor Use `vendor:` to search the software vendor by name. ```plaintext vendor:oracle ``` ## Product Use `product:` to search the software product by name. ```plaintext product:java ``` --- docs/search-query-vulnerability-groups.md --- title: "Vulnerabilities inventory" --- When viewing ((vulnerability groups)), use these keywords to search and filter. ## Name {#vulnerabilities-name} Use `name:` to search the name field. ```plaintext name:"Cisco IOS Software DHCP Remote Code Execution Vulnerability" ``` ```plaintext name:"PHP < 5.3.12 / 5.4.2 CGI Query String Code Execution" ``` ## CVE {#vulnerabilities-CVE} Use `cve:` to search the CVE field. ```plaintext cve:CVE-2021-44228 ``` ```plaintext cve:CVE-2016-2183 ``` ## KEV {#vulnerabilities-KEV} Use `kev:` to search by membership in a Known Exploited Vulnerability (KEV) list. ```plaintext kev:t ``` matches vulnerabilities that appear on a KEV list. You can also search a specific KEV list by name. - `kev:cisa` matches vulnerabilities listed as actively exploited in the [CISA Known Exploited Vulnerabilities Catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog). - `kev:vulncheck` matches vulnerabilities listed as actively exploited in the [VulnCheck Catalog](https://vulncheck.com/kev). - `kev:true` matches vulnerabilities in either list. ## Severity {#vulnerabilities-severity} Use `severity:` to search the severity field. ```plaintext severity:info ``` ```plaintext severity:medium ``` ## Risk {#vulnerabilities-risk} Search the `Risk` and `Risk Score` fields with either numeric or keyword values. Risk score is an integer from zero through four, where `0` is Info level risk and `4` is Critical risk. ```plaintext risk:"Critical" ``` ```plaintext risk:2 ``` ## Vulnerability instance count {#vulnerabilities-count} Use `count:` to search the `Asset count` field. ```plaintext count:>0 ``` ## Site name or ID {#vulnerabilities-siteID} Use `site:` to filter by site name or ID. ```plaintext site:Primary ``` ## EPSS score {#vulnerabilities-EPSS} Use `epss_score:` to search the EPSS score. The term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext epss_score:>0.5 ``` ```plaintext epss_score:<=0.1 ``` ```plaintext epss_score:=0.9 ``` ## Timestamps {#vulnerabilities-timestamps} Use the following keywords to search the vulnerability group timestamp fields (`created_at`, `suppressed_at`): * `created_at:` * `suppressed_at:` The term supports the standard runZero [time comparison syntax][time]. ```plaintext created_at:>2weeks ``` ```plaintext created_at:<30minutes ``` ```plaintext suppressed_at:<1day ``` ## Suppression {#suppressed-vuln-group} Use `suppressed:` to search vulnerability groups by their suppressed or unsuppressed state. ```plaintext suppressed:t ``` matches suppressed vulnerability groups. ```plaintext suppressed:f ``` matches unsuppressed vulnerability groups. The special value `any` displays all records, regardless of suppression settings: ```plaintext suppressed:any ``` displays both suppressed and unsuppressed vulnerability groups. To find the user who performed the suppression, use: ```plaintext suppressed_by: ``` [time]: search-query-syntax.md#time-and-date-values --- docs/search-query-vulnerabilities.md --- title: "Vulnerability instance inventory" --- When viewing ((vulnerability instances)) on assets, use these keywords to ((search|search vulnerabilities)) and filter. ## Vulnerability ID {#vulnerability-ID} Use `id:` to filter by the ID field, the vulnerability's unique identifier written as a UUID. ```plaintext id:a124a141-e518-4735-9878-8e89c575b1d2 ``` ## Source {#vulnerability-source} Use `source:` to search or filter by the name of the source that reported the vulnerability. ```plaintext source:tenable ``` ## Severity {#vulnerability-severity} Use `severity:` to search the severity field. ```plaintext severity:info ``` ```plaintext severity:medium ``` ## Severity score {#vulnerability-severityScore} Use `severity_score:` to search the severity score. The term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext severity_score:<5.0 ``` ```plaintext severity_score:>=9.0 ``` ## Risk {#vulnerability-risk} Use `risk:` to search the risk field. ```plaintext risk:none ``` ```plaintext risk:critical ``` ## Risk score {#vulnerability-riskScore} Use `risk_score:` to search the risk score. The term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext risk_score:>7.0 ``` ```plaintext risk_score:=10.0 ``` ## Modified risk {#vulnerability-modifiedRisk} Use `has_modified_risk:` to find vulnerabilities whose risk was modified, either manually or by an alert rule trigger. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext has_modified_risk:true ``` ```plaintext has_modified_risk:1 ``` ```plaintext has_modified_risk:no ``` ## Category {#vulnerability-category} Use `category:` to search the category field. ```plaintext category:Local ``` ```plaintext category:Remote ``` ## Name {#vulnerability-name} Use `name:` to search the name field. ```plaintext name:"Cisco IOS Software DHCP Remote Code Execution Vulnerability" ``` ```plaintext name:"PHP < 5.3.12 / 5.4.2 CGI Query String Code Execution" ``` ## Description {#vulnerability-description} Use `description:` to search the description field. ```plaintext description:"The remote device is missing a vendor-supplied security patch." ``` ```plaintext description:"remote code execution" ``` ## Solution {#vulnerability-solution} Use `solution:` to search the solution field. ```plaintext solution:patch ``` ```plaintext solution:upgrade ``` ## CVE {#vulnerability-CVE} Use `cve:` to search the CVE field. ```plaintext cve:CVE-2021-44228 ``` ```plaintext cve:CVE-2016-2183 ``` ## KEV {#vulnerability-KEV} Use `kev:` to search by membership in a Known Exploited Vulnerability (KEV) list. ```plaintext kev:t ``` matches vulnerabilities that appear on a KEV list. You can also search a specific KEV list by name. - `kev:cisa` matches vulnerabilities listed as actively exploited in the [CISA Known Exploited Vulnerabilities Catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog). - `kev:vulncheck` matches vulnerabilities listed as actively exploited in the [VulnCheck Catalog](https://vulncheck.com/kev). - `kev:true` matches vulnerabilities in either list. ## Exploitable {#vulnerability-exploitable} Use `exploitable:` to search for exploitable vulnerabilities. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext exploitable:true ``` ```plaintext exploitable:1 ``` ```plaintext exploitable:no ``` ## CVSSv2 score {#vulnerability-CVSSv2} Use `cvss2_base_score:` and `cvss2_temporal_score:` to search the CVSSv2 fields, `cvss2_base_score` and `cvss2_temporal_score`. The term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext cvss2_base_score:>6.5 ``` ```plaintext cvss2_base_score:<=3.0 ``` ```plaintext cvss2_temporal_score:=10.0 ``` ```plaintext cvss2_temporal_score:<5.0 ``` ## CVSSv3 score {#vulnerability-CVSSv3} Use `cvss3_base_score:` and `cvss3_temporal_score:` to search the CVSSv3 fields, `cvss3_base_score` and `cvss3_temporal_score`. The term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext cvss3_base_score:>6.5 ``` ```plaintext cvss3_base_score:<=3.0 ``` ```plaintext cvss3_temporal_score:=10.0 ``` ```plaintext cvss3_temporal_score:<5.0 ``` ## EPSS score {#vulnerability-EPSS} Use `epss_score:` to search the EPSS score. The term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext epss_score:>0.5 ``` ```plaintext epss_score:<=0.1 ``` ```plaintext epss_score:=0.9 ``` ## Address {#vulnerability-address} Use `address:` to search the address field. ```plaintext address:192.168.0.1 ``` ## Transport {#vulnerability-transport} Use `transport:` to search the transport field. ```plaintext transport:tcp ``` ```plaintext transport:udp ``` ## Port {#vulnerability-port} Use `port:` to search the port. The term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). ```plaintext port:22 ``` ```plaintext port:443 ``` ## Operating system support status {#vulnerability-os-eol} Use `os_eol_expired:` to find vulnerabilities on assets based on whether their operating systems are End of Life (EOL). This field evaluates both the `os_eol` and `os_eol_extended` values and returns only vulnerabilities on assets with expired coverage. The term is a boolean value: - `true`, `t`, `1`, and `yes` represent _true_ - `false`, `f`, `0`, and `no` represent _false_ ```plaintext os_eol_expired:t ``` ```plaintext os_eol_expired:1 ``` ```plaintext os_eol_expired:no ``` ## Finding code {#vulnerability-finding-code} Use `finding_code:` to filter by the finding code field, the unique identifier for a finding. ```plaintext finding_code:rz-finding-internet-exposed-database ``` ## Finding name {#vulnerability-finding-name} Use `finding_name:` to search by finding name. ```plaintext finding_name:"Internet Exposed Database" ``` ## Finding risk {#vulnerability-finding-risk} Search the `Finding Risk` and `Finding Risk Score` fields with either numeric or keyword values. Risk score is an integer from zero through four, where `0` is Info level risk and `4` is Critical risk. ```plaintext finding_risk:"Critical" ``` ```plaintext finding_risk:2 ``` ## Detection timestamps (first detected at, last detected at) {#vulnerability-detection} Use `first_detected_at:` and `last_detected_at:` to search the timestamp fields `first_detected_at` and `last_detected_at`. The term supports the standard runZero [time comparison syntax][time]. ```plaintext first_detected_at:>2weeks ``` ```plaintext first_detected_at:<30minutes ``` ```plaintext last_detected_at:>1month ``` ```plaintext last_detected_at:2hours ``` ## Publication timestamps (published at) {#vulnerability-publication} Use `published_at:` to search the `published_at` timestamp field. The term supports the standard runZero [time comparison syntax][time]. ```plaintext published_at:>2weeks ``` ```plaintext published_at:<30minutes ``` ## Timestamps (created at, updated at) {#vulnerability-timestamps} Use the following keywords to search the vulnerability timestamp fields (`created_at`, `updated_at`, `suppressed_at`): * `created_at:` * `updated_at:` * `suppressed_at:` The term supports the standard runZero [time comparison syntax][time]. ```plaintext created_at:>2weeks ``` ```plaintext created_at:<30minutes ``` ```plaintext updated_at:>1month ``` ```plaintext updated_at:2hours ``` ```plaintext suppressed_at:<1day ``` ## Attributes {#vulnerability-attributes} Use `:` to search any vulnerability attribute. This search term supports numerical comparison operators (`>`, `>=`, `<`, `<=`, `=`). If the attribute name conflicts with an existing term, add the `_vulnerability.` prefix to disambiguate the query. ```plaintext plugin.hasPatch:true ``` ```plaintext severityID:3 ``` ```plaintext _vulnerability.state:REOPENED ``` Use the `has:` keyword to check whether a vulnerability has an attribute defined. Invert the `has` keyword with `not has:` to find missing fields. ```plaintext has:plugin.vpr.score ``` ```plaintext not has:output ``` ## Certificate fields {#vulnerability-certificates} Use the following keywords to search certificate-related fields. ### Certificate ID {#vulnerability-certificate-id} Use `certificate_id:` to filter by certificate ID. ```plaintext certificate_id:4e3a2b1c-5d6f-7a8b-9c0d-1e2f3a4b5c6d ``` ### Certificate type {#vulnerability-certificate-type} Use `certificate_type:` to search by certificate type. ```plaintext certificate_type:"x509" ``` ### Certificate serial {#vulnerability-certificate-serial} Use `certificate_serial:` to search by certificate serial number. ```plaintext certificate_serial:"01A23B45C" ``` ### Certificate public key {#vulnerability-certificate-public-key} Use `certificate_public_key:` to search by certificate public key. ```plaintext certificate_public_key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A..." ``` ### Certificate public key algorithm {#vulnerability-certificate-public-key-algorithm} Use `certificate_public_key_algorithm:` to search by certificate public key algorithm. ```plaintext certificate_public_key_algorithm:"ecPublicKey" ``` ### Certificate signature {#vulnerability-certificate-signature} Use `certificate_signature:` to search by certificate signature. ```plaintext certificate_signature:"abcdef1234567890" ``` ### Certificate signature algorithm {#vulnerability-certificate-signature-algorithm} Use `certificate_signature_algorithm:` to search by certificate signature algorithm. ```plaintext certificate_signature_algorithm:"rsaEncryption" ``` ### Certificate fingerprint (bkhash) {#vulnerability-certificate-bkhash} Use `certificate_fp_bkhash:` to search by certificate fingerprint (bkhash). ```plaintext certificate_fp_bkhash:"d2c7e8f9..." ``` ### Certificate fingerprint (SHA1) {#vulnerability-certificate-sha1} Use `certificate_fp_sha1:` to search by certificate SHA1 fingerprint. ```plaintext certificate_fp_sha1:"349eb7db55bbad9d7deabc5effdfd5521ed984a0" ``` ### Certificate fingerprint (SHA256) {#vulnerability-certificate-sha256} Use `certificate_fp_sha256:` to search by certificate SHA256 fingerprint. ```plaintext certificate_fp_sha256:"SHA256:Sc0pLUCvlNaGtu4Xy2fOTe1A6cC+KyU3x7xuN8+aLtA=" ``` ### Certificate subject {#vulnerability-certificate-subject} Use `certificate_subject:` to search by certificate subject. ```plaintext certificate_subject:"CN=example.com,O=ExampleCorp,C=US" ``` ### Certificate common name (CN) {#vulnerability-certificate-cn} Use `certificate_cn:` to search by certificate common name. ```plaintext certificate_cn:"example.com" ``` ### Certificate issuer {#vulnerability-certificate-issuer} Use `certificate_issuer:` to search by certificate issuing authority. ```plaintext certificate_issuer:"CN=Example CA,O=Example Corp,C=US" ``` ### Certificate subject key ID {#vulnerability-certificate-subject-key-id} Use `certificate_subject_key_id:` to search by certificate subject key ID. ```plaintext certificate_subject_key_id:"1234567890abcdef" ``` ### Certificate authority key ID {#vulnerability-certificate-authority-key-id} Use `certificate_authority_key_id:` to search by certificate issuing authority key ID. ```plaintext certificate_authority_key_id:"abcdef1234567890" ``` ## Suppression {#suppressed-vuln} Use `suppressed:` to search vulnerabilities by their suppressed or unsuppressed state. ```plaintext suppressed:t ``` matches suppressed vulnerabilities. ```plaintext suppressed:f ``` matches unsuppressed vulnerabilities. The special value `any` displays all records, regardless of suppression settings: ```plaintext suppressed:any ``` displays both suppressed and unsuppressed vulnerabilities. To find the user who performed the suppression, use: ```plaintext suppressed_by: ``` [time]: search-query-syntax.md#time-and-date-values --- docs/search-query-certificates.md --- title: "Certificate inventory" --- When viewing certificates, use these keywords to ((search|search certificates)) and filter. To learn how runZero collects certificates, see [Certificates](docs/certificates-inventory.md). ## General certificate fields ### Certificate ID {#certificates-ID} Use `id:` to filter by the ID field, the certificate's unique identifier written as a UUID. ```plaintext id:21e5252d-a6a5-467e-83ed-683657412dff ``` ### Certificate type {#certificates-type} Use `type:` to search for certificates by type. ```plaintext type:x509 ``` ### Name {#certificates-name} Use `name:` to search for certificates by name. ```plaintext name:example.com ``` ### Validity {#certificates-validity} Use `valid_from: