Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may smuggle data and files past content filters by hiding malicious payloads inside of seemingly benign HTML files.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 65% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 67% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 18% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 50% | 0% |
| case-20 | ✗→✓ | ▲ Improved | 60% | 0% |
> Sub-technique of: T1027
Adversaries may smuggle data and files past content filters by hiding malicious payloads inside of seemingly benign HTML files. HTML documents can store large binary objects known as JavaScript Blobs (immutable data that represents raw bytes) that can later be constructed into file-like objects. Data may also be stored in Data URLs, which enable embedding media type or MIME files inline of HTML documents. HTML5 also introduced a download attribute that may be used to initiate file downloads.
Adversaries may deliver payloads to victims that bypass security controls through HTML Smuggling by abusing JavaScript Blobs and/or HTML5 download attributes. Security controls such as web content filters may not identify smuggled malicious files inside of HTML/JS files, as the content may be based on typically benign MIME types such as <code>text/plain</code> and/or <code>text/html</code>. Malicious files or data can be obfuscated and hidden inside of HTML files through Data URLs and/or JavaScript Blobs and can be deobfuscated when they reach the victim (i.e. Deobfuscate/Decode Files or Information), potentially bypassing content filters.
For example, JavaScript Blobs can be abused to dynamically generate malicious files in the victim machine and may be dropped to disk by abusing JavaScript functions such as <code>msSaveBlob</code>.
Platforms: Windows, Linux, macOS
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
The HTML file will download an ISO file from T1553.005 without user interaction. The HTML file is based off of the work from Stan Hegt
Supported Platforms: windows
powershell& "PathToAtomicsFolder\T1027.006\bin\T1027_006_remote.html"
Dependencies:
If Atomic Red Team tests are not applicable, manually verify the technique by:
Use Browser Extensions or Built-in Security Tools that:
Blob, URL.createObjectURL, and msSaveOrOpenBlobdownload attributes for suspicious payload generationApply Content Security Policy (CSP) headers to:
Enable or enforce enterprise browser security controls, such as:
Deploy browser sandboxing solutions that can isolate JavaScript execution environments and enforce behavioral policy restrictions
| Finding | Severity | Impact | | ----------------------------------- | -------- | --------------- | | HTML Smuggling technique applicable | Medium | Defense Evasion |
| CWE ID | Title | | ------- | ---------------------------- | | CWE-693 | Protection Mechanism Failure |
Other measured skills in the registry, with their headline benchmark lift.