Knowledge base

Discovery Scan Configuration

Last Updated: 2026-11-17



Purpose

This article serves to improve understanding of the role that discovery scans play in enhancing the security and resilience of an organization's digital infrastructure. Its aim is to provide a comprehensive overview of the objectives and configurations of Asset Discovery.

Introduction

Discovery scans serve as the foundation for proactive cybersecurity measures. They assume a pivotal role in asset identification within the network, irrespective of the underlying mechanisms, whether network, cloud, or Docker images. A holistic view of the digital landscape is obtained through these scans, facilitating the groundwork for more comprehensive assessments. This can be achieved through various mechanisms, including network, cloud, and Docker image scans. Each method offers a distinct perspective on asset identification.

Two types of scans can be performed:

  • Asset Discovery scans

  • Assessment scans

It is recommended to perform discovery scans to get an overview of the assets on the network and assessment scans to understand the vulnerabilities on those assets.

Asset Discovery

Asset Discovery enumerate the hardware and software assets within an organization's network infrastructure. The goal of Asset Discovery is to provide a comprehensive view of an organization's IT assets to be used when setting up the Vulnerability Scanning.

Asset Discovery is an essential component of network security and risk management, and is performed with the help of automated tools that scan an organization's network to provide a detailed report of all detected assets.

Docker Image Discovery

A Docker image is a file used to execute code in a Docker container. Docker images act as a set of instructions to build a Docker container, like a template. Docker images also act as the starting point when using Docker. An image is comparable to a snapshot in virtual machine (VM) environments.

Docker Image Discovery enumerates docker images within a registry using provided credentials and the Docker Registry HTTP API V2.


Prerequisite

Prior to running a Docker discovery, make sure you have created the Docker credentials.

Running the Scan

A Docker Registry discovery function retrieves image information from a private Docker Registry such as name, OS, architecture and size.

The discovery finds one image for each repository in the registry: the image with the latest tag or, if the repository has no latest tag, the image with the last tag in the list the registry returns. Images with other tags are not discovered.

To perform a Docker discovery:

  1. Go to Configuration > Scan configurations in the Main Menu.

  2. Click the + button in the bottom right corner.

  3. Select Docker image discovery.

  4. Select the Credentials of the registry.

    Portal_Scanning_DockerDiscovery_New.png
  5. Choose a scanner.

  6. Click Add to save the configuration.

  7. Select the scan configuration in the list and click Scan now Icon_scan_now_selection_bar.png in the toolbar at the bottom of the page.

    Portal_Scanning_Configurations_SelectionBar.png
  8. View the scan status under Scans in the Main Menu.

  9. View the discovered images under Assets > Assets. Docker images have the source Cloudsec.

    Portal_Scanning_DockerDiscovery_Assets.png


Network Discovery

A Network Discovery scan identifies and lists all the hardware and software assets within an organization's network infrastructure by sending packets over multiple protocols such as ARP/ICMP/TCP/UDP. If the scanner gets anything back from the target, the target is confirmed to be alive, unless a packet filter leaves that response out.

Setting up a Network Discovery Scan

To configure a Network discovery scan:

  1. Go to Configuration > Scan configurations in the Main Menu.

  2. Click the + button in the bottom right corner.

  3. Select Network discovery.

    Portal_Scanning_NetworkDiscovery_New.png
  4. Enter a Name for the configuration.

  5. Enter the Targets, one per line. A target can be an IPv4 or IPv6 address, a hostname, a CIDR range or an IP range.

  6. Choose a scanner.

  7. Click Add to save the configuration.

Setting ports manually

You can set the ports for a saved Network Discovery scan configuration.

  1. Open the scan configuration.

    Portal_Scanning_NetworkDiscovery_Settings.png
  2. In Port scanning, select Use custom ports.

  3. Enter the TCP ports to scan as a comma-separated list without spaces: single ports (22,25), ranges (20-40), the default ports (def), or none to scan no TCP ports. Add an exclusion such as !25 to remove a port from the others. On the Outpost24 hosted platform, a configuration can scan at most 51 TCP ports.

    Portal_Scanning_NetworkDiscovery_Ports.png
  4. Click Save.

Cloud Discovery

A Cloud Discovery scan lists the resources in your AWS or Azure environments through the cloud provider APIs, using the credentials you provide. On AWS this includes instances, load balancers and CloudFront distributions. It sends no network traffic to the hosts.


Run the Cloud Discovery scan

To configure a Cloud discovery scan:

  1. Go to Configuration > Scan configurations in the Main Menu.

  2. Click the + button in the bottom right corner.

  3. Select Cloud discovery.

  4. Select the Credentials. The configuration gets the name of the credentials. You can rename it in its settings later.

  5. For AWS credentials, select the Regions to discover. For Azure credentials, select the Subscriptions to discover.

    Portal_Scanning_CloudDiscovery_New.png
  6. If shown, choose a scanner.

  7. Click Add to save the configuration.

  8. Select the scan configuration in the list and click Scan now Icon_scan_now_selection_bar.png in the toolbar at the bottom of the page.

    Portal_Scanning_Configurations_SelectionBar.png
  9. View the scan status under Scans in the Main Menu.

    Portal_Scanning_CloudDiscovery_Scans.png
  10. View the discovered assets under Assets > Assets.

    Portal_Scanning_CloudDiscovery_Assets.png


Reporting settings

Network Discovery and Cloud Discovery scan configurations have a Reporting Settings tab. It controls which tags the found hosts get, whether they become assets and, for Network Discovery, which responses are reported. Docker Image Discovery has no Reporting Settings tab and always creates an asset for each image it finds.

Portal_Scanning_DiscoveryScanConf_ReportingSettings_Network.png

Tags

Tags are applied when the scan results are imported, and only when Create assets for found machines is selected, which is always the case in a workflow.

  • Add the following tags to discovered assets: the tags are added to every asset the scan finds. Tags that are already on an asset stay.

  • Set the following tags to only exist on discovered assets: the tags are removed from every asset in your account, and then added to the assets the scan found. The tag then marks the result of the latest scan that found hosts.

Set the following tags to only exist on discovered assets removes the tags from all assets in your account, including assets tagged by hand or by other scan configurations. Use a tag here that no other configuration or user relies on.

If a Network Discovery scan finds no live hosts, the tags in Set the following tags to only exist on discovered assets are removed from all assets and added to none. If a Cloud Discovery scan finds nothing, the tags stay where they were.

When you set more than one tag, the tags are only removed from assets that carry all of the listed tags.

External tags

Cloud Discovery only. A Cloud Discovery scan can copy the tags of your cloud resources onto the discovered assets.

  • Turn on Import external tags from the environments target by discovery to import the tags.

  • In Only include the following tag keys from external environments, select tags whose keys you want to import. Only the key of the selected tag is used, and it must match the cloud tag key exactly, including case. If no tag with that key exists yet, create one with Create new. Leave the field empty to import all tags.

Each imported tag is added to the asset as key:value. Imported tags are not removed from the asset when the tag is removed or changed in the cloud environment. External tags are only imported when Create assets for found machines is selected.

Portal_Scanning_DiscoveryScanConf_ReportingSettings_Cloud.png

Asset creation

  • Create assets for found machines: each live host becomes an asset, or the existing asset is updated. The tags above are applied.

  • Only discover hosts but do not create assets, the results will only be visible in the scans view.: the results are shown in the scan details in Scans only. No assets are created or updated, and no tags are added or removed.

A discovery scan in a workflow always creates assets, because the assessment scan after it needs them. Asset creation is therefore only shown on discovery scan configurations outside a workflow.

Packet filter (advanced usage)

Network Discovery only. The packet filter limits which responses the scan reports. Enter a Berkeley Packet Filter (BPF) expression in Capture only packets that match the filter. The scanner still sends its probes and receives all responses, but only responses that match the expression are reported and can mark a host as alive. Responses that do not match are left out of the results.

Why use a packet filter

Clearing a protocol on the Settings tab only stops the scanner from sending probes with that protocol. A response with that protocol can still mark a host as alive. For example, with ARP cleared, the scanner still sends ARP requests to reach hosts on the local subnet, and the ARP reply marks the host as alive. To leave ARP replies out of the results, use the filter not arp.

BPF expression syntax

Refer to BPF expression syntax for the syntax. The expression is checked when you save the scan configuration, and an invalid expression cannot be saved.

  • The filter applies to every response, including the DNS answers used to resolve hostnames. A filter that excludes DNS, such as tcp, also leaves the hostnames out of the results.

  • tcp[...] and icmp[...] only look inside IPv4 packets, so an IPv6 response never matches them. The filter tcp[13] & 0x04 != 0 leaves out every IPv6 response, and not (tcp[13] & 0x04 != 0) lets every IPv6 response through.

  • A host that only sends responses that do not match is probed until the scan time limit, so a filtered scan can take longer.

Examples

⚙️

Example 1

Scan results without a packet filter.

Portal_Scanning_DiscoveryScanConf_Example1.png


⚙️

Example 2

Scan results with the filter not (tcp[13] & 0x04 != 0). TCP RST packets are ignored, so hosts are reported from their other responses only.

Portal_Scanning_DiscoveryScanConf_Example2.png
⚙️

Example 3

Scan results with the filter tcp[13] & 0x04 != 0. Only TCP RST packets are reported, so only hosts that answered with a TCP reset are listed.

Portal_Scanning_DiscoveryScanConf_Example3.png

Additional resources

Berkeley Packet Filter [2]


Adding Tags to Assets

Assets can be tagged in the same way as other objects.

To add tags to an asset:

  1. Go to Assets > Assets.

  2. Right-click the asset and select Edit tags.

    Portal_Asset_Context_Menu_EditTags.png
  3. Select the tags to add. To create a tag, type it in Search tags as key:value or key and click Create new tag. Then click Submit.

    Portal_Asset_EditTags_Dialog.png

For more information, see Tags.

Tag Replacement of Target Group Settings

  • If you used to have the Add Found Targets To Target Group checkbox you would add a tag representing that target group to Add the following tags to discovered assets. See Reporting settings section.

  • If you used to have the Empty Target Group Before Adding checkbox you would only add the tag representing that target group to Set the following tags to only exist on discovered assets.


Reference

  1. BPF Expression Syntax - https://biot.com/capstats/bpf.html

  2. Berkeley Packet Filter - https://en.wikipedia.org/wiki/Berkeley_Packet_Filter