pdf-credential-harvest
What it does
This guide describes business-themed PDF lures that link to fake sign-in pages. It is for security awareness teams building training and mail filters.
When to use it
- ✓When a security team wants a training example of a fake shared-document notice.
- ✓When a mail team wants to review how PDFs with links are checked.
- ✓When an authorized awareness test uses a document lure.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/phisher/pdf-credential-harvest/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you help me create a training example of a fake shared-document PDF so staff learn the warning signs?”
5 new skills a week. 1 minute to read.
How it works
The agent describes the common features of such lures, such as fake sharing notices and links to login pages, and suggests training points and mail checks.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
PDF Credential Harvest
A weaponised PDF requires no exploit and no macro — it is a pixel-perfect document themed as a SharePoint sharing notification, Microsoft 365 voicemail, or similar business pretext. The PDF contains an embedded link (button or full-page overlay) pointing at a credential-capture landing page. Because the PDF itself is benign (no JavaScript, no embedded files), it passes most sandbox detonation.
Prerequisites
- Python
fpdf2orreportlabin the sandbox. - GoPhish campaign infrastructure configured (
gophish-campaign). - A credential-harvest landing page on a
lookalike-domain. - Microsoft-branded assets (logo SVG/PNG) for template fidelity.
- The
lure-deconflictionhandshake COMPLETE.
Quick Reference
# Generate a SharePoint-themed PDF with harvest link
python3 /workspace/gen_pdf_lure.py \
--template sharepoint \
--url "https://login.<LURE_DOMAIN>/auth?id={{.RId}}" \
--output /workspace/SharedDocument.pdf
# Strip metadata
exiftool -all= /workspace/SharedDocument.pdf
# Upload to GoPhish as email attachment
curl -sk -H "Authorization: Bearer $GOPHISH_API_KEY" \
-H 'Content-Type: application/json' \
"$GOPHISH_API/templates/" -d @/workspace/template_with_pdf.json
MITRE ATT&CK Mapping
| Technique | ID | Usage |
|---|---|---|
| Phishing: Spearphishing Attachment | T1566.001 | PDF delivered as email attachment |
| User Execution: Malicious File | T1204.002 | Victim opens PDF and clicks embedded link |
| Phishing for Information: Spearphishing Link | T1598.003 | Link leads to credential-capture portal |
1. SharePoint-Themed PDF
Mimics the "Someone shared a document with you" SharePoint notification:
from fpdf import FPDF
class SharePointPDF(FPDF):
def header(self):
self.set_fill_color(0, 120, 212) # Microsoft blue
self.rect(0, 0, 210, 45, 'F')
self.set_font("Helvetica", "B", 18)
self.set_text_color(255, 255, 255)
self.set_y(12)
self.cell(0, 10, "SharePoint", align="C")
HARVEST = "https://login.<LURE_DOMAIN>/auth?id=<TRACKING_ID>"
pdf = SharePointPDF()
pdf.add_page()
pdf.set_y(55)
pdf.set_text_color(0, 0, 0)
pdf.set_font("Helvetica", "B", 14)
pdf.cell(0, 10, "<SENDER_NAME> shared a file with you", ln=True, align="C")
pdf.ln(5)
pdf.set_font("Helvetica", "", 11)
pdf.multi_cell(0, 6,
"You have received a secure document via SharePoint Online. "
"Click the button below to view the document. You may be asked "
"to verify your identity.")
pdf.ln(10)
# Clickable button
pdf.set_fill_color(0, 120, 212)
pdf.set_text_color(255, 255, 255)
pdf.set_font("Helvetica", "B", 13)
bw, bh = 70, 12
bx = (210 - bw) / 2
pdf.set_xy(bx, pdf.get_y())
pdf.cell(bw, bh, "Open Document", align="C", fill=True, link=HARVEST)
pdf.ln(20)
pdf.set_text_color(120, 120, 120)
pdf.set_font("Helvetica", "I", 8)
pdf.cell(0, 5, "Microsoft Corporation - One Microsoft Way, Redmond, WA", align="C")
pdf.output("/workspace/SharedDocument.pdf")
2. M365 Voicemail-Themed PDF
Mimics a Microsoft 365 voicemail notification — high urgency, short content, single "Play Voicemail" button:
from fpdf import FPDF
HARVEST = "https://login.<LURE_DOMAIN>/auth?id=<TRACKING_ID>"
pdf = FPDF()
pdf.add_page()
pdf.set_fill_color(243, 242, 241)
pdf.rect(0, 0, 210, 297, 'F')
pdf.set_y(40)
pdf.set_font("Helvetica", "B", 16)
pdf.set_text_color(50, 50, 50)
pdf.cell(0, 10, "You have a new voicemail", ln=True, align="C")
pdf.ln(4)
pdf.set_font("Helvetica", "", 11)
pdf.set_text_color(80, 80, 80)
pdf.cell(0, 7, "From: <CALLER_NUMBER>", ln=True, align="C")
pdf.cell(0, 7, "Duration: 0:47", ln=True, align="C")
pdf.cell(0, 7, "Received: <DATE_TIME>", ln=True, align="C")
pdf.ln(12)
pdf.set_fill_color(0, 120, 212)
pdf.set_text_color(255, 255, 255)
pdf.set_font("Helvetica", "B", 13)
bw, bh = 60, 12
pdf.set_x((210 - bw) / 2)
pdf.cell(bw, bh, "Play Voicemail", align="C", fill=True, link=HARVEST)
pdf.output("/workspace/Voicemail.pdf")
3. Full-Page Click Overlay
Make the entire PDF page a single clickable link so any click anywhere opens the harvest URL — no button needed, just a page-sized annotation:
from fpdf import FPDF
HARVEST = "https://login.<LURE_DOMAIN>/auth?id=<TRACKING_ID>"
pdf = FPDF()
pdf.add_page()
# Render the visual content (logo, text, etc.)
pdf.set_font("Helvetica", "", 12)
pdf.cell(0, 10, "Loading secure document...", align="C")
# Full-page link annotation
pdf.link(0, 0, 210, 297, HARVEST)
pdf.outp
FAQ
Why do these lures work?
The guide says they look like normal business documents and contain no exploit, so basic checks may miss them.
What warning signs should staff know?
Unexpected sharing notices, links that do not match the company's domain and requests to sign in again.
Is it for authorized tests only?
Yes. The guide requires written approval and a recorded defender notice for any test use.
Details
Original description by the author
Weaponized PDF attachments that redirect victims to fake authentication portals (SharePoint, M365, Google Workspace) — no exploit, no macro, just a convincing document with embedded links to a credential-capture page.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #14122
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
feishu-doc
394kHelps your agent read, create, and edit Feishu cloud documents, including text, images, and tables, using the document tool.
feishu-drive
394kLets your agent browse, organize, and comment on files in a Feishu cloud folder that has been shared with the bot.
feishu-perm
394kHelps your agent check and change who can access a Feishu file, choosing the smallest permission that meets your request.