FortiMail
FortiMail provides advanced, multi-layer protection against the full spectrum of email-borne threats
gmichailidis
Staff
Staff
Article Id 228594

Description

 

This article describes how to detect QR-coded URL categories in the body of an email.

 

Scope

 

FortiMail v7.2, v7.4, v7.6, v7.8.

 

Solution

 

QR codes can be scanned to direct users to websites associated with the codes.

It is possible to enable QR code URL scanning, which queries the websites associated with the QR codes on FortiGuard and takes action depending on the URL category.

Run the following configuration to enable this feature:

 

config antispam settings

    set qr-code-url-scan-option attachment-image inline-image

    set qr-code-url-scan-status enable

end

 

Note: Starting from v7.4.0, a new feature 'QR Code URL in Attachment' has been added, a QR code URL scan in the email attachment. Only inline QR codes were scanned before.

 

QR code URL scan.png

 

The attachment scan only applies to PDFs using the Antispam profile scan option for 'Scan PDF attachment'.

 

Screenshot 2025-10-27 151202.jpg

Sample Log:

The cross-search log below indicates that the URL was extracted from the QR code and identified as category: phishing.

 

QR_CODE.png