Detecting QR Code Phishing with Email Security
Overview
QR code phishing (quishing) is a rapidly growing attack vector where malicious URLs are embedded in QR code images within phishing emails. Quishing incidents grew fivefold from 46,000 to 250,000 between August and November 2025, with credential phishing comprising 89.3% of detected incidents. Traditional email security filters struggle because QR codes cannot be read by humans or standard URL scanners, and when scanned, users typically use personal mobile devices that lack corporate security controls. Attackers have evolved to use split QR codes (two separate images), nested QR codes, and ASCII text-based QR codes to evade detection.
When to Use
Trigger phrases:
"detecting qr code phishing with email security"
"Detect and prevent QR code phishing (quishing) attacks that bypass traditional e"
When investigating security incidents that require detecting qr code phishing with email security
When building detection rules or threat hunting queries for this domain
When SOC analysts need structured procedures for this analysis type
When validating security monitoring coverage for related attack techniques
Prerequisites
- Email security gateway with image analysis capabilities
- Understanding of QR code structure and encoding
- Mobile device management (MDM) or mobile threat defense solution
- Security awareness training program
- SIEM platform for correlation and alerting
Key Concepts
This section covers key concepts for detecting qr code phishing with email security.
- Ensure all prerequisites are met before proceeding
- Follow the documented workflow steps in sequence
- Record results and any anomalies encountered during this phase
Why Quishing Works
- Bypasses URL Scanners: Traditional gateways scan text-based URLs but cannot decode image-embedded URLs
- Shifts to Unprotected Devices: Corporate email arrives on secured systems but QR scan occurs on personal mobile devices
- User Trust: QR codes are normalized in daily life (payments, menus, parking)
- Low Detection Rate: Only 36% of quishing incidents are accurately identified by recipients
Evasion Techniques (2025)
- Split QR Codes: QR code divided into two separate images that look benign individually (Gabagool PhaaS kit)
- Nested QR Codes: QR code within a QR code, with first scan leading to intermediate page
- ASCII QR Codes: QR rendered as text characters instead of images, bypassing image analysis (12% of attacks in Jan 2026)
- Styled/Artistic QR Codes: Custom-designed QR codes with logos that evade pattern matching
- PDF Attachment QR: QR code embedded in PDF attachment rather than email body
Detection Challenges
- Pattern-based detection faces trade-off: aggressive tuning causes false positives, cautious tuning causes misses
- Average similarity score of 0.209 between quishing and legitimate QR emails
- QR codes in image attachments require OCR and deep image processing
Workflow
# Example: IOC detection
import re
IOC_PATTERNS = {
"ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",
"domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",
"hash_md5": r"\b[a-f0-9]{32}\b",
"hash_sha256": r"\b[a-f0-9]{64}\b",
}
def extract_iocs(text: str) -> dict:
return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}
- Scope and authorize — confirm written authorization and define target boundaries
- Reconnaissance — enumerate targets, services, and potential attack surfaces
- Exploitation — attempt exploitation of identified vulnerabilities within scope
- Post-exploitation — document access level, lateral movement, and data exposure
- Report and remediate — compile findings with reproduction steps and fix recommendations
Step 1: Enable Image-Based Threat Detection
- Configure email gateway to scan embedded images for QR codes
- Enable OCR processing on image attachments (PNG, JPG, GIF, BMP)
- Deploy multimodal AI that combines image processing, OCR, and NLP analysis
- Configure PDF scanning to detect QR codes within attachments
- Set up detection for ASCII/text-based QR code rendering
Step 2: Configure QR Code URL Analysis
- Extract URLs from detected QR codes and submit to URL reputation services
- Apply same URL scanning policies to QR-extracted URLs as text-based URLs
- Enable real-time sandbox analysis for QR-decoded destination pages
- Configure time-of-click protection for QR-extracted URLs where possible
- Block known phishing domains extracted from QR codes
Step 3: Deploy Mobile-Side Protection
- Implement mobile threat defense (MTD) with QR code scanning capability
- Deploy Palo Alto ALFA or equivalent safe-by-design QR scanning
- Configure MDM policies to warn users before opening scanned URLs
- Enable corporate VPN/secure browser for QR-scanned destinations
- Block known credential harvesting domains at the mobile proxy level
Step 4: Build Detection Rules
- Alert on emails containing only an image and minimal text (common quishing pattern)
- Flag emails with QR code images from external first-time senders
- Detect urgency language combined with QR code presence
- Alert on emails impersonating IT/security team requesting QR scan for MFA setup
- Monitor for common quishing themes: MFA reset, document signing, voicemail notification
Step 5: Train Users on Quishing Recognition
- Update security awareness program to include QR code phishing scenarios
- Conduct quishing simulation campaigns using controlled QR codes
- Teach users to verify QR destination URLs before entering credentials
- Establish reporting process for suspicious QR code emails
- Distribute guidance on safe QR scanning practices
When NOT to Use
- You need to perform the attack to test detection (use performing-* skills)
- Task is about analyzing past incidents (use analyzing-* skills)
- You need to implement detection rules (use implementing-* skills)
- Task is about threat hunting proactively (use hunting-* skills)
- You don't have access to logs or monitoring data
- Task requires incident response (use IR skills)
Red Flags
- Performing actions without explicit written authorization from the asset owner
- Testing against production systems without a defined scope and rules of engagement
- Exceeding the authorized scope of the engagement
- Leaving persistent access mechanisms without explicit approval
- Causing denial-of-service on production systems during testing
Verification
- All steps executed successfully against a test environment before production use
- Output documented with screenshots or logs demonstrating expected behavior
- All exploited vulnerabilities documented with reproduction steps
- Scope boundaries confirmed — only authorized targets were tested
- Remediation recommendations included for every finding
Tools & Resources
- Barracuda Multimodal AI: OCR + deep image processing for QR detection
- Palo Alto ALFA: Safe-by-design QR code scanning assessment
- Microsoft Defender for O365: QR code detection in email images
- Proofpoint TAP: Image-based threat analysis with QR decoding
- Lookout/Zimperium: Mobile threat defense with QR scanning
Validation
- QR code phishing emails detected in controlled testing
- Split QR code and ASCII QR code evasion techniques caught
- QR-extracted URLs submitted to sandbox analysis
- Mobile devices alert on malicious QR destinations
- User reporting rate for quishing simulations exceeds 50%
- False positive rate for QR detection below 1%
Process
- Analyze the task requirements
- Apply domain expertise
- Verify output quality
Anti-Rationalization Table
| Rationalization |
Reality |
| "We are too small to be targeted" |
Automated attacks target everyone. Size does not matter. |
| "Security slows us down" |
A breach slows you down 100x more. Build security in from the start. |
| "We will fix it after launch" |
Vulnerabilities in production are exploited within hours. Fix before deploy. |
1---2name: detecting-qr-code-phishing-with-email-security3description: Use when detect and prevent QR code phishing (quishing) attacks that4 bypass traditional email security by embedding malicious URLs in QR code images5 within emails. Use when detecting and prevent qr code phishing (quishing) attacks6 that bypass.7domain: cybersecurity8subdomain: phishing-defense9tags:10- quishing11- qr-code12- phishing13- email-security14- image-analysis15- ocr16- mobile-security17version: '1.0'18author: oyi7719license: Apache-2.020atlas_techniques:21- AML.T005222- AML.T002423- AML.T003524nist_ai_rmf:25- MEASURE-2.826- MAP-5.127nist_csf:28- PR.AT-0129- DE.CM-0930- RS.CO-0231- DE.AE-0232category: cybersecurity33metadata:34 source: https://skillmd.com/skills/oyi77/detecting-qr-code-phishing-with-email-security35---3637# Detecting QR Code Phishing with Email Security3839## Overview40QR code phishing (quishing) is a rapidly growing attack vector where malicious URLs are embedded in QR code images within phishing emails. Quishing incidents grew fivefold from 46,000 to 250,000 between August and November 2025, with credential phishing comprising 89.3% of detected incidents. Traditional email security filters struggle because QR codes cannot be read by humans or standard URL scanners, and when scanned, users typically use personal mobile devices that lack corporate security controls. Attackers have evolved to use split QR codes (two separate images), nested QR codes, and ASCII text-based QR codes to evade detection.414243## When to Use44**Trigger phrases:**45- "detecting qr code phishing with email security"46- "Detect and prevent QR code phishing (quishing) attacks that bypass traditional e"474849- When investigating security incidents that require detecting qr code phishing with email security50- When building detection rules or threat hunting queries for this domain51- When SOC analysts need structured procedures for this analysis type52- When validating security monitoring coverage for related attack techniques5354## Prerequisites55- Email security gateway with image analysis capabilities56- Understanding of QR code structure and encoding57- Mobile device management (MDM) or mobile threat defense solution58- Security awareness training program59- SIEM platform for correlation and alerting6061## Key Concepts6263This section covers key concepts for detecting qr code phishing with email security.6465- Ensure all prerequisites are met before proceeding66- Follow the documented workflow steps in sequence67- Record results and any anomalies encountered during this phase68### Why Quishing Works691. **Bypasses URL Scanners**: Traditional gateways scan text-based URLs but cannot decode image-embedded URLs702. **Shifts to Unprotected Devices**: Corporate email arrives on secured systems but QR scan occurs on personal mobile devices713. **User Trust**: QR codes are normalized in daily life (payments, menus, parking)724. **Low Detection Rate**: Only 36% of quishing incidents are accurately identified by recipients7374### Evasion Techniques (2025)75- **Split QR Codes**: QR code divided into two separate images that look benign individually (Gabagool PhaaS kit)76- **Nested QR Codes**: QR code within a QR code, with first scan leading to intermediate page77- **ASCII QR Codes**: QR rendered as text characters instead of images, bypassing image analysis (12% of attacks in Jan 2026)78- **Styled/Artistic QR Codes**: Custom-designed QR codes with logos that evade pattern matching79- **PDF Attachment QR**: QR code embedded in PDF attachment rather than email body8081### Detection Challenges82- Pattern-based detection faces trade-off: aggressive tuning causes false positives, cautious tuning causes misses83- Average similarity score of 0.209 between quishing and legitimate QR emails84- QR codes in image attachments require OCR and deep image processing8586## Workflow8788```python89# Example: IOC detection90import re9192IOC_PATTERNS = {93 "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",94 "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",95 "hash_md5": r"\b[a-f0-9]{32}\b",96 "hash_sha256": r"\b[a-f0-9]{64}\b",97}9899def extract_iocs(text: str) -> dict:100 return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}101```1021031. **Scope and authorize** — confirm written authorization and define target boundaries1042. **Reconnaissance** — enumerate targets, services, and potential attack surfaces1053. **Exploitation** — attempt exploitation of identified vulnerabilities within scope1064. **Post-exploitation** — document access level, lateral movement, and data exposure1075. **Report and remediate** — compile findings with reproduction steps and fix recommendations108### Step 1: Enable Image-Based Threat Detection109- Configure email gateway to scan embedded images for QR codes110- Enable OCR processing on image attachments (PNG, JPG, GIF, BMP)111- Deploy multimodal AI that combines image processing, OCR, and NLP analysis112- Configure PDF scanning to detect QR codes within attachments113- Set up detection for ASCII/text-based QR code rendering114115### Step 2: Configure QR Code URL Analysis116- Extract URLs from detected QR codes and submit to URL reputation services117- Apply same URL scanning policies to QR-extracted URLs as text-based URLs118- Enable real-time sandbox analysis for QR-decoded destination pages119- Configure time-of-click protection for QR-extracted URLs where possible120- Block known phishing domains extracted from QR codes121122### Step 3: Deploy Mobile-Side Protection123- Implement mobile threat defense (MTD) with QR code scanning capability124- Deploy Palo Alto ALFA or equivalent safe-by-design QR scanning125- Configure MDM policies to warn users before opening scanned URLs126- Enable corporate VPN/secure browser for QR-scanned destinations127- Block known credential harvesting domains at the mobile proxy level128129### Step 4: Build Detection Rules130- Alert on emails containing only an image and minimal text (common quishing pattern)131- Flag emails with QR code images from external first-time senders132- Detect urgency language combined with QR code presence133- Alert on emails impersonating IT/security team requesting QR scan for MFA setup134- Monitor for common quishing themes: MFA reset, document signing, voicemail notification135136### Step 5: Train Users on Quishing Recognition137- Update security awareness program to include QR code phishing scenarios138- Conduct quishing simulation campaigns using controlled QR codes139- Teach users to verify QR destination URLs before entering credentials140- Establish reporting process for suspicious QR code emails141- Distribute guidance on safe QR scanning practices142143## When NOT to Use144145- You need to perform the attack to test detection (use performing-* skills)146- Task is about analyzing past incidents (use analyzing-* skills)147- You need to implement detection rules (use implementing-* skills)148- Task is about threat hunting proactively (use hunting-* skills)149- You don't have access to logs or monitoring data150- Task requires incident response (use IR skills)151152153## Red Flags154155- Performing actions without explicit written authorization from the asset owner156- Testing against production systems without a defined scope and rules of engagement157- Exceeding the authorized scope of the engagement158- Leaving persistent access mechanisms without explicit approval159- Causing denial-of-service on production systems during testing160161## Verification162163- All steps executed successfully against a test environment before production use164- Output documented with screenshots or logs demonstrating expected behavior165- All exploited vulnerabilities documented with reproduction steps166- Scope boundaries confirmed — only authorized targets were tested167- Remediation recommendations included for every finding168169## Tools & Resources170- **Barracuda Multimodal AI**: OCR + deep image processing for QR detection171- **Palo Alto ALFA**: Safe-by-design QR code scanning assessment172- **Microsoft Defender for O365**: QR code detection in email images173- **Proofpoint TAP**: Image-based threat analysis with QR decoding174- **Lookout/Zimperium**: Mobile threat defense with QR scanning175176## Validation177- QR code phishing emails detected in controlled testing178- Split QR code and ASCII QR code evasion techniques caught179- QR-extracted URLs submitted to sandbox analysis180- Mobile devices alert on malicious QR destinations181- User reporting rate for quishing simulations exceeds 50%182- False positive rate for QR detection below 1%183184## Process1851861. Analyze the task requirements1872. Apply domain expertise1883. Verify output quality189190## Anti-Rationalization Table191192| Rationalization | Reality |193|---|---|194| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |195| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |196| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |