Malicious Office (OLE) / .XLS — malware analysis report

Static analysis result for SHA-256 d7e3465fc846e373…

MALICIOUS

Office (OLE) / .XLS

438.0 KB Created: 2018-12-06 20:43:11 Authoring application: Microsoft Excel
MD5: 421874e6523b23e7a02a71769fdb0bb6 SHA-1: 1eca0c28207ef8bc161ad80473f040f97d96b403 SHA-256: d7e3465fc846e37369479b21e154bd1f816e998e979779175fd21470e9e4def7
408 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059.003 Windows Command Shell T1059.001 PowerShell T1204.002 Malicious File T1105 Ingress Tool Transfer

The file contains VBA macros, specifically a Workbook_Open macro, which is a common technique for initial execution. The script utilizes WScript.Shell and CreateObject to download and execute a second-stage payload, indicated by the Shell() call and the reference to WScript. The reconstructed path 'AppData\' combined with the filename 'macros.bas' suggests the downloaded payload will be saved and executed from the user's AppData directory. The ClamAV detection further confirms its malicious nature.

Heuristics 10

  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
  • ClamAV: Xls.Malware.Valyria-10032137-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Malware.Valyria-10032137-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
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas
bcd4d10df51178766b9f8748e4dfb4df5d1a2c8a1574a2eb859c2fa97f69086d
vba-macro oletools.olevba.extract_macros (decoded VBA source) 37355 bytes
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 2 shell/COM execution token(s). Carved artifact contains 141 long base64-like blob(s). Carved macro source contains an auto-exec entry point and execution/download terms.