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

Static analysis result for SHA-256 316983eac474a76b…

MALICIOUS

Office (OLE) / .DOC

33.0 KB Created: 2022-07-29 15:28:00 Authoring application: Microsoft Office Word First seen: 2022-08-03
MD5: bb2e1f0a2f1bcb080b06c54273981db6 SHA-1: a1c9e7f3d06b21507f766be5b8fd42f9527a4b77 SHA-256: 316983eac474a76be3430196b82aeecc1e8168615d2f8137c5d748677cb42daf
282 Risk Score

Malware Insights

MITRE ATT&CK
T1204 Malicious Link T1059.005 Visual Basic T1059 Command and Scripting Interpreter

The sample is a Microsoft Word document containing VBA macros that exploit CVE-2007-3899, a known memory corruption vulnerability. The AutoOpen and Document_Open macros are present and configured to execute shell commands. The VBA script uses VirtualAlloc to allocate memory and RtlMoveMemory to copy shellcode into it, indicating it's designed to download and execute a second-stage payload. The ClamAV detection name 'Doc.Malware.Valyria-10023899-0' suggests a known malware variant.

Heuristics 8

  • CVE-2007-3899 — Microsoft Word malformed string memory corruption critical CVE likely CVE_2007_3899
    Word OLE document has the MS07-060 malformed-string exploit shape: a Word 97-family FIB points to a malformed DOP/string-table region with an abnormal INT_MAX run, inflated text counters, and exploit payload or Mdropper.Z campaign evidence.
  • ClamAV: Doc.Malware.Valyria-10023899-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Valyria-10023899-0
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • 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.
  • Reference to VirtualAlloc API medium SC_STR_VIRTUALALLOC
    Reference to VirtualAlloc API
  • VBA macros detected medium OLE_VBA_MACROS
    Document contains VBA macro code
  • 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 http://schemas.openxmlformats.org/drawingml/2006/main

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas
e1b40c14e9f4bf3e500da35a861d7ab8fea6b059651165ba13a9ecd376dd0e1a
vba-macro oletools.olevba.extract_macros (decoded VBA source) 3224 bytes