Skip to main content
gmichailidis
Staff
Staff
November 1, 2022

Technical Tip: QR code URL detection

  • November 1, 2022
  • 0 replies
  • 6585 views

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.

 

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 defined in the AntiSpam Profile.

 

As_profile.PNG

 

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, which allows scanning a QR code URL in the email attachment. Only the 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

 

Example log:

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

 

QR_CODE.png


Note: If the QR code URL detection is not working as expected, open a ticket with Fortinet TAC and request Support (FortiMail device must have a current license) Technical Tip: How to create a ticket for Fortinet TAC.

Related article:
Technical Tip: FortiMail QR code URL scan is not identifying phishing emails

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.