Stealth · ATT&CK v20
T1027.006 Obfuscated Files or Information: HTML Smuggling
A Stealth technique. Staying unnoticed: hiding, blending in with normal activity, disguising tools and files.
- T1027.006Technique ID
- StealthTactic
- 2Places taught
What the attacker does
The attacker hides a malicious file inside an HTML attachment or page. When the user opens it, script in the page rebuilds the file in the browser and saves it, so the mail gateway and proxy never see the payload itself.
How it shows up in the logs
- An .html or .htm attachment from an external sender (message trace, mail security logs).
- The browser writing a ZIP, ISO or executable to Downloads right after the HTML file was opened (Sysmon 11 by the browser process).
- That file opened next, and its child processes.
Questions to ask in triage
- Who received the HTML attachment, and who opened it?
- What file did it drop, and was it run?
- Block the sender and the dropped file's hash.
Read T1027.006 on attack.mitre.org
A sub-technique of T1027 Obfuscated Files or Information.
Where you meet it in CyberSim
Detection rules in the shift
Alerts tagged with this technique, the way Sentinel tags an analytics rule.
- User-reported email
In the theory
More Stealth techniques
- T1036.004 Masquerading: Masquerade Task or Service
- T1036.005 Masquerading: Match Legitimate Resource Name or Location
- T1070.004 Indicator Removal: File Deletion
- T1140 Deobfuscate/Decode Files or Information
- T1197 BITS Jobs
- T1218.005 System Binary Proxy Execution: Mshta
- T1218.010 System Binary Proxy Execution: Regsvr32
- T1218.011 System Binary Proxy Execution: Rundll32
- T1564.008 Hide Artifacts: Email Hiding Rules
- T1684.001 Social Engineering: Impersonation
Source: MITRE ATT&CK T1027.006, tactic TA0005.