Analyzing malicious onenote and html smuggling

From meltedinhex/analyst-ai-pack · View interactive version

Analyzing malicious onenote and html smuggling is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Analyzes two modern delivery techniques: malicious OneNote (.one) attachments with embedded payloads behind fake buttons, and HTML smuggling pages that reconstruct payloads in the browser from embedded blobs. Activates for requests to analyze a malicious OneNote file, detect HTML smuggling, or extra

How to use this skill

Skill file

Analyzing Malicious OneNote and HTML Smuggling

When to Use

"click to view" lure.

(HTML smuggling).

Do not use OneNote or a browser to open these files for analysis — that is exactly the

delivery mechanism. Carve the embedded data statically.

Prerequisites

Safety & Handling

Workflow

Step 1: For OneNote — carve embedded files

OneNote stores attached files in the document. Scan for embedded file signatures (MZ, script

headers, archives) and the FileDataStoreObject GUIDs, and carve them out.

python scripts/analyst.py carve sample.one

Step 2: For HTML smuggling — find the embedded blob

Look for large base64/Blob/Uint8Array constructions, data: URIs, and a JS routine that

builds a Blob and triggers a download (msSaveOrOpenBlob, anchor download, createObjectURL).

Step 3: Reconstruct the payload statically

Decode the embedded base64/byte array (and any XOR/char-code layer) to recover the payload as

data — without executing the page.

Step 4: Analyze and extract IOCs

Hash carved payloads, identify their type, defang any URLs, and route executables/scripts to the

appropriate analysis workflow.

Validation

Pitfalls

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.