diff --git a/detection-rules/link_issuu_unsolicited.yml b/detection-rules/link_issuu_unsolicited.yml index d2a421070d7..c60d36d5944 100644 --- a/detection-rules/link_issuu_unsolicited.yml +++ b/detection-rules/link_issuu_unsolicited.yml @@ -4,11 +4,22 @@ type: "rule" severity: "medium" source: | type.inbound - and any(body.links, - // issuu link - .href_url.domain.root_domain == 'issuu.com' - and strings.icontains(.href_url.path, "/docs/") + and any(filter(body.links, + // issuu link + .href_url.domain.root_domain == 'issuu.com' + and strings.icontains(.href_url.path, "/docs/") + ), + ( + .href_url.query_params is null + // reduce alerting on newsletters, flyers, etc + // by ensure there are not any marketing focused query param keys like utm_source + or regex.imatch(.href_url.query_params, '^fr=[^\&]+$') + ) ) + + // to further reduce noise from newsletters/flyers inspect the number of imbedded images + and strings.icount(body.html.raw, '