Credential-less Discovery with Nmap
If the instance fails to identify a configuration item (CI) because of authentication failure, Discovery or Service Mapping can run selected Network Mapper (Nmap) commands with a MID Server to collect some basic information about the CI without using credentials.
Credential-less Discovery can create or modify host and application CIs when credentials are missing or misconfigured. If a credential-based Discovery is performed successfully after Nmap creates a CI, the system reconciles the information gathered from each type of discovery.
What Nmap can discover
- Perform reverse DNS name resolution to identify the host from the IPv4 address.
- Return the MAC address of the host if that host is on the same subnet as the host executing the Nmap command.
- Detect applications installed on a target host.
- Detect the operating system of a target host and the OS version.
Credential-less Discovery classifies routers and switches as hardware. It does not create or update CIs specifically for them.
Credential-less Discovery should only be used on known subnets where credentials are not viable and should not be used long term.
Nmap credential-less Discovery scans in cloud computing platforms
It is often against the terms of service to run Nmap scans to or from any resource within a cloud computing service such as Amazon Web Service, Microsoft Azure, IBM Cloud, or Google Cloud Platform. For example, the Amazon Web Service (AWS) environment is tightly regulated and requires the permission of AWS through the AWS Vulnerability/Penetration Testing Request form. Unauthorized tests against AWS services or AWS-owned resources are prohibited. For this reason, credential-less Discovery within a cloud computing service environment is not appropriate, and if a violation of their policy occurs, could result in expulsion from the service. Please contact your platform service provider for information on limitations or permission requirements for running Nmap.
Components installed with Nmap
| Component | Description |
|---|---|
| System property | The mid.discovery.credentialless.enable property enables or disables Nmap for all MID Servers on which Nmap is installed that are connected to the instance. This property is installed with the Discovery plugin and is enabled by default. It is configurable by a system administrator. |
| MID Server properties | These properties, from the MID Server Property [ecc_agent_property] table,
are not intended to be configured:
|
| Fields |
|
| Nmap MID Server capability | The Nmap
MID Server capabilities is added to the MID Server when Nmap is installed and removed
automatically when Nmap in uninstalled. Only MID Servers with this capability can
perform credential-less Discovery. A system administrator cannot add or remove
this capability manually. Self-hosted customers who have the maint role can modify
or delete the Nmap capability, but should not do so. Service Mapping doesn’t check for the presence of the Nmap capability and selects the MID Server based on the IP address only. To ensure that Service Mapping
doesn’t select a MID Server without the Nmap capability, install Nmap on all MID Servers assigned to the IP address ranges for which you want credential-less Discovery to be available. If Service
Mapping selects a MID Server for credential-less Discovery that doesn’t have Nmap capabilities, this error message appears in the map, at the site of the CI being discovered: Remarque : The ALL MID Server capability does not
include the Nmap capability. |
| Npcap | Npcap is Nmap's packet capture library for Windows. Npcap allows Nmap to
perform port scans quickly and to identify the family of the operating system
running on the target. Only one copy of Npcap is installed per MID Server
host. Because Npcap can be used by other applications, uninstalling Nmap does not automatically uninstall Npcap. You must uninstall Npcap manually, after determining that no other dependencies exist. |
| Patterns |
|
| MID Server script includes |
|
| System script include | The CredentiallessDiscoveryAjax script include runs on the instance and handles the installation and uninstallation of Nmap on Windows MID Servers, executed from UI actions on the form. Do not modify this script. |