Fixes missing blacklist (#8841)

This commit is contained in:
Matteo Biscosi 2024-12-02 18:34:00 +01:00
parent dc4e2d1895
commit 0ebe2b9e88
5 changed files with 22 additions and 159 deletions

View file

@ -382,7 +382,7 @@ end
-- #################################
function alert_utils.formatFlowAlertMessage(ifid, alert, alert_json, add_score, local_explorer)
function alert_utils.formatFlowAlertMessage(ifid, alert, alert_json, add_score, local_explorer, exclude_remediation_link)
local msg
local alert_risk
@ -432,7 +432,7 @@ function alert_utils.formatFlowAlertMessage(ifid, alert, alert_json, add_score,
end
-- Add the link to the documentation
if alert_risk and alert_risk > 0 then
if alert_risk and alert_risk > 0 and not exclude_remediation_link then
msg = string.format("%s %s",
msg, flow_risk_utils.get_remediation_documentation_link(alert_risk, alert_src))
local info_msg = alert_utils.get_flow_risk_info(alert_risk, alert_json)