Havoc Stager Masquerades as Microsoft Defender DLP in Brazilian Invoice Campaign

· Original article ↗

Summary

LevelBlue SpiderLabs details a Brazilian NF-e-themed campaign in which an unsigned, Microsoft-branded MSI installs an endpointdlp.dll stager that fetches Havoc at runtime. Analysis links nine stager variants and provides a YARA rule and hunting guidance.

Key points

  • The NF-e-themed ZIP contained an obfuscated 503-byte VBScript and an unsigned MSI, rather than the PDF and signed XML expected in a legitimate invoice package.
  • The MSI drops a signed Microsoft mpextms.exe alongside the unsigned endpointdlp.dll stager, which uses DLL side-loading and downloads the Havoc demon at runtime.
  • In a sandbox, the stager made GET /stage/ and POST /api/v2/telemetry/diag requests using a Microsoft Delivery Optimization user-agent.
  • LevelBlue identified nine stager variants with shared exports, imports, and spoofed version information; byte-level similarities support a common builder.
  • The stager persists through the HKCU Environment UserInitMprLogonScript value, which launches mpextms.exe again at logon.
  • Recovered Havoc configurations showed encrypted C2 traffic and options including sleep masking, indirect syscalls, and AMSI/ETW patching.
  • The researchers provide a YARA rule for the stager and advise hunting for its network behavior, unsigned Microsoft-branded DLLs, and the persistence value.

Article Details

Attack Vectors
  • A Brazilian NF-e-themed email lure delivers a ZIP containing a 503-byte VBScript and an MSI instead of the PDF and signed XML expected in a legitimate invoice package.
  • The VBScript conceals the download and execution steps, fetches the MSI with curl, and runs it silently with msiexec. The MSI drops an unsigned endpointdlp.dll beside the signed mpextms.exe, which loads the DLL.
  • The stager communicates with C2 over HTTP, downloads Havoc demon code at runtime, and sets HKCUEnvironmentUserInitMprLogonScript to relaunch mpextms.exe at logon.
Defensive Notes
  • Investigate any non-empty HKCUEnvironmentUserInitMprLogonScript value.
  • Verify Authenticode signatures on Microsoft-named binaries arriving in downloaded archives; the article notes that the malicious stager is unsigned.
  • Hunt for GET requests to /stage/<32-hex> using the Microsoft-Delivery-Optimization/10.1 user-agent, followed by POST traffic to the reported telemetry paths.
  • The published YARA rule targets the stager’s spoofed VERSIONINFO, absent signature, import hashes, and staging and telemetry strings.

Indicators of compromise

TypeIndicatorContext
DOMAIN49xb5hoiqsr[.]comDomain serving the malicious update.zip delivery campaign.
DOMAINe4wxbrg5277[.]comDomain serving the malicious update.zip delivery campaign.
DOMAINjh038x18gy9[.]comDomain serving the malicious update.zip delivery campaign.
IPV4143[.]198[.]183[.]46Havoc demon C2 address recovered from a production sample.
IPV4194[.]59[.]31[.]192Stager C2 address used for the reported staging and telemetry requests.
IPV4194[.]62[.]55[.]81C2 address in the reported live-target demon build.
MD507d0d4c580ac76ac3ffb63353c9b6b85Stager-family import hash identified in the article’s detection guidance.
MD57d384886720c8e576c3ca9d68cb5f08bStager-family import hash identified in the article’s detection guidance.
SHA25600d979bdb1b29b2859f2120580f101f40e8e13de0b3b7bc29675e2c31098a03cHash listed for a member of the related malicious stager family.
SHA2561d09357b6a096fdc35cd5c873eed15665d6b3c879d20c8cf01e6bca0005512cfHash listed for a member of the related malicious stager family.
SHA2561fc515870c681bf3e1b7947e2248bbcfe9918db2978117e91134de20bd42fd6aHash listed for a member of the related malicious stager family.
SHA2562cd88d5280a61714836f5f07a16df190911c5b952af2998dbbcda910b3b1c494Hash listed for a member of the related malicious stager family.
SHA25631f27fdc14505e0cebe360579e1ba0326762cbe0948e50b5f920da51fdef1b51Hash listed for a standalone Havoc demon executable.
SHA2563578e1588846a805ee806fa6151b5801d0acb88879a93d378300e2ee7665736eHash identified for the malicious NF-e lure ZIP.
SHA256389a6a2007e4f06d16beac0ec2cb01391f80ad5e392343386cae3ceb82ec1502Hash listed for a standalone Havoc demon executable.
SHA2566b22df0de0a40ff372973639c8a1974cfb75084b8e3b85f9ab9038e0acce43c0Hash listed for a standalone Havoc demon executable.
SHA2566dc41555455860b8584d761303a7ae5487117944e2a24d74fa3e91ad8f840077Hash listed for a standalone Havoc demon executable.
SHA2567d4fb94f6b4623690daea67ed52e97705cb102f443988ff605f2a9c4898244dcHash identified for the malicious endpointdlp.dll stager recovered from the MSI.
SHA2569eefc66d1fca7f18a91f49affb569b41bcde043f91567e7f5cc9f2016aeddf8cHash listed for a standalone Havoc demon executable.
SHA256ae8cded2822c56dd85f52bba09d9285cb2db3e6317227530b848ea143afb067cHash listed for a standalone Havoc demon executable.
SHA256afd5f1ed45a9867daf3bc64152cef460a06b164c8183e490db39146d4749a82cHash listed for a stager in the alternate update.zip delivery campaign.
SHA256c958de72460256c9c1cceef527d880862e8bc29e3ae4e2d478af97dcafd41180Hash listed for a standalone Havoc demon executable.
SHA256ced6b0f4441085bb9c54a32da9ab4ba14c6e21daf6e34fd61d54923f87baacd0Hash listed for a member of the related malicious stager family.
SHA256d24216d0b82747e9406a696da76960183926145f9621947e34a772137f5e22a6Hash identified for the malicious MSI in the NF-e delivery chain.
SHA256d2c637235d62ad766f961f9b8563f6a0e6db2ec0a343470385991b4df826afbcHash listed for a member of the related malicious stager family.
SHA256f2357e70f359803d42298d016c7e1631e9fba6c7e01e5df1eb8fb9ff7eb3df4eHash identified for the VBScript in the NF-e delivery chain.
SHA256fb3630822b70bacb56aa4cec29b5a0e3e9acb3920809e70310a4003385a6d34aHash listed for a member of the related malicious stager family.
URLhxxps[:]//storage[.]googleapis[.]com/nodesdownload/update.msiSpecific Google Cloud Storage URL used by the lure’s VBScript to download the malicious MSI.
URLhxxps[:]//thomphon[.]com/api/v1/telemetryReported C2 telemetry endpoint for a sibling stager in the update.zip delivery campaign.
URLhxxps[:]//tr[.]ee/lAZ5yiURL crawler observed this URL serving the malicious invoice ZIP.

MITRE ATT&CK

Malware

Products

Tools

Countries

Industries