Added suspicious ICMP payload content

Fixes #7049
This commit is contained in:
Luca Deri 2022-12-18 13:18:56 +01:00
parent e3be9b993a
commit f73c3b32f1
5 changed files with 38 additions and 4 deletions

View file

@ -355,8 +355,15 @@ end
local info = value["info"]
if((info == "") and (value.icmp ~= nil)) then
if((info == "") and (value.icmp.entropy ~= nil)) then
local e = value.icmp.entropy
local diff = e.max - e.min
info = icmp_utils.get_icmp_type(value.icmp.type, true)
if(icmp_utils.is_suspicious_entropy(e.min, e.max)) then
info = info .. " <span class=\"badge bg-warning\">".. i18n("suspicious_payload") .."</span>"
end
end
if isScoreEnabled() then