Skip to main content
Back to all investigations
SOC-023·Phishing·Severity: HighClassification: True PositiveEnvironment: Training Lab

Deep Analysis of a Weaponized HTML Phishing Attachment

Dissection of an obfuscated SVG/HTML attachment designed to steal Microsoft 365 credentials through credential harvesting and iframe cloaking.

EnvironmentREMnux Malware Analysis Workstation (Isolated)
ToolsREMnux, CyberChef, Wireshark, Sublime Text, MailHog
MITRE ATT&CKT1566.001, T1027.006
Published2026-08-28
Safety & Simulation Disclosure

Environment: Training Lab — This investigation was performed in an isolated training environment. Indicators, systems, accounts, and other data shown here are simulated or sanitized unless otherwise stated.

Executive Summary

An inbound email bypassed automated spam filters by embedding a weaponized SVG attachment named "Encrypted_Remittance_Advice.svg". Analysis revealed embedded JavaScript utilizing HTML smuggling to reconstruct a Base64-encoded login form impersonating a Microsoft 365 login screen. Exfiltration was directed to an adversary-controlled webhook endpoint.

Scenario & Trigger

An internal employee reported a suspicious email appearing to originate from accounts-payable@supplier-partner.com. The message urged immediate review of an overdue payment notice.

Suspicious Email Reported by User: "Payment Overdue #77102"2026-08-28 09:14:02 UTC
Source: User Phish Submission Button
ReportedBy="analyst_test@corp.local" Subject="Payment Overdue #77102" Attachment="Encrypted_Remittance_Advice.svg" SPF="Pass" DKIM="Fail"

Initial Evidence

  • Email Subject: "Payment Overdue #77102"
  • Sender: accounts-payable@supplier-partner.com (Display name: Partner Billing)
  • Return-Path: bounce@adversary-infra-test.org
  • Attachment: Encrypted_Remittance_Advice.svg (File size: 34.2 KB)
  • SPF: Pass (domain matched sender), DKIM: Fail (signature mismatch)

Investigation Methodology & Narrative

Step 1: Extracted raw RFC 822 email headers. Identified header discrepancies: the "From" header was spoofed to mimic a known vendor, but the Received hop originated from a known bulletproof hosting provider in Bulgaria.

Step 2: Isolated the SVG attachment on REMnux. Inspected raw XML. Located a <script> tag containing heavily obfuscated JavaScript using variable substitution and String.fromCharCode arrays.

Step 3: De-obfuscated script logic in CyberChef. Found the code dynamically constructs a Blob object of type "text/html" and invokes window.URL.createObjectURL() to trigger a fake login page inside the browser memory (HTML smuggling).

Step 4: Identified the credential submission POST endpoint: "hxxps://auth-office365-verify[.]com/gate.php".

Step 5: Checked proxy telemetry to ensure no corporate users submitted credentials to this gate URL.

Incident Timeline

Time (UTC)EventTelemetry SourceAnalyst Note
09:05:18 UTCEmail received by mail gatewayMail Gateway LogPassed heuristic scanner because SVG was categorized as graphic asset
09:14:02 UTCUser flagged email via phishing report buttonM365 Phish AlertUser exhibited high security awareness and avoided opening attachment
09:20:00 UTCAnalyst retrieved attachment into isolated REMnux sandboxSOC TriageStatic code dissection begun
09:42:15 UTCGate URL and adversary host identifiedCyberChef OutputDomain auth-office365-verify[.]com registered 48 hours prior
09:55:00 UTCPerimeter firewall block rule pushedDNS / Proxy FilterGlobal domain block established

Indicators of Compromise (IOCs)

TypeObserved ValueContextReputation
Domainauth-office365-verify.comAdversary credential harvesting portalMalicious
URLhxxps://auth-office365-verify[.]com/gate.phpCredential drop endpointMalicious
SHA-2564a6b29d1088d8b94f1c93a0b1f81d11f6c77bb28e23547f2dbab82199b0c7931Hash of Encrypted_Remittance_Advice.svgMalicious

Log Analysis & Telemetry Dissection

De-obfuscated HTML Smuggling SnippetREMnux / CyberChef
function buildPayload() {
  var b64Data = "PGh0bWw+PGhlYWQ+PHRpdGxlPlNpZ24gaW4gdG8geW91ciBhY2NvdW50PC90aXRsZT48L2hlYWQ+PGJvZHk+...";
  var byteCharacters = atob(b64Data);
  var byteNumbers = new Array(byteCharacters.length);
  for (var i = 0; i < byteCharacters.length; i++) {
    byteNumbers[i] = byteCharacters.charCodeAt(i);
  }
  var byteArray = new Uint8Array(byteNumbers);
  var blob = new Blob([byteArray], {type: "text/html"});
  var link = document.createElement("a");
  link.href = window.URL.createObjectURL(blob);
  link.download = "Document_Viewer.html";
  link.click();
}

Analysis Note: Demonstrates HTML smuggling: the script builds an HTML file in client memory from Base64, bypassing perimeter file inspection.

MITRE ATT&CK Mapping

IDTechniqueTacticObserved Evidence
T1566.001 Phishing: Spearphishing AttachmentInitial AccessWeaponized SVG sent via targeted email to internal user
T1027.006 Obfuscated Files or Information: HTML SmugglingDefense EvasionUse of Blob object and createObjectURL to drop secondary HTML artifact

Findings & Final Classification

True Positive targeted credential phishing campaign using advanced HTML smuggling inside an SVG container. Zero credential exposure verified.

Recommended SOC Response & Hardening

  • •Block domain auth-office365-verify.com at recursive DNS resolvers and web proxies.
  • •Configure email gateway to restrict or disarm active content (<script>) inside SVG attachments.
  • •Purge identical messages by Message-ID and Subject across corporate mailboxes.
  • •Send positive recognition note to reporting user to encourage vigilant reporting.

Analyst Reflection: What I Learned

• SVG files are XML documents capable of executing arbitrary JavaScript when rendered directly in modern browsers.

• DKIM header failures combined with differing Return-Path addresses provide high-confidence early signals of domain spoofing.

References & Standards