DHCP
DHCP in Nzyme
DHCP is used to enrich asset inventory data. Additionally, all recorded DHCP traffic can be inspected and analyzed under the DHCP tab on the Assets page.
DHCPv6
DHCPv6 is the DHCP of IPv6. Nzyme records DHCPv6 transactions together with DHCP transactions and lists them on the
same tab. The Protocol of a transaction says which of the two it is, and the IP Version filter field selects
one of them with 4 or 6.
DHCPv6 differs from DHCP in a few ways that show in the data:
| Topic | DHCPv6 |
|---|---|
| Identifiers | Client and server identify themselves with a DUID, an identifier that a device creates once and keeps. A transaction shows the Client DUID and the Server DUID. The client DUID is a filter field, and the search finds both. |
| Messages | A client solicits, servers advertise, the client requests and the server replies. Nzyme treats the advertise message like an offer and the reply like an acknowledgement. |
| What is assigned | A transaction can assign several addresses, and it can delegate whole prefixes to a client that is a router. The Leases card of a transaction lists both with their lifetimes. Up to 16 addresses and 16 prefixes are recorded. |
| What is missing | DHCPv6 hands out no gateway and no subnet mask. Hosts get those from router advertisements. Many networks do not use DHCPv6 for addresses at all and only hand out DNS servers with it, or do not use it. |
| Relays | Behind a relay, the frames of a transaction carry the MAC address of the relay. Nzyme reads the MAC address of the client from the relay message when the relay names it. |
The transaction types are those of DHCP where they mean the same, plus Confirm,
Release, Decline and Inform.
A DHCPv6 transaction has a fingerprint as well, built from the options the client asks for and its vendor class. It is not comparable with a DHCP fingerprint, because the two protocols have different options. The fingerprints of an asset, fingerprint monitoring and its alert are about DHCP fingerprints only. The DHCPv6 fingerprint and the client DUID of an asset are identity attributes, see Asset Identity.
Rogue DHCPv6 servers are detected like rogue DHCP servers. See Spoofing.
DHCP Fingerprinting
Nzyme builds a fingerprint from every DHCP request a client sends. The fingerprint is a hash of the order of the DHCP options in the request and the vendor class the client announces. Option 51 (lease time) and option 54 (server identifier) are masked because they change with the server rather than the client. Clients that send no options produce no fingerprint.
The fingerprint describes the DHCP client implementation, not the device. Devices of the same type and operating system share fingerprints, so a fingerprint is not an identifier. What makes it useful is that the DHCP client of a device rarely changes: a change of the fingerprint of a known MAC address usually means that a different operating system or device is now using that address. This is one of the data points behind spoofing detection, see Spoofing, and together with the vendor class, the parameter request list and the client identifier it is an identity attribute of the asset, see Asset Identity.
Nzyme stores one fingerprint per asset and transaction type: the first fingerprint it saw for that type. The stored fingerprints are shown on the asset details page, and every DHCP transaction shows the fingerprint of that request.
DHCP Fingerprint Monitoring
Fingerprint monitoring is disabled by default and is enabled per tenant. While it is
enabled and an asset presents a fingerprint that differs from the one stored for the same transaction type, Nzyme raises
an ASSETS_DHCP_FINGERPRINT_NEW alert. The alert carries the MAC address, the transaction type, the stored
fingerprint and the new one. The stored fingerprint is kept, so an asset that permanently switched to a different
DHCP client raises the alert on every transaction until the new fingerprint is
accepted or the asset is excluded.
Some devices change their fingerprint as part of normal operation and would raise alerts over and over. Typical cases are:
- Dual-boot machines or machines that boot different images, where each operating system has its own DHCP client.
- PXE and network boot, where the firmware requests an address before the operating system does.
- Virtualization hosts that pass a MAC address through to different guests.
- Phones and IoT devices whose firmware sends different option sets depending on the connection state.
The Assets with Flaky DHCP Fingerprints table on the DHCP tab of the Assets page lists all assets that presented more than one fingerprint for the same transaction type in the selected time range, ordered by the number of changes. It shows the transaction types involved, all fingerprints the asset used, how many transactions were recorded and whether an exclusion already covers the asset. Use it to decide which assets to investigate and which to exclude.
Accepting a New Fingerprint
When the change is legitimate and permanent, for example after an operating system was replaced, accept the new fingerprint. The Accept DHCP Fingerprint quick action on the details page of the alert stores the new fingerprint as the fingerprint of the asset for the transaction type of the alert.
- The previous fingerprint is replaced. If the asset presents it again, the alert is raised for it.
- Only the transaction type of the alert is changed. An asset that changed its fingerprint for several transaction types raises one alert per type, and each is accepted on its own.
- Accepting a fingerprint requires the Manage Ethernet Assets permission.
Accept a fingerprint for an asset that changed once. Use an exclusion for an asset that keeps switching between fingerprints.
Exclusions
An exclusion stops the ASSETS_DHCP_FINGERPRINT_NEW alert for the assets it covers. Fingerprints of excluded
assets are still recorded and updated, so the DHCP transaction data and the flaky fingerprints table stay complete.
Only the alert is suppressed.
An exclusion consists of:
| Criterion | Description |
|---|---|
| MAC address | Either a full MAC address like AA:BB:CC:DD:EE:FF, which covers one asset, or a vendor prefix like AA:BB:CC, which covers every asset of that vendor. Use a prefix for a device class that is known to change its fingerprint. |
| Transaction types | Optional. Limits the exclusion to changes of the Initial, Renew, Reboot or Rebind fingerprint. Leave all types unselected to cover every transaction type. |
The exclusion form previews which known assets the criteria cover. Assets that are discovered later and match the criteria are covered as well. Every exclusion counts how often it matched and when it matched last, so you can see whether it is still needed.
You can find exclusions on the DHCP Exclusions tab of the Assets page. Use Exclude in the flaky fingerprints table to open the form with the MAC address of that asset filled in. An exclusion can be disabled without deleting it; a disabled exclusion is kept but not applied.
Users with the Manage Ethernet Assets permission can create, edit, enable, disable and delete exclusions. All users with access to the tenant can view them.
Enabling Monitoring
Users with the Manage Ethernet Assets permission can turn fingerprint monitoring on and off on the Settings tab of the Assets page. See Assets.
| Key | Default | Description |
|---|---|---|
| DHCP Fingerprint Monitoring Enabled | false | Raise ASSETS_DHCP_FINGERPRINT_NEW alerts when the DHCP fingerprint of an asset changes. Fingerprints are still recorded when this is disabled. |
Server Responses
Every offer and acknowledgement a server sends in a transaction is recorded with the configuration it hands out: subnet mask, gateways, DNS servers, domain name, lease time and the server identifier. The transaction page lists them under Server Responses and marks the server the client chose. Rogue DHCP server detection is built on this data; see Spoofing.
More than one server answering a transaction is normal with redundant DHCP servers. A server that you do not recognize may be a rogue server.
DHCP Transaction Types
Nzyme groups the messages of a DHCP exchange into a transaction and classifies it by the request the client sent:
| Type | Description |
|---|---|
Initial |
The client has no address and goes through the full discover, offer, request and acknowledge exchange. |
Renew |
The client asks the server it has a lease from to extend the lease. |
Rebind |
The client could not reach its server and asks any server to extend the lease. |
Reboot |
The client comes back and asks to keep the address it had before. |
DHCP fingerprints are stored separately for each type, because a client sends different options in each of them.
Configuration
The most important DHCP configuration takes place in your Nzyme tap configuration files:
Both sections are required.
| Variable | Description |
|---|---|
pipeline_size |
The tap process moves data internally using in-memory pipelines. You may have to increase this value if you experience high throughput of DHCP segments. |
A tap tracks up to 20,000 open transactions per protocol at a time and gives up a transaction that is still open ten minutes after it started. A flood of requests from made-up clients could otherwise fill its memory. What is left out is counted in the metrics of the tap.