Users may observe frequent system event logs on the FortiGate with the log description 'Device vulnerability lookup on FortiGuard':
date=2024-09-04 time=16:36:05 eventtime=1725438965395795389 tz="+0800" logid="0100020150" type="event" subtype="system" level="notice" vd="root" logdesc="Device vulnerability lookup on FortiGuard" mac="11:22:33:44:55:66" ip=172.16.116.100 vendor="Yealink" product="voip_phone" model="SIP-T46S" versionmin="66.84.0.125" versionmax="N/A" vulnresult="unknown" vulncnt=0
 This log entry is generated when the FortiGate performs an IoT device vulnerability check by querying FortiGuard for information on connected endpoints. These queries are triggered by the device detection feature being enabled on the client-facing interface.  In networks with many devices, especially phones or unmanaged IoT devices, this lookup can occur frequently, leading to high log volume. To reduce or eliminate these logs, disable device detection on the interface where the affected devices are connected: Go to Network -> Interface. Edit the interface (such as internal, LAN, or VLAN) where the devices are connected. Disable the setting Device Detection. Select OK to apply the change.
This will stop the FortiGate from querying FortiGuard for device vulnerability lookups and prevent these specific logs from being generated.
  Memory issue caused by excessive Device Vulnerability Queries On affected firmware versions, including FortiOS version 7.4, an excessive number of device vulnerability queries to FortiGuard can cause the 'locallogd' process to crash repeatedly, exhaust system memory resources, and force the device into conserve mode.Â
Note: The device detection feature is designed for interfaces directly connected to endpoint LAN networks. If device detection is enabled on an interface or VLAN connected to a downstream router, a large number of entries could be created with the other router's MAC address, making it more likely to trigger a memory or query issue on FortiGate. It is strongly recommended to disable device detection on interfaces connected to downstream routers.
Resolution:
High memory use from FortiGuard device vulnerability lookup causing conserve mode is tracked by Issue ID 1228992 and resolved in the following FortiOS versions:
Workaround: If an immediate upgrade is not possible, use the following methods to reduce the frequency of alerts and alleviate the memory issue: Disable device detection on interfaces where it is not required. See Technical Tip: How to disable the device database.
Manually clear the device detection database and reduce the discovered-device timer to remove stale device entries sooner.
diagnose user device clear
config system settings
   set discovered-device-timeout <days>
end
Disable network-monitoring on the switch controller if managed FortiSwitch devices are introducing redundant endpoint data, see Technical Tip: Collect device parameters of all the connected devices in the network from FortiGate:
config switch-controller network-monitor-settings
  set network-monitoring disable
end
Related document:
20150 - LOG_ID_DEV_VUNL_FTGD_LOOKUP |