Emotet — Office (OOXML) / .XLSM malware analysis

Static analysis result for SHA-256 16f4c242270f7969…

MALICIOUS

Office (OOXML) / .XLSM

3.50 MB Created: 2021-05-10 15:56:08 UTC Authoring application: Microsoft Excel 15.0300
MD5: f07a3afac91da07c8a219930c852ca6d SHA-1: 46b268ed412a37b509212bb0188ee1d24e56a583 SHA-256: 16f4c242270f79698e9e6aa26b928383c3cda6f9d0050a2f4fe76a4894ae0d81
370 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1105 Ingress Tool Transfer T1204.002 Malicious File

The sample is an XLSM file containing a Workbook_Open VBA macro that utilizes MSXML2.XMLHTTP and ADODB.Stream to download and execute a payload from one of the embedded URLs. The ClamAV detection 'Doc.Downloader.Emotet-10019767-0' strongly suggests the Emotet family and its typical downloader behavior. The macro's primary function is to fetch and run a second-stage payload, aligning with Ingress Tool Transfer.

Heuristics 10

  • VBA downloads and writes a file to disk critical OLE_VBA_HTTP_DROP_EXEC
    VBA reads an HTTP response body and writes it to disk (ADODB.Stream SaveToFile). Combined with the auto-exec/Shell paths this is a download-drop dropper even when the COM ProgIDs are built dynamically to evade keyword scanning.
  • ClamAV: Doc.Downloader.Emotet-10019767-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-10019767-0
  • ClamAV detection on extracted artifact critical EXTRACTED_FILE_CLAMAV
    ClamAV flagged at least one file extracted from inside this sample. Even when the wrapping document carries no AV detection of its own, a hit on the carved artifact is a strong indicator the sample is a delivery vehicle.
  • Workbook_Open macro high OLE_VBA_WBOPEN
    Workbook_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • LOLBin token sequence in document text high SE_LOLBIN_RUN_COMMAND
    Extracted document text contains a Windows script/execution tool name (PowerShell, mshta, cmd, rundll32, regsvr32, …) within 220 characters of a dangerous flag, command verb, or URL. This is a visible 'run this' instruction in HTML/PDF/RTF lure bodies, or — in macro-laden Office files — the macro's own string-pool entries appearing adjacent in extracted text.
  • VBA project inside OOXML medium OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL https://araitrade.com/dbi1vnDj.php
    • https://lernendeutsch.de/App/vendor/phar-io/manifest/examples/rC6SrlTXo3VNK9.php
    • https://memeker.mobi/nbproject/QokpcNCVMat.php
    • https://bbw.checkmynewsite.com/wp-content/themes/twentytwentyone/template-parts/content/nEE7SGUw.php
    • https://mtzasesores.com/wp-content/themes/invictus/templates/events/aVORUgnnJ.php
    • https://inhousecare.org/GNyTpi4kVJrip.php
    • https://www.rebelda.com/wp-content/plugins/cm-pop-up-banners/package/css/utCERekg51.php
    • https://consultoriaemimpermeabilizacao.com/wp-includes/js/tinymce/plugins/charmap/SUn668N8oHZI.php
    • https://mutlumedya.com/wp-content/plugins/js_composer/include/autoload/roR2rMO2Gr3K3.php
    • https://agenciadm.com.mx/images/portfolios/app/m9wyRuevyy2gX.php

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas
3f1a1a6d1bbd0095f72b362b2b32dc6cb2870eb4b315bd359f0e91e9aa696448
vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 2600063 bytes
vbaProject_00.bin
d8a568de67217122e96ea8aba7d9c4fb9626a97161cfe728359d02517546a6f6
vba-project OOXML VBA project: xl/vbaProject.bin 5277184 bytes
Detection
ClamAV: Doc.Downloader.Emotet-10019767-0
Obfuscation or payload: unlikely