Emotet — Office (OLE) / .XLS malware analysis

Static analysis result for SHA-256 f40b63a4ff852b38…

MALICIOUS

Office (OLE) / .XLS

150.5 KB Created: 2015-06-05 18:17:20 Authoring application: Microsoft Excel
MD5: 643e28221e2d00a821bed29592a191bb SHA-1: 6ba261be8d94e0f11fc796e2c2f1fc44db1fce5d SHA-256: f40b63a4ff852b3844db76bb9fbd19343ad8d6fa00714ffcc8dbd5bf278f2fa8
280 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1059.003 Windows Command Shell T1204.002 Malicious File

The file is identified as malicious by ClamAV with the signature 'Doc.Downloader.EmotetExcel02226-9938630-0'. Static analysis reveals a Workbook_Open macro that uses CreateObject to execute Windows Script Host and a batch file. The macro attempts to write a batch file to 'c:\programdata\jledshf.bat' and then execute it. The batch file contains obfuscated commands that appear to download and execute a second-stage payload from multiple URLs. The reconstructed command line for the batch execution is: 'echo BGZDSRFgtshk4usthkdfhg gzdfghsklehklyxdjfhDTjufyjxFdHxdrgxdh5687ogfy78o9ghu&start/B /WAIT %hjhdrdresas%%YUderhdD3%%VvdsFHd4%%HJtre4edtgf%%bsRHYdtsughzsd23zfg%%cvxerses3srYHDFj%%fgdsahkaw3DF%&echo XVBGSdegfshkj4gskrjfbhGTJdr shd4gjsdfhkdgjskj TGJUDyid4dstgfhxdfds'.

Heuristics 7

  • ClamAV: Doc.Downloader.EmotetExcel02226-9938630-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.EmotetExcel02226-9938630-0
  • Reference to Windows Script Host high SC_STR_WSCRIPT
    Reference to Windows Script Host
  • 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.
  • Suspicious extracted artifact high EXTRACTED_FILE_STATIC_TRIAGE
    One or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
  • VBA macros detected medium OLE_VBA_MACROS
    Document contains VBA macro code

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas
006c4f4d54d1c9bb906763adb0bd849cdbbe9d88f3fa78ad2d18ef6987f96c37
vba-macro oletools.olevba.extract_macros (decoded VBA source) 8906 bytes
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved macro source contains an auto-exec entry point and execution/download terms.